curl --request POST \
--url https://api.example.com/api/v1/accounts/{accountId}/email-domains \
--header 'Content-Type: application/json' \
--data '
{
"domain": "vortexsoftware.com",
"description": "Email domain for Vortex Software"
}
'{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"accountId": "123e4567-e89b-12d3-a456-426614174000",
"creatorId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-01-01T00:00:00Z",
"modifiedAt": "2023-01-01T00:00:00Z",
"domain": "vortexsoftware.com",
"description": "Email domain for Vortex Software",
"verificationToken": "verification-token-123",
"tokenVerificationRequestedAt": "2023-01-01T00:00:00Z",
"tokenVerificationCompletedAt": "2023-01-01T00:00:00Z",
"tokenVerificationStatus": "waiting_for_provider",
"tokenVerificationError": {},
"tokenVerificationAttempts": 0,
"dkimTokens": {
"dkim": "dkim-token-123"
},
"isVerified": false,
"dkimStatus": "waiting_for_user",
"dkimError": {},
"dkimAttempts": 0,
"dkimRequestedAt": "2023-01-01T00:00:00Z",
"dkimCompletedAt": "2023-01-01T00:00:00Z",
"spfCheckStatus": "waiting_for_user",
"spfCheckError": {},
"spfCheckAttempts": 0,
"spfCheckRequestedAt": "2023-01-01T00:00:00Z",
"spfCheckCompletedAt": "2023-01-01T00:00:00Z",
"dmarcStatus": "waiting_for_user",
"dmarcError": {},
"dmarcAttempts": 0,
"dmarcRequestedAt": "2023-01-01T00:00:00Z",
"dmarcCompletedAt": "2023-01-01T00:00:00Z",
"isDefault": false,
"deactivated": false,
"attributes": {}
}Creates a new email domain for the specified account
curl --request POST \
--url https://api.example.com/api/v1/accounts/{accountId}/email-domains \
--header 'Content-Type: application/json' \
--data '
{
"domain": "vortexsoftware.com",
"description": "Email domain for Vortex Software"
}
'{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"accountId": "123e4567-e89b-12d3-a456-426614174000",
"creatorId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-01-01T00:00:00Z",
"modifiedAt": "2023-01-01T00:00:00Z",
"domain": "vortexsoftware.com",
"description": "Email domain for Vortex Software",
"verificationToken": "verification-token-123",
"tokenVerificationRequestedAt": "2023-01-01T00:00:00Z",
"tokenVerificationCompletedAt": "2023-01-01T00:00:00Z",
"tokenVerificationStatus": "waiting_for_provider",
"tokenVerificationError": {},
"tokenVerificationAttempts": 0,
"dkimTokens": {
"dkim": "dkim-token-123"
},
"isVerified": false,
"dkimStatus": "waiting_for_user",
"dkimError": {},
"dkimAttempts": 0,
"dkimRequestedAt": "2023-01-01T00:00:00Z",
"dkimCompletedAt": "2023-01-01T00:00:00Z",
"spfCheckStatus": "waiting_for_user",
"spfCheckError": {},
"spfCheckAttempts": 0,
"spfCheckRequestedAt": "2023-01-01T00:00:00Z",
"spfCheckCompletedAt": "2023-01-01T00:00:00Z",
"dmarcStatus": "waiting_for_user",
"dmarcError": {},
"dmarcAttempts": 0,
"dmarcRequestedAt": "2023-01-01T00:00:00Z",
"dmarcCompletedAt": "2023-01-01T00:00:00Z",
"isDefault": false,
"deactivated": false,
"attributes": {}
}The ID of the account
The unique identifier of the email domain.
"123e4567-e89b-12d3-a456-426614174000"
The unique identifier of the organization.
"123e4567-e89b-12d3-a456-426614174000"
The unique identifier of the account.
"123e4567-e89b-12d3-a456-426614174000"
The unique identifier of the creator.
"123e4567-e89b-12d3-a456-426614174000"
The date and time when the email domain was created.
"2023-01-01T00:00:00Z"
The date and time when the email domain was last modified.
"2023-01-01T00:00:00Z"
The email domain.
"vortexsoftware.com"
A description of the email domain.
"Email domain for Vortex Software"
Token used for email domain verification. You must make a TXT record with this token in your DNS settings.
"verification-token-123"
The date and time when the verification token was requested.
"2023-01-01T00:00:00Z"
The date and time when the verification token was completed.
"2023-01-01T00:00:00Z"
The current status of the verification token.
waiting_for_user, waiting_for_provider, verified, provider_failed, failed Error information related to the verification token.
The number of attempts made to verify the token.
0
DKIM tokens for the email domain.
{ "dkim": "dkim-token-123" }Indicates whether the email domain is verified.
false
The current status of the DKIM verification process.
waiting_for_provider, waiting_for_user, verified, provider_failed, failed "waiting_for_user"
Error information related to DKIM verification.
The number of attempts made to verify DKIM.
0
"2023-01-01T00:00:00Z"
"2023-01-01T00:00:00Z"
The current status of the SPF check.
waiting_for_user, verified, failed "waiting_for_user"
0
"2023-01-01T00:00:00Z"
"2023-01-01T00:00:00Z"
The current status of the DMARC check.
waiting_for_user, verified, failed "waiting_for_user"
Error information related to DMARC verification.
The number of attempts made to verify DMARC.
0
"2023-01-01T00:00:00Z"
"2023-01-01T00:00:00Z"
false
false