{"openapi":"3.1.0","info":{"title":"Dropline API","version":"1.0.0","description":"Read, search, organise and send email in your mailboxes, and get webhooks when things happen. Authenticate with a personal access token from Settings → Connect AI agents."},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Personal access token (dl_pat_…)"}},"schemas":{"ErrorInput":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"]}},"required":["error"]},"AddressInput":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["name","address"]},"MailboxInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address":{"type":"string"},"display_name":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","receive_only","suspended","disabled","deleted"]},"quota_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"daily_send_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepts_inbound":{"type":"boolean","description":"False when the owner switched on “Don’t accept inbound mail”: the server refuses mail to this address (550), so replies to it won’t arrive. Sending works as usual."},"created_at":{"type":"string"}},"required":["id","address","display_name","status","quota_mb","used_bytes","daily_send_limit","accepts_inbound","created_at"]},"FolderInput":{"type":"object","properties":{"path":{"type":"string"},"name":{"type":"string"},"special_use":{"anyOf":[{"type":"string","enum":["inbox","sent","drafts","trash","junk","archive"]},{"type":"null"}]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","name","special_use","total","unread"]},"MessageSummaryInput":{"type":"object","properties":{"uid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Unique within the folder. Changes if the message moves."},"folder":{"type":"string"},"message_id":{"description":"The RFC 5322 Message-ID header.","type":["string","null"]},"from":{"anyOf":[{"$ref":"#/components/schemas/AddressInput"},{"type":"null"}]},"to":{"type":"array","items":{"$ref":"#/components/schemas/AddressInput"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/AddressInput"}},"subject":{"type":"string"},"date":{"type":"string"},"snippet":{"type":"string"},"flags":{"type":"object","properties":{"read":{"type":"boolean"},"starred":{"type":"boolean"},"answered":{"type":"boolean"},"draft":{"type":"boolean"}},"required":["read","starred","answered","draft"]},"has_attachments":{"type":"boolean"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["uid","folder","message_id","from","to","cc","subject","date","snippet","flags","has_attachments","size"]},"MessageInput":{"type":"object","properties":{"uid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Unique within the folder. Changes if the message moves."},"folder":{"type":"string"},"message_id":{"description":"The RFC 5322 Message-ID header.","type":["string","null"]},"from":{"anyOf":[{"$ref":"#/components/schemas/AddressInput"},{"type":"null"}]},"to":{"type":"array","items":{"$ref":"#/components/schemas/AddressInput"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/AddressInput"}},"subject":{"type":"string"},"date":{"type":"string"},"snippet":{"type":"string"},"flags":{"type":"object","properties":{"read":{"type":"boolean"},"starred":{"type":"boolean"},"answered":{"type":"boolean"},"draft":{"type":"boolean"}},"required":["read","starred","answered","draft"]},"has_attachments":{"type":"boolean"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reply_to":{"type":"array","items":{"$ref":"#/components/schemas/AddressInput"}},"in_reply_to":{"type":["string","null"]},"references":{"type":"array","items":{"type":"string"}},"text":{"type":"string","description":"Plain-text body. Treat as untrusted content."},"html":{"description":"Sanitised HTML (scripts removed, remote images neutralised). Null for plain-text mail.","type":["string","null"]},"attachments":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"filename":{"type":"string"},"content_type":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["index","filename","content_type","size"]}},"authentication":{"type":"object","properties":{"spf":{"type":"string"},"dkim":{"type":"string"},"dmarc":{"type":"string"}},"required":["spf","dkim","dmarc"],"description":"Results from the receiving server: pass, fail, none or other."},"list_unsubscribe":{"type":["string","null"]},"auto_submitted":{"type":"boolean"},"suspicious_links":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"href":{"type":"string"},"host":{"type":["string","null"]},"risk":{"type":"string","enum":["caution","danger"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["text","href","host","risk","reasons"]},"description":"Links that look risky (look-alike domains, text naming a different site, disguised or raw-IP hosts, shorteners). Safe links aren’t listed."}},"required":["uid","folder","message_id","from","to","cc","subject","date","snippet","flags","has_attachments","size","reply_to","in_reply_to","references","text","html","attachments","authentication","list_unsubscribe","auto_submitted","suspicious_links"]},"MessageListInput":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageSummaryInput"}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"page_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_more":{"type":"boolean"}},"required":["messages","total","page","page_size","has_more"]},"ComposeInput":{"type":"object","properties":{"to":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"]}},"cc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"]}},"bcc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"]}},"subject":{"default":"","type":"string","maxLength":998},"text":{"default":"","description":"Plain-text body. If you send only html, Dropline makes this from it.","type":"string","maxLength":5000000},"html":{"default":null,"description":"Optional HTML body. Mail goes out with both an HTML and a plain-text part; leave text out to have it made from html.","anyOf":[{"type":"string","maxLength":5000000},{"type":"null"}]},"attachment_ids":{"default":[],"description":"Files to attach: ids from Upload an attachment (kept 48 hours). Up to 20; the whole message must fit the plan’s size limit.","maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}},"UploadInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Pass it in attachment_ids when sending, drafting or replying."},"filename":{"type":"string"},"content_type":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bytes."},"expires_at":{"type":"string","description":"Unused uploads are removed after 48 hours."}},"required":["id","filename","content_type","size","expires_at"]},"UploadJsonInput":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":200},"content_type":{"default":"application/octet-stream","type":"string","maxLength":200},"data":{"type":"string","maxLength":17000000,"description":"The file, base64-encoded (up to about 12 MB of file here; use multipart for larger)."}},"required":["filename","data"]},"SendBodyInput":{"type":"object","properties":{"to":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"]}},"cc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"]}},"bcc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"]}},"subject":{"default":"","type":"string","maxLength":998},"text":{"default":"","description":"Plain-text body. If you send only html, Dropline makes this from it.","type":"string","maxLength":5000000},"html":{"default":null,"description":"Optional HTML body. Mail goes out with both an HTML and a plain-text part; leave text out to have it made from html.","anyOf":[{"type":"string","maxLength":5000000},{"type":"null"}]},"attachment_ids":{"default":[],"description":"Files to attach: ids from Upload an attachment (kept 48 hours). Up to 20; the whole message must fit the plan’s size limit.","maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"send_at":{"description":"Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"ReplyBodyInput":{"type":"object","properties":{"text":{"default":"","description":"Plain-text reply. Required unless html is given; if left out, it is made from html.","type":"string","maxLength":5000000},"html":{"default":null,"description":"Optional HTML reply.","anyOf":[{"type":"string","maxLength":5000000},{"type":"null"}]},"reply_all":{"default":false,"type":"boolean"},"draft_only":{"default":false,"type":"boolean"},"send_at":{"description":"Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"attachment_ids":{"default":[],"description":"Files to attach: ids from Upload an attachment (kept 48 hours). Up to 20; the whole message must fit the plan’s size limit.","maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}},"SendResultInput":{"type":"object","properties":{"status":{"type":"string","enum":["queued","scheduled","pending_approval"],"description":"queued: accepted and handed to SMTP within seconds. scheduled: waits until send_at. pending_approval: waiting for the owner to approve it in the app (a requested send_at is kept)."},"id":{"type":"string","description":"send id (queued, scheduled) or approval id (pending_approval)"},"message_id":{"type":["string","null"]},"send_at":{"description":"When it goes out, for scheduled sends and approvals that asked for a time.","type":["string","null"]}},"required":["status","id","message_id","send_at"]},"ScheduledInput":{"type":"object","properties":{"send_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"send_at":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"}},"required":["send_id","send_at","to","subject"]},"TemplateInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"subject":{"type":"string","description":"Empty when the template only fills the body."},"html":{"type":"string","description":"Simple formatting only: paragraphs, bold, italics, lists, links."},"text":{"type":"string","description":"Plain-text version of html."},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","name","subject","html","text","created_at","updated_at"]},"TemplatePatchInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"subject":{"type":"string","maxLength":998},"html":{"type":"string","minLength":1,"maxLength":100000}}},"DraftInput":{"type":"object","properties":{"folder":{"type":"string"},"uid":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["folder","uid"]},"UsageInput":{"type":"object","properties":{"sent_today":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"daily_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sent_this_hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hourly_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recipients_per_message":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_message_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"probation":{"type":"boolean"}},"required":["sent_today","daily_limit","sent_this_hour","hourly_limit","recipients_per_message","max_message_mb","probation"]},"DomainInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string","enum":["pending_ownership","pending_dns","verifying","active","degraded","suspended"]},"sending":{"type":"boolean"},"receiving":{"type":"boolean"},"records":{"type":"array","items":{"type":"object","properties":{"purpose":{"type":"string"},"type":{"type":"string"},"host":{"type":"string"},"value":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"anyOf":[{"type":"string","enum":["ok","missing","mismatch","conflict"]},{"type":"null"}]}},"required":["purpose","type","host","value","status"]}},"last_checked_at":{"type":["string","null"]}},"required":["id","name","status","sending","receiving","records","last_checked_at"]},"WebhookInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"description":{"type":["string","null"]},"events":{"type":"array","items":{"type":"string"}},"mailbox_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"active":{"type":"boolean"},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_success_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","url","description","events","mailbox_ids","active","consecutive_failures","last_success_at","created_at"]},"DeliveryInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"event":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"last_error":{"type":["string","null"]},"delivered_at":{"type":["string","null"]},"created_at":{"type":"string"},"payload":{}},"required":["id","event_id","event","attempts","last_status","last_error","delivered_at","created_at","payload"]},"ApprovalInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["pending","approved","rejected","expired"]},"mailbox_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"send_at":{"type":["string","null"]},"created_at":{"type":"string"},"decided_at":{"type":["string","null"]},"expires_at":{"type":"string"}},"required":["id","state","mailbox_id","subject","to","send_at","created_at","decided_at","expires_at"]},"MeInput":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"plan":{"type":"string"}},"required":["id","email","plan"]},"token":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"mailbox_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"send_approval":{"type":"boolean"},"expires_at":{"type":["string","null"]}},"required":["id","name","scopes","mailbox_ids","send_approval","expires_at"]},"rate_limit":{"type":"object","properties":{"per_hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["per_hour"]}},"required":["user","token","rate_limit"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"Address":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["name","address"],"additionalProperties":false},"Mailbox":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address":{"type":"string"},"display_name":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","receive_only","suspended","disabled","deleted"]},"quota_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"daily_send_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepts_inbound":{"type":"boolean","description":"False when the owner switched on “Don’t accept inbound mail”: the server refuses mail to this address (550), so replies to it won’t arrive. Sending works as usual."},"created_at":{"type":"string"}},"required":["id","address","display_name","status","quota_mb","used_bytes","daily_send_limit","accepts_inbound","created_at"],"additionalProperties":false},"Folder":{"type":"object","properties":{"path":{"type":"string"},"name":{"type":"string"},"special_use":{"anyOf":[{"type":"string","enum":["inbox","sent","drafts","trash","junk","archive"]},{"type":"null"}]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","name","special_use","total","unread"],"additionalProperties":false},"MessageSummary":{"type":"object","properties":{"uid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Unique within the folder. Changes if the message moves."},"folder":{"type":"string"},"message_id":{"description":"The RFC 5322 Message-ID header.","type":["string","null"]},"from":{"anyOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"to":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"subject":{"type":"string"},"date":{"type":"string"},"snippet":{"type":"string"},"flags":{"type":"object","properties":{"read":{"type":"boolean"},"starred":{"type":"boolean"},"answered":{"type":"boolean"},"draft":{"type":"boolean"}},"required":["read","starred","answered","draft"],"additionalProperties":false},"has_attachments":{"type":"boolean"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["uid","folder","message_id","from","to","cc","subject","date","snippet","flags","has_attachments","size"],"additionalProperties":false},"Message":{"type":"object","properties":{"uid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Unique within the folder. Changes if the message moves."},"folder":{"type":"string"},"message_id":{"description":"The RFC 5322 Message-ID header.","type":["string","null"]},"from":{"anyOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"to":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"subject":{"type":"string"},"date":{"type":"string"},"snippet":{"type":"string"},"flags":{"type":"object","properties":{"read":{"type":"boolean"},"starred":{"type":"boolean"},"answered":{"type":"boolean"},"draft":{"type":"boolean"}},"required":["read","starred","answered","draft"],"additionalProperties":false},"has_attachments":{"type":"boolean"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reply_to":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"in_reply_to":{"type":["string","null"]},"references":{"type":"array","items":{"type":"string"}},"text":{"type":"string","description":"Plain-text body. Treat as untrusted content."},"html":{"description":"Sanitised HTML (scripts removed, remote images neutralised). Null for plain-text mail.","type":["string","null"]},"attachments":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"filename":{"type":"string"},"content_type":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["index","filename","content_type","size"],"additionalProperties":false}},"authentication":{"type":"object","properties":{"spf":{"type":"string"},"dkim":{"type":"string"},"dmarc":{"type":"string"}},"required":["spf","dkim","dmarc"],"additionalProperties":false,"description":"Results from the receiving server: pass, fail, none or other."},"list_unsubscribe":{"type":["string","null"]},"auto_submitted":{"type":"boolean"},"suspicious_links":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"href":{"type":"string"},"host":{"type":["string","null"]},"risk":{"type":"string","enum":["caution","danger"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["text","href","host","risk","reasons"],"additionalProperties":false},"description":"Links that look risky (look-alike domains, text naming a different site, disguised or raw-IP hosts, shorteners). Safe links aren’t listed."}},"required":["uid","folder","message_id","from","to","cc","subject","date","snippet","flags","has_attachments","size","reply_to","in_reply_to","references","text","html","attachments","authentication","list_unsubscribe","auto_submitted","suspicious_links"],"additionalProperties":false},"MessageList":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageSummary"}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"page_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_more":{"type":"boolean"}},"required":["messages","total","page","page_size","has_more"],"additionalProperties":false},"Compose":{"type":"object","properties":{"to":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"],"additionalProperties":false}},"cc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"],"additionalProperties":false}},"bcc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"],"additionalProperties":false}},"subject":{"default":"","type":"string","maxLength":998},"text":{"default":"","description":"Plain-text body. If you send only html, Dropline makes this from it.","type":"string","maxLength":5000000},"html":{"default":null,"description":"Optional HTML body. Mail goes out with both an HTML and a plain-text part; leave text out to have it made from html.","anyOf":[{"type":"string","maxLength":5000000},{"type":"null"}]},"attachment_ids":{"default":[],"description":"Files to attach: ids from Upload an attachment (kept 48 hours). Up to 20; the whole message must fit the plan’s size limit.","maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["to","cc","bcc","subject","text","html","attachment_ids"],"additionalProperties":false},"Upload":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Pass it in attachment_ids when sending, drafting or replying."},"filename":{"type":"string"},"content_type":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bytes."},"expires_at":{"type":"string","description":"Unused uploads are removed after 48 hours."}},"required":["id","filename","content_type","size","expires_at"],"additionalProperties":false},"UploadJson":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":200},"content_type":{"default":"application/octet-stream","type":"string","maxLength":200},"data":{"type":"string","maxLength":17000000,"description":"The file, base64-encoded (up to about 12 MB of file here; use multipart for larger)."}},"required":["filename","content_type","data"],"additionalProperties":false},"SendBody":{"type":"object","properties":{"to":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"],"additionalProperties":false}},"cc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"],"additionalProperties":false}},"bcc":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}},"required":["address"],"additionalProperties":false}},"subject":{"default":"","type":"string","maxLength":998},"text":{"default":"","description":"Plain-text body. If you send only html, Dropline makes this from it.","type":"string","maxLength":5000000},"html":{"default":null,"description":"Optional HTML body. Mail goes out with both an HTML and a plain-text part; leave text out to have it made from html.","anyOf":[{"type":"string","maxLength":5000000},{"type":"null"}]},"attachment_ids":{"default":[],"description":"Files to attach: ids from Upload an attachment (kept 48 hours). Up to 20; the whole message must fit the plan’s size limit.","maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"send_at":{"description":"Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["to","cc","bcc","subject","text","html","attachment_ids"],"additionalProperties":false},"ReplyBody":{"type":"object","properties":{"text":{"default":"","description":"Plain-text reply. Required unless html is given; if left out, it is made from html.","type":"string","maxLength":5000000},"html":{"default":null,"description":"Optional HTML reply.","anyOf":[{"type":"string","maxLength":5000000},{"type":"null"}]},"reply_all":{"default":false,"type":"boolean"},"draft_only":{"default":false,"type":"boolean"},"send_at":{"description":"Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"attachment_ids":{"default":[],"description":"Files to attach: ids from Upload an attachment (kept 48 hours). Up to 20; the whole message must fit the plan’s size limit.","maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["text","html","reply_all","draft_only","attachment_ids"],"additionalProperties":false},"SendResult":{"type":"object","properties":{"status":{"type":"string","enum":["queued","scheduled","pending_approval"],"description":"queued: accepted and handed to SMTP within seconds. scheduled: waits until send_at. pending_approval: waiting for the owner to approve it in the app (a requested send_at is kept)."},"id":{"type":"string","description":"send id (queued, scheduled) or approval id (pending_approval)"},"message_id":{"type":["string","null"]},"send_at":{"description":"When it goes out, for scheduled sends and approvals that asked for a time.","type":["string","null"]}},"required":["status","id","message_id","send_at"],"additionalProperties":false},"Scheduled":{"type":"object","properties":{"send_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"send_at":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"}},"required":["send_id","send_at","to","subject"],"additionalProperties":false},"Template":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"subject":{"type":"string","description":"Empty when the template only fills the body."},"html":{"type":"string","description":"Simple formatting only: paragraphs, bold, italics, lists, links."},"text":{"type":"string","description":"Plain-text version of html."},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","name","subject","html","text","created_at","updated_at"],"additionalProperties":false},"TemplatePatch":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"subject":{"type":"string","maxLength":998},"html":{"type":"string","minLength":1,"maxLength":100000}},"additionalProperties":false},"Draft":{"type":"object","properties":{"folder":{"type":"string"},"uid":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["folder","uid"],"additionalProperties":false},"Usage":{"type":"object","properties":{"sent_today":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"daily_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sent_this_hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hourly_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recipients_per_message":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_message_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"probation":{"type":"boolean"}},"required":["sent_today","daily_limit","sent_this_hour","hourly_limit","recipients_per_message","max_message_mb","probation"],"additionalProperties":false},"Domain":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string","enum":["pending_ownership","pending_dns","verifying","active","degraded","suspended"]},"sending":{"type":"boolean"},"receiving":{"type":"boolean"},"records":{"type":"array","items":{"type":"object","properties":{"purpose":{"type":"string"},"type":{"type":"string"},"host":{"type":"string"},"value":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"anyOf":[{"type":"string","enum":["ok","missing","mismatch","conflict"]},{"type":"null"}]}},"required":["purpose","type","host","value","status"],"additionalProperties":false}},"last_checked_at":{"type":["string","null"]}},"required":["id","name","status","sending","receiving","records","last_checked_at"],"additionalProperties":false},"Webhook":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"description":{"type":["string","null"]},"events":{"type":"array","items":{"type":"string"}},"mailbox_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"active":{"type":"boolean"},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_success_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","url","description","events","mailbox_ids","active","consecutive_failures","last_success_at","created_at"],"additionalProperties":false},"Delivery":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"event":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"last_error":{"type":["string","null"]},"delivered_at":{"type":["string","null"]},"created_at":{"type":"string"},"payload":{}},"required":["id","event_id","event","attempts","last_status","last_error","delivered_at","created_at","payload"],"additionalProperties":false},"Approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["pending","approved","rejected","expired"]},"mailbox_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"send_at":{"type":["string","null"]},"created_at":{"type":"string"},"decided_at":{"type":["string","null"]},"expires_at":{"type":"string"}},"required":["id","state","mailbox_id","subject","to","send_at","created_at","decided_at","expires_at"],"additionalProperties":false},"Me":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"plan":{"type":"string"}},"required":["id","email","plan"],"additionalProperties":false},"token":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"mailbox_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"send_approval":{"type":"boolean"},"expires_at":{"type":["string","null"]}},"required":["id","name","scopes","mailbox_ids","send_approval","expires_at"],"additionalProperties":false},"rate_limit":{"type":"object","properties":{"per_hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["per_hour"],"additionalProperties":false}},"required":["user","token","rate_limit"],"additionalProperties":false}}},"paths":{"/me":{"get":{"summary":"Who am I","tags":["Account"],"description":"The account and token behind this request: scopes, mailboxes and rate limit.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes":{"get":{"summary":"List mailboxes","tags":["Mailboxes"],"description":"Mailboxes this token can use. Scope: mail.read.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"mailboxes":{"type":"array","items":{"$ref":"#/components/schemas/Mailbox"}}},"required":["mailboxes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/folders":{"get":{"summary":"List folders","tags":["Mailboxes"],"description":"Folders with message and unread counts. Scope: mail.read.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"$ref":"#/components/schemas/Folder"}}},"required":["folders"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/usage":{"get":{"summary":"Sending limits","tags":["Mailboxes"],"description":"How much this mailbox has sent today and this hour, against its limits. Scope: mail.read.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/messages":{"get":{"summary":"List or search messages","tags":["Messages"],"description":"Newest first. `q` takes words plus `from:` `to:` `subject:` `has:attachment` `is:unread` `is:read` `is:starred` `before:YYYY-MM-DD` `after:YYYY-MM-DD`. Use `folder=@starred` for starred mail from every folder except Trash and Junk (each message keeps its real `folder`). Scope: mail.read.","parameters":[{"schema":{"default":"INBOX","type":"string"},"in":"query","name":"folder","required":false,"description":"Folder path, from List folders. Defaults to INBOX."},{"schema":{"type":"string","maxLength":500},"in":"query","name":"q","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"page_size","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageList"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/messages/{uid}":{"get":{"summary":"Get a message","tags":["Messages"],"description":"The full message. Remote images stay neutralised in `html`. Scope: mail.read.","parameters":[{"schema":{"default":"INBOX","type":"string"},"in":"query","name":"folder","required":false,"description":"Folder path, from List folders. Defaults to INBOX."},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"path","name":"uid","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Mark read or starred","tags":["Messages"],"description":"Scope: mail.organize.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read":{"type":"boolean"},"starred":{"type":"boolean"}}}}}},"parameters":[{"schema":{"default":"INBOX","type":"string"},"in":"query","name":"folder","required":false,"description":"Folder path, from List folders. Defaults to INBOX."},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"path","name":"uid","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/messages/{uid}/raw":{"get":{"summary":"Download the original (.eml)","tags":["Messages"],"description":"The message exactly as stored, as `message/rfc822`. Scope: mail.read.","parameters":[{"schema":{"default":"INBOX","type":"string"},"in":"query","name":"folder","required":false,"description":"Folder path, from List folders. Defaults to INBOX."},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"path","name":"uid","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response"}}}},"/mailboxes/{mailbox_id}/messages/{uid}/attachments/{index}":{"get":{"summary":"Download an attachment","tags":["Messages"],"description":"Binary content, with Content-Type and filename. `index` comes from Get a message. Scope: mail.read.","parameters":[{"schema":{"default":"INBOX","type":"string"},"in":"query","name":"folder","required":false,"description":"Folder path, from List folders. Defaults to INBOX."},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"path","name":"uid","required":true},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"index","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response"}}}},"/mailboxes/{mailbox_id}/messages/{uid}/move":{"post":{"summary":"Move a message","tags":["Messages"],"description":"To inbox, archive, junk or trash, or `restore`: back where it belongs (a draft to Drafts, mail this mailbox sent to Sent, anything else to Inbox; use it to take mail out of Trash). Nothing in the API deletes mail permanently. Returns the new folder and UID. Scope: mail.organize.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","enum":["inbox","archive","junk","trash","restore"]}},"required":["to"]}}}},"parameters":[{"schema":{"default":"INBOX","type":"string"},"in":"query","name":"folder","required":false,"description":"Folder path, from List folders. Defaults to INBOX."},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"path","name":"uid","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"string"},"uid":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["folder","uid"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/attachments":{"post":{"summary":"Upload an attachment","tags":["Sending"],"description":"Uploads one file to attach to a send, draft or reply (pass the returned `id` in `attachment_ids`). Send it as `multipart/form-data` with one `file` field (any size up to the plan’s message limit), or as JSON with base64 `data`. Unused uploads are removed after 48 hours. Scope: mail.draft or mail.send.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/drafts":{"post":{"summary":"Create a draft","tags":["Sending"],"description":"Saves a draft in Drafts for the owner to review and send. Scope: mail.draft.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeInput"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/send":{"post":{"summary":"Send an email","tags":["Sending"],"description":"Queues the message, or holds it for the owner’s approval if the token asks first (the default). Add `send_at` to send it later. Send an `Idempotency-Key` header so a retried request never sends twice. Plan limits apply. Scope: mail.send.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendBodyInput"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"string","maxLength":200},"in":"header","name":"idempotency-key","required":false}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendResult"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/messages/{uid}/reply":{"post":{"summary":"Reply to a message","tags":["Sending"],"description":"Replies in the same thread with the right subject and headers. `draft_only` saves a draft (scope mail.draft); otherwise it sends (scope mail.send, approval rules apply), later if you give `send_at`. Accepts `Idempotency-Key`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyBodyInput"}}}},"parameters":[{"schema":{"default":"INBOX","type":"string"},"in":"query","name":"folder","required":false,"description":"Folder path, from List folders. Defaults to INBOX."},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"path","name":"uid","required":true},{"schema":{"type":"string","maxLength":200},"in":"header","name":"idempotency-key","required":false}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendResult"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/scheduled":{"get":{"summary":"List scheduled sends","tags":["Sending"],"description":"Messages waiting for their `send_at`, soonest first. Scheduled from the app, the API or MCP. Scope: mail.read.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"scheduled":{"type":"array","items":{"$ref":"#/components/schemas/Scheduled"}}},"required":["scheduled"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mailboxes/{mailbox_id}/scheduled/{send_id}":{"delete":{"summary":"Cancel a scheduled send","tags":["Sending"],"description":"Stops it going out, gives the count back to today’s sending limit and saves the message in Drafts so nothing is lost. Scope: mail.send.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"mailbox_id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"send_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"cancelled":{"type":"boolean","enum":[true]},"draft":{"$ref":"#/components/schemas/Draft"}},"required":["cancelled","draft"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/approvals/{approval_id}":{"get":{"summary":"Check an approval","tags":["Sending"],"description":"Status of a send that waits for the owner. Scope: mail.send.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"approval_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/domains":{"get":{"summary":"List domains","tags":["Domains"],"description":"Your own domains with their DNS status. Scope: domains.read.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}}},"required":["domains"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/templates":{"get":{"summary":"List templates","tags":["Templates"],"description":"Your saved templates, by name. Use `subject` and `text` (or `html`) as the starting point of a draft or send. Scope: mail.read.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}},"required":["templates"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a template","tags":["Templates"],"description":"Up to 100 per account. Scope: mail.draft.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"subject":{"default":"","type":"string","maxLength":998},"html":{"type":"string","minLength":1,"maxLength":100000,"description":"Scripts, styles and unknown tags are removed."}},"required":["name","html"]}}}},"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/templates/{template_id}":{"get":{"summary":"Get a template","tags":["Templates"],"description":"Scope: mail.read.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"template_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Update a template","tags":["Templates"],"description":"Change any of name, subject and html. Scope: mail.draft.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePatchInput"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"template_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Delete a template","tags":["Templates"],"description":"Scope: mail.draft.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"template_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks":{"get":{"summary":"List webhooks","tags":["Webhooks"],"description":"Scope: webhooks.manage.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}},"required":["webhooks"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a webhook","tags":["Webhooks"],"description":"Returns the signing secret once. Plan limits apply (none on Free). Scope: webhooks.manage.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000},"description":{"default":null,"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["message.received","message.sent","approval.requested","domain.verified","domain.degraded","agent.run.completed","*"]}},"mailbox_ids":{"default":[],"description":"Only these mailboxes’ mail events; each must be one this token can use. Empty = all of the token’s mailboxes.","maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["url","events"]}}}},"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"description":{"type":["string","null"]},"events":{"type":"array","items":{"type":"string"}},"mailbox_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"active":{"type":"boolean"},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_success_at":{"type":["string","null"]},"created_at":{"type":"string"},"secret":{"type":"string"}},"required":["id","url","description","events","mailbox_ids","active","consecutive_failures","last_success_at","created_at","secret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhook_id}":{"patch":{"summary":"Update a webhook","tags":["Webhooks"],"description":"Change the URL, events or mailboxes, or turn it back on after failures (`active: true` resets the failure count). Scope: webhooks.manage.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000},"description":{"default":null,"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["message.received","message.sent","approval.requested","domain.verified","domain.degraded","agent.run.completed","*"]}},"mailbox_ids":{"default":[],"description":"Only these mailboxes’ mail events; each must be one this token can use. Empty = all of the token’s mailboxes.","maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"active":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"webhook_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Delete a webhook","tags":["Webhooks"],"description":"Scope: webhooks.manage.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"webhook_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhook_id}/rotate-secret":{"post":{"summary":"Rotate the signing secret","tags":["Webhooks"],"description":"The old secret stops working immediately. Scope: webhooks.manage.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"webhook_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string"}},"required":["secret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhook_id}/test":{"post":{"summary":"Send a test event","tags":["Webhooks"],"description":"Delivers a `ping` event to this webhook only. Scope: webhooks.manage.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"webhook_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"delivery_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["delivery_id"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhook_id}/deliveries":{"get":{"summary":"Recent deliveries","tags":["Webhooks"],"description":"The last 50 deliveries with status and errors. Scope: webhooks.manage.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"webhook_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}}},"required":["deliveries"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhook_id}/deliveries/{delivery_id}/redeliver":{"post":{"summary":"Redeliver","tags":["Webhooks"],"description":"Sends the same event again (same event id, so you can de-duplicate). Scope: webhooks.manage.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"webhook_id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"delivery_id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"delivery_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["delivery_id"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"servers":[{"url":"https://dropline.cleforyx.com/api/v1"}],"tags":[{"name":"Account","description":"The token and account behind a request."},{"name":"Mailboxes","description":"Mailboxes, folders and sending limits."},{"name":"Messages","description":"List, search, read and organise mail."},{"name":"Sending","description":"Drafts, sending, replies and approvals."},{"name":"Domains","description":"Your own domains and their DNS status."},{"name":"Webhooks","description":"Get an HTTPS POST when things happen."}]}