{"openapi":"3.1.0","info":{"title":"Taube API","version":"1","summary":"E-mail for organisations. Mailboxes, messages, domains, MCP for AI assistants.","description":"Taube is e-mail on your own domain: it receives mail for your verified domains over SMTP,\nkeeps it encrypted in Switzerland, and gives you web mail, this API and an MCP server.\n\n**Sending** depends on the hub: in the preview (`sending_preview: true` in `/api/v1/config`)\n`POST …/send` keeps the message in *Sent* and logs it in the outbox with `provider: mock`,\n`status: accepted`; nothing is delivered. With Amazon SES (`provider: ses`) the message is\nqueued (`status: queued`) and the outbox shows `sent` or `failed`; a domain sends only once\nits DKIM records are verified (`sending: true`). Ordering is a preview: no payment is taken.\n\n## Authentication\n\nCreate an **API key** in the Taube app under *API & MCP* and send it as a bearer token:\n\n```\nAuthorization: Bearer tbe_…\n```\n\nKeys read by default. A key created with **write access** may also send mail, change flags\nand folders, and (when its owner is an owner of the organisation) add domains, order and\ncreate mailboxes. Account, members and API keys themselves need a login. A key acts in one\norganisation with its owner's role: members reach only the mailboxes they are assigned to;\na mailbox the key may not see answers `404 not_found`.\n\n## Approval\n\nTaube is enabled per organisation by Rigilab: request access in the Rigilab portal\n(`access_request_url` in `GET /api/v1/config`). Until then adding domains, ordering and\ncreating mailboxes and aliases, and sending answer `403` with `error: org_not_approved`;\nreading and drafts work.\n\n## MCP and OAuth\n\n`POST /mcp` is a stateless MCP server (Streamable HTTP, JSON responses). AI assistants like\nClaude connect with OAuth 2.1 (discovery at `/.well-known/oauth-protected-resource/mcp`,\nPKCE S256, client ID metadata documents or dynamic client registration): add\n`https://taube.rigilab.com/mcp` as a custom connector, sign in and allow. An API key works\ntoo:\n\n```bash\nclaude mcp add --transport http taube https://taube.rigilab.com/mcp\n```\n","contact":{"name":"Taube","url":"https://taube.rigilab.com"},"license":{"name":"Proprietary","url":"https://taube.rigilab.com"}},"servers":[{"url":"https://taube.rigilab.com","description":"Taube"}],"security":[{"apiKey":[]}],"tags":[{"name":"Mailboxes","description":"The mailboxes the key's owner may read."},{"name":"Messages","description":"Folders, messages, attachments and sending."},{"name":"Domains","description":"Domains of the organisation and their DNS records."},{"name":"Orders","description":"Plans and orders (preview, no payment)."},{"name":"MCP","description":"The MCP server and its OAuth discovery."}],"paths":{"/api/v1/config":{"get":{"tags":["Mailboxes"],"operationId":"getConfig","summary":"Hub configuration","security":[],"responses":{"200":{"description":"Version and setup of this hub.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"public_url":{"type":"string"},"app_url":{"type":"string"},"signup":{"type":"boolean"},"access_request_url":{"type":"string","description":"Where an organisation that is not approved yet requests access (the Rigilab portal)."},"mail":{"type":"boolean","description":"The hub sends system mail (invites)."},"rigilab_id":{"type":"boolean"},"mx_host":{"type":"string","description":"The host customer domains point their MX record to."},"sender":{"type":"string","enum":["mock","ses"]},"sending_preview":{"type":"boolean"},"max_message_mb":{"type":"integer"},"mcp_url":{"type":"string"}}}}}}}}},"/api/v1/mailboxes":{"get":{"tags":["Mailboxes"],"operationId":"listMailboxes","summary":"List mailboxes","responses":{"200":{"description":"The mailboxes the key reaches.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mailbox"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}},"post":{"tags":["Mailboxes"],"operationId":"createMailbox","summary":"Create a mailbox (owners, write key)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain_id","local_part"],"properties":{"domain_id":{"type":"integer"},"local_part":{"type":"string","example":"info"},"display_name":{"type":"string"},"plan":{"type":"string","enum":["basic","pro"],"default":"basic"},"member_ids":{"type":"array","items":{"type":"integer"}}}}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mailbox"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"No free mailbox of this plan; order first (`order_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"The domain is not verified, or the address exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/mailboxes/{id}":{"parameters":[{"$ref":"#/components/parameters/MailboxId"}],"get":{"tags":["Mailboxes"],"operationId":"getMailbox","summary":"Get a mailbox","responses":{"200":{"description":"The mailbox.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mailbox"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}},"put":{"tags":["Mailboxes"],"operationId":"updateMailbox","summary":"Change name or readers (owners, write key)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"display_name":{"type":"string"},"member_ids":{"type":"array","items":{"type":"integer"}}}}}}},"responses":{"200":{"description":"The mailbox.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mailbox"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}},"delete":{"tags":["Mailboxes"],"operationId":"deleteMailbox","summary":"Delete a mailbox with its messages (owners, write key)","responses":{"204":{"description":"Deleted."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/aliases":{"parameters":[{"$ref":"#/components/parameters/MailboxId"}],"post":{"tags":["Mailboxes"],"operationId":"createAlias","summary":"Add an alias on the mailbox's domain (owners, write key)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["local_part"],"properties":{"local_part":{"type":"string","example":"kontakt"}}}}}},"responses":{"201":{"description":"The mailbox with its aliases.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mailbox"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/aliases/{alias}":{"parameters":[{"$ref":"#/components/parameters/MailboxId"},{"name":"alias","in":"path","required":true,"schema":{"type":"integer"}}],"delete":{"tags":["Mailboxes"],"operationId":"deleteAlias","summary":"Remove an alias (owners, write key)","responses":{"204":{"description":"Removed."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/folders":{"parameters":[{"$ref":"#/components/parameters/MailboxId"}],"get":{"tags":["Messages"],"operationId":"listFolders","summary":"Folders with counts","responses":{"200":{"description":"The mailbox and its folders.","content":{"application/json":{"schema":{"type":"object","properties":{"mailbox":{"$ref":"#/components/schemas/Mailbox"},"folders":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Folder"},"total":{"type":"integer"},"unread":{"type":"integer"}}}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/messages":{"parameters":[{"$ref":"#/components/parameters/MailboxId"}],"get":{"tags":["Messages"],"operationId":"listMessages","summary":"List or search messages","description":"Newest first. With `q` and no `folder`, every folder but the trash is searched.","parameters":[{"name":"folder","in":"query","schema":{"$ref":"#/components/schemas/Folder"}},{"name":"q","in":"query","schema":{"type":"string"},"description":"Searches subject, sender, recipients and text."},{"name":"unread","in":"query","schema":{"type":"boolean"}},{"name":"starred","in":"query","schema":{"type":"boolean"}},{"name":"before","in":"query","schema":{"type":"integer"},"description":"`next_before` of the previous page."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageSummary"}},"next_before":{"type":["integer","null"]}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/messages/bulk":{"parameters":[{"$ref":"#/components/parameters/MailboxId"}],"post":{"tags":["Messages"],"operationId":"bulkMessages","summary":"Change or delete many messages (write key)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ids","action"],"properties":{"ids":{"type":"array","items":{"type":"integer"},"maxItems":500},"action":{"type":"string","enum":["read","unread","star","unstar","move","delete"]},"folder":{"$ref":"#/components/schemas/Folder"}}}}}},"responses":{"200":{"description":"How many changed.","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/messages/{mid}":{"parameters":[{"$ref":"#/components/parameters/MailboxId"},{"$ref":"#/components/parameters/MessageId"}],"get":{"tags":["Messages"],"operationId":"getMessage","summary":"Read a message","description":"Marks it read unless `peek=true`. The HTML is sanitised; remote images only with `images=true`.","parameters":[{"name":"images","in":"query","schema":{"type":"boolean"}},{"name":"peek","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"The message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}},"put":{"tags":["Messages"],"operationId":"updateMessage","summary":"Flags and folder (write key)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"is_read":{"type":"boolean"},"is_starred":{"type":"boolean"},"folder":{"$ref":"#/components/schemas/Folder"}}}}}},"responses":{"204":{"description":"Changed."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}},"delete":{"tags":["Messages"],"operationId":"deleteMessage","summary":"To the trash; from the trash for good (write key)","responses":{"204":{"description":"Moved or deleted."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/messages/{mid}/raw":{"parameters":[{"$ref":"#/components/parameters/MailboxId"},{"$ref":"#/components/parameters/MessageId"}],"get":{"tags":["Messages"],"operationId":"getRawMessage","summary":"The original message (.eml)","responses":{"200":{"description":"RFC 5322 message, as a download.","content":{"message/rfc822":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/messages/{mid}/attachments/{aid}":{"parameters":[{"$ref":"#/components/parameters/MailboxId"},{"$ref":"#/components/parameters/MessageId"},{"name":"aid","in":"path","required":true,"schema":{"type":"integer"}}],"get":{"tags":["Messages"],"operationId":"getAttachment","summary":"Download an attachment","responses":{"200":{"description":"The attachment, as a download (Content-Disposition: attachment, CSP: sandbox).","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/mailboxes/{id}/send":{"parameters":[{"$ref":"#/components/parameters/MailboxId"}],"post":{"tags":["Messages"],"operationId":"sendMessage","summary":"Send a message (write key; preview = simulated, SES = queued)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string","format":"email"}},"cc":{"type":"array","items":{"type":"string","format":"email"}},"bcc":{"type":"array","items":{"type":"string","format":"email"}},"subject":{"type":"string"},"text":{"type":"string","description":"Plain-text body."},"in_reply_to_id":{"type":"integer","description":"A message of the same mailbox this answers."},"draft":{"type":"boolean","description":"Keep in Drafts, do not send."},"attachments":{"type":"array","items":{"type":"object","required":["filename","data"],"properties":{"filename":{"type":"string"},"content_type":{"type":"string"},"data":{"type":"string","contentEncoding":"base64"}}}}}}}}},"responses":{"201":{"description":"Stored in Sent (or Drafts) and handed to the sender.","content":{"application/json":{"schema":{"type":"object","properties":{"message_id":{"type":"integer"},"draft":{"type":"boolean"},"delivery":{"type":"object","properties":{"provider":{"type":"string","enum":["mock","ses"]},"status":{"type":"string","enum":["accepted","queued","sent","failed"]},"preview":{"type":"boolean"},"error":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Amazon SES: the mailbox's domain cannot send yet (DKIM not verified)."},"429":{"$ref":"#/components/responses/TooMany"}}}},"/api/v1/mailboxes/{id}/outbox":{"parameters":[{"$ref":"#/components/parameters/MailboxId"}],"get":{"tags":["Messages"],"operationId":"listOutbox","summary":"What was handed to the sender","responses":{"200":{"description":"The newest 100 entries.","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/domains":{"get":{"tags":["Domains"],"operationId":"listDomains","summary":"List domains","responses":{"200":{"description":"The organisation's domains with their DNS records.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}},"post":{"tags":["Domains"],"operationId":"createDomain","summary":"Add a domain (owners, write key)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"example.com"}}}}}},"responses":{"201":{"description":"The domain with the DNS records to set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"In use by another organisation, or added already.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/domains/{id}":{"parameters":[{"$ref":"#/components/parameters/DomainId"}],"get":{"tags":["Domains"],"operationId":"getDomain","summary":"Get a domain","responses":{"200":{"description":"The domain.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}},"delete":{"tags":["Domains"],"operationId":"deleteDomain","summary":"Remove a domain with its mailboxes (owners, login only)","responses":{"204":{"description":"Removed."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/domains/{id}/check":{"parameters":[{"$ref":"#/components/parameters/DomainId"}],"post":{"tags":["Domains"],"operationId":"checkDomain","summary":"Look the DNS records up now","description":"A matching verification TXT record verifies the domain. At most every 10 seconds.","responses":{"200":{"description":"The domain with the check's result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Verified by another organisation already.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/TooMany"}}}},"/api/v1/orders":{"get":{"tags":["Orders"],"operationId":"listOrders","summary":"Plans, orders and free mailboxes","responses":{"200":{"description":"Plans (price per month in Rappen), orders, usage per plan.","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}},"post":{"tags":["Orders"],"operationId":"createOrder","summary":"Order mailboxes (owners, write key; preview, no payment)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan","mailboxes","accept_preview"],"properties":{"plan":{"type":"string","enum":["basic","pro"]},"mailboxes":{"type":"integer","minimum":1,"maximum":100},"accept_preview":{"type":"boolean","description":"Must be true: nothing is charged in the preview."}}}}}},"responses":{"201":{"description":"The order (`payment` is `mock`).","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/mcp":{"post":{"tags":["MCP"],"operationId":"mcp","summary":"MCP (JSON-RPC 2.0)","description":"Stateless Streamable HTTP. Methods `initialize`, `ping`, `tools/list`, `tools/call`.\nRead tools: `list_mailboxes`, `list_messages`, `get_message`, `list_domains`,\n`get_domain`, `list_orders`. Write tools (`mail.write` or a write key): `send_message`\n(simulated in the preview), `update_message`, `add_domain`, `check_domain`,\n`order_mailboxes`, `create_mailbox`, `create_alias`. Without a token: `401` with\n`WWW-Authenticate: Bearer resource_metadata=\"…/.well-known/oauth-protected-resource/mcp\"`.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_messages","arguments":{"mailbox":"info@example.com","limit":5}}}}}},"responses":{"200":{"description":"JSON-RPC answer.","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Notification accepted (no answer)."},"400":{"description":"Not JSON.","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"tags":["MCP"],"operationId":"protectedResourceMetadata","summary":"OAuth protected resource metadata (RFC 9728)","security":[],"responses":{"200":{"description":"The resource and its authorization server.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"tags":["MCP"],"operationId":"authorizationServerMetadata","summary":"OAuth authorization server metadata (RFC 8414)","security":[],"responses":{"200":{"description":"Endpoints, PKCE S256, scopes mail.read and mail.write.","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key (`tbe_…`) from the Taube app, or a login token."}},"parameters":{"MailboxId":{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},"MessageId":{"name":"mid","in":"path","required":true,"schema":{"type":"integer"}},"DomainId":{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}},"responses":{"BadRequest":{"description":"Invalid input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"No or an invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"A read-only API key, not an owner, or (`error: org_not_approved`) an organisation Rigilab has not approved yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Not found, or not visible to this key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooMany":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","example":"not_found"},"message":{"type":"string"}}},"Folder":{"type":"string","enum":["inbox","sent","drafts","archive","spam","trash"]},"Addr":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}}},"Mailbox":{"type":"object","properties":{"id":{"type":"integer"},"address":{"type":"string","example":"info@example.com"},"local_part":{"type":"string"},"domain":{"type":"string"},"domain_id":{"type":"integer"},"display_name":{"type":"string"},"plan":{"type":"string"},"quota_mb":{"type":"integer"},"used_bytes":{"type":"integer"},"unread":{"type":"integer"},"member_ids":{"type":"array","items":{"type":"integer"}},"aliases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"address":{"type":"string"},"mailbox_id":{"type":"integer"}}}},"created_at":{"type":"string","format":"date-time"}}},"MessageSummary":{"type":"object","properties":{"id":{"type":"integer"},"mailbox_id":{"type":"integer"},"folder":{"$ref":"#/components/schemas/Folder"},"direction":{"type":"string","enum":["in","out"]},"subject":{"type":"string"},"from":{"$ref":"#/components/schemas/Addr"},"to":{"type":"array","items":{"$ref":"#/components/schemas/Addr"}},"date":{"type":"string","format":"date-time"},"snippet":{"type":"string"},"size":{"type":"integer"},"has_attachments":{"type":"boolean"},"is_read":{"type":"boolean"},"is_starred":{"type":"boolean"}}},"Message":{"allOf":[{"$ref":"#/components/schemas/MessageSummary"},{"type":"object","properties":{"cc":{"type":"array","items":{"$ref":"#/components/schemas/Addr"}},"message_id":{"type":"string"},"in_reply_to":{"type":"string"},"text":{"type":"string"},"html":{"type":"string","description":"Sanitised HTML."},"has_remote_images":{"type":"boolean"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"filename":{"type":"string"},"content_type":{"type":"string"},"size":{"type":"integer"}}}},"auth":{"type":"object","description":"SPF, DKIM and DMARC results and the connecting host of received mail."}}}]},"Domain":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"verify_token":{"type":"string"},"verified":{"type":"boolean"},"verified_at":{"type":["string","null"],"format":"date-time"},"receiving":{"type":"boolean","description":"Verified and the MX record points to Taube."},"sending":{"type":"boolean","description":"Verified and its Amazon SES identity (DKIM) is verified."},"ses_status":{"type":"string","enum":["","pending","success","failed","temporary_failure","not_started"],"description":"DKIM status of the Amazon SES identity; empty while there is none."},"ses_mail_from":{"type":"string","enum":["","pending","success","failed","temporary_failure"],"description":"Status of the custom MAIL FROM bounce.<domain> at Amazon SES; empty: not set."},"mailbox_count":{"type":"integer"},"checked_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"records":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["verify","mx","spf","dmarc","dkim","mail_from"]},"type":{"type":"string","enum":["TXT","MX","CNAME"]},"name":{"type":"string"},"value":{"type":"string"},"priority":{"type":["integer","null"]},"need":{"type":"string","enum":["required","recommended","later"]},"status":{"type":"string","enum":["ok","missing","wrong","unchecked","later"]},"found":{"type":"array","items":{"type":"string"}}}}}}}}}}