DEA Validation Certificate API Documentation
By DEA Lookup.com, Inc. · Updated October 19, 2026
The Validation Certificate API is part of the DEA API Data Engine. For an overview of all four DEA APIs, see the DEA API Documentation.
How it works
- Your system sends a DEA number to the API.
- The API checks your credentials and the DEA number format, then responds right away.
- The download is added to a queue in the DEA API Data Engine. Queued requests are processed one at a time, usually in less than 10 seconds each.
- Each PDF is saved to the output folder set in the DEA API Data Engine, named by DEA number, for example
AS1234563.pdf. - If a download fails, the error is written to
certificate_errors.txt.
Endpoint
The API runs on your own server, on the port set in the administrator interface:
POST https://[your server]/DeaCertificate
Request parameters
| # | Parameter | Required | Description |
|---|---|---|---|
| 1 | username | Yes | Your API username, set in the administrator interface. |
| 2 | password | Yes | Your API password. |
| 3 | deanumber | Yes | The DEA number to download proof of registration for. |
| 4 | OutputType | No | PipeDelimited, XML, or JSON. If left out, the default set in the administrator interface is used. |
Example request
POST https://[your server]/DeaCertificate Content-Type: application/x-www-form-urlencoded username=YOUR_USERNAME&password=YOUR_PASSWORD&deanumber=AS1234563&OutputType=JSON
Response: download queued
A correctly formatted DEA number with valid credentials returns result indicator 1 and the DEA number in detail:
{
"result_indicator": 1,
"detail": "AS1234563",
"message": "Certificate download in queue"
}
A result of 1 means the request was accepted and queued, not that the download has finished. A correctly formatted number that turns out to be invalid is still queued, and the failure is logged to certificate_errors.txt.
Other formats
<?xml version="1.0" encoding="UTF-8"?> <response> <result_indicator>1</result_indicator> <detail>AS1234563</detail> <message>Certificate download in queue</message> </response>
1|AS1234563|Certificate download in queue
Response: errors
These errors are returned immediately, and nothing is queued:
{
"result_indicator": 2,
"detail": "Error",
"message": "Invalid DEA number format"
}
| Result | Meaning |
|---|---|
2 | No DEA number in the request, or the DEA number is not correctly formatted |
3 | Invalid API credentials |
Download errors: certificate_errors.txt
Errors that happen after a request is queued, such as an invalid registration or a network problem, are written to certificate_errors.txt on your server, one line per failed request:
[Result Indicator]|[DEA Number]|[Message]
Examples:
2|AB1234567|This DEA number is invalid. 2|AS7654329|Network/internet disconnected or blocked, preventing data downloading.
Example data is fictional.
Integration tips
- Validate first. Check the DEA number with the Standard API before requesting a PDF, so invalid or inactive numbers never reach the queue.
- Monitor
certificate_errors.txtand retry network-related failures. - Batch large lists. Queue as many DEA numbers as you need; the engine works through them one at a time.
- Keep the PDFs with your verification records as proof that each registration was checked against the primary source.
How DEA Lookup.com helps
- DEA API Data Engine: daily-updated primary source DEA data inside your own applications, including bulk download of primary source DEA registration certificates.
- DEA List Validator: validate lists of DEA numbers with automated proof of registration PDF downloads, without writing code.
Related: DEA API Documentation, DEA Standard API Documentation, How to Verify a DEA Number, and What Is Primary Source Verification (PSV)?
Frequently asked questions
What does the DEA Validation Certificate API do?
The Validation Certificate API automates the download of primary source DEA proof of registration PDFs. You send a DEA number, the DEA API Data Engine adds it to a download queue, and the PDF is saved to the output folder set in the engine on your server, named by DEA number, for example AS1234563.pdf.
How long does a DEA proof of registration PDF download take?
Requests are queued and processed one at a time. Each download usually takes less than 10 seconds, depending on internet and DEA server response times. The API responds immediately to confirm the request was queued.
How do I know if a PDF download failed?
Download errors are written to a file named certificate_errors.txt on your server, one line per failed request, in the format result indicator, DEA number, and message, separated by the pipe character. For example: 2|AB1234567|This DEA number is invalid.
Why did the API return success for a DEA number that later failed?
The API checks your credentials and the DEA number format immediately, then queues the download. A correctly formatted number is accepted with a result indicator of 1 even if the download later fails, for example because the registration is invalid or the network is unavailable. Check certificate_errors.txt for those failures, or validate the number with the Standard API first.
Why save DEA proof of registration PDFs?
A primary source proof of registration PDF documents that a DEA registration was verified, which supports audit trails and compliance records for pharmacies, distributors, and credentialing teams.
DEA Lookup.com is not affiliated with the Drug Enforcement Administration.
