Ticket Attachments
Required scope: tickets:read
Pagination: cursor-optional
Error codes: SCOPE_TARGET_MISMATCH, VALIDATION_FAILED, INVALID_CURSOR
access-tokenAuthorizationBearer <token>scope*string"ticket""track"scope_id*stringuuidnote_id?stringuuidcursor?stringlimit?number1..500. Omit to receive the full collection in one page.
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/ticket-attachments?scope=ticket&scope_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "data": [ { "content_type": "application/pdf", "file_name": "string", "file_size_bytes": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "scope": "ticket", "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: tickets:write
Error codes: SCOPE_TARGET_MISMATCH, ATTACHMENT_TYPE_UNSUPPORTED, ATTACHMENT_TOO_LARGE, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>scope*string"ticket""track"scope_id*stringuuidnote_id?stringuuidIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255multipart/form-data- body
file*unknownPDF, PNG, JPEG, or WebP file. Max 25 MiB. Magic-byte sniffed server-side.
application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/ticket-attachments?scope=ticket&scope_id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Idempotency-Key: string' \ -F 'file=null'{ "data": { "content_type": "application/pdf", "file_name": "string", "file_size_bytes": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "scope": "ticket", "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: tickets:write
Error codes: TICKET_ATTACHMENT_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255Possible error codes: IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
application/json- response
code*stringdetail*stringerrors?array<>instance*stringnext_action?stringWhat the caller does next. Sent only by codes that declare it (the PLAN_* codes).
"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"request_id*stringretryable?booleanWhether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).
status*numbertitle*stringtype*stringcurl -X DELETE 'https://api.acreum.io/v1/ticket-attachments/string' \ -H 'Idempotency-Key: string'{ "code": "DOCUMENT_ALREADY_POSTED", "detail": "Document doc_01 is already posted.", "errors": [ { "code": "INVALID_VALUE", "field": "amount", "message": "must be > 0" } ], "instance": "/v1/documents/doc_01/post", "next_action": "fix_step", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "retryable": true, "status": 409, "title": "Document already posted", "type": "https://docs.acreum.io/errors/DOCUMENT_ALREADY_POSTED"}Required scope: tickets:read
Error codes: TICKET_ATTACHMENT_NOT_FOUND
access-tokenAuthorizationBearer <token>id*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/ticket-attachments/string/download'{ "data": { "expires_at": "2019-08-24T14:15:22Z", "url": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}