For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Overview
    • Introduction
    • Response Codes
  • API Reference
          • GETGet thread messages
          • GETList seat messages
          • GETGet message
          • PUTUpdate message
          • DELDelete message
LogoLogo
API ReferenceInboxLinkedinMessages

Get thread messages

||View as Markdown|
GET
https://hublinks.io/rest/accounts/:account_id/seats/:seat_id/inbox/linkedin/threads/:thread_id/messages
GET
/rest/accounts/:account_id/seats/:seat_id/inbox/linkedin/threads/:thread_id/messages
$curl -G https://hublinks.io/rest/accounts/account_id/seats/seat_id/inbox/linkedin/threads/thread_id/messages \
> -H "X-API-KEY: <apiKey>" \
> -d limit=100
200Response
1{
2 "success": true,
3 "messages": [
4 {
5 "body": "John, I just applied for a role as a CoS at Human Agency & figured you'd be the perfect person to connect with for some insight! Let's connect!",
6 "type": "profile",
7 "seat_id": "SEAT6a13e661ecc6a86e3fb7",
8 "ln_inbox": "LP",
9 "direction": "IN",
10 "last_name": "Hill, PMP",
11 "ln_degree": 1,
12 "member_id": "566713732",
13 "thread_id": "2-OTRhYTNiN2MtMWZmMi00YjE5LWE3YzYtODYwNDBlNTBhZTQxXzEwMA==",
14 "account_id": "ACCO136ce10b5f8a7682efb3",
15 "created_at": 1749134646969,
16 "first_name": "Jared",
17 "message_id": "2-MTc0NDk5Mzk5ODQwN2I1ODcwMi0xMDAmOTRhYTNiN2MtMWZmMi00YjE5LWE3YzYtODYwNDBlNTBhZTQxXzEwMA==",
18 "updated_at": 1749134646969,
19 "delivered_at": 1744993998812
20 },
21 {
22 "body": "Thanks for connecting! Tell me about your amazing team!",
23 "type": "profile",
24 "seat_id": "SEAT6a13e661ecc6a86e3fb7",
25 "ln_inbox": "LP",
26 "direction": "IN",
27 "last_name": "O'Neil",
28 "ln_degree": 1,
29 "member_id": "30409788",
30 "thread_id": "2-Y2Y2N2UwN2EtZTA5MS00MjgwLTlhYzctMzkwMjVkMDI1NWY5XzEwMA==",
31 "account_id": "ACCO136ce10b5f8a7682efb3",
32 "created_at": 1749058643532,
33 "first_name": "Rachel",
34 "message_id": "2-MTc0NDk5NTI4MjQwN2IxODUzNi0xMDAmY2Y2N2UwN2EtZTA5MS00MjgwLTlhYzctMzkwMjVkMDI1NWY5XzEwMA==",
35 "updated_at": 1749058643532,
36 "delivered_at": 1744995282807
37 },
38 {
39 "body": "Hi John, it's great to connect with you. Looking forward to staying in touch!",
40 "type": "profile",
41 "seat_id": "SEAT6a13e661ecc6a86e3fb7",
42 "ln_inbox": "LP",
43 "direction": "IN",
44 "last_name": "Koehlinger",
45 "ln_degree": 1,
46 "member_id": "184378129",
47 "thread_id": "2-MmQyOWI2NWUtZmU3OC00MjQzLTkyNmUtZjQyMDcyYzQzNGM2XzEwMA==",
48 "account_id": "ACCO136ce10b5f8a7682efb3",
49 "created_at": 1749058641020,
50 "first_name": "Andrew",
51 "message_id": "2-MTc0NjA2OTMwMzU4M2IyOTg3My0xMDAmMmQyOWI2NWUtZmU3OC00MjQzLTkyNmUtZjQyMDcyYzQzNGM2XzEwMA==",
52 "updated_at": 1749058641020,
53 "delivered_at": 1746069303863
54 },
55 {
56 "body": "Hi John, excited to learn more about your company.\r\n\r\nCurious if your team could use more vetted sales appointments? The reason I ask is growth-minded teams come to us to put quality sales meetings on their calendars, and the best part is it’s all pay-for-performance \r\n\r\n(which means if we don't get you qualified meetings, you don't pay).\r\n\r\nBy the way, we’re not another fly-by-night lead gen agency. Our method has been proven on over 1000 companies and we were ranked the #40 fastest-growing marketing agency by INC. \r\n\r\nCan we find a time to chat? \r\n",
57 "type": "profile",
58 "seat_id": "SEAT6a13e661ecc6a86e3fb7",
59 "ln_inbox": "LP",
60 "direction": "IN",
61 "last_name": "Umbrete",
62 "ln_degree": 1,
63 "member_id": "119727482",
64 "thread_id": "2-YzcwNDAxNTEtMGNiNi00YTMyLWI5YzktMTMwNTVhZGVmYTJmXzEwMA==",
65 "account_id": "ACCO136ce10b5f8a7682efb3",
66 "created_at": 1749058596559,
67 "first_name": "Aiza",
68 "message_id": "2-MTc0NjYxMjgyNzc5MWI2NTk0NC0xMDAmYzcwNDAxNTEtMGNiNi00YTMyLWI5YzktMTMwNTVhZGVmYTJmXzEwMA==",
69 "updated_at": 1749058596559,
70 "delivered_at": 1746612828110
71 },
72 {
73 "body": "Need top-quality leads?\n\n We’ve got you covered with our HOT $$ BUCKET DATA! High-demand categories include:-ACA, MEDICARE, AUTO WARRANTY, LOAN, INSURANCE, DEBT, B2B/B2C, MEDICARE, SOLAR, ENERGY...\n\nWhy To Choose Us?\n80%+ Connectivity Rate, Verified, High-Quality Leads\n\nSkype :- live:.cid.742e2e252d0d926e",
74 "type": "profile",
75 "seat_id": "SEAT6a13e661ecc6a86e3fb7",
76 "ln_inbox": "LP",
77 "direction": "IN",
78 "last_name": "Maind",
79 "ln_degree": 1,
80 "member_id": "909823523",
81 "thread_id": "2-NjNmNDcyYTgtNDZmNy00NDc3LWEwMDAtMTk4YjkxN2IyNjgzXzEwMA==",
82 "account_id": "ACCO136ce10b5f8a7682efb3",
83 "created_at": 1749058638600,
84 "first_name": "Shubham",
85 "message_id": "2-MTc0NjYyNzk2NjA3OGIzNzM0Ny0xMDAmNjNmNDcyYTgtNDZmNy00NDc3LWEwMDAtMTk4YjkxN2IyNjgzXzEwMA==",
86 "updated_at": 1749058638600,
87 "delivered_at": 1746627966403
88 },
89 {
90 "body": "Hi John, nice to meet you!\n\nAre you looking to energize your team with practical strategies that drive real business growth? I’m currently in the Detroit area and would love to bring “OUTSELL, OUTGROW, OUTSMART with AI”—a dynamic experience session designed to show business leaders how to harness AI for a competitive edge. \n\nRecent workshops received stellar reviews from CEO peer groups and Vistage groups across the US and Canada, with attendees saying the content was “perfectly timed” and “immediately actionable.”\n\nCheck out what others have had to say:\n✅ Video testimonials: https://stormieandrews.com/video-testimonials\n✅ Other reviews and feedback: https://stormieandrews.com/post-event-reviews\n\nLet’s explore how this session can support your business goals and add value. Are you available for a quick call next week, Monday, the 12th, at 10 AM (EST) or 1 PM (EST) to discuss further?\n\nBest,\nStormie Andrews\n🌎 www.StormieAndrews.com\n🚀 www.BREATHEExp.com\n🔗 BusinessWise365.com",
91 "type": "profile",
92 "seat_id": "SEAT6a13e661ecc6a86e3fb7",
93 "ln_inbox": "LP",
94 "direction": "IN",
95 "last_name": "Andrews",
96 "ln_degree": 1,
97 "member_id": "37273368",
98 "thread_id": "2-NWZmZDk5NDAtNTdjNi00YzAxLWJhY2ItYmNiYTc3ZmJmZTUwXzEwMA==",
99 "account_id": "ACCO136ce10b5f8a7682efb3",
100 "created_at": 1749058636060,
101 "first_name": "Stormie",
102 "message_id": "2-MTc0Njc0NTQ5ODM2NGIxMzI3OS0xMDAmNWZmZDk5NDAtNTdjNi00YzAxLWJhY2ItYmNiYTc3ZmJmZTUwXzEwMA==",
103 "updated_at": 1749058636060,
104 "delivered_at": 1746745498701
105 }
106 ]
107}

List messages within a Linkedin thread. Supports cursor pagination via last_key: make the first request without it, then if the response last_key is non-null, URL-encode the JSON cursor and pass it as ?last_key= on the next request. Repeat until last_key is null.

Was this page helpful?
Previous

Generate AI response (experimental)

Next

List seat messages

Built with

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

account_idstringRequired
seat_idstringRequired
thread_idstringRequired

Query parameters

limitintegerOptional<=500Defaults to 500
Maximum number of messages to return. Values above 500 are clamped to 500. Defaults to 500 when omitted.
last_keystringOptional

Pagination cursor. Take the last_key object from the previous response, JSON-stringify it, then URL-encode it (e.g. encodeURIComponent(JSON.stringify(last_key))) and pass it here. Omit on the first request. When the response last_key is null, you have reached the end.

Response

This endpoint returns an object.
successboolean
messageslist of objects
last_keymap from strings to any or null

Cursor for the next page. null when there are no more results. When non-null, pass it back as the last_key query parameter (URL-encoded JSON) to fetch the next page.