Get domain details, including the DNS records that must be configured and their current resolution status.
Request Information
- Get API Key:
ACCESSKEY_ID:ACCESSKEY_SECRET - Request Method:
GET - Request Path:
/api/v1/email/EmailDomain/{DomainId}
Notes
- This endpoint performs live DNS queries. Do not poll it at high frequency.
- To poll verification status, use Verify Sending Domain instead.
MatchStatus:1matched,2mismatch,3DNS query failed,4no result.
DomainIdstringrequired
Domain ID (passed via URL path parameter)
?
Response Format
| Field Name | Type | Description |
|---|---|---|
| Action | string | Fixed value EmailDomainResponse |
| RetCode | int | Return code, 0 indicates success |
| Message | string | Success or error message |
| RequestUuid | string | Request UUID |
| Data | object | Domain details |
Data Fields
| Field Name | Type | Description |
|---|---|---|
| DomainId | string | Domain ID |
| Domain | string | Sending domain |
| TriggerType | int | 1 transactional, 2 marketing |
| Status | int | 0 disabled, 1 enabled, 2 banned |
| VerifyStatus | int | 0 unverified, 1 verified, 2 failed |
| TrackedDomain | string | Tracking domain |
| Open | bool | Open tracking enabled |
| Click | bool | Click tracking enabled |
| Unsubscribe | bool | Unsubscribe enabled |
| CreateTime | int64 | Creation time (Unix seconds) |
| UpdateTime | int64 | Update time (Unix seconds) |
| DomainDNSRecord | array | DNS records for the sending domain |
| TrackedDomainDNSRecord | array | DNS records for the tracking domain |
DomainDNSRecord Fields
| Field Name | Type | Description |
|---|---|---|
| RecordType | string | TXT or MX |
| RecordHost | string | Host record |
| MainDomain | string | Main domain |
| RecordValue | string | Value to configure |
| SecureType | string | spf, dkim, mx, or dmarc |
| Status | int | Platform-side record status |
| MatchStatus | int | 1 matched, 2 mismatch, 3 query failed, 4 no result |
| ActualValues | array | Current DNS resolution values |
| ActualError | string | DNS query error, empty on success |
TrackedDomainDNSRecord Fields
| Field Name | Type | Description |
|---|---|---|
| RecordType | string | TXT or CNAME |
| RecordHost | string | Host record |
| RecordValue | string | Value to configure |
| VerifyStatus | int | 0 unverified, 1 verified, 2 failed |
| MatchStatus | int | 1 matched, 2 mismatch, 3 query failed, 4 no result |
| ActualValues | array | Current DNS resolution values |
| ActualError | string | DNS query error, empty on success |
| Https | bool | Whether HTTPS is enabled |
| Cert | object | Certificate info, returned only for HTTPS CNAME records |
LANGUAGE
CREDENTIALS
URL
GET
CURL Request▼
curl -X GET "https://api.uspeedo.com/api/v1/email/EmailDomain/ED202611061200001234" \-H "Accept: application/json" \-H "Authorization: Basic $(echo -n 'ACCESSKEY_ID:ACCESSKEY_SECRET' | base64)"
RESPONSE
Click Try It! to start a request and see the response here.