# Add a provider

Page: https://app.myclaimhouse.com/docs/api/createProvider

`POST /api/v1/providers`

Adds a dentist who renders treatment, so a claim can name them as its rendering provider. The NPI must be 10 digits with a valid check digit, and one provider can have it in an organization and mode: an NPI already in use under the same last name (case and punctuation aside) is answered with 409 CONFLICT naming the provider that has it, whose ID you can use instead; under another last name, with 409 NPI_CONFLICT, naming none. A provider holds one license per state; a claim with none for the state where its treatment happened is sent without one and carries the warning NO_LICENSE_FOR_STATE. Names and license numbers are sent on the claim: none may contain control characters, and a license number may hold only letters, digits, spaces and basic punctuation (no * ~ : ^ |; in a name those are replaced with a space in the claim file). 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 | Yes | 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 |
| --- | --- | --- | --- |
| `first_name` | string | Yes | The provider's first name. At most 35 characters. |
| `last_name` | string | Yes | The provider's last name. At most 60 characters. |
| `credential` | string | No | The credential after the name, such as DDS or DMD. At most 10 characters. |
| `npi` | string | Yes | The provider's individual NPI: 10 digits with a valid check digit. One provider per NPI in an organization and mode. |
| `licenses` | array of object | No | The provider's state licenses, one per state, in the order to keep them. A claim sends the license of the state where the treatment happened (its service location, else the billing office) as the rendering provider's secondary identification, and none when the provider has no license for that state. On a change, the list replaces the licenses on file: an empty list removes them all. At most 56 items. |
| `licenses[].number` | string | Yes | The state license number. At most 30 characters. |
| `licenses[].state` | string | Yes | The two-letter code of the state that issued the license. |
| `license` | object or null | No | Deprecated: the older form of `licenses`, for one license. It means a list of that one license, and null means an empty list. Send `licenses` instead; sending both is refused. |
| `license.number` | string | Yes | The state license number. At most 30 characters. |
| `license.state` | string | Yes | The two-letter code of the state that issued the license. |
| `taxonomy_code` | string | No | The NUCC taxonomy code sent on the claim: 9 letters or digits and a final X. Default 1223G0001X (general dentist). |
| `status` | string | No | inactive providers stay on the claims that name them but cannot be chosen for new ones. Default active. One of: `active`, `inactive`. |
| `payer_provider_ids` | array of object | No | The provider'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 rendering provider, 2310B) 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 | Yes | The payer (a Claim House payer ID, pyr_...). |
| `payer_provider_ids[].identifier` | string | Yes | The payer's own ID, 1 to 50 characters: letters, digits, spaces and ! " & ' ( ) + , - . / ; ? =. At most 50 characters. |

## Response

The provider. Status `200`.

| Name | Type | Description |
| --- | --- | --- |
| `id` | string | An ID that starts with prv_. |
| `object` | string | Always `provider`. |
| `first_name` | string | At most 35 characters. |
| `last_name` | string | At most 60 characters. |
| `credential` | string | The credential after the name, such as DDS. Empty when there is none. At most 10 characters. |
| `npi` | string | The provider's individual NPI. |
| `licenses` | array of object | The state licenses on file, one per state, in the order they were given; empty when there is none. A claim sends the license of the state where the treatment happened (its service location, else the billing office), and none when the provider has no license for that state. |
| `licenses[].state` | string | The two-letter code of the state that issued the license. |
| `licenses[].number` | string | At most 30 characters. |
| `license` | object or null | Deprecated: the first of `licenses`, or null when there is none. Read `licenses`: this field will be removed. |
| `license.number` | string |  |
| `license.state` | string | The two-letter code of the state that issued the license. |
| `taxonomy_code` | string | The NUCC taxonomy code sent on claims. |
| `specialty` | string | The specialty the taxonomy code stands for (General dentistry, Orthodontics...), or the code itself when it is not one of the dental codes. |
| `status` | string | One of: `active`, `inactive`. |
| `payer_provider_ids` | array of object | The provider'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 rendering provider, 2310B) 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 |  |
| `origin` | string | Where the provider came from: the dashboard, the API, or a file dropped over SFTP. One of: `dashboard`, `api`, `sftp`. |
| `mode` | string | One of: `test`, `live`. |
| `created_at` | string (date-time) |  |
| `updated_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. |
| 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>. |
| 409 | `CONFLICT` | The resource is not in a state that allows this, or it changed while the request was handled. Read it, then decide whether to send the request again. |
| 409 | `NPI_CONFLICT` | This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name. |
| 500 | `INTERNAL` | Something went wrong on our side. Quote the request ID if you contact us. |

## Example

### Example request

```bash
curl -X POST "https://app.myclaimhouse.com/api/v1/providers" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "first_name": "Riley",
  "last_name": "Example",
  "credential": "DDS",
  "npi": "1999990017",
  "licenses": [
    {
      "state": "GA",
      "number": "GA-000000"
    }
  ]
}'
```

### Example response: 200

```json
{
  "id": "prv_01JM000000E008000000000005",
  "object": "provider",
  "first_name": "Riley",
  "last_name": "Example",
  "credential": "DDS",
  "npi": "1999990017",
  "licenses": [
    {
      "state": "GA",
      "number": "GA-000000"
    }
  ],
  "license": {
    "number": "GA-000000",
    "state": "GA"
  },
  "taxonomy_code": "1223G0001X",
  "specialty": "General dentistry",
  "status": "active",
  "payer_provider_ids": [],
  "origin": "api",
  "mode": "test",
  "created_at": "2026-01-15T14:00:00+00:00",
  "updated_at": "2026-01-15T14:00:00+00:00"
}
```

### An NPI a provider already has: 409

```json
{
  "error": "CONFLICT",
  "message": "A provider with this NPI already exists: prv_01JM000000E008000000000005.",
  "errors": [
    {
      "field": "npi",
      "code": "invalid",
      "message": "A provider with this NPI already exists: prv_01JM000000E008000000000005."
    }
  ],
  "details": {
    "provider_id": "prv_01JM000000E008000000000005"
  },
  "request_id": "req_01JM000000E008000000000010"
}
```

### An NPI another dentist has: 409

```json
{
  "error": "NPI_CONFLICT",
  "message": "This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name.",
  "errors": [
    {
      "field": "npi",
      "code": "invalid",
      "message": "This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name."
    }
  ],
  "request_id": "req_01JM000000E008000000000010"
}
```
