addedOutput schema / $defs
Added value: +{
+ "DnsRecordSchema": {
+ "additionalProperties": true,
+ "description": "One DNS record the tenant must publish for a sending domain.\n\nCovers DKIM CNAMEs, MAIL FROM MX, and SPF TXT records.",
+ "properties": {
+ "name": {
+ "description": "DNS record name/host to publish (e.g. a CNAME's subdomain).",
+ "title": "Name",
+ "type": "string"
+ },
+ "priority": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "MX priority. Only present for type='MX'; null otherwise.",
+ "title": "Priority"
+ },
+ "type": {
+ "default": "CNAME",
+ "description": "DNS record type: 'CNAME' (DKIM), 'MX' (MAIL FROM), or 'TXT' (SPF).",
+ "enum": [
+ "CNAME",
+ "MX",
+ "TXT"
+ ],
+ "title": "Type",
+ "type": "string"
+ },
+ "value": {
+ "description": "DNS record value to publish (e.g. a CNAME target or TXT content).",
+ "title": "Value",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "value",
+ "type",
+ "priority"
+ ],
+ "title": "DnsRecordSchema",
+ "type": "object"
+ }
+}
addedOutput schema / anyOf
Added value: +[
+ {
+ "description": "Read view for an email domain.\n\nThe inbound-action fields (``inbound_enabled``, ``forward_to``,\n``forward_rate_per_hour``) surface what the row has configured for\nincoming mail.",
+ "properties": {
+ "created_at": {
+ "description": "When this domain was added, ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Created At",
+ "type": "string"
+ },
+ "dns_records": {
+ "description": "DNS records (DKIM, MAIL FROM MX, SPF) the tenant must publish to verify this domain.",
+ "items": {
+ "$ref": "#/$defs/DnsRecordSchema"
+ },
+ "title": "Dns Records",
+ "type": "array"
+ },
+ "domain": {
+ "description": "The DNS domain mail is sent from.",
+ "title": "Domain",
+ "type": "string"
+ },
+ "email_agent_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The agent that answers mail to this address. Null when none does.",
+ "title": "Email Agent Id"
+ },
+ "email_agent_scope": {
+ "default": "members",
+ "description": "Who the agent answers: 'members' or 'anyone'.",
+ "enum": [
+ "members",
+ "anyone"
+ ],
+ "title": "Email Agent Scope",
+ "type": "string"
+ },
+ "forward_rate_per_hour": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Configured cap on forwarded messages per hour, if set.",
+ "title": "Forward Rate Per Hour"
+ },
+ "forward_to": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Email addresses inbound mail is forwarded to, if inbound is enabled.",
+ "title": "Forward To"
+ },
+ "id": {
+ "description": "Unique identifier for this email domain.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "inbound_enabled": {
+ "default": false,
+ "description": "Whether this domain accepts and forwards inbound mail.",
+ "title": "Inbound Enabled",
+ "type": "boolean"
+ },
+ "kind": {
+ "description": "'hail_mail' (Hail-hosted address) or 'custom' (your own domain).",
+ "enum": [
+ "hail_mail",
+ "custom"
+ ],
+ "title": "Kind",
+ "type": "string"
+ },
+ "local_prefix_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Name prefix of a hail_mail address: the part after the '+'. A free name inside the workspace, such as a person or team. Null for kind='custom'.",
+ "title": "Local Prefix Name"
+ },
+ "local_prefix_org": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "deprecated": true,
+ "description": "Deprecated: use local_prefix_name. Same value.",
+ "readOnly": true,
+ "title": "Local Prefix Org"
+ },
+ "local_prefix_user": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "deprecated": true,
+ "description": "Deprecated: use local_prefix_workspace. Same value.",
+ "readOnly": true,
+ "title": "Local Prefix User"
+ },
+ "local_prefix_workspace": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Workspace prefix of a hail_mail address: the part before the '+'. It names the workspace, and one workspace only may hold it. Null for kind='custom'.",
+ "title": "Local Prefix Workspace"
+ },
+ "mail_from_domain": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Custom MAIL FROM domain, if configured. Null when using the provider default.",
+ "title": "Mail From Domain"
+ },
+ "mail_from_status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Verification status of the custom MAIL FROM domain, if one is configured. Secondary to verification_status.",
+ "title": "Mail From Status"
+ },
+ "organization_id": {
+ "description": "Organization that owns this domain.",
+ "format": "uuid",
+ "title": "Organization Id",
+ "type": "string"
+ },
+ "provider": {
+ "description": "Email sending provider for this domain (currently always 'ses').",
+ "title": "Provider",
+ "type": "string"
+ },
+ "receive_ready": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when the domain's published MX points at Hail's inbound host. Only populated by POST /{id}/verify on custom domains; null everywhere else.",
+ "title": "Receive Ready"
+ },
+ "sends_enabled": {
+ "default": true,
+ "description": "Send switch for kind='custom' rows. False stops the domain from sending at all: it is skipped by default sender selection and a send that names it explicitly returns 422. Always true for hail_mail rows.",
+ "title": "Sends Enabled",
+ "type": "boolean"
+ },
+ "updated_at": {
+ "description": "When this domain was last modified, ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Updated At",
+ "type": "string"
+ },
+ "verification_status": {
+ "description": "'pending' (not yet verified), 'verified' (ready to send), or 'failed'.",
+ "enum": [
+ "pending",
+ "verified",
+ "failed"
+ ],
+ "title": "Verification Status",
+ "type": "string"
+ },
+ "verified_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the domain became verified, ISO 8601 timestamp. Null until it is.",
+ "title": "Verified At"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "kind",
+ "domain",
+ "local_prefix_workspace",
+ "local_prefix_name",
+ "verification_status",
+ "dns_records",
+ "mail_from_domain",
+ "mail_from_status",
+ "provider",
+ "verified_at",
+ "inbound_enabled",
+ "sends_enabled",
+ "forward_to",
+ "forward_rate_per_hour",
+ "email_agent_id",
+ "email_agent_scope",
+ "created_at",
+ "updated_at",
+ "receive_ready",
+ "local_prefix_user",
+ "local_prefix_org"
+ ],
+ "title": "EmailDomainResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]