Skip to the page

Search the titles, headings and text of every guide and API reference page.

    Chapters

    Attachments

    Get a preview link

    GET/api/v1/attachments/{id}/documents/{document_id}/url

    A link that shows one page of the document's image for 60 seconds (page, from 1: the first by default; a page the document does not have is not found; the answer says the page and the document's pages): ask for a new one each time it is shown. Do not store, log or share it. Needs a key with read.

    Needs a key with read permission.

    Request

    Path parameters

    Path parameters
    NameTypeRequiredDescription
    idstringrequiredAn attachment ID (att_...).
    document_idstringrequiredA document ID (doc_...).

    Query parameters

    Query parameters
    NameTypeRequiredDescription
    pagestringoptionalThe page to show, from 1 (the default). A page the document does not have is not found.

    Response

    The link. Status 200.

    Response fields
    NameTypeDescription
    objectstringAlways `attachment_document_url`.
    urlstringA link that shows the page's image for 60 seconds. Do not store or log it.
    expires_atstring (date-time)
    pageintegerThe page the link shows.At least 1.
    pagesintegerHow many pages the document has.At least 1.

    Errors

    Errors
    HTTP statusCodeWhat it means
    401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
    403PERMISSION_DENIEDThis API key is not allowed to do that.
    404NOT_FOUNDNot found.
    422INVALID_REQUESTThe request is not valid.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    504TIMEOUTThe request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    curl "https://app.myclaimhouse.com/api/v1/attachments/att_01JM000000E00800000000003G/documents/doc_01JM000000E00800000000003H/url" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY"

    Example response: 200

    JSON
    {
      "object": "attachment_document_url",
      "url": "https://storage.example.com/attachments/signed/EXAMPLE?token=EXAMPLE",
      "expires_at": "2026-09-24T21:00:59.000000+00:00",
      "page": 1,
      "pages": 1
    }