Validate DKIM and SPF for a domain
PUThttps://api.tinyemail.com/relay/v1/domain/dns/check
This endpoint validates DKIM and SPF records for the given domain.
Request
- application/json
Body
required
domain string
Responses
- 200
- 400
- 401
DKIM and SPF validation result
- application/json
- Schema
- Example (from schema)
Schema
dkim object
spf object
{
"dkim": {
"status": "Invalid",
"dns": [
{
"type": "CNAME",
"name": "tec1._domainkey.",
"value": "tec1.dkim.tinyemail.com"
}
]
},
"spf": {
"status": "Valid",
"dns": [
{
"type": "TXT",
"name": "@",
"value": "\"v=spf1 include:_spf.google.com include:_spf.tinyemail.com include:spf.autopilothq.com include:one.zoho.com -all\""
}
]
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "Some error message"
}
API key is missing or invalid
Authorization: X-RELAY-ACCESS-TOKEN
name: X-RELAY-ACCESS-TOKENtype: apiKeyin: headerdescription: Provide the api key as bearer token as follows. Pass the value as `TOKEN {{api_key}}`. Replace the `{{api_key}}` with your API key provided during onbaording.
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://api.tinyemail.com/relay/v1/domain/dns/check' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-RELAY-ACCESS-TOKEN: <API_KEY_VALUE>' \
--data-raw '{
"domain": "tinyemail.com"
}'
ResponseClear