Skip to Content
MailroomMailroom home

Update tracking or receiving flags

PATCH
/domains/{id}

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
receiving_enabled?boolean
tracking_enabled?boolean

Response Body

Domain

application/json
  1. response
id?string
name?string
status?string

pending means DNS is right and the provider is still confirming the domain.

Value in"pending""verified""failed"
receiving_enabled?boolean
tracking_enabled?boolean
managed?boolean
provider_status?string|null
last_checked_at?|
Formatdate-time
records?array<>
Example Request
curl -X PATCH 'https://api.mailroom.gosuevals.com/v1/domains/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "id": "string",  "name": "string",  "status": "pending",  "receiving_enabled": true,  "tracking_enabled": true,  "managed": true,  "provider_status": "string",  "last_checked_at": "2019-08-24T14:15:22Z",  "records": [    {      "type": "CNAME",      "name": "string",      "value": "string",      "status": "pending",      "observed": "string",      "purpose": "dkim",      "required": true,      "note": "string"    }  ]}