GET
/
v1
/
messaging
/
conversations
/
{conversationUid}
Retrieve specific conversation
curl --request GET \
  --url https://api-staging.respondent.io/v1/messaging/conversations/{conversationUid} \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-api-secret: <x-api-secret>'
{
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "uid": "<string>",
  "name": "<string>",
  "deleted": true,
  "locked": true,
  "read": true,
  "metadata": {
    "projectId": "<string>",
    "surveyResponseId": "<string>",
    "externalResearcherId": "<string>",
    "externalTeamId": "<string>",
    "externalCompanyId": "<string>"
  },
  "user": {
    "uid": "<string>",
    "foreignId": "<string>",
    "firstName": "<string>",
    "lastName": "<string>"
  },
  "participants": [
    {
      "uid": "<string>",
      "foreignId": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "read": true,
      "deleted": true
    }
  ],
  "messages": [
    {
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "uid": "<string>",
      "body": "<string>",
      "sender": {
        "uid": "<string>",
        "foreignId": "<string>",
        "firstName": "<string>",
        "lastName": "<string>"
      }
    }
  ],
  "latestMessage": {
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "uid": "<string>",
    "body": "<string>"
  },
  "messagesCount": 123
}

Headers

x-api-key
string
required
x-api-secret
string
required

Path Parameters

conversationUid
string
required

Response

200 - application/json
createdAt
string
required
uid
string
required

Unique identifier of conversation.

name
string
required

Name of conversation.

deleted
boolean
required

If conversation is marked as deleted.

locked
boolean
required

If conversation is locked.

read
boolean
required
deprecated
user
object
required

User who created the conversation. This will be the API owner/admin account for the api team. First name and last name will belong to api team user, not external researcher name. External researcherId will be stored in metadata, which can be used to lookup your external researcher's info internally.

participants
object[]
required

All participants of conversation including the researcher. The researcher will be the API owner/admin account for the api team.

messages
object[]
required

All messages in conversation.

latestMessage
object
required

Latest message in conversation.

messagesCount
number
required

Count of messages in conversation.

updatedAt
string
metadata
object

Metadata of conversation.