Uploads one file, to be referenced by a later message on one of your tickets.
POST
/v1/integration/attachments
const url = 'https://api.example.com/v1/integration/attachments';const form = new FormData();form.append('file', 'file');
const options = {method: 'POST'};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.example.com/v1/integration/attachments \ --header 'Content-Type: multipart/form-data' \ --form file=@fileThe returned id is usable only by the token that uploaded it, only once, and only within 24 hours. Send it in attachmentIds on POST /v1/integration/tickets/{id}/messages. Size and type limits are the deployment’s own — see GET /v1/attachments/configuration.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
object
file
string format: binary
Responses
Section titled “Responses”Created
object
Examplegenerated
{ "data": { "id": "example", "objectKey": "example", "originalFileName": "example", "contentType": "example", "fileSize": "example", "createdAt": "2026-04-15T12:00:00Z" }, "success": true, "error": { "status": "example", "code": "example", "details": "example", "message": "example" }}object
Examplegenerated
{ "data": { "id": "example", "objectKey": "example", "originalFileName": "example", "contentType": "example", "fileSize": "example", "createdAt": "2026-04-15T12:00:00Z" }, "success": true, "error": { "status": "example", "code": "example", "details": "example", "message": "example" }}Unauthorized
object
type
string
title
string
status
detail
string
instance
string
object
type
string
title
string
status
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": "example", "detail": "example", "instance": "example"}object
type
string
title
string
status
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": "example", "detail": "example", "instance": "example"}Forbidden
object
type
string
title
string
status
detail
string
instance
string
object
type
string
title
string
status
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": "example", "detail": "example", "instance": "example"}object
type
string
title
string
status
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": "example", "detail": "example", "instance": "example"}Too Many Requests
object
type
string
title
string
status
detail
string
instance
string
object
type
string
title
string
status
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": "example", "detail": "example", "instance": "example"}object
type
string
title
string
status
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": "example", "detail": "example", "instance": "example"}