GET /api/v1/inbox/conversations/{id}/messages/{messageId}/attachments/{index}/content

The bytes of a TikTok Business message image or video, fetched from TikTok by media id (/business/message/media/download/; its URL needs the account's token). This is the authenticated url the attachment route returns for them

GET
/api/v1/inbox/conversations/{id}/messages/{messageId}/attachments/{index}/content

Authorization

BearerAuth
headerAuthorizationBearer <token>

API key sk_...

Path Parameters

id*string

Conversation id

messageId*string

Message id (Postgale or platform id)

index*string

Attachment index (0-based)

Response Body

The file

response?fileapplication/octet-stream
Formatbinary
Example Request
curl -X GET 'https://example.com/api/v1/inbox/conversations/string/messages/string/attachments/string/content'
Example Response
"string"