Skip to the page
Chapters

Attachments

Get a preview link

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

A link that shows the document's image for 60 seconds: 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_...).

Response

The link. Status 200.

Response fields
NameTypeDescription
objectstringAlways `attachment_document_url`.
urlstringA link that shows the image for 60 seconds. Do not store or log it.
expires_atstring (date-time)

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.
504TIMEOUTThe request took too long to finish. It may still have taken effect: look it up before sending it again with a new Idempotency-Key. What it made is found with GET /api/v1/eligibility?request_id=<this request_id>, and the same filter on /api/v1/claims and /api/v1/attachments (a key with read permission).
500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

Example

Example request

Shell
curl "https://sandbox.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"
}