API referenceEmail
Generate email DNS records (MX/SPF/DKIM/DMARC) for a mailbox provider
Pure generator (no writes). Returns the records to configure email on a known provider. Add them manually, or use connections/{id}/email:apply to have a delegated credential write the safe records (apex SPF stays manual).
Authorization
apiKey AuthorizationBearer <token>
API key: sk_test_… / sk_live_… (hashed at rest, scoped)
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/email/records" \ -H "Content-Type: application/json" \ -d '{ "domain": "string", "provider": "google_workspace" }'{ "provider": "string", "domain": "string", "records": [ { "host": "string", "type": "A", "value": "string", "ttl": 300, "priority": 0 } ], "notes": [ "string" ]}{ "error": { "code": "string", "message": "string", "details": null }}