ورود | ثبت نام
  • FA
  • EN

API Docs

GET /api/v1/ai/threads/{thread-id}/messages/{message-id}/attachments

Lists the metadata of all files attached to a specific AI thread message.


Permissions

PermissionDescription
ai_thread_messages.viewView messages (and their attachments) in your own thread

URL Parameters

NameTypeRequiredDescriptionExample
thread-idintYesID of the thread123
message-idintYesID of the message456

Response

200 OK

Returns the message's attachments (not paginated — a message holds at most 5).

Example

{
  "data": [
    {
      "id": 5,
      "message_id": 456,
      "original_name": "photo.jpg",
      "mime_type": "image/jpeg",
      "size_bytes": 84213,
      "url": "/api/v1/ai/threads/123/messages/456/attachments/5",
      "created_at": "2020-01-01 00:00:00"
    }
  ]
}

For a full schema, see AI Thread Message Attachment Resource.


Error Responses

StatusDescriptionReference
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Thread or message not found, or message not in threadNot found error
Dambel

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutubeTelegramGitHub