Create Referring Provider
Referring Providers
Create Referring Provider
Creates a new referring provider record in your EMR system.
POST
Create Referring Provider
Documentation Index
Fetch the complete documentation index at: https://docs.usecobalt.com/llms.txt
Use this file to discover all available pages before exploring further.
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
- 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 thereferring_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_idreturned in the success webhook is the provider’s ID in your EMR system
Authorizations
Body
application/json
Provider's first name
Provider's last name
National Provider Identifier
Contact phone number in XXX-XXX-XXXX format
Fax number in XXX-XXX-XXXX format
Contact email address
Street address
City name
State abbreviation (e.g., IL, CA)
ZIP code