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

API Docs

AI Thread Message Attachment Resource

Represents a file attached to an AI thread message.


Schema

FieldTypeDescriptionExample
idintUnique identifier for the attachment5
message_idintID of the message it belongs to456
original_namestringThe filename as uploaded by the user"photo.jpg"
mime_typestringDetected MIME type (image/jpeg, image/png, image/webp, application/pdf)"image/jpeg"
size_bytesintFile size in bytes84213
urlstringRelative API path for downloading the file (authenticated)"/api/v1/ai/threads/123/messages/456/attachments/5"
created_atstringCreation timestamp (ISO 8601 format)"2020-01-01 00:00:00"

Example

{
  "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"
}
Dambel

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

LinkedinInstagramXYoutubeTelegramGitHub