Skip to main content
PATCH
/
v1
/
domains
/
{id}
/
receiving
Enable or disable receiving
curl --request PATCH \
  --url https://api.drin.run/v1/domains/{id}/receiving \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true
}
'
{
  "enabled": true,
  "records": [
    {
      "type": "TXT",
      "name": "<string>",
      "value": "<string>",
      "priority": 123,
      "purpose": "dkim",
      "verified": true
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.drin.run/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>.

Path Parameters

id
string
required

Body

application/json
enabled
boolean
required

Response

200 - application/json

Updated receiving state. When enabling, returns the MX record(s) to publish.

enabled
boolean
records
object[]