curl --request POST \
--url https://api.example.com/v2/messages \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"account_id": "<string>",
"action": "<string>",
"params": {
"count": 123,
"category": "<string>",
"cursor": "<string>"
}
}
'{
"success": true,
"data": {
"conversations": [
{
"conversation_id": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAA...,2-MDZiY2ExOTgtM2NjNy00OTU4LTgyNjUtZWFlMmIwZjM1NTlmXzEwMA==)",
"participant": {
"name": "Jane Doe",
"headline": "Founder at Acme Corp",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg"
},
"last_message": {
"text": "Sounds good, talk soon!",
"time": 1777147641366,
"sender": {
"name": "Jane Doe",
"headline": "Founder at Acme Corp",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg",
"is_me": false
}
},
"unread": 0,
"type": "normal"
}
],
"total_results": 1,
"next_cursor": "REVTQ0VORElORyYxNzc0OTU4MDE2NjQzJjItWlRFMk1qazBaV1F0Wm1JMFlpMDBNR1k1TFRrMlptTXRaRGcwWVRjM05qUTJZakExWHpFd01BPT0="
},
"metadata": {
"action": "list_inbox",
"account_id": "your-account-id",
"credits_consumed": 1,
"timestamp": "2026-04-26T10:35:00Z"
}
}
Retrieve a list of conversations from the inbox.
curl --request POST \
--url https://api.example.com/v2/messages \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"account_id": "<string>",
"action": "<string>",
"params": {
"count": 123,
"category": "<string>",
"cursor": "<string>"
}
}
'{
"success": true,
"data": {
"conversations": [
{
"conversation_id": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAA...,2-MDZiY2ExOTgtM2NjNy00OTU4LTgyNjUtZWFlMmIwZjM1NTlmXzEwMA==)",
"participant": {
"name": "Jane Doe",
"headline": "Founder at Acme Corp",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg"
},
"last_message": {
"text": "Sounds good, talk soon!",
"time": 1777147641366,
"sender": {
"name": "Jane Doe",
"headline": "Founder at Acme Corp",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg",
"is_me": false
}
},
"unread": 0,
"type": "normal"
}
],
"total_results": 1,
"next_cursor": "REVTQ0VORElORyYxNzc0OTU4MDE2NjQzJjItWlRFMk1qazBaV1F0Wm1JMFlpMDBNR1k1TFRrMlptTXRaRGcwWVRjM05qUTJZakExWHpFd01BPT0="
},
"metadata": {
"action": "list_inbox",
"account_id": "your-account-id",
"credits_consumed": 1,
"timestamp": "2026-04-26T10:35:00Z"
}
}
next_cursor value.
total_results values trigger multiple upstream calls automatically."list_inbox".Show params properties
10."INBOX", "UNREAD", "MY_CONNECTIONS", "INMAIL", "STARRED". Defaults to "INBOX".data.next_cursor. Omit for the first page.Show data properties
Show conversation properties
urn:li:msg_conversation:(urn:li:fsd_profile:...,2-...).Show participant properties
is_organization).is_organization).is_organization).true when the participant is a LinkedIn company page (e.g. Sponsored InMail, brand outreach). Absent for human members.Show last_message properties
0 when fully read."normal", "inmail", "Sponsored".next_cursor in the next request to resume pagination. null when the end is reached.{
"success": true,
"data": {
"conversations": [
{
"conversation_id": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAA...,2-MDZiY2ExOTgtM2NjNy00OTU4LTgyNjUtZWFlMmIwZjM1NTlmXzEwMA==)",
"participant": {
"name": "Jane Doe",
"headline": "Founder at Acme Corp",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg"
},
"last_message": {
"text": "Sounds good, talk soon!",
"time": 1777147641366,
"sender": {
"name": "Jane Doe",
"headline": "Founder at Acme Corp",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg",
"is_me": false
}
},
"unread": 0,
"type": "normal"
}
],
"total_results": 1,
"next_cursor": "REVTQ0VORElORyYxNzc0OTU4MDE2NjQzJjItWlRFMk1qazBaV1F0Wm1JMFlpMDBNR1k1TFRrMlptTXRaRGcwWVRjM05qUTJZakExWHpFd01BPT0="
},
"metadata": {
"action": "list_inbox",
"account_id": "your-account-id",
"credits_consumed": 1,
"timestamp": "2026-04-26T10:35:00Z"
}
}
Was this page helpful?