curl --request GET \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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 => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations")
.header("Authorization", "Bearer <token>")
.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::Get.new(url)
request["Authorization"] = 'Bearer <token>'
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"
}
]List DEA registrations
DEA registrations held by a prescriber. Only registrations still on the record are returned unless
include_inactive=true.
curl --request GET \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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 => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations")
.header("Authorization", "Bearer <token>")
.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::Get.new(url)
request["Authorization"] = 'Bearer <token>'
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
Query Parameters
Also return registrations removed from the prescriber's record
Response
DEA registrations
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