Data Services Software

DEA Validation Certificate API Documentation

By DEA Lookup.com, Inc. · Updated October 19, 2026

Short answer: The DEA Lookup.com Validation Certificate API automates the download of primary source DEA proof of registration PDFs. Send a DEA number in an HTTP POST request, the DEA API Data Engine queues the download, and the PDF is saved to a folder on your server, usually within 10 seconds. Any download that fails is logged to a text file for follow-up.

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

  1. Your system sends a DEA number to the API.
  2. The API checks your credentials and the DEA number format, then responds right away.
  3. 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.
  4. Each PDF is saved to the output folder set in the DEA API Data Engine, named by DEA number, for example AS1234563.pdf.
  5. 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

#ParameterRequiredDescription
1usernameYesYour API username, set in the administrator interface.
2passwordYesYour API password.
3deanumberYesThe DEA number to download proof of registration for.
4OutputTypeNoPipeDelimited, 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"
}
ResultMeaning
2No DEA number in the request, or the DEA number is not correctly formatted
3Invalid 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

How DEA Lookup.com helps

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.

Automate primary source DEA proof of registration downloads. Subscribe today or email sales@dealookup.com to schedule a demo.

DEA Lookup.com is not affiliated with the Drug Enforcement Administration.