Skip to the page

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

    Chapters

    Guides

    Attachments

    Send X-rays, charts and narratives a payer needs to pay a claim: upload JPEG or PNG images, or PDFs, to an attachment, close it to get its number, put it on the claim, and answer a payer's request for more.

    An attachment holds the X-rays, charts and narratives a payer needs to pay a claim. You upload the images, Claim House sends them through the dental attachment network, and the network gives the attachment a number, which the claim's 837D carries in the two places payers look. When a payer later asks for more about a claim it has, you answer with an attachment that carries the payer's reference number.

    A test key uses the sandbox attachment network. Live attachments are not open yet: a live key gets 503 ATTACHMENTS_UNAVAILABLE. A key needs submit to make, fill or close an attachment and read to read one; a submit-only key works with the attachments it made.

    How it works#

    1. Create an attachment (POST /attachments) for a claim, or on its own with an office, a payer that takes attachments, the patient, the insured and the dates of service. It starts open.
    2. Upload its documents (POST /attachments/{id}/documents), one JPEG or PNG image or one PDF each, as multipart/form-data.
    3. Close it (POST /attachments/{id}/close). Claim House registers the office with the network if it is not yet (see Office registration), sends the record and each document, and closes it. The answer has the attachment's number and what a claim file carries for it. Nothing changes after closing.
    4. Put it on the claim with the claim's attachments field, then send the claim. Its 837D carries the attachment.

    Discard an open attachment you no longer want with DELETE /attachments/{id}: its images go, a payer request it was answering can be answered again, and the claim it was made for notes it on its timeline. A closed attachment stays; take an attachment off its claim before you discard it.

    Limits and files#

    LimitValue
    Documents in an attachment127
    Size of an attachment (all its images)15 MB
    Narrative2,000 characters
    A payer's reference number30 characters
    Attachments on a claim5

    JPEG, PNG or PDF. The network takes JPEG only. A JPEG is kept as it is; a PNG is converted to a JPEG at upload (transparency on white), and the document says converted_from: "png" (file_name stays yours; size and md5 are the JPEG's). A PNG's header is checked before it is decoded. A PNG may have sides of at most 20,000 pixels and at most 20 megapixels in all (160 MB once decoded), or 4 megapixels if it is interlaced, and may not be animated. Save a larger one as a JPEG (an interlaced one as a non-interlaced PNG). A PNG whose JPEG would be over 15 MB is refused. Claim House converts one PNG or PDF at a time on each server: one that has to wait too long for its turn is answered 429 TOO_MANY_REQUESTS. Send it again in a moment with a new Idempotency-Key. A GIF or any other file is refused (422, finding on file). A file is judged by its bytes, never its name or declared type. The same PNG uploaded twice converts to the same JPEG and is found as the document the attachment already has (until the image converter is upgraded: then it may convert to other bytes and become a second document).

    PDF. A PDF is kept as uploaded and never returned; each page is rendered to a JPEG at upload, and those are sent. A PDF may have at most 127 pages, each sent as an image rendered at 150 dots per inch (at most 3,000 pixels a side); a PDF that needs a password to open is refused, and a PDF that mixes kinds of document (an X-ray and a narrative, say) should be split into one PDF for each. Each page counts as one image toward an attachment's limits (documents and 15 MB). A PDF is one document with one type (and, for an X-ray or photo, one date and orientation): split one that mixes kinds. For a PDF, size is the total of its page images and md5 is that of its first page's image. The document says converted_from: "pdf" and its pages. Refused: a PDF that needs a password, cannot be read, needs too much or too long to render, or whose internal index had to be repaired (export it again as a new PDF). Scripts, embedded files and on-screen-only content are ignored: only what the pages print is sent, form fields, stamps and signatures included.

    Metadata is removed. An image is rewritten with only what it needs before it is stored: EXIF (GPS, device), the orientation flag, thumbnails, XMP, color profiles, comments and anything after the image are dropped (a PNG's text chunks too). size and md5 are the stored image's. Rotate a photo before upload, since the orientation flag goes. The segments an image needs (quantization tables before the first scan, Huffman tables, restart interval, frame and scan headers, JFIF and Adobe headers) are checked and written again; an image that breaks those rules, or has more than 64 scans, is refused as damaged. Table values and compressed data are kept as they are (they cannot be cleaned without re-encoding): treat a stored image only as an image.

    file_name is for display only (no path parts or control characters); the stored image is named by the document's ID, and a name never appears in a URL.

    An upload's body may be 15 MB plus 64 KiB for the form's parts (its own limit, not the 1 MB of other requests). A larger declared size is refused with 413 PAYLOAD_TOO_LARGE before it is read; a body with no length is read up to the limit, then refused the same way.

    Uploads are safe to repeat. The same file uploaded again to an attachment, as a retry or as a new request, is answered with the document the attachment has already, so the payer is not sent it twice: a JPEG or PNG is matched by the MD5 of the image it is stored as, a PDF by the MD5 of the PDF itself. The same Idempotency-Key with the same file and fields is answered as the first was (Idempotent-Replayed: true), whatever the form boundary. After a 504 TIMEOUT, send it again with the same key (see After a timeout); GET /attachments finds what a key made with ?idempotency_key= (or ?request_id=).

    Document types#

    Each document has a type. An X-ray or a photo (film) also needs the date the image was taken (image_date) and its orientation (left or right). GET /attachments/document_types lists them:

    document_typeWhat it isKindNeeds image_date and orientation
    periapical_xrayPeriapical X-rayfilmyes
    bitewing_xrayBitewing X-rayfilmyes
    panoramic_xrayPanoramic X-rayfilmyes
    full_mouth_seriesFull-mouth seriesfilmyes
    intraoral_photoIntraoral photofilmyes
    perio_chartPerio chartpaperno
    narrativeNarrativepaperno
    eob_primary_payerEOB from the primary payerpaperno
    otherOtherpaperno

    Send an attachment#

    The payer must take attachments. Find one in the directory:

    Shell
    curl "https://app.myclaimhouse.com/api/v1/payers?supports=attachments&limit=1" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY"

    An attachment is usually for a claim. Here is one to attach to: a draft ("submit": false) for that payer, with a rendering provider as in Claims:

    Shell
    curl "https://app.myclaimhouse.com/api/v1/providers" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d @- <<EOF
    {
      "first_name": "Jordan",
      "last_name": "Example",
      "credential": "DDS",
      "npi": "1999990025",
      "licenses": [{ "state": "GA", "number": "GA-000001" }]
    }
    EOF
    Shell
    curl "https://app.myclaimhouse.com/api/v1/claims" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d @- <<EOF
    {
      "office_id": "$OFFICE_ID",
      "payer_id": "$ATTACHMENT_PAYER_ID",
      "rendering_provider_id": "$ATTACHMENT_PROVIDER_ID",
      "subscriber": {
        "first_name": "Sam",
        "last_name": "Sample",
        "date_of_birth": "1980-02-02",
        "gender": "F",
        "member_id": "CH-ACTIVE-FULL",
        "address": { "line1": "1 Sample Street", "city": "Sampleville", "state": "GA", "postal_code": "30301" }
      },
      "lines": [{ "cdt": "D2740", "fee": 1140.00, "service_date": "2026-09-24", "tooth": "3" }],
      "submit": false
    }
    EOF

    Create the attachment for the claim: its office, payer, patient and dates of service are taken from the claim.

    Shell
    curl "https://app.myclaimhouse.com/api/v1/attachments" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d @- <<EOF
    {
      "claim_id": "$CLAIM_ID",
      "narrative": "Fractured distal cusp on tooth 3, shown on the bitewing."
    }
    EOF

    Upload an X-ray, with its type, date and orientation:

    Shell
    curl -X POST "https://app.myclaimhouse.com/api/v1/attachments/$ATTACHMENT_ID/documents" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -F "file=@bitewing.jpg;type=image/jpeg" \
      -F "document_type=bitewing_xray" \
      -F "image_date=2026-09-20" \
      -F "orientation=right"

    Upload a PDF of a narrative the same way (each page becomes an image; the document says pages):

    Shell
    curl -X POST "https://app.myclaimhouse.com/api/v1/attachments/$ATTACHMENT_ID/documents" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -F "file=@narrative.pdf;type=application/pdf" \
      -F "document_type=narrative"

    Then close it:

    Shell
    curl "https://app.myclaimhouse.com/api/v1/attachments/$ATTACHMENT_ID/close" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{}'

    The attachment comes back closed, with its number and, in claim_file, what a claim carrying it writes:

    JSON
    {
      "id": "att_...",
      "object": "attachment",
      "state": "closed",
      "kind": "unsolicited",
      "documents": [{ "id": "doc_...", "document_type": "bitewing_xray", "medium": "film", "image_date": "2026-09-20", "orientation": "right", "file_name": "bitewing.jpg", "size": 1200, "sent_to_network": true }],
      "attachment_number": "100001042",
      "claim_file": { "pwk": "NEA100001042", "nte": "NEA#100001042" },
      "closed_at": "..."
    }

    Then put it on the claim, and send the claim when it is ready:

    Shell
    curl -X PATCH "https://app.myclaimhouse.com/api/v1/claims/$CLAIM_ID" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d "{ \"attachments\": [\"$ATTACHMENT_ID\"] }"
    • Closing is safe to repeat, under any key: a closed attachment is returned as it is, same number, nothing sent again.
    • If the network does not finish (502 ATTACHMENTS_NETWORK_ERROR), nothing is lost: the attachment stays open with what was sent, and closing it again with a new Idempotency-Key continues from there. While one close runs, another answers 409 CONFLICT.
    • While the office's registration is pending, closing answers 409 REGISTRATION_PENDING (details.office_id, details.state); a failed registration answers 422 with its reason.
    • Once sending has begun, the documents are fixed until it is closed. An upload whose image never arrived is removed after 15 minutes.

    To show an image, GET /attachments/{id}/documents/{document_id}/url gives a link that works for 60 seconds. For a PDF, ?page=N (from 1; default 1) shows one page and the answer says page and pages; a page past the last is 404, a page that is not a whole number from 1 is 422. Ask again each time; do not store, log or share the link. Images are readable only by your organization.

    On a claim#

    Put a closed attachment on a claim with the claim's attachments field, on POST /claims or PATCH /claims/{id}. The list you send replaces the claim's. It must be of your organization and mode, for the claim's payer, unsolicited, and on no other claim; otherwise 422 naming it (ATTACHMENT_NOT_FOUND, ATTACHMENT_NOT_USABLE). Changing the list is an edit: one timeline entry per attachment added or taken off, and the claim is validated again.

    Which claims take attachments. Those whose content can change: a draft, a validated claim not yet queued, one that needs_attention, and a rejected one being corrected. Once a claim is queued or sent its attachments are fixed, and POST /attachments with its claim_id is refused with 409 CONFLICT (for a correction, see below).

    One attachment per claim. The payer reviews one unsolicited attachment per claim: put every document in one attachment. The second and later (the claim's own first, then foreign_attachments) get the warning ATTACHMENT_NOT_REVIEWED; a claim still carries up to 5.

    Validation adds:

    • ATTACHMENT_OPEN (error) for an attachment on the claim that is not closed yet: close it, then send the claim again.
    • ATTACHMENT_REQUIRED (error) when the payer needs an attachment and the claim has no closed one: "The payer needs an attachment for this claim before it is sent. Close an attachment with the X-rays or documents it asks for and put it on the claim."
    • ATTACHMENT_RECOMMENDED (warning) for a claim with none, when it has a procedure payers commonly ask to see before they pay:
    CodesProcedures
    D2710 to D2799crowns
    D4341 to D4342scaling and root planing
    D6010 to D6199implants
    D6200 to D6999bridges
    D7210 to D7250surgical extractions
    • REMARKS_NAME_ATTACHMENT (error) when the remarks start with NEA# and the number of a Claim House attachment not on this claim: "The remarks start with the number of a Claim House attachment that is not on this claim. Put the attachment on the claim instead of typing its number." The number is read as the file writes it (a leading delimiter, an invisible character or full-width letters change nothing; leading zeros are ignored), and checked again at queueing and at file build: a number issued after queueing sends the claim back to needs attention. A number made elsewhere is sent as typed.
    • ATTACHMENT_NOT_REVIEWED (warning), above.

    Claim House checks again when the claim is queued and when its file is written: a claim goes out only with attachments that are closed and its own.

    Corrections and voids. A correction keeps its attachments, and its replacement file carries them again. A void transaction carries none (no PWK). A voided claim's attachments are taken off it (a timeline entry each), so they can go on the claim that replaces it. An attachment's network record names the patient of the claim it is on when closed (else the claim it was made for, else the patient you give it), and it then goes only on a claim of that patient (same date of birth and family name), or it is refused ("This attachment was sent with another patient’s details, so it cannot go on this claim: make a new attachment for this claim."). Correcting the patient of a claim that carries it is saved, with the warning ATTACHMENT_PATIENT_DIFFERS (if the payer cannot match it, take it off and make a new one). One made for a voided claim and still open names no patient until it is on another claim or you give one (PATCH /attachments/{id} with patient, subscriber and service_dates); one whose sending began before its claim was voided cannot be finished: discard it.

    Replace an attachment on a correction#

    A claim the payer accepted, paid or denied keeps its attachments when corrected. To send different images with the correction:

    1. Make a new attachment for no claim (below): office_id, payer_id, patient, subscriber, service_dates of the claim. Upload its documents and close it.
    2. Send the correction with the new attachment in place of the old, in one call:
    Shell
    curl "https://app.myclaimhouse.com/api/v1/claims/$CLAIM_ID/resubmit" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{ "attachments": ["att_new..."] }'

    The old attachment comes off, the new one goes on, and the replacement's file carries only the new one. Before the replacement is sent, cancel_correction puts the old one back. To add documents to a claim the payer already has without correcting it, answer the payer's request (or send a solicited attachment with its reference number): see Payer requests.

    What the claim file carries#

    For each attachment, in the order of attachments, loop 2300 of the claim's 837D carries a PWK segment and a note (NTE), as the attachment network's rules ask:

    Text
    CLM*CH4Q7M2K9TRB*1140***11:B:1*Y*A*Y*Y~
    PWK*OZ*EL***AC*NEA100001042~
    NTE*ADD*NEA#100001042~
    NTE*ADD*Remarks follow, as before.~

    The notes and the remarks share the 5 notes a claim carries, which is why a claim takes at most 5 attachments: remarks that fit alone but not with the attachments' notes are a TOO_LONG finding on attachments that says the notes are shared. See Claims and the claim's 837D (GET /claims/{id}/x12).

    Attachments sent elsewhere. A partner that already holds an attachment number from its own account with the attachment network puts it on the claim with foreign_attachments: for each, the elements of its PWK segment after the segment ID, in order (an empty string for an empty element), and the text of the NTE after it, or null. The claim file carries them unchanged, after the claim's own attachments. Claim House keeps nothing else of such an attachment and does not check it with the network. A claim carries at most 10 in all, its attachments and foreign_attachments together.

    Shell
    curl -X PATCH "https://app.myclaimhouse.com/api/v1/claims/$CLAIM_ID" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{ "foreign_attachments": [{ "pwk": ["OZ", "EL", "", "", "AC", "NEA100004417"], "nte": "NEA#100004417" }] }'

    Over SFTP, a PWK in the 837D that does not name an att_... is read the same way.

    An attachment for no claim#

    An attachment made on its own, with an office and a payer, goes on a claim later. It must carry the patient, the insured and the dates of service the network's record names; each missing one is refused by name (patient.first_name, subscriber.member_id, service_dates.from, ...):

    Shell
    curl "https://app.myclaimhouse.com/api/v1/attachments" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d @- <<EOF
    {
      "office_id": "$OFFICE_ID",
      "payer_id": "$ATTACHMENT_PAYER_ID",
      "patient": { "first_name": "Sam", "last_name": "Sample", "date_of_birth": "1980-02-02" },
      "subscriber": { "first_name": "Sam", "last_name": "Sample", "member_id": "CH-ACTIVE-FULL", "relationship": "self" },
      "service_dates": { "from": "2026-09-24", "to": "2026-09-24" }
    }
    EOF

    Payer requests#

    A payer that has a claim may ask for more. A payer request has the payer's reference number, what it asks for and when it is due. GET /payer_requests lists them (by state or claim_id); each arrives with payer_request.received and a timeline entry. Record one that came by letter with POST /payer_requests.

    JSON
    {
      "id": "prq_...",
      "object": "payer_request",
      "state": "open",
      "source": "network",
      "claim_id": "clm_...",
      "reference_number": "PRQ000001042",
      "requested": "A narrative of the treatment and a current periapical X-ray of the tooth treated.",
      "due_date": "2026-10-25"
    }

    Answer it with POST /payer_requests/{id}/answer: with images, make a solicited attachment (POST /attachments with "kind": "solicited" and payer_request_id), upload, then answer naming it (attachment_id); in words, send narrative and Claim House makes the attachment. It carries the payer's reference number and goes through the network (about the claim's earlier attachment when it has one). The request becomes answered, with a timeline entry. Nothing is added to the claim file: the payer finds the answer by its reference number.

    Office registration#

    Each office registers once with the attachment network. Closing its first attachment registers it, or call POST /offices/{id}/register_attachments. It needs the office's contact name and email, primary doctor's name, address, phone and tax ID: set them on POST /offices or PATCH /offices/{id} (contact_name, contact_email, doctor_first_name, doctor_last_name, optional contact_fax). Anything missing or over the network's length limits is a 422 naming each field, and nothing is sent.

    register_attachments answers 200 with the office; its attachment_network holds state, facility_id, registered_at, failure, details and updated_at:

    stateWhat it means
    not_registeredNever registered. Closing its first attachment registers it, or call register_attachments.
    pendingSent, and the network has not answered, or it could not be reached and Claim House is trying again on its own. Nothing to do; closing an attachment answers 409 REGISTRATION_PENDING meanwhile.
    registeredRegistered, with its facility_id. Attachments can be closed.
    failedRefused, or not reached in time. failure says why; fix and call register_attachments again.

    A failed registration has failure: code, message, and fields (the office fields to fix, when the network named them):

    failure.codeWhat to do
    invalid_fieldsThe network named office fields to fix: failure.fields lists them. Fix them with PATCH /offices/{id}, then register again.
    duplicate_facilityThe network already has this office registered. Contact Claim House support.
    refusedAny other refusal, in the network's words (failure.message).
    network_unavailableThe network could not be reached for 24 hours. Register again.

    An office that cannot reach the network is retried on its own with growing waits for 24 hours. Each change of state, details or failure sends office.attachment_registration.updated with the attachment_network block, and GET /offices?registration=pending lists the offices still waiting.

    A registered office stays registered when you edit it, with its facility ID. details says whether the network has the edit:

    detailsWhat it means
    in_syncThe network has the office's current details.
    updatingAn edit is being sent to the network.
    update_failedSending an edit failed.
    needs_manual_updateThe network takes no update by API: Claim House staff update it, then mark it in_sync.

    In the sandbox, registration answers at once (unless a scenario holds it). In live mode, how long it takes and the network's own refusal codes are not yet confirmed by the network: build on the states and the event, not on timing.

    In the sandbox#

    Member IDWhat happens
    CH-ATTACH-REQUIREDThe claim fails validation with ATTACHMENT_REQUIRED until a closed attachment is on it; then it is sent and accepted.
    CH-SOLICITEDThe payer accepts the claim, then sends a payer request 1 minute later.

    Office registration takes its scenario from a word in the office's name:

    Office name containsWhat happens
    CH-REG-PENDINGRegistering the office for attachments stays pending for 2 minutes, then it is registered
    CH-REG-FAILRegistering the office for attachments fails (invalid_fields: contact_email): The attachment network did not accept the contact email.

    Events and billing#

    attachment.completed is sent when an attachment closes, payer_request.received when a payer request arrives, and office.attachment_registration.updated when a registration changes; they carry IDs and states, never a file name, a narrative or a patient's details. See Events and webhooks. A closed attachment is one usage unit: test_mode (never billed) with a test key.