Skip to main content
POST
/
api
/
v1
/
prescribers
Create a new prescriber
curl --request POST \
  --url https://api.byblend.com/api/v1/prescribers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "Willard",
  "middle_name": "Moises",
  "last_name": "Donnelly",
  "email": "Harmon43@gmail.com",
  "phone": "6417383445",
  "date_of_birth": "1990-01-01",
  "gender": "Male",
  "npi": "1234567890",
  "dea": "F91234563",
  "spi": "1234567890ABCDEF",
  "driver_license_number": "B49188319",
  "driver_license_state": "CA",
  "is_active": true,
  "credential_npi": "M.D./Ph.D",
  "addresses": [
    {
      "address_1": "140 Lindgren Streets",
      "address_2": "Apt 227",
      "city": "North Consueloburgh",
      "state": "CA",
      "country": "US",
      "zip_code": "02108",
      "type": "practice"
    }
  ],
  "credentials": [
    {
      "credential_code": "MD"
    }
  ],
  "restrictions": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
    }
  ],
  "qualifications": [
    {
      "state": "CA",
      "license_number": "1234567890",
      "description": "Nurse Practitioner, Family",
      "expiration_date": "2025-03-15",
      "is_active": true
    }
  ]
}'
{
  "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
  "created_at": "2025-03-15T12:00:00Z",
  "updated_at": "2025-03-15T12:00:00Z",
  "first_name": "Willard",
  "middle_name": "Moises",
  "last_name": "Donnelly",
  "email": "Harmon43@gmail.com",
  "phone": "6417383445",
  "date_of_birth": "1990-01-01",
  "gender": "Male",
  "npi": "1234567890",
  "dea": "F91234563",
  "spi": "1234567890ABCDEF",
  "driver_license_number": "B49188319",
  "driver_license_state": "CA",
  "is_active": true,
  "credential_npi": "M.D./Ph.D",
  "addresses": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "created_at": "2025-03-15T12:00:00Z",
      "updated_at": "2025-03-15T12:00:00Z",
      "address_1": "140 Lindgren Streets",
      "address_2": "Apt 227",
      "city": "North Consueloburgh",
      "state": "CA",
      "country": "US",
      "zip_code": "02108",
      "type": "practice"
    }
  ],
  "qualifications": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "created_at": "2025-03-15T12:00:00Z",
      "updated_at": "2025-03-15T12:00:00Z",
      "state": "CA",
      "license_number": "1234567890",
      "description": "Nurse Practitioner, Family",
      "expiration_date": "2025-03-15",
      "is_active": true
    }
  ],
  "credentials": [
    {
      "credential_code": "MD",
      "credential_name": "Doctor of Medicine"
    }
  ],
  "restrictions": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "name": "Mupirocin",
      "sku": "1234567890"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
first_name
string
required
Example:

"Willard"

last_name
string
required
Example:

"Donnelly"

npi
string
required

National Provider Identifier

Example:

"1234567890"

qualifications
object[]
middle_name
string
Example:

"Moises"

email
string
Example:

"Harmon43@gmail.com"

phone
string

10-digit phone number without formatting, e.g. 6417383445

Example:

"6417383445"

date_of_birth
string<date>
Example:

"1990-01-01"

gender
string

Gender of the prescriber

Example:

"Male"

dea
string

DEA Registration Number

Example:

"F91234563"

spi
string

Surescripts Provider ID

Example:

"1234567890ABCDEF"

driver_license_number
string

Driver's license number

Example:

"B49188319"

driver_license_state
string

Two-letter state abbreviation

Example:

"CA"

is_active
boolean

Whether the prescriber is currently active

Example:

true

credential_npi
string

Direct credential text as provided by the NPI registry

Example:

"M.D./Ph.D"

addresses
object[]
credentials
object[]

Array of credentials, with each credential_code representing the prescriber's credentials

restrictions
object[]

Array of prescription product IDs that are restricted from being prescribed by the prescriber

Response

201 - application/json

Prescriber created successfully

id
string<uuid>

Unique identifier

Example:

"0227d1e5-ba9a-42b5-8fe2-38882aa65708"

created_at
string<date-time>

Date and time of creation

Example:

"2025-03-15T12:00:00Z"

updated_at
string<date-time>

Date and time of last update

Example:

"2025-03-15T12:00:00Z"

first_name
string
Example:

"Willard"

middle_name
string
Example:

"Moises"

last_name
string
Example:

"Donnelly"

email
string
Example:

"Harmon43@gmail.com"

phone
string

10-digit phone number without formatting, e.g. 6417383445

Example:

"6417383445"

date_of_birth
string<date>
Example:

"1990-01-01"

gender
string

Gender of the prescriber

Example:

"Male"

npi
string

National Provider Identifier

Example:

"1234567890"

dea
string

DEA Registration Number

Example:

"F91234563"

spi
string

Surescripts Provider ID

Example:

"1234567890ABCDEF"

driver_license_number
string

Driver's license number

Example:

"B49188319"

driver_license_state
string

Two-letter state abbreviation

Example:

"CA"

is_active
boolean

Whether the prescriber is currently active

Example:

true

credential_npi
string

Direct credential text as provided by the NPI registry

Example:

"M.D./Ph.D"

addresses
object[]
qualifications
object[]
credentials
object[]
restrictions
object[]
I