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

API Docs

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

Downloads an attached file's binary content. Fully authenticated — unlike /media downloads, there is no token-in-URL access; send the Sanctum bearer token as usual.


Permissions

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

URL Parameters

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

Response

200 OK

Streams the file's bytes. The Content-Disposition header carries the original filename:

Content-Disposition: attachment; filename="photo.jpg"
Content-Type: image/jpeg

Error Responses

StatusDescriptionReference
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Thread, message, or attachment not found; message not in thread; attachment not on message; or file missing on diskNot found error
Dambel

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

LinkedinInstagramXYoutubeTelegramGitHub