Skip to main content
POST
/
api
/
v1
/
email-domains
/
gmail
Create a Gmail-backed email domain
curl --request POST \
  --url https://prod.featherhq.com/api/v1/email-domains/gmail \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "gmailConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "emailDomain": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": "<string>",
    "subdomain": "<string>",
    "domain": "<string>",
    "fullDomain": "<string>",
    "providerDomainId": "<string>",
    "gmailConnectionId": "<string>",
    "sendGridIntegrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "inboundWebhookUrl": "<string>",
    "mxRecord": "<string>",
    "mxPriority": 123,
    "spfHostname": "<string>",
    "spfValue": "<string>",
    "dkimSelector": "<string>",
    "dkimHostname": "<string>",
    "dkimValue": "<string>",
    "cnameValue": "<string>",
    "cnamePriority": 123,
    "mxVerified": true,
    "spfVerified": true,
    "dkimVerified": true,
    "cnameVerified": true,
    "sendFromDomain": "<string>",
    "sendFromDomainId": "<string>",
    "sendFromVerified": true,
    "sendFromMxRecord": "<string>",
    "sendFromMxPriority": 123,
    "sendFromSpfHostname": "<string>",
    "sendFromSpfValue": "<string>",
    "sendFromDkimSelector": "<string>",
    "sendFromDkimHostname": "<string>",
    "sendFromDkimValue": "<string>",
    "sendFromCnameValue": "<string>",
    "sendFromCnamePriority": 123,
    "sendFromMxVerified": true,
    "sendFromSpfVerified": true,
    "sendFromDkimVerified": true,
    "sendFromCnameVerified": true,
    "verifiedAt": "<string>",
    "lastCheckedAt": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "sendGridSendFromEmail": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json
gmailConnectionId
string<uuid>
required

Response

Gmail email domain created successfully

emailDomain
object
required