{"openapi":"3.1.0","info":{"title":"CarlyEmail","description":"Programmatic email inboxes for AI agents.","version":"0.1.0"},"servers":[{"url":"https://api.carlyemail.com"}],"paths":{"/v0/agent/sign-up":{"post":{"tags":["agent"],"summary":"Sign Up","operationId":"agent_sign_up","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/v0/agent/sign-in":{"post":{"tags":["agent"],"summary":"Sign In","description":"Email a code without revealing whether the address has an account.","operationId":"agent_sign_in","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSigninRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSigninResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/v0/agent/sign-in/verify":{"post":{"tags":["agent"],"summary":"Verify Sign In","description":"Prove control of the owner mailbox before issuing an existing account key.","operationId":"agent_verify_sign_in","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSigninVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSigninVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/v0/agent/verify":{"post":{"tags":["agent"],"summary":"Verify","operationId":"agent_verify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/auth/me":{"get":{"tags":["auth"],"summary":"Whoami","operationId":"auth_whoami","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Identity"}}}}}}},"/v0/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","description":"Start an upgrade. Returns a hosted Stripe URL to send the customer to.","operationId":"billing_create_checkout","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Billing Create Checkout"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/billing/portal":{"post":{"tags":["billing"],"summary":"Create Portal","description":"A link to Stripe's billing portal \u2014 invoices, card changes, cancellation.","operationId":"billing_create_portal","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Billing Create Portal"}}}}}}},"/v0/billing":{"get":{"tags":["billing"],"summary":"Current Billing","description":"What this organization is on, without a round trip to Stripe.\n\nReads our own record deliberately. The plan we enforce is the plan we should\nreport; asking Stripe would risk showing a customer a tier their caps do not\nmatch.","operationId":"billing_current_billing","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Billing Current Billing"}}}}}}},"/v0/inboxes":{"get":{"tags":["inboxes"],"summary":"List Inboxes","operationId":"inboxes_list_inboxes","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInboxesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inboxes"],"summary":"Create Inbox","operationId":"inboxes_create_inbox","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInboxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}":{"get":{"tags":["inboxes"],"summary":"Get Inbox","operationId":"inboxes_get_inbox","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["inboxes"],"summary":"Update Inbox","operationId":"inboxes_update_inbox","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInboxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inboxes"],"summary":"Delete Inbox","operationId":"inboxes_delete_inbox","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages":{"get":{"tags":["messages"],"summary":"List Messages","operationId":"messages_list_messages","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Labels"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}},{"name":"include_spam","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Spam"}},{"name":"include_blocked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Blocked"}},{"name":"include_unauthenticated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unauthenticated"}},{"name":"include_trash","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Trash"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/search":{"get":{"tags":["messages"],"summary":"Search Messages","description":"Substring search for v0.\n\nDeliberately not full-text yet: Postgres FTS and the semantic index the\nincumbent ships are a different project, and shipping a wrong-but-fast\nranking would be harder to walk back than adding ranking later.","operationId":"messages_search_messages","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/send":{"post":{"tags":["messages"],"summary":"Send","operationId":"messages_send","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/{message_id}/reply":{"post":{"tags":["messages"],"summary":"Reply","operationId":"messages_reply","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/batch-get":{"post":{"tags":["messages"],"summary":"Batch Get","description":"Fetch many messages in one call.\n\nUnknown ids are skipped rather than raising: an agent batching a list it\nbuilt earlier should not lose the whole read because one message was\ndeleted meanwhile.","operationId":"messages_batch_get","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchGetMessagesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchGetMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/batch-update":{"post":{"tags":["messages"],"summary":"Batch Update","operationId":"messages_batch_update","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchUpdateMessagesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchUpdateMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/{message_id}/reply-all":{"post":{"tags":["messages"],"summary":"Reply All","description":"Reply to everyone on the thread except ourselves.\n\nSelf-exclusion is not cosmetic: without it the inbox receives its own reply,\nwhich for an auto-replying agent is a loop.","operationId":"messages_reply_all","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyAllMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/{message_id}/forward":{"post":{"tags":["messages"],"summary":"Forward","description":"Forward a message.\n\nA forward starts its own thread \u2014 it is a new conversation with new people,\nnot a continuation of the original \u2014 so no `in_reply_to` is set.","operationId":"messages_forward","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/{message_id}":{"get":{"tags":["messages"],"summary":"Get Message","operationId":"messages_get_message","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["messages"],"summary":"Update Message","operationId":"messages_update_message","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["messages"],"summary":"Delete Message","operationId":"messages_delete_message","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/{message_id}/raw":{"get":{"tags":["messages"],"summary":"Get Raw","operationId":"messages_get_raw","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/messages/{message_id}/attachments/{attachment_id}":{"get":{"tags":["messages"],"summary":"Get Attachment","operationId":"messages_get_attachment","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/threads":{"get":{"tags":["threads"],"summary":"List Threads","operationId":"threads_list_threads","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Labels"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}},{"name":"senders","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Senders"}},{"name":"recipients","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Recipients"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListThreadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/threads/search":{"get":{"tags":["threads"],"summary":"Search Threads","operationId":"threads_search_threads","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListThreadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/threads/{thread_id}/attachments/{attachment_id}":{"get":{"tags":["threads"],"summary":"Get Thread Attachment","operationId":"threads_get_thread_attachment","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/threads/{thread_id}":{"get":{"tags":["threads"],"summary":"Get Thread","description":"Returns the thread with its messages inlined \u2014 one call is what an agent\nneeds to reason over a conversation, and the alternative is an N+1 the caller\nwould have to write every time.","operationId":"threads_get_thread","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["threads"],"summary":"Update Thread","operationId":"threads_update_thread","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["threads"],"summary":"Delete Thread","operationId":"threads_delete_thread","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/drafts":{"get":{"tags":["drafts"],"summary":"List Drafts","operationId":"drafts_list_drafts","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Labels"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDraftsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["drafts"],"summary":"Create Draft","operationId":"drafts_create_draft","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/drafts/{draft_id}":{"get":{"tags":["drafts"],"summary":"Get Draft","operationId":"drafts_get_draft","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["drafts"],"summary":"Update Draft","operationId":"drafts_update_draft","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["drafts"],"summary":"Delete Draft","operationId":"drafts_delete_draft","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/drafts/{draft_id}/send":{"post":{"tags":["drafts"],"summary":"Send Draft","operationId":"drafts_send_draft","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/drafts/{draft_id}/attachments/{attachment_id}":{"get":{"tags":["drafts"],"summary":"Get Draft Attachment","operationId":"drafts_get_draft_attachment","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/drafts":{"get":{"tags":["drafts"],"summary":"List All Drafts","operationId":"drafts_list_all_drafts","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Labels"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDraftsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/drafts/{draft_id}":{"get":{"tags":["drafts"],"summary":"Get Any Draft","operationId":"drafts_get_any_draft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/drafts/{draft_id}/attachments/{attachment_id}":{"get":{"tags":["drafts"],"summary":"Get Any Draft Attachment","operationId":"drafts_get_any_draft_attachment","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/lists/{direction}/{type}":{"get":{"tags":["lists"],"summary":"List Inbox Entries","operationId":"lists_list_inbox_entries","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListListEntriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["lists"],"summary":"Create Inbox Entry","operationId":"lists_create_inbox_entry","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateListEntryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/lists/{direction}/{type}/{entry}":{"get":{"tags":["lists"],"summary":"Get Inbox Entry","operationId":"lists_get_inbox_entry","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"entry","in":"path","required":true,"schema":{"type":"string","title":"Entry"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lists"],"summary":"Delete Inbox Entry","operationId":"lists_delete_inbox_entry","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"entry","in":"path","required":true,"schema":{"type":"string","title":"Entry"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/lists/{direction}/{type}":{"get":{"tags":["lists"],"summary":"List Org Entries","operationId":"lists_list_org_entries","parameters":[{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListListEntriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["lists"],"summary":"Create Org Entry","operationId":"lists_create_org_entry","parameters":[{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateListEntryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/lists/{direction}/{type}/{entry}":{"get":{"tags":["lists"],"summary":"Get Org Entry","operationId":"lists_get_org_entry","parameters":[{"name":"entry","in":"path","required":true,"schema":{"type":"string","title":"Entry"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lists"],"summary":"Delete Org Entry","operationId":"lists_delete_org_entry","parameters":[{"name":"entry","in":"path","required":true,"schema":{"type":"string","title":"Entry"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/domains":{"get":{"tags":["domains"],"summary":"List Domains","operationId":"domains_list_domains","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDomainsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["domains"],"summary":"Create Domain","operationId":"domains_create_domain","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/domains/{domain_id}":{"get":{"tags":["domains"],"summary":"Get Domain","operationId":"domains_get_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["domains"],"summary":"Update Domain","operationId":"domains_update_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Delete Domain","operationId":"domains_delete_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/domains/{domain_id}/verify":{"post":{"tags":["domains"],"summary":"Verify Domain","description":"Re-read SES and refresh each record's status.\n\nVerification is pull, not push: DNS propagation means the customer decides\nwhen to ask, and SES is the source of truth either way.","operationId":"domains_verify_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/domains/{domain_id}/zone-file":{"get":{"tags":["domains"],"summary":"Get Zone File","operationId":"domains_get_zone_file","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/api-keys":{"get":{"tags":["api-keys"],"summary":"List Api Keys","operationId":"api_keys_list_api_keys","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api-keys"],"summary":"Create Api Key","operationId":"api_keys_create_api_key","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/api-keys/{api_key_id}":{"delete":{"tags":["api-keys"],"summary":"Delete Api Key","operationId":"api_keys_delete_api_key","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/api-keys":{"get":{"tags":["api-keys"],"summary":"List Inbox Api Keys","operationId":"api_keys_list_inbox_api_keys","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api-keys"],"summary":"Create Inbox Api Key","operationId":"api_keys_create_inbox_api_key","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/api-keys/{api_key_id}":{"delete":{"tags":["api-keys"],"summary":"Delete Inbox Api Key","operationId":"api_keys_delete_inbox_api_key","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/threads":{"get":{"tags":["threads"],"summary":"List Threads","operationId":"threads_list_org_threads","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Labels"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}},{"name":"include_spam","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Spam"}},{"name":"include_blocked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Blocked"}},{"name":"include_unauthenticated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unauthenticated"}},{"name":"include_trash","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Trash"}},{"name":"senders","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Senders"}},{"name":"recipients","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Recipients"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListThreadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/threads/search":{"get":{"tags":["threads"],"summary":"Search Threads","operationId":"threads_search_org_threads","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListThreadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/threads/{thread_id}":{"get":{"tags":["threads"],"summary":"Get Thread","operationId":"threads_get_org_thread","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["threads"],"summary":"Update Thread","operationId":"threads_update_org_thread","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["threads"],"summary":"Delete Thread","operationId":"threads_delete_org_thread","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/threads/{thread_id}/attachments/{attachment_id}":{"get":{"tags":["threads"],"summary":"Get Attachment","description":"Attachments are addressable by thread as well as by message \u2014 a caller\nreading a conversation has the thread id in hand, not the message id.","operationId":"threads_get_attachment","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/metrics/events":{"get":{"tags":["metrics"],"summary":"Org Events","operationId":"metrics_org_events","parameters":[{"name":"event_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Event Types"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Org Events"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/metrics/usage":{"get":{"tags":["metrics"],"summary":"Org Usage","operationId":"metrics_org_usage","parameters":[{"name":"usage_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Usage Types"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Org Usage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/metrics/events":{"get":{"tags":["metrics"],"summary":"Inbox Events","operationId":"metrics_inbox_events","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"event_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Event Types"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Inbox Events"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/metrics/usage":{"get":{"tags":["metrics"],"summary":"Inbox Usage","operationId":"metrics_inbox_usage","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"usage_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Usage Types"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Inbox Usage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods":{"get":{"tags":["pods"],"summary":"List Pods","operationId":"pods_list_pods","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPodsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pods"],"summary":"Create Pod","operationId":"pods_create_pod","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePodRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}":{"get":{"tags":["pods"],"summary":"Get Pod","operationId":"pods_get_pod","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pods"],"summary":"Delete Pod","operationId":"pods_delete_pod","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/organizations":{"get":{"tags":["organizations"],"summary":"Get Organization","description":"Counts and limits for the calling organization.\n\nLimits come from the resolved plan rather than a stored column, so an\nupgrade takes effect without a backfill.\n\nEvery capped resource is reported, not just the two that used to be \u2014 a\ncustomer who cannot see they are one domain from the cap only finds out by\nbeing refused, which is the worst moment to learn what plan they are on.","operationId":"organizations_get_organization","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationOut"}}}}}}},"/v0/inboxes/{inbox_id}/events":{"get":{"tags":["inbox-events"],"summary":"List Inbox Events","description":"Label add/remove history for one inbox.\n\nDistinct from webhook events: this answers \"who touched this message, and\nwhen\", which is how a second agent avoids redoing work a first one finished.","operationId":"inbox_events_list_inbox_events","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInboxEventsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/inboxes":{"get":{"tags":["pods"],"summary":"List Inboxes","operationId":"pods_list_inboxes","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInboxesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pods"],"summary":"Create Inbox","operationId":"pods_create_inbox","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInboxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/inboxes/{inbox_id}":{"get":{"tags":["pods"],"summary":"Get Inbox","operationId":"pods_get_inbox","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pods"],"summary":"Update Inbox","operationId":"pods_update_inbox","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInboxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pods"],"summary":"Delete Inbox","operationId":"pods_delete_inbox","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/threads":{"get":{"tags":["pods"],"summary":"List Threads","operationId":"pods_list_threads","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Labels"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}},{"name":"include_spam","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Spam"}},{"name":"include_blocked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Blocked"}},{"name":"include_unauthenticated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unauthenticated"}},{"name":"include_trash","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Trash"}},{"name":"senders","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Senders"}},{"name":"recipients","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Recipients"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListThreadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/threads/search":{"get":{"tags":["pods"],"summary":"Search Threads","operationId":"pods_search_threads","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListThreadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/threads/{thread_id}":{"get":{"tags":["pods"],"summary":"Get Thread","operationId":"pods_get_thread","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pods"],"summary":"Update Thread","operationId":"pods_update_thread","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pods"],"summary":"Delete Thread","operationId":"pods_delete_thread","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/threads/{thread_id}/attachments/{attachment_id}":{"get":{"tags":["pods"],"summary":"Get Thread Attachment","operationId":"pods_get_thread_attachment","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/drafts":{"get":{"tags":["pods"],"summary":"List Drafts","operationId":"pods_list_drafts","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Labels"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDraftsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/drafts/{draft_id}":{"get":{"tags":["pods"],"summary":"Get Draft","operationId":"pods_get_draft","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/drafts/{draft_id}/attachments/{attachment_id}":{"get":{"tags":["pods"],"summary":"Get Draft Attachment","operationId":"pods_get_draft_attachment","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/lists/{direction}/{type}":{"get":{"tags":["pods"],"summary":"List Entries","operationId":"pods_list_entries","parameters":[{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListListEntriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pods"],"summary":"Create Entry","operationId":"pods_create_entry","parameters":[{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateListEntryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/lists/{direction}/{type}/{entry}":{"get":{"tags":["pods"],"summary":"Get Entry","operationId":"pods_get_entry","parameters":[{"name":"entry","in":"path","required":true,"schema":{"type":"string","title":"Entry"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pods"],"summary":"Delete Entry","operationId":"pods_delete_entry","parameters":[{"name":"entry","in":"path","required":true,"schema":{"type":"string","title":"Entry"}},{"name":"direction","in":"path","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/domains":{"get":{"tags":["pods"],"summary":"List Domains","operationId":"pods_list_domains","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDomainsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pods"],"summary":"Create Domain","operationId":"pods_create_domain","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/domains/{domain_id}":{"get":{"tags":["pods"],"summary":"Get Domain","operationId":"pods_get_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pods"],"summary":"Update Domain","operationId":"pods_update_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pods"],"summary":"Delete Domain","operationId":"pods_delete_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/domains/{domain_id}/verify":{"post":{"tags":["pods"],"summary":"Verify Domain","operationId":"pods_verify_domain","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/domains/{domain_id}/zone-file":{"get":{"tags":["pods"],"summary":"Get Zone File","operationId":"pods_get_zone_file","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/webhooks":{"get":{"tags":["pods"],"summary":"List Webhooks","operationId":"pods_list_webhooks","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pods"],"summary":"Create Webhook","operationId":"pods_create_webhook","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/webhooks/{webhook_id}":{"get":{"tags":["pods"],"summary":"Get Webhook","operationId":"pods_get_webhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pods"],"summary":"Update Webhook","operationId":"pods_update_webhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pods"],"summary":"Delete Webhook","operationId":"pods_delete_webhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/api-keys":{"get":{"tags":["pods"],"summary":"List Api Keys","operationId":"pods_list_api_keys","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pods"],"summary":"Create Api Key","operationId":"pods_create_api_key","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/api-keys/{api_key_id}":{"delete":{"tags":["pods"],"summary":"Delete Api Key","operationId":"pods_delete_api_key","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}},{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/metrics/events":{"get":{"tags":["pods"],"summary":"Metric Events","operationId":"pods_metric_events","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"event_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Event Types"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pods Metric Events"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/pods/{pod_id}/metrics/usage":{"get":{"tags":["pods"],"summary":"Metric Usage","operationId":"pods_metric_usage","parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"usage_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Usage Types"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pods Metric Usage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","operationId":"webhooks_list_webhooks","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["webhooks"],"summary":"Create Webhook","operationId":"webhooks_create_webhook","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/webhooks/{webhook_id}":{"get":{"tags":["webhooks"],"summary":"Get Webhook","operationId":"webhooks_get_webhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["webhooks"],"summary":"Update Webhook","operationId":"webhooks_update_webhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Delete Webhook","operationId":"webhooks_delete_webhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/webhooks":{"get":{"tags":["webhooks"],"summary":"List Inbox Webhooks","operationId":"webhooks_list_inbox_webhooks","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Token"}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["webhooks"],"summary":"Create Inbox Webhook","operationId":"webhooks_create_inbox_webhook","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInboxWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/webhooks/{webhook_id}":{"get":{"tags":["webhooks"],"summary":"Get Inbox Webhook","operationId":"webhooks_get_inbox_webhook","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["webhooks"],"summary":"Update Inbox Webhook","operationId":"webhooks_update_inbox_webhook","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInboxWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Delete Inbox Webhook","operationId":"webhooks_delete_inbox_webhook","parameters":[{"name":"inbox_id","in":"path","required":true,"schema":{"type":"string","title":"Inbox Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp":{"get":{"tags":["mcp"],"summary":"Mcp Method Not Allowed","description":"GET and DELETE are gone.\n\n2025-03-26 through 2025-11-25 used GET for a standalone SSE stream and\nDELETE to end a session; 2026-07-28 has neither. The spec says answer 405,\nand a client probing for the old transport reads that as \"not here\" and\nfalls back correctly.","operationId":"mcp_get_not_allowed","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]},"post":{"tags":["mcp"],"summary":"Mcp Endpoint","operationId":"mcp_mcp_endpoint","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]},"delete":{"tags":["mcp"],"summary":"Mcp Method Not Allowed","description":"GET and DELETE are gone.\n\n2025-03-26 through 2025-11-25 used GET for a standalone SSE stream and\nDELETE to end a session; 2026-07-28 has neither. The spec says answer 405,\nand a client probing for the old transport reads that as \"not here\" and\nfalls back correctly.","operationId":"mcp_delete_not_allowed","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/internal/ses/inbound":{"post":{"tags":["internal"],"summary":"Ses Inbound","operationId":"internal_ses_inbound","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/internal/ses/events":{"post":{"tags":["internal"],"summary":"Ses Events","description":"Delivery, bounce, and complaint feedback from the SES configuration set.\n\nComplaints are the signal that decides whether we still have a business in\nsix months, so they are recorded per-organization rather than aggregated.","operationId":"internal_ses_events","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}}},"components":{"schemas":{"AgentSigninRequest":{"properties":{"human_email":{"type":"string","title":"Human Email"}},"type":"object","required":["human_email"],"title":"AgentSigninRequest"},"AgentSigninResponse":{"properties":{"accepted":{"type":"boolean","title":"Accepted","default":true}},"type":"object","title":"AgentSigninResponse"},"AgentSigninVerifyRequest":{"properties":{"human_email":{"type":"string","title":"Human Email"},"otp_code":{"type":"string","title":"Otp Code"}},"type":"object","required":["human_email","otp_code"],"title":"AgentSigninVerifyRequest"},"AgentSigninVerifyResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["organization_id","api_key"],"title":"AgentSigninVerifyResponse"},"AgentSignupRequest":{"properties":{"human_email":{"type":"string","title":"Human Email"},"username":{"type":"string","title":"Username"},"source":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Source"},"referrer":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Referrer"}},"type":"object","required":["human_email","username"],"title":"AgentSignupRequest"},"AgentSignupResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"inbox_id":{"type":"string","title":"Inbox Id"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["organization_id","inbox_id","api_key"],"title":"AgentSignupResponse"},"AgentVerifyRequest":{"properties":{"otp_code":{"type":"string","title":"Otp Code"}},"type":"object","required":["otp_code"],"title":"AgentVerifyRequest"},"AgentVerifyResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"verified":{"type":"boolean","title":"Verified"}},"type":"object","required":["organization_id","verified"],"title":"AgentVerifyResponse"},"ApiKeyOut":{"properties":{"api_key_id":{"type":"string","title":"Api Key Id"},"prefix":{"type":"string","title":"Prefix"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"pod_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pod Id"},"inbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Id"},"used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Used At"},"permissions":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Permissions"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["api_key_id","prefix","created_at"],"title":"ApiKeyOut"},"AttachmentOut":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"size":{"type":"integer","title":"Size","default":0},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"content_disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Disposition"},"content_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"}},"type":"object","required":["attachment_id"],"title":"AttachmentOut"},"AttachmentResponse":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"size":{"type":"integer","title":"Size","default":0},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"content_disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Disposition"},"content_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"},"download_url":{"type":"string","title":"Download Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["attachment_id","download_url","expires_at"],"title":"AttachmentResponse","description":"Attachment bytes are served as a short-lived presigned URL, never inline."},"BatchGetMessagesRequest":{"properties":{"message_ids":{"items":{"type":"string"},"type":"array","title":"Message Ids"}},"type":"object","required":["message_ids"],"title":"BatchGetMessagesRequest"},"BatchGetMessagesResponse":{"properties":{"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"count":{"type":"integer","title":"Count"},"messages":{"items":{"$ref":"#/components/schemas/MessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["count","messages"],"title":"BatchGetMessagesResponse"},"BatchUpdateMessagesRequest":{"properties":{"message_ids":{"items":{"type":"string"},"type":"array","title":"Message Ids"},"add_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add Labels"},"remove_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Labels"}},"type":"object","required":["message_ids"],"title":"BatchUpdateMessagesRequest"},"BatchUpdateMessagesResponse":{"properties":{"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"count":{"type":"integer","title":"Count"},"updates":{"items":{"$ref":"#/components/schemas/UpdateMessageResponse"},"type":"array","title":"Updates"}},"type":"object","required":["count","updates"],"title":"BatchUpdateMessagesResponse"},"CreateApiKeyRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"permissions":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Permissions"}},"type":"object","title":"CreateApiKeyRequest"},"CreateApiKeyResponse":{"properties":{"api_key_id":{"type":"string","title":"Api Key Id"},"api_key":{"type":"string","title":"Api Key"},"prefix":{"type":"string","title":"Prefix"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"pod_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pod Id"},"inbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Id"},"permissions":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Permissions"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["api_key_id","api_key","prefix","created_at"],"title":"CreateApiKeyResponse","description":"The only response that ever contains the key itself."},"CreateDomainRequest":{"properties":{"domain":{"type":"string","title":"Domain"},"feedback_enabled":{"type":"boolean","title":"Feedback Enabled","default":true},"subdomains_enabled":{"type":"boolean","title":"Subdomains Enabled","description":"Allow inboxes on child domains. Adds a required wildcard MX record to records and a subdomain condition to inbound routing.","default":false},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},"type":"object","required":["domain"],"title":"CreateDomainRequest"},"CreateDraftRequest":{"properties":{"to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"To"},"cc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Bcc"},"reply_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Reply To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Labels"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SendAttachment"},"type":"array"},{"type":"null"}],"title":"Attachments"},"in_reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Reply To"},"forward_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forward Of"},"reply_all":{"type":"boolean","title":"Reply All","default":false},"send_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Send At"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},"type":"object","title":"CreateDraftRequest"},"CreateInboxRequest":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain","description":"A verified domain, or a child of a verified domain whose subdomains_enabled setting is true."},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"CreateInboxRequest"},"CreateInboxWebhookRequest":{"properties":{"url":{"type":"string","title":"Url"},"event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Event Types"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},"type":"object","required":["url"],"title":"CreateInboxWebhookRequest"},"CreateListEntryRequest":{"properties":{"entry":{"type":"string","title":"Entry"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["entry"],"title":"CreateListEntryRequest"},"CreatePodRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},"type":"object","title":"CreatePodRequest"},"CreateWebhookRequest":{"properties":{"url":{"type":"string","title":"Url"},"event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Event Types"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"inbox_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Inbox Ids"},"pod_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Pod Ids"}},"type":"object","required":["url"],"title":"CreateWebhookRequest"},"DomainOut":{"properties":{"pod_id":{"type":"string","title":"Pod Id"},"domain_id":{"type":"string","title":"Domain Id"},"domain":{"type":"string","title":"Domain"},"status":{"type":"string","enum":["NOT_STARTED","PENDING","INVALID","FAILED","VERIFYING","VERIFIED"],"title":"Status"},"feedback_enabled":{"type":"boolean","title":"Feedback Enabled","default":true},"subdomains_enabled":{"type":"boolean","title":"Subdomains Enabled","description":"Whether verified child domains may back inboxes.","default":false},"records":{"items":{"$ref":"#/components/schemas/VerificationRecord"},"type":"array","title":"Records"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["pod_id","domain_id","domain","status","updated_at","created_at"],"title":"DomainOut"},"DraftOut":{"properties":{"inbox_id":{"type":"string","title":"Inbox Id"},"draft_id":{"type":"string","title":"Draft Id"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"reply_to":{"items":{"type":"string"},"type":"array","title":"Reply To"},"to":{"items":{"type":"string"},"type":"array","title":"To"},"cc":{"items":{"type":"string"},"type":"array","title":"Cc"},"bcc":{"items":{"type":"string"},"type":"array","title":"Bcc"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"in_reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Reply To"},"forward_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forward Of"},"references":{"items":{"type":"string"},"type":"array","title":"References"},"send_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send Status"},"send_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Send At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["inbox_id","draft_id","updated_at","created_at"],"title":"DraftOut"},"ForwardMessageRequest":{"properties":{"to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"To"},"cc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Bcc"},"reply_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Reply To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Labels"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SendAttachment"},"type":"array"},{"type":"null"}],"title":"Attachments"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"type":"object","title":"ForwardMessageRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Identity":{"properties":{"scope_type":{"type":"string","title":"Scope Type"},"scope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Id"},"organization_id":{"type":"string","title":"Organization Id"},"pod_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pod Id"},"inbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Id"},"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"}},"type":"object","required":["scope_type","organization_id"],"title":"Identity"},"InboxEventOut":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"pod_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pod Id"},"inbox_id":{"type":"string","title":"Inbox Id"},"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","enum":["label.added","label.removed"],"title":"Event Type"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"event_at":{"type":"string","format":"date-time","title":"Event At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["organization_id","inbox_id","event_id","event_type","event_at","created_at"],"title":"InboxEventOut"},"InboxOut":{"properties":{"pod_id":{"type":"string","title":"Pod Id"},"inbox_id":{"type":"string","title":"Inbox Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["pod_id","inbox_id","email","updated_at","created_at"],"title":"InboxOut"},"ListApiKeysResponse":{"properties":{"count":{"type":"integer","title":"Count"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"api_keys":{"items":{"$ref":"#/components/schemas/ApiKeyOut"},"type":"array","title":"Api Keys"}},"type":"object","required":["count","api_keys"],"title":"ListApiKeysResponse"},"ListDomainsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"domains":{"items":{"$ref":"#/components/schemas/DomainOut"},"type":"array","title":"Domains"}},"type":"object","required":["count","domains"],"title":"ListDomainsResponse"},"ListDraftsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"drafts":{"items":{"$ref":"#/components/schemas/DraftOut"},"type":"array","title":"Drafts"}},"type":"object","required":["count","drafts"],"title":"ListDraftsResponse"},"ListEntryOut":{"properties":{"entry":{"type":"string","title":"Entry"},"organization_id":{"type":"string","title":"Organization Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"direction":{"type":"string","enum":["send","receive","reply"],"title":"Direction"},"list_type":{"type":"string","enum":["allow","block"],"title":"List Type"},"entry_type":{"type":"string","enum":["email","domain"],"title":"Entry Type"},"read_only":{"type":"boolean","title":"Read Only","default":false},"pod_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pod Id"},"inbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["entry","organization_id","direction","list_type","entry_type","created_at"],"title":"ListEntryOut"},"ListInboxEventsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"events":{"items":{"$ref":"#/components/schemas/InboxEventOut"},"type":"array","title":"Events"}},"type":"object","required":["count","events"],"title":"ListInboxEventsResponse"},"ListInboxesResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"inboxes":{"items":{"$ref":"#/components/schemas/InboxOut"},"type":"array","title":"Inboxes"}},"type":"object","required":["count","inboxes"],"title":"ListInboxesResponse"},"ListListEntriesResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"entries":{"items":{"$ref":"#/components/schemas/ListEntryOut"},"type":"array","title":"Entries"}},"type":"object","required":["count","entries"],"title":"ListListEntriesResponse"},"ListMessagesResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"messages":{"items":{"$ref":"#/components/schemas/MessageItem"},"type":"array","title":"Messages"}},"type":"object","required":["count","messages"],"title":"ListMessagesResponse"},"ListPodsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"pods":{"items":{"$ref":"#/components/schemas/PodOut"},"type":"array","title":"Pods"}},"type":"object","required":["count","pods"],"title":"ListPodsResponse"},"ListThreadsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"threads":{"items":{"$ref":"#/components/schemas/ThreadItem"},"type":"array","title":"Threads"}},"type":"object","required":["count","threads"],"title":"ListThreadsResponse"},"ListWebhooksResponse":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"webhooks":{"items":{"$ref":"#/components/schemas/WebhookOut"},"type":"array","title":"Webhooks"}},"type":"object","required":["count","webhooks"],"title":"ListWebhooksResponse"},"MessageItem":{"properties":{"inbox_id":{"type":"string","title":"Inbox Id"},"thread_id":{"type":"string","title":"Thread Id"},"message_id":{"type":"string","title":"Message Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"from":{"type":"string","title":"From"},"to":{"items":{"type":"string"},"type":"array","title":"To"},"cc":{"items":{"type":"string"},"type":"array","title":"Cc"},"bcc":{"items":{"type":"string"},"type":"array","title":"Bcc"},"reply_to":{"items":{"type":"string"},"type":"array","title":"Reply To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"size":{"type":"integer","title":"Size","default":0},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["inbox_id","thread_id","message_id","timestamp","from","updated_at","created_at"],"title":"MessageItem","description":"List projection \u2014 omits bodies so listing a large inbox stays cheap."},"MessageOut":{"properties":{"inbox_id":{"type":"string","title":"Inbox Id"},"thread_id":{"type":"string","title":"Thread Id"},"message_id":{"type":"string","title":"Message Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"from":{"type":"string","title":"From"},"to":{"items":{"type":"string"},"type":"array","title":"To"},"cc":{"items":{"type":"string"},"type":"array","title":"Cc"},"bcc":{"items":{"type":"string"},"type":"array","title":"Bcc"},"reply_to":{"items":{"type":"string"},"type":"array","title":"Reply To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"size":{"type":"integer","title":"Size","default":0},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"extracted_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extracted Text"},"extracted_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extracted Html"},"in_reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Reply To"},"references":{"items":{"type":"string"},"type":"array","title":"References"},"headers":{"additionalProperties":true,"type":"object","title":"Headers"}},"type":"object","required":["inbox_id","thread_id","message_id","timestamp","from","updated_at","created_at"],"title":"MessageOut"},"OrganizationOut":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"inbox_count":{"type":"integer","title":"Inbox Count"},"domain_count":{"type":"integer","title":"Domain Count"},"pod_count":{"type":"integer","title":"Pod Count","default":0},"webhook_count":{"type":"integer","title":"Webhook Count","default":0},"storage_bytes":{"type":"integer","title":"Storage Bytes","default":0},"inbox_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Inbox Limit"},"domain_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Domain Limit"},"pod_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pod Limit"},"webhook_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Webhook Limit"},"storage_limit_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Storage Limit Bytes"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"billing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Id"},"billing_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Type"},"billing_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Subscription Id"},"authentication_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authentication Id"},"authentication_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authentication Type"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["organization_id","inbox_count","domain_count","updated_at","created_at"],"title":"OrganizationOut"},"PodOut":{"properties":{"pod_id":{"type":"string","title":"Pod Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["pod_id","updated_at","created_at"],"title":"PodOut"},"RawMessageResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"size":{"type":"integer","title":"Size"},"download_url":{"type":"string","title":"Download Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["message_id","size","download_url","expires_at"],"title":"RawMessageResponse","description":"Raw RFC 822 source is handed back as a presigned URL rather than streamed\nthrough the API \u2014 a 25MB message should not occupy a worker."},"ReplyAllMessageRequest":{"properties":{"reply_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Reply To"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Labels"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SendAttachment"},"type":"array"},{"type":"null"}],"title":"Attachments"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"type":"object","title":"ReplyAllMessageRequest"},"ReplyMessageRequest":{"properties":{"to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"To"},"cc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Bcc"},"reply_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Reply To"},"reply_all":{"type":"boolean","title":"Reply All","default":false},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Labels"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SendAttachment"},"type":"array"},{"type":"null"}],"title":"Attachments"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"type":"object","title":"ReplyMessageRequest"},"SendAttachment":{"properties":{"filename":{"type":"string","title":"Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"content":{"type":"string","title":"Content"},"content_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"},"inline":{"type":"boolean","title":"Inline","default":false}},"type":"object","required":["filename","content"],"title":"SendAttachment"},"SendDraftRequest":{"properties":{"add_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add Labels"},"remove_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Labels"}},"type":"object","title":"SendDraftRequest"},"SendMessageRequest":{"properties":{"to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"To"},"cc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Bcc"},"reply_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Reply To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Labels"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SendAttachment"},"type":"array"},{"type":"null"}],"title":"Attachments"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"type":"object","title":"SendMessageRequest"},"SendMessageResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"thread_id":{"type":"string","title":"Thread Id"}},"type":"object","required":["message_id","thread_id"],"title":"SendMessageResponse"},"ThreadItem":{"properties":{"inbox_id":{"type":"string","title":"Inbox Id"},"thread_id":{"type":"string","title":"Thread Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"received_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received Timestamp"},"sent_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent Timestamp"},"senders":{"items":{"type":"string"},"type":"array","title":"Senders"},"recipients":{"items":{"type":"string"},"type":"array","title":"Recipients"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"last_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message Id"},"message_count":{"type":"integer","title":"Message Count","default":0},"size":{"type":"integer","title":"Size","default":0},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["inbox_id","thread_id","timestamp","updated_at","created_at"],"title":"ThreadItem"},"ThreadOut":{"properties":{"inbox_id":{"type":"string","title":"Inbox Id"},"thread_id":{"type":"string","title":"Thread Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"received_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received Timestamp"},"sent_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent Timestamp"},"senders":{"items":{"type":"string"},"type":"array","title":"Senders"},"recipients":{"items":{"type":"string"},"type":"array","title":"Recipients"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"last_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message Id"},"message_count":{"type":"integer","title":"Message Count","default":0},"size":{"type":"integer","title":"Size","default":0},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/MessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["inbox_id","thread_id","timestamp","updated_at","created_at"],"title":"ThreadOut"},"UpdateDomainRequest":{"properties":{"feedback_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Feedback Enabled"},"subdomains_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Subdomains Enabled","description":"Enable or disable inboxes and inbound routing on child domains."}},"type":"object","title":"UpdateDomainRequest"},"UpdateDraftRequest":{"properties":{"to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"To"},"cc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Bcc"},"reply_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Reply To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"add_attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SendAttachment"},"type":"array"},{"type":"null"}],"title":"Add Attachments"},"remove_attachments":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Attachments"},"add_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add Labels"},"remove_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Labels"},"send_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Send At"}},"type":"object","title":"UpdateDraftRequest"},"UpdateInboxRequest":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"UpdateInboxRequest"},"UpdateInboxWebhookRequest":{"properties":{"event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Event Types"}},"type":"object","title":"UpdateInboxWebhookRequest","description":"The inbox-scoped mount cannot retarget \u2014 that is what scoping means."},"UpdateMessageRequest":{"properties":{"add_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add Labels"},"remove_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Labels"}},"type":"object","title":"UpdateMessageRequest"},"UpdateMessageResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"}},"type":"object","required":["message_id","labels"],"title":"UpdateMessageResponse"},"UpdateThreadRequest":{"properties":{"add_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add Labels"},"remove_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Labels"}},"type":"object","title":"UpdateThreadRequest"},"UpdateThreadResponse":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"}},"type":"object","required":["thread_id","labels"],"title":"UpdateThreadResponse"},"UpdateWebhookRequest":{"properties":{"event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Event Types"},"add_inbox_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add Inbox Ids"},"remove_inbox_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Inbox Ids"},"add_pod_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add Pod Ids"},"remove_pod_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Pod Ids"}},"type":"object","title":"UpdateWebhookRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerificationRecord":{"properties":{"type":{"type":"string","enum":["TXT","CNAME","MX"],"title":"Type"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"status":{"type":"string","enum":["MISSING","INVALID","VALID"],"title":"Status"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"}},"type":"object","required":["type","name","value","status"],"title":"VerificationRecord"},"WebhookOut":{"properties":{"webhook_id":{"type":"string","title":"Webhook Id"},"url":{"type":"string","title":"Url"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"pod_ids":{"items":{"type":"string"},"type":"array","title":"Pod Ids"},"inbox_ids":{"items":{"type":"string"},"type":"array","title":"Inbox Ids"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"enabled":{"type":"boolean","title":"Enabled","default":true},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["webhook_id","url","updated_at","created_at"],"title":"WebhookOut"}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key from sign-up, sent as `Authorization: Bearer \u2026`."}}},"security":[{"bearer":[]}]}
