Skip to main content
POST
Create a 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

Referring provider first name.

Example:

"Jane"

last_name
string
required

Referring provider last name.

Example:

"Doe"

npi
string
required

Referring provider National Provider Identifier.

Example:

"1234567890"

middle_initial
string

Referring provider middle initial.

Example:

"A"

speciality
string

Referring provider speciality.

Example:

"Cardiology"

phone
string

Phone number in XXX-XXX-XXXX format.

Example:

"555-123-4567"

fax
string

Fax number in XXX-XXX-XXXX format.

Example:

"555-123-4568"

email
string

Referring provider email address.

Example:

"referrals@example-clinic.com"

address
string

Street address.

Example:

"123 Main Street"

city
string

City.

Example:

"Los Angeles"

state
string

State code.

Example:

"CA"

zip_code
string

ZIP code.

Example:

"90001"

callback_urls
string[]

URLs to receive the completion webhook for this referring provider, in addition to the account webhook.

Example:

Response

Referring provider queued for creation

success
boolean
required
message
string
required
referring_provider_id
string
required
job_id
required