Offices
Add an office
POST/api/v1/offices
Adds an office to the key's organization, in the key's mode: a test key adds a test office, to run sandbox checks for (a live office needs the organization to be live). It takes the fields of the dashboard's office form, checked by the same rules, and optionally a practice_group_id (while practice groups are enabled), your own client_reference, a pay_to_address (where payers send payment, when that is not the billing address), a default_service_location (where treatment happens for the claims that name no service_location) and payer_provider_ids (IDs payers assigned the office, sent on its claims to them). The billing address is a street address, never a PO box. Needs an Idempotency-Key header and a key with the submit permission.
Needs a key with submit permission.
Request
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Idempotency-Key | string | required | Makes the request safe to repeat: a request with the same key and body returns the first answer (the reply has an idempotent-replayed header), and the same key with a different request is refused. 1 to 255 printable characters; a UUID is a good choice.At least 1 character.At most 255 characters.Matches `^[\x21-\x7e]{1,255}$`. |
Body
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | required | The office's name.At least 1 character.At most 120 characters. |
| address_line1 | string | required | The street address the office bills from. Not a PO box: claims refuse one (a PO box can be the pay_to_address).At least 1 character.At most 120 characters. |
| address_line2 | string | optional | A second line of the billing address (a suite, a floor). Optional; never a PO box.At most 120 characters. |
| city | string | required | At least 1 character.At most 120 characters. |
| state | string | required | The two-letter code of the state. |
| postal_code | string | required | The ZIP code: 5 or 9 digits. Claims need the 9-digit ZIP (ZIP+4) of the billing address. |
| phone | string | required | A 10-digit US phone number. |
| npi | string | required | The office's organization (type 2) NPI: 10 digits with a valid check digit. |
| tax_id | string | required | The 9-digit tax ID (EIN). Only its last 4 digits are ever shown back. |
| specialty | string | required | One of: general, pediatric, orthodontics, periodontics, oral_surgery, endodontics, prosthodontics, unknown.One of: `general`, `pediatric`, `orthodontics`, `periodontics`, `oral_surgery`, `endodontics`, `prosthodontics`, `unknown`. |
| time_zone | string | optional | The office's time zone (an IANA name, such as America/New_York). Empty, or left out when the office is added: the main zone of its state. |
| contact_name | string | optional | Who the attachment network contacts about this office. Optional; registering for attachments asks for it. |
| contact_email | string | optional | The contact's email. Optional; registering for attachments asks for it. |
| contact_fax | string | optional | The contact's fax: a 10-digit US number. Optional. |
| doctor_first_name | string | optional | The first name of the office's primary doctor. Optional; registering for attachments asks for it. |
| doctor_last_name | string | optional | The last name of the office's primary doctor. Optional; registering for attachments asks for it. |
| practice_group_id | value | optional | The practice group to put the office in (pgr_...), or null for a standalone office. Only while practice groups are enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED. |
| client_reference | string or null | optional | Your own ID for it (from your practice management system, say): up to 120 characters. Blank or null clears it.At most 120 characters. |
| pay_to_address | object or null | optional | Where payers send payment, when that is not the billing address: line1, line2 (optional), city, state and postal_code (5 or 9 digits). A PO box is allowed here. Written on claims (the pay-to address) when it differs from the billing address. null: none. |
| pay_to_address.line1 | string | required | |
| pay_to_address.line2 | value | optional | |
| pay_to_address.city | string | required | |
| pay_to_address.state | string | required | |
| pay_to_address.postal_code | string | required | |
| default_service_location | object or null | optional | Where treatment happens for the office's claims that name no service_location: name, npi (optional, with a valid check digit) and address. For an office that bills for another place. Written on a claim when it differs from the billing address. null: none. |
| default_service_location.name | string | required | |
| default_service_location.npi | value | optional | |
| default_service_location.address | object | required | |
| default_service_location.address.line1 | string | required | |
| default_service_location.address.line2 | value | optional | |
| default_service_location.address.city | string | required | |
| default_service_location.address.state | string | required | |
| default_service_location.address.postal_code | string | required | |
| payer_provider_ids | array of object | optional | The office's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the billing provider, 2010BB) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all.At most 50 items. |
| payer_provider_ids[].payer_id | string | required | The payer (a Claim House payer ID, pyr_...). |
| payer_provider_ids[].identifier | string | required | The payer's own ID, 1 to 50 characters: letters, digits, spaces and ! " & ' ( ) + , - . / ; ? =.At most 50 characters. |
Response
The office. Status 201.
| Name | Type | Description |
|---|---|---|
| id | string | An ID that starts with off_. |
| object | string | Always `office`. |
| name | string | |
| address_line1 | string | |
| address_line2 | value | |
| city | string | |
| state | string | |
| postal_code | string | |
| phone | string | |
| npi | string | |
| tax_id_last4 | string | The last 4 digits of the tax ID. The full tax ID is never returned. |
| specialty | string | |
| time_zone | string | The office's time zone (an IANA name): the main zone of its state unless one was chosen. |
| pay_to_address | object or null | Where payers send payment when that is not the billing address (a PO box may be one); null when the office has none. Claims carry it when it differs from the billing address. |
| pay_to_address.line1 | string | |
| pay_to_address.line2 | value | |
| pay_to_address.city | string | |
| pay_to_address.state | string | |
| pay_to_address.postal_code | string | |
| default_service_location | object or null | Where treatment happens for the office's claims that name no service_location; null when the office has none. Claims carry it when it differs from the billing address. |
| default_service_location.name | string | |
| default_service_location.npi | value | |
| default_service_location.address | object | |
| default_service_location.address.line1 | string | |
| default_service_location.address.line2 | value | |
| default_service_location.address.city | string | |
| default_service_location.address.state | string | |
| default_service_location.address.postal_code | string | |
| payer_provider_ids | array of object | The office's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the billing provider, 2010BB) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all. |
| payer_provider_ids[].payer_id | string | An ID that starts with pyr_. |
| payer_provider_ids[].identifier | string | |
| contact_name | value | Who the attachment network contacts about this office; null when not given. |
| contact_email | value | |
| contact_fax | value | |
| doctor_first_name | value | The office's primary doctor, for registering with the attachment network. |
| doctor_last_name | value | |
| attachment_network | object | The office's registration with the attachment network, which it needs before its first attachment is sent. Each change sends office.attachment_registration.updated. |
| attachment_network.state | string | not_registered until the office is registered (POST /offices/{id}/register_attachments, or closing its first attachment). pending: the network has the request, or could not be reached and Claim House tries again on its own (for up to a day). registered: it has its facility ID. failed: see failure.One of: `not_registered`, `pending`, `registered`, `failed`. |
| attachment_network.details | string or null | For a registered office, whether the network has its current details after an edit of a registered field: in_sync; updating (being told, tried again); update_failed; needs_manual_update (the network takes no update: Claim House staff tell it). Null unless registered. Attachments are never blocked by it.One of: `in_sync`, `updating`, `update_failed`, `needs_manual_update`. |
| attachment_network.facility_id | value | The facility ID the attachment network gave the office. |
| attachment_network.registered_at | string (date-time) or null | |
| attachment_network.failure | object or null | Why the registration failed; null unless state is failed. Fix what it says, then register the office again. |
| attachment_network.failure.code | string | invalid_fields: the network named office fields to fix (fields). duplicate_facility: the network has this office already. refused: any other refusal, in the network's words. network_unavailable: the network could not be reached for a day of tries.One of: `invalid_fields`, `duplicate_facility`, `refused`, `network_unavailable`. |
| attachment_network.failure.message | string | Why, in words. |
| attachment_network.failure.fields | array of string | The office fields to fix (their names in this API), when the network named them; else empty. |
| attachment_network.updated_at | string (date-time) or null | When the state, the details or the failure last changed; null while never registered. |
| origin | string | Where the office came from: the dashboard, the API, or a file dropped over SFTP.One of: `dashboard`, `api`, `sftp`. |
| practice_group_id | string or null | The practice group the office is in; null for a standalone office (and always null while practice groups are not enabled). |
| client_reference | value | Your own ID for the office; null when none was given. |
| mode | string | One of: `test`, `live`. |
| created_at | string (date-time) |
Errors
| HTTP status | Code | What it means |
|---|---|---|
| 401 | UNAUTHORIZED | A valid API key is required. Send it as "Authorization: Bearer <key>". |
| 403 | PERMISSION_DENIED | This API key is not allowed to do that. |
| 403 | FEATURE_NOT_ENABLED | Practice groups are not enabled for this organization. Ask Claim House to turn them on. |
| 422 | INVALID_REQUEST | The request is not valid. |
| 400 | IDEMPOTENCY_KEY_REQUIRED | This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request. |
| 400 | IDEMPOTENCY_KEY_INVALID | The Idempotency-Key header must be 1 to 255 printable characters. |
| 422 | IDEMPOTENCY_KEY_REUSED | That Idempotency-Key was already used with a different request. |
| 409 | IDEMPOTENCY_KEY_IN_USE | A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds. |
| 429 | TOO_MANY_REQUESTS | Too many requests of this kind lately. Wait, then try again. |
| 413 | PAYLOAD_TOO_LARGE | The request body is larger than 1 MB. |
| 504 | TIMEOUT | The 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>. |
| 500 | INTERNAL | Something went wrong on our side. Quote the request ID if you contact us. |
Example
Example request
curl -X POST "https://app.myclaimhouse.com/api/v1/offices" \
-H "Authorization: Bearer $CLAIMHOUSE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Example Family Dental",
"address_line1": "100 Example Street",
"city": "Exampleville",
"state": "GA",
"postal_code": "30000",
"phone": "404-555-0100",
"npi": "1999999000",
"tax_id": "00-0000000",
"specialty": "general",
"contact_name": "Pat Example",
"doctor_first_name": "Riley",
"doctor_last_name": "Example"
}'Example response: 201
{
"id": "off_01JM000000E008000000000003",
"object": "office",
"name": "Example Family Dental",
"address_line1": "100 Example Street",
"address_line2": null,
"city": "Exampleville",
"state": "GA",
"postal_code": "30000",
"phone": "4045550100",
"npi": "1999999000",
"tax_id_last4": "0000",
"specialty": "general",
"time_zone": "America/New_York",
"pay_to_address": null,
"default_service_location": null,
"payer_provider_ids": [],
"contact_name": "Pat Example",
"contact_email": null,
"contact_fax": null,
"doctor_first_name": "Riley",
"doctor_last_name": "Example",
"attachment_network": {
"state": "not_registered",
"details": null,
"facility_id": null,
"registered_at": null,
"failure": null,
"updated_at": null
},
"origin": "api",
"practice_group_id": null,
"client_reference": null,
"mode": "test",
"created_at": "2026-01-15T14:00:00+00:00"
}