API ReferenceMessages
Get attachment url
By default this endpoint responds with a 302 redirect to a signed URL. Pass format=json to receive { data: { url } } instead. MCP tool: ticqex_get_attachment_url.
Authorization
bearerAuth AuthorizationBearer <token>
API key (tq_live_...) or staff Supabase JWT from browser login.
In: header
Path Parameters
message_id*string
attachment_id*string
Query Parameters
download?boolean
When true, force the signed URL to include a Content-Disposition attachment header.
format?string
Response format. Use "json" to receive { data: { url } } instead of a redirect.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "data": { "url": "http://example.com" }}Empty
{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}