Finish an attachment upload
/attachments/{attachmentId}/completeUse this after the PUT: the file's type is checked from its bytes, and a ready attachment can be passed in attachmentIds.
- Token
- Bearer API token: cxk_live_ followed by 46 letters and digits
- Scope
tickets:write- Header
Authorization: Bearer $CLOUDUXE_API_KEY
How tokens and scopes work: Authentication and scopes.
attachmentIdstring (uuid)RequiredThe attachment's id.
Clouduxe-VersionstringOptionalThe API version to use, such as 2026-12-01. Omit it to use your token's version.
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$Idempotency-KeystringRequiredA unique key for this logical request, 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen; a UUID is best. Retrying with the same key is safe: the change happens once and the retry gets the same answer. Keys are kept 48 hours.
pattern ^[A-Za-z0-9_.:-]{1,128}$
200OK The attachment.
objectstringRequiredThe object's type. Always "attachment".
idstring (uuid)RequiredThe attachment's id.
statusstringRequiredready (pass it in attachmentIds), refused (its type is not accepted), or attached.
One ofreadyrefusedattachedfilenamestringRequiredThe file name.
sizeintegerRequiredBytes.
typestring or nullRequiredThe sniffed media type, or null when refused.
ticketIdstring (uuid) or nullRequiredThe ticket it is attached to, or null.
downloadobject or nullRequiredA short-lived download link, for an attached file.
Show 2 child attributesHide 2 child attributes
urlstring (uri)RequiredDownload from here, without your token. Opaque: do not parse it.
expiresAtstring (date-time)RequiredWhen url stops working.
Every response
- 200OKThe attachment.
- 400Bad requestThe request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.
- 401UnauthorizedAuthentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.
- 403ForbiddenThe token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.
- 404Not foundNot found. Codes: not_found.
- 409ConflictThe request conflicts with the object's current state. Codes: idempotency_in_progress.
- 422UnprocessableThe request is well formed but cannot be carried out. Codes: attachment_unavailable, idempotency_mismatch.
- 429Too many requestsA rate limit was reached. Codes: rate_limited.
- 500Server errorUnexpected error. Codes: internal_error.
- 503UnavailableTemporarily unavailable. Codes: maintenance, files_unavailable, unavailable, outcome_unknown, limits_unavailable.