curl --request DELETE \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}', 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/{registration_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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/{registration_id}"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.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"
}Remove a DEA registration
Remove a registration from the prescriber’s record. This does not delete it: is_active becomes false
and it is no longer used for controlled-substance checks. Re-post the number to restore it.
curl --request DELETE \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}', 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/{registration_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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/{registration_id}"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.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
Unique (UUID) identifier for the DEA registration
Response
DEA registration removed
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