Get conversation
Returns one conversation in real time. Pass conversation_id as a query parameter (equal to the value returned by List conversations). The response always includes conversation_id / type / title / avatar_url (empty string when missing) plus type-specific fields such as members_count for groups; returns 404 when the conversation cannot be found.
https://api.unifyport.ai/v1/accounts/{account_id}/conversations/infoHeaders
X-Api-KeyWorkspace API key. The workspace is resolved from this header.
Path parameters
account_idIdentifier used in the conversations route.
Query parameters
conversation_idConversation to look up — the value returned as conversation_id by List conversations.
typeConversation type (user, group, or channel) to disambiguate the lookup.
enum: user, group, channel
Request body
This endpoint does not require a JSON request body.
Response body
conversation_idConversation identifier. Use it as the target when sending messages or calling conversation routes.
typeConversation type: user, group, or channel.
enum: user, group, channel
titleDisplay title of the conversation.
usernameProvider username for the conversation, when available.
avatar_urlAvatar URL, or an empty string when none is set.
descriptionGroup or channel description, when available.
last_message_atRFC3339 timestamp of the most recent message.
format: date-time
last_message_textText preview of the most recent message, when available.
unread_countNumber of unread messages in the conversation.
format: int64
members_countNumber of members; returned for group conversations.
format: int64
subscribers_countSubscriber count for channel-style conversations, when available.
format: int64
is_pinnedWhether the connected account pinned the conversation.
is_mutedWhether the connected account muted the conversation.
created_atProvider-reported conversation creation time, when available.
format: date-time
extraProvider-specific fields not represented by the standard schema.
Responses
200Request succeeded. See the example response body.
400The request body, path, or parameters are invalid.
401The X-Api-Key header is missing or invalid.
404The requested provider resource could not be found.
409The requested operation conflicts with an existing provider account or resource.
500The service encountered an unexpected error.
501The selected provider does not implement this operation.
502The provider adapter or upstream provider could not complete the operation.
Request
curl -X GET https://api.unifyport.ai/v1/accounts/{account_id}/conversations/info?conversation_id=peer_example&type=group \
-H "X-Api-Key: <YOUR_API_KEY>"Response
{
"data": {
"conversation_id": "peer_example",
"type": "group",
"title": "Group title",
"avatar_url": "",
"description": "...",
"unread_count": 0,
"members_count": 42
}
}