Skip to main content
POST
Create Referring Provider

Request Parameters

Required Fields

  • first_name (string, required): Provider’s first name
  • last_name (string, required): Provider’s last name
  • npi (string, required): National Provider Identifier

Optional Fields

  • phone (string): Contact phone number in XXX-XXX-XXXX format
  • fax (string): Fax number in XXX-XXX-XXXX format
  • email (string): Contact email address
  • address (string): Street address
  • city (string): City name
  • state (string): State abbreviation (e.g., “IL”, “CA”)
  • zip_code (string): ZIP code

Phone and Fax Format

Phone and fax numbers must be provided in XXX-XXX-XXXX format. If the format is incorrect, you will receive a 400 error.

Example Request

Example Response

The response includes:
  • referring_provider_id: Unique identifier for the created referring provider record (UUID without dashes)
  • job_id: Job execution identifier for tracking the async operation

Error Responses

Missing Required Field

Invalid Phone Format

Invalid Fax Format

Webhook Notifications

When the referring provider processing is complete, we will send a webhook to your registered endpoint. Here are examples of what those webhook payloads will look like:

Success

Failure - Invalid NPI

Failure - ECW Validation Error

Failure - Other Errors

Referring provider creation is asynchronous. Store the returned referring_provider_id and listen for webhooks to determine the final status.

Usage with Patient Creation

Once created, you can use the referring_provider_id when creating patients instead of providing referring provider names. See the Create Patient documentation for details on using referring_provider_id.

Notes

  • NPI validation is performed by the EMR system (e.g., eClinicalWorks)
  • Some EMRs may reject duplicate providers with the same NPI
  • Phone and fax numbers are normalized before being sent to the EMR
  • The ehr_id returned in the success webhook is the provider’s ID in your EMR system

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Body

application/json
first_name
string
required

Provider's first name

last_name
string
required

Provider's last name

npi
string
required

National Provider Identifier

phone
string

Contact phone number in XXX-XXX-XXXX format

fax
string

Fax number in XXX-XXX-XXXX format

email
string

Contact email address

address
string

Street address

city
string

City name

state
string

State abbreviation (e.g., IL, CA)

zip_code
string

ZIP code

Response

Successful response

success
boolean
message
string
referring_provider_id
string

Cobalt referring provider ID (UUID without dashes)

job_id
integer

Job execution identifier for tracking the async operation