Start an attachment upload
/attachmentsUse this first to attach a file: it answers an upload URL. PUT the bytes there with the given headers, then call completeAttachment, then pass the id in attachmentIds. At most 10 MiB.
- 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.
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}$
Body
RequiredfilenamestringRequiredThe file name, 1 to 255 characters.
min length 1, max length 255sizeintegerRequiredThe exact size in bytes, at most 10 MiB.
min 1, max 10485760contentTypestringRequiredThe file's media type. The stored type is sniffed from the bytes: PNG, JPEG, GIF, WebP, PDF, ZIP, gzip or plain text.
201Created Where to upload.
objectstringRequiredThe object's type. Always "attachment_upload".
attachmentIdstring (uuid)RequiredThe attachment's id. Call completeAttachment after the upload.
uploadobjectRequiredThe upload request to make.
Show 4 child attributesHide 4 child attributes
urlstring (uri)RequiredPUT the bytes here, without your token. Opaque: do not parse it.
methodstringRequiredAlways PUT.
One ofPUTheadersobjectRequiredSend exactly these headers with the PUT.
expiresAtstring (date-time)RequiredWhen url stops accepting the upload.
Every response
- 201CreatedWhere to upload.
- 400Bad requestThe request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.
- 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.
- 409ConflictThe request conflicts with the object's current state. Codes: idempotency_in_progress.
- 413Too largeThe request body is too large. Codes: request_too_large.
- 415Unsupported media typeUnsupported media type. Codes: unsupported_media_type.
- 422UnprocessableThe request is well formed but cannot be carried out. Codes: 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.