Skip to the page
Chapters

Attachments

Get an attachment

GET/api/v1/attachments/{id}

One attachment of the key's organization and mode, with its documents, and once closed its number and what a claim file carries for it.

Needs a key with read permission.

Request

Path parameters

Path parameters
NameTypeRequiredDescription
idstringrequiredAn attachment ID (att_...).

Response

The attachment. Status 200.

Response fields
NameTypeDescription
idstringAn ID that starts with att_.
objectstringAlways `attachment`.
statestringopen while documents can be added; closed once sent, with its number. Nothing changes after closing.One of: `open`, `closed`.
kindstringunsolicited (sent with a claim); solicited (answering a payer request: never on a claim file).One of: `unsolicited`, `solicited`.
claim_idstring or nullThe claim it was made for, if any. Which claims carry it is the claim's attachments field.
office_idstringAn ID that starts with off_.
payerobject
payer.idstringAn ID that starts with pyr_.
payer.payer_idstringThe payer's own payer ID.
payer.namestring
payer_request_idstring or nullAn ID that starts with prq_.
payer_referencevalueThe payer's reference number, for a solicited attachment.
narrativestringWhat the documents show, in words: at most 2000 characters.
documentsarray of object
documents[].idstringAn ID that starts with doc_.
documents[].objectstringAlways `attachment_document`.
documents[].document_typestringThe document type code (GET /attachments/document_types).
documents[].mediumstringfilm (an X-ray or a photo: has an image date and an orientation) or paper.One of: `film`, `paper`.
documents[].image_datestring (date) or null
documents[].orientationstring or nullOne of: `left`, `right`.
documents[].file_namestringThe name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID.
documents[].converted_fromstring or nullpng when the upload was a PNG, converted to the JPEG that is stored and sent; null when it was a JPEG.One of: `png`.
documents[].sizeintegerThe size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first).At least -9007199254740991.
documents[].md5stringThe MD5 of the stored image (the JPEG), lower-case hex.
documents[].sent_to_networkbooleanTrue once the document has been sent to the attachment network (closing sends it).
documents[].created_atstring (date-time)
attachment_numbervalueThe number the attachment network gave when it closed; null while open.
claim_fileobject or nullHow a claim carrying it refers to it; null while open.
claim_file.pwkstringWhat the claim file carries in PWK06 (loop 2300).
claim_file.ntestringThe note the claim file carries for it (NTE, loop 2300).
request_idstring or nullThe API request that made it; null for one made in the dashboard.
created_atstring (date-time)
updated_atstring (date-time)
closed_atstring (date-time) or null

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" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY"

Example response: 200

JSON
{
  "id": "att_01JM000000E00800000000003G",
  "object": "attachment",
  "state": "closed",
  "kind": "unsolicited",
  "claim_id": "clm_01JM000000E00800000000002G",
  "office_id": "off_01JM000000E008000000000003",
  "payer": {
    "id": "pyr_01JM000000E008000000000004",
    "payer_id": "00000",
    "name": "Example Dental Plan"
  },
  "payer_request_id": null,
  "payer_reference": null,
  "narrative": "Fractured distal cusp on tooth 3, shown on the bitewing.",
  "documents": [
    {
      "id": "doc_01JM000000E00800000000003H",
      "object": "attachment_document",
      "document_type": "bitewing_xray",
      "medium": "film",
      "image_date": "2026-09-24",
      "orientation": "right",
      "file_name": "bitewing-right.jpg",
      "converted_from": null,
      "size": 184211,
      "md5": "3f2a9c1e5b7d4f60a8c2e1d3b5f7a9c0",
      "sent_to_network": true,
      "created_at": "2026-09-24T20:57:20.000000+00:00"
    },
    {
      "id": "doc_01JM000000E00800000000003J",
      "object": "attachment_document",
      "document_type": "narrative",
      "medium": "paper",
      "image_date": null,
      "orientation": null,
      "file_name": "narrative.png",
      "converted_from": "png",
      "size": 92480,
      "md5": "7d1e3c5a9b2f4d6e8a0c1b3d5f7e9a2b",
      "sent_to_network": true,
      "created_at": "2026-09-24T20:57:20.000000+00:00"
    }
  ],
  "attachment_number": "100001042",
  "claim_file": {
    "pwk": "NEA100001042",
    "nte": "NEA#100001042"
  },
  "request_id": "req_01JM000000E00800000000003K",
  "created_at": "2026-09-24T20:57:00.000000+00:00",
  "updated_at": "2026-09-24T20:58:10.000000+00:00",
  "closed_at": "2026-09-24T20:58:10.000000+00:00"
}