AI ready
Open in Claude (opens in a new tab)View as Markdown

Get an attachment

GET/attachments/{attachmentId}

Use this to download a file from a ticket. The link lasts a few minutes.

Token
Bearer API token: cxk_live_ followed by 46 letters and digits
Scope
tickets:read
Header
Authorization: Bearer $CLOUDUXE_API_KEY

How tokens and scopes work: Authentication and scopes.

  • attachmentIdstring (uuid)Required

    The attachment's id.

  • Clouduxe-VersionstringOptional

    The 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}$

Returns

200OK The attachment.

  • objectstringRequired

    The object's type. Always "attachment".

  • idstring (uuid)Required

    The attachment's id.

  • statusstringRequired

    ready (pass it in attachmentIds), refused (its type is not accepted), or attached.

    One ofreadyrefusedattached
  • filenamestringRequired

    The file name.

  • sizeintegerRequired

    Bytes.

  • typestring or nullRequired

    The sniffed media type, or null when refused.

  • ticketIdstring (uuid) or nullRequired

    The ticket it is attached to, or null.

  • downloadobject or nullRequired

    A short-lived download link, for an attached file.

    Show 2 child attributesHide 2 child attributes
    • urlstring (uri)Required

      Download from here, without your token. Opaque: do not parse it.

    • expiresAtstring (date-time)Required

      When url stops working.

Every response

  • 200OKThe attachment.
  • 400Bad requestThe request is not valid. Codes: version_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.
  • 429Too many requestsA rate limit was reached. Codes: rate_limited.
  • 500Server errorUnexpected error. Codes: internal_error.
  • 503UnavailableTemporarily unavailable. Codes: files_unavailable, unavailable.

Updated 5 November 2026. Generated from the API contract.

Need a server, or a hand with one?

Pick a plan to deploy a server, or open a ticket in the panel. Support runs 24/7/365.