curl --request PATCH \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "TN",
"notes": "<string>",
"is_active": true
}
'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}"
payload = {
"state": "TN",
"notes": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({state: 'TN', notes: '<string>', is_active: true})
};
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 => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'state' => 'TN',
'notes' => '<string>',
'is_active' => true
]),
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/{registration_id}"
payload := strings.NewReader("{\n \"state\": \"TN\",\n \"notes\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"TN\",\n \"notes\": \"<string>\",\n \"is_active\": true\n}")
.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::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"state\": \"TN\",\n \"notes\": \"<string>\",\n \"is_active\": true\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"
}Update a DEA registration
Edit state, notes or is_active (restore a removed registration), or set status to revoked or
suspended when DEA has notified you ahead of the registry file (or back to unverified to clear
that). All other fields are owned by the registry check. PUT is accepted as an alias.
curl --request PATCH \
--url https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "TN",
"notes": "<string>",
"is_active": true
}
'import requests
url = "https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}"
payload = {
"state": "TN",
"notes": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({state: 'TN', notes: '<string>', is_active: true})
};
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 => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'state' => 'TN',
'notes' => '<string>',
'is_active' => true
]),
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/{registration_id}"
payload := strings.NewReader("{\n \"state\": \"TN\",\n \"notes\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.byblend.com/api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"TN\",\n \"notes\": \"<string>\",\n \"is_active\": true\n}")
.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::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"state\": \"TN\",\n \"notes\": \"<string>\",\n \"is_active\": true\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
Path Parameters
Body
Response
DEA registration updated
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.
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