List the 20 most recent messages of one TikTok direct-message conversation

GET
/v1/content/tiktok.dm.messages

List the 20 most recent messages of one TikTok direct-message conversation.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

connectedProfileId*string

Koil Connected Profile associated with the operation.

Length1 <= length
threadExternalId*string
Length1 <= length
resolveMedia?boolean

Resolve inbound images and videos to a fetchable URL, one extra call per attachment. The URL TikTok mints lasts 24 hours, so ask for it when the media is about to be shown.

includeProviderRaw?boolean

Whether to include transient provider-native payloads.

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/content/tiktok.dm.messages?connectedProfileId=string&threadExternalId=string"
{  "data": [    {      "externalId": "string",      "threadExternalId": "string",      "kind": "text",      "text": "string",      "author": {        "id": "string",        "displayName": "string",        "username": "string"      },      "recipient": {        "id": "string",        "displayName": "string",        "username": "string"      },      "thread": {        "parentId": "string",        "rootId": "string",        "threadId": "string"      },      "attachments": [        {          "kind": "text",          "externalId": "string",          "sourceUrl": "string"        }      ],      "source": "string",      "autoMessageType": "welcomeMessage",      "publishedAt": "2019-08-24T14:15:22Z",      "providerRaw": null,      "contentType": "tiktok.dm.messages"    }  ],  "nextCursor": "string",  "hasMore": true}
{  "error": {    "code": "validation_error",    "message": "string",    "meta": {      "property1": null,      "property2": null    }  }}