# API reference

Page: https://aws-sandbox.myclaimhouse.com/docs/api

Every endpoint is under `https://aws-sandbox.myclaimhouse.com/api/v1`, takes and returns JSON with snake_case fields, and needs an API key sent as `Authorization: Bearer <key>`. See [Authentication and keys](https://aws-sandbox.myclaimhouse.com/docs/authentication.md) for keys, [Errors, retries and idempotency](https://aws-sandbox.myclaimhouse.com/docs/errors-and-idempotency.md) for the shared error shape, and the [OpenAPI document](https://aws-sandbox.myclaimhouse.com/docs/openapi.json) to generate a client.

## Account

The API key making the request and the organization it belongs to.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [Get the current API key](https://aws-sandbox.myclaimhouse.com/docs/api/getCurrentKey.md) | `GET /api/v1/me` | `read` |
| [Get your rate limits](https://aws-sandbox.myclaimhouse.com/docs/api/getRateLimits.md) | `GET /api/v1/rate_limits` | `read` |

## Payers

The payer directory: which payers Claim House reaches, and for what.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List payers](https://aws-sandbox.myclaimhouse.com/docs/api/listPayers.md) | `GET /api/v1/payers` | `read` |
| [Search payers](https://aws-sandbox.myclaimhouse.com/docs/api/searchPayers.md) | `GET /api/v1/payers/search` | `read` |
| [Get a payer](https://aws-sandbox.myclaimhouse.com/docs/api/getPayer.md) | `GET /api/v1/payers/{id}` | `read` |

## Offices

The offices of your organization. An office is who a check is made for.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List offices](https://aws-sandbox.myclaimhouse.com/docs/api/listOffices.md) | `GET /api/v1/offices` | `read` |
| [Add an office](https://aws-sandbox.myclaimhouse.com/docs/api/createOffice.md) | `POST /api/v1/offices` | `submit` |
| [Get an office](https://aws-sandbox.myclaimhouse.com/docs/api/getOffice.md) | `GET /api/v1/offices/{id}` | `read` |
| [Update an office](https://aws-sandbox.myclaimhouse.com/docs/api/updateOffice.md) | `PATCH /api/v1/offices/{id}` | `submit` |
| [Move an office's unsent claims to another office](https://aws-sandbox.myclaimhouse.com/docs/api/moveOfficeClaims.md) | `POST /api/v1/offices/{id}/move_claims` | `submit` |
| [List practice groups](https://aws-sandbox.myclaimhouse.com/docs/api/listPracticeGroups.md) | `GET /api/v1/practice_groups` | `read` |
| [Add a practice group](https://aws-sandbox.myclaimhouse.com/docs/api/createPracticeGroup.md) | `POST /api/v1/practice_groups` | `submit` |
| [Get a practice group](https://aws-sandbox.myclaimhouse.com/docs/api/getPracticeGroup.md) | `GET /api/v1/practice_groups/{id}` | `read` |
| [Update a practice group](https://aws-sandbox.myclaimhouse.com/docs/api/updatePracticeGroup.md) | `PATCH /api/v1/practice_groups/{id}` | `submit` |
| [Delete a practice group](https://aws-sandbox.myclaimhouse.com/docs/api/deletePracticeGroup.md) | `DELETE /api/v1/practice_groups/{id}` | `submit` |
| [Register an office for attachments](https://aws-sandbox.myclaimhouse.com/docs/api/registerOfficeAttachments.md) | `POST /api/v1/offices/{id}/register_attachments` | `submit` |

## NPI lookup

What the national NPI registry holds for an NPI: whose it is, its address and its primary taxonomy, to fill an office or a provider from.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [Look up an NPI](https://aws-sandbox.myclaimhouse.com/docs/api/lookupNpi.md) | `GET /api/v1/npi/{npi}` | `read` |

## Providers

The dentists who render treatment: add them, keep their NPIs, licenses and taxonomy codes current, and name one on each claim.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List providers](https://aws-sandbox.myclaimhouse.com/docs/api/listProviders.md) | `GET /api/v1/providers` | `read` |
| [Add a provider](https://aws-sandbox.myclaimhouse.com/docs/api/createProvider.md) | `POST /api/v1/providers` | `submit` |
| [Get a provider](https://aws-sandbox.myclaimhouse.com/docs/api/getProvider.md) | `GET /api/v1/providers/{id}` | `read` |
| [Update a provider](https://aws-sandbox.myclaimhouse.com/docs/api/updateProvider.md) | `PATCH /api/v1/providers/{id}` | `submit` |

## Eligibility

Check a patient's dental coverage and benefits.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List eligibility checks](https://aws-sandbox.myclaimhouse.com/docs/api/listEligibilityChecks.md) | `GET /api/v1/eligibility` | `read` |
| [Check eligibility](https://aws-sandbox.myclaimhouse.com/docs/api/createEligibilityCheck.md) | `POST /api/v1/eligibility` | `submit` |
| [Get an eligibility check](https://aws-sandbox.myclaimhouse.com/docs/api/getEligibilityCheck.md) | `GET /api/v1/eligibility/{id}` | `read` |
| [Get the 270 and 271 of an eligibility check](https://aws-sandbox.myclaimhouse.com/docs/api/getEligibilityCheckX12.md) | `GET /api/v1/eligibility/{id}/x12` | `read` |
| [List eligibility batches](https://aws-sandbox.myclaimhouse.com/docs/api/listEligibilityBatches.md) | `GET /api/v1/eligibility/batches` | `read` |
| [Check eligibility in a batch](https://aws-sandbox.myclaimhouse.com/docs/api/createEligibilityBatch.md) | `POST /api/v1/eligibility/batches` | `submit` |
| [Get an eligibility batch](https://aws-sandbox.myclaimhouse.com/docs/api/getEligibilityBatch.md) | `GET /api/v1/eligibility/batches/{id}` | `read` |
| [Cancel an eligibility batch](https://aws-sandbox.myclaimhouse.com/docs/api/cancelEligibilityBatch.md) | `POST /api/v1/eligibility/batches/{id}/cancel` | `submit` |

## Claims

Send dental claims: validated before anything is sent, batched into 837D files, and followed through the 997 and 277 responses on their timeline.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List claims](https://aws-sandbox.myclaimhouse.com/docs/api/listClaims.md) | `GET /api/v1/claims` | `read` |
| [Create a claim](https://aws-sandbox.myclaimhouse.com/docs/api/createClaim.md) | `POST /api/v1/claims` | `submit` |
| [Validate a claim](https://aws-sandbox.myclaimhouse.com/docs/api/validateClaim.md) | `POST /api/v1/claims/validate` | `submit` |
| [Get a claim](https://aws-sandbox.myclaimhouse.com/docs/api/getClaim.md) | `GET /api/v1/claims/{id}` | `read` |
| [Get a claim's timeline](https://aws-sandbox.myclaimhouse.com/docs/api/getClaimTimeline.md) | `GET /api/v1/claims/{id}/timeline` | `read` |
| [Get a claim's 837D](https://aws-sandbox.myclaimhouse.com/docs/api/getClaimX12.md) | `GET /api/v1/claims/{id}/x12` | `read` |
| [Update a claim](https://aws-sandbox.myclaimhouse.com/docs/api/updateClaim.md) | `PATCH /api/v1/claims/{id}` | `submit` |
| [Submit a claim](https://aws-sandbox.myclaimhouse.com/docs/api/submitClaim.md) | `POST /api/v1/claims/{id}/submit` | `submit` |
| [Correct and resubmit a claim](https://aws-sandbox.myclaimhouse.com/docs/api/resubmitClaim.md) | `POST /api/v1/claims/{id}/resubmit` | `submit` |
| [Void a claim](https://aws-sandbox.myclaimhouse.com/docs/api/voidClaim.md) | `POST /api/v1/claims/{id}/void` | `submit` |
| [Reconcile a claim](https://aws-sandbox.myclaimhouse.com/docs/api/reconcileClaim.md) | `POST /api/v1/claims/{id}/reconcile` | `submit` |
| [Convert a predetermination into a claim](https://aws-sandbox.myclaimhouse.com/docs/api/convertClaim.md) | `POST /api/v1/claims/{id}/convert` | `submit` |
| [Cancel a correction](https://aws-sandbox.myclaimhouse.com/docs/api/cancelClaimCorrection.md) | `POST /api/v1/claims/{id}/cancel_correction` | `submit` |
| [Create the next payer's claim](https://aws-sandbox.myclaimhouse.com/docs/api/createNextClaim.md) | `POST /api/v1/claims/{id}/next_claim` | `submit` |

## Attachments

X-rays, charts and narratives for a payer: upload JPEG images to an attachment, close it to get its number, and put it on a claim, whose 837D then carries it.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List attachments](https://aws-sandbox.myclaimhouse.com/docs/api/listAttachments.md) | `GET /api/v1/attachments` | `read` |
| [Create an attachment](https://aws-sandbox.myclaimhouse.com/docs/api/createAttachment.md) | `POST /api/v1/attachments` | `submit` |
| [List document types](https://aws-sandbox.myclaimhouse.com/docs/api/listAttachmentDocumentTypes.md) | `GET /api/v1/attachments/document_types` | `read` |
| [Get an attachment](https://aws-sandbox.myclaimhouse.com/docs/api/getAttachment.md) | `GET /api/v1/attachments/{id}` | `read` |
| [Change an open attachment](https://aws-sandbox.myclaimhouse.com/docs/api/updateAttachment.md) | `PATCH /api/v1/attachments/{id}` | `submit` |
| [Discard an open attachment](https://aws-sandbox.myclaimhouse.com/docs/api/discardAttachment.md) | `DELETE /api/v1/attachments/{id}` | `submit` |
| [Upload a document](https://aws-sandbox.myclaimhouse.com/docs/api/uploadAttachmentDocument.md) | `POST /api/v1/attachments/{id}/documents` | `submit` |
| [Remove a document](https://aws-sandbox.myclaimhouse.com/docs/api/deleteAttachmentDocument.md) | `DELETE /api/v1/attachments/{id}/documents/{document_id}` | `submit` |
| [Get a preview link](https://aws-sandbox.myclaimhouse.com/docs/api/getAttachmentDocumentUrl.md) | `GET /api/v1/attachments/{id}/documents/{document_id}/url` | `read` |
| [Close an attachment](https://aws-sandbox.myclaimhouse.com/docs/api/closeAttachment.md) | `POST /api/v1/attachments/{id}/close` | `submit` |

## ERAs

Remittances (835) as JSON: what each payer paid on each claim and line, and why it adjusted the rest; each payment matched to its claim, posted when you have posted it.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List ERAs](https://aws-sandbox.myclaimhouse.com/docs/api/listEras.md) | `GET /api/v1/eras` | `read` |
| [Get an ERA](https://aws-sandbox.myclaimhouse.com/docs/api/getEra.md) | `GET /api/v1/eras/{id}` | `read` |
| [Get an ERA's 835](https://aws-sandbox.myclaimhouse.com/docs/api/getEraX12.md) | `GET /api/v1/eras/{id}/x12` | `read` |
| [Post an ERA](https://aws-sandbox.myclaimhouse.com/docs/api/postEra.md) | `POST /api/v1/eras/{id}/post` | `submit` |
| [Match a payment to a claim](https://aws-sandbox.myclaimhouse.com/docs/api/matchEraClaim.md) | `POST /api/v1/eras/{id}/claims/{era_claim_id}/match` | `submit` |

## Patients

The people in your checks and claims, one record each, with coverage as last verified, open claims and open charges. Kept by Claim House from what you send; your practice management system stays the system of record.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List patients](https://aws-sandbox.myclaimhouse.com/docs/api/listPatients.md) | `GET /api/v1/patients` | `read` |
| [Search patients](https://aws-sandbox.myclaimhouse.com/docs/api/searchPatients.md) | `POST /api/v1/patients/search` | `read` |
| [Get a patient](https://aws-sandbox.myclaimhouse.com/docs/api/getPatient.md) | `GET /api/v1/patients/{id}` | `read` |

## Enrollments

The payer paperwork each provider needs before some payers take claims or send ERAs and EFT: start one per provider, payer and type, with the method from the payer directory, and track its status and dates.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List enrollments](https://aws-sandbox.myclaimhouse.com/docs/api/listEnrollments.md) | `GET /api/v1/enrollments` | `read` |
| [Start an enrollment](https://aws-sandbox.myclaimhouse.com/docs/api/createEnrollment.md) | `POST /api/v1/enrollments` | `submit` |
| [Get an enrollment](https://aws-sandbox.myclaimhouse.com/docs/api/getEnrollment.md) | `GET /api/v1/enrollments/{id}` | `read` |
| [Update an enrollment](https://aws-sandbox.myclaimhouse.com/docs/api/updateEnrollment.md) | `PATCH /api/v1/enrollments/{id}` | `submit` |
| [Withdraw an enrollment](https://aws-sandbox.myclaimhouse.com/docs/api/withdrawEnrollment.md) | `POST /api/v1/enrollments/{id}/withdraw` | `submit` |

## Payer requests

A payer asking for more about a claim it has: list them, record a paper one, and answer with a solicited attachment.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List payer requests](https://aws-sandbox.myclaimhouse.com/docs/api/listPayerRequests.md) | `GET /api/v1/payer_requests` | `read` |
| [Record a payer request](https://aws-sandbox.myclaimhouse.com/docs/api/createPayerRequest.md) | `POST /api/v1/payer_requests` | `submit` |
| [Get a payer request](https://aws-sandbox.myclaimhouse.com/docs/api/getPayerRequest.md) | `GET /api/v1/payer_requests/{id}` | `read` |
| [Answer a payer request](https://aws-sandbox.myclaimhouse.com/docs/api/answerPayerRequest.md) | `POST /api/v1/payer_requests/{id}/answer` | `submit` |

## Sandbox

The scripted payer scenarios available to test keys.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List sandbox scenarios](https://aws-sandbox.myclaimhouse.com/docs/api/listSandboxScenarios.md) | `GET /api/v1/sandbox/scenarios` | `read` |

## Events

Everything Claim House emits: read an event, list events, and replay one to your endpoints.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List events](https://aws-sandbox.myclaimhouse.com/docs/api/listEvents.md) | `GET /api/v1/events` | `read` |
| [Get an event](https://aws-sandbox.myclaimhouse.com/docs/api/getEvent.md) | `GET /api/v1/events/{id}` | `read` |
| [Replay an event](https://aws-sandbox.myclaimhouse.com/docs/api/replayEvent.md) | `POST /api/v1/events/{id}/replay` | `submit` |

## Webhook endpoints

Where Claim House sends events: add, list and remove endpoints, and replace a signing secret.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [List webhook endpoints](https://aws-sandbox.myclaimhouse.com/docs/api/listWebhookEndpoints.md) | `GET /api/v1/webhook_endpoints` | `read` |
| [Add a webhook endpoint](https://aws-sandbox.myclaimhouse.com/docs/api/createWebhookEndpoint.md) | `POST /api/v1/webhook_endpoints` | `submit` |
| [Get a webhook endpoint](https://aws-sandbox.myclaimhouse.com/docs/api/getWebhookEndpoint.md) | `GET /api/v1/webhook_endpoints/{id}` | `read` |
| [Delete a webhook endpoint](https://aws-sandbox.myclaimhouse.com/docs/api/deleteWebhookEndpoint.md) | `DELETE /api/v1/webhook_endpoints/{id}` | `submit` |
| [Rotate a signing secret](https://aws-sandbox.myclaimhouse.com/docs/api/rotateWebhookSecret.md) | `POST /api/v1/webhook_endpoints/{id}/rotate_secret` | `submit` |
| [Disable a webhook endpoint](https://aws-sandbox.myclaimhouse.com/docs/api/disableWebhookEndpoint.md) | `POST /api/v1/webhook_endpoints/{id}/disable` | `submit` |
| [Enable a webhook endpoint](https://aws-sandbox.myclaimhouse.com/docs/api/enableWebhookEndpoint.md) | `POST /api/v1/webhook_endpoints/{id}/enable` | `submit` |

## SFTP account

The private SFTP account for batch partners: set it up, rotate its password, add and remove keys, disable it, and list the files dropped on it. Files dropped in the IN folders become claims.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [Get the SFTP account](https://aws-sandbox.myclaimhouse.com/docs/api/getSftpAccount.md) | `GET /api/v1/sftp-account` | `read` |
| [Set up the SFTP account](https://aws-sandbox.myclaimhouse.com/docs/api/setUpSftpAccount.md) | `POST /api/v1/sftp-account` | `submit` |
| [Rotate the SFTP password](https://aws-sandbox.myclaimhouse.com/docs/api/rotateSftpPassword.md) | `POST /api/v1/sftp-account/rotate-password` | `submit` |
| [Add an SFTP key](https://aws-sandbox.myclaimhouse.com/docs/api/addSftpKey.md) | `POST /api/v1/sftp-account/keys` | `submit` |
| [Remove an SFTP key](https://aws-sandbox.myclaimhouse.com/docs/api/removeSftpKey.md) | `DELETE /api/v1/sftp-account/keys/{id}` | `submit` |
| [Disable the SFTP account](https://aws-sandbox.myclaimhouse.com/docs/api/disableSftpAccount.md) | `POST /api/v1/sftp-account/disable` | `submit` |
| [Enable the SFTP account](https://aws-sandbox.myclaimhouse.com/docs/api/enableSftpAccount.md) | `POST /api/v1/sftp-account/enable` | `submit` |
| [List the dropped files](https://aws-sandbox.myclaimhouse.com/docs/api/listSftpFiles.md) | `GET /api/v1/sftp-account/files` | `read` |

## Reports

Figures computed from your claims and remittances for a period: what was billed and paid, how fast, what was rejected and adjusted, and why.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [Get a report](https://aws-sandbox.myclaimhouse.com/docs/api/getReportSummary.md) | `GET /api/v1/reports/summary` | `read` |

## Usage and statements

What your organization used this month, priced by your agreement: the month summary, every usage record, and the monthly statements.

| Endpoint | Request | Permission |
| --- | --- | --- |
| [Get a month of usage](https://aws-sandbox.myclaimhouse.com/docs/api/getUsage.md) | `GET /api/v1/usage` | `read` |
| [List usage records](https://aws-sandbox.myclaimhouse.com/docs/api/listUsageUnits.md) | `GET /api/v1/usage/units` | `read` |
| [List a month of usage by office](https://aws-sandbox.myclaimhouse.com/docs/api/listUsageByOffice.md) | `GET /api/v1/usage/offices` | `read` |
| [List statements](https://aws-sandbox.myclaimhouse.com/docs/api/listStatements.md) | `GET /api/v1/statements` | `read` |
| [Get a statement](https://aws-sandbox.myclaimhouse.com/docs/api/getStatement.md) | `GET /api/v1/statements/{id}` | `read` |
| [List a statement by office](https://aws-sandbox.myclaimhouse.com/docs/api/listStatementOffices.md) | `GET /api/v1/statements/{id}/offices` | `read` |
