curl --request POST \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dea_number": "BM1104429",
"state": "TN",
"notes": "<string>"
}
'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
payload = {
"dea_number": "BM1104429",
"state": "TN",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({dea_number: 'BM1104429', state: 'TN', notes: '<string>'})
};
fetch('https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dea_number' => 'BM1104429',
'state' => 'TN',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
payload := strings.NewReader("{\n \"dea_number\": \"BM1104429\",\n \"state\": \"TN\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dea_number\": \"BM1104429\",\n \"state\": \"TN\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dea_number\": \"BM1104429\",\n \"state\": \"TN\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"prescriber_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dea_number": "BM1104429",
"state": "TN",
"business_activity_code": "C",
"schedules": [
"2",
"2N",
"3",
"3N",
"4",
"5"
],
"registered_address": {},
"registry_name": "MONROE, LINDA P",
"expires_at": "2028-01-31",
"status": "unverified",
"status_changed_at": "2023-11-07T05:31:56Z",
"last_verified_at": "2023-11-07T05:31:56Z",
"source": "manual",
"is_active": true,
"is_valid": true,
"is_expiring_soon": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Add a DEA registration
Add a DEA registration to a prescriber. A prescriber may hold several (one per state they are
registered in). The registration starts as unverified; Blend’s recurring check against the federal
DEA registrant file then sets its status, expiration, schedules and registered state.
Posting a number that was previously removed from this prescriber restores it. Posting a number that is already on the record returns 400.
curl --request POST \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dea_number": "BM1104429",
"state": "TN",
"notes": "<string>"
}
'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
payload = {
"dea_number": "BM1104429",
"state": "TN",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({dea_number: 'BM1104429', state: 'TN', notes: '<string>'})
};
fetch('https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dea_number' => 'BM1104429',
'state' => 'TN',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
payload := strings.NewReader("{\n \"dea_number\": \"BM1104429\",\n \"state\": \"TN\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dea_number\": \"BM1104429\",\n \"state\": \"TN\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dea_number\": \"BM1104429\",\n \"state\": \"TN\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"prescriber_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dea_number": "BM1104429",
"state": "TN",
"business_activity_code": "C",
"schedules": [
"2",
"2N",
"3",
"3N",
"4",
"5"
],
"registered_address": {},
"registry_name": "MONROE, LINDA P",
"expires_at": "2028-01-31",
"status": "unverified",
"status_changed_at": "2023-11-07T05:31:56Z",
"last_verified_at": "2023-11-07T05:31:56Z",
"source": "manual",
"is_active": true,
"is_valid": true,
"is_expiring_soon": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique (UUID) identifier, or 10-digit NPI, for the prescriber
Body
Response
DEA registration added (or restored)
A DEA registration held by a prescriber. A prescriber may hold several (DEA registrations are per state).
status, expires_at, schedules, state and registered_address are filled from the federal DEA
registrant file by Blend's recurring registry check; a newly added registration is unverified until
that check sees it. Use is_valid to decide whether a registration can be relied on right now.
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
9-character DEA registration number (2 letters + 7 digits, valid check digit)
"BM1104429"
State the registration is held in (from the registry once verified)
"TN"
DEA business activity code (C practitioner, M mid-level practitioner, ...)
"C"
Schedule flags as the DEA registry spells them (N = non-narcotic)
["2", "2N", "3", "3N", "4", "5"]
Registered address from the DEA registry
"MONROE, LINDA P"
"2028-01-31"
unverified until the registry check sees the number; then active, expired, inactive
(surrendered / retired / revoked per the registry) or not_found. revoked and suspended
are set by hand when DEA notifies the pharmacy ahead of the registry file and are never
overwritten by the check.
unverified, active, expired, inactive, not_found, revoked, suspended "manual"
False once the registration has been removed from the prescriber's record
On the record, active in the registry, and not past expires_at
Expires within the next 30 days