Skip to main content
POST
/
v1
/
domains
Add a domain
curl --request POST \
  --url https://api.drin.run/v1/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "mail.acme.com"
}
'
{
  "id": "<string>",
  "domain": "<string>",
  "records": [
    {
      "type": "TXT",
      "name": "<string>",
      "value": "<string>",
      "priority": 123,
      "purpose": "dkim",
      "verified": true
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://drin.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Drin API key, sent as Authorization: Bearer <key>.

Headers

X-Drin-Product
string

Names the sending project for account-wide keys (alias: X-Drin-Sender). Project-scoped keys may omit it.

Body

application/json
domain
string
required
Example:

"mail.acme.com"

Response

201 - application/json

The domain plus the DNS records to publish.

id
string
domain
string
status
enum<string>
Available options:
pending,
verified,
failed
records
object[]
createdAt
string<date-time>