List DEA registrations
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"
}
]Prescribers
List DEA registrations
DEA registrations held by a prescriber. Only registrations still on the record are returned unless
include_inactive=true.
GET
/
api
/
v1
/
prescribers
/
{prescriber_id}
/
dea-registrations
List DEA registrations
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
Path Parameters
Query Parameters
Response
200 - application/json
DEA registrations
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.
Available options:
unverified, active, expired, inactive, not_found, revoked, suspended