{"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 address before issuing a key for an organization it belongs to.\n\nTwo kinds of address arrive here. An owner's code is held on the\norganization they own, as it always was. Somebody who only ever joined\nother people's organizations has a code of their own. Either way, the code\nproves the address, and the key goes to whichever of its organizations was\nasked for \u2014 by default the one it owns, or else the one it used last.","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/sign-in/password":{"post":{"tags":["agent"],"summary":"Password Sign In","description":"Sign in with the password set at an earlier code sign-in.","operationId":"agent_password_sign_in","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPasswordSigninRequest"}}},"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/verification-code":{"post":{"tags":["agent"],"summary":"Request Verification Code","description":"Email the owner the code that lets this account send to anyone.\n\nThe REST twin of the request_verification_code tool. At most one code per\n10 minutes, so a retry loop cannot fill the owner's inbox.","operationId":"agent_request_verification_code","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVerificationCodeResponse"}}}}}}},"/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/auth/switch":{"post":{"tags":["auth"],"summary":"Switch Organization","description":"A key in another organization this person belongs to.\n\nThe person has already proved their address to get the key they are\ncalling with, so moving between their own organizations asks for nothing\nmore. A key made for an agent speaks for no person and cannot switch.","operationId":"auth_switch_organization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/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/feedback":{"post":{"tags":["feedback"],"summary":"Send Feedback","description":"Take a message and mail it to us, attributed to the organization that sent it.\n\nNo permission check. Every capability in this system is about reaching mail,\nand this reaches none \u2014 a read-only key held by an agent that has just failed\nat something is exactly the caller most worth hearing from, and requiring a\npermission it might not hold would silence it.","operationId":"feedback_send_feedback","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/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"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","description":"Delete even if the inbox is in use: it sent mail in the last 30 days, an API key scoped to it was used in the last 30 days, or it is in the system organization. Without it, those deletes are refused with 409 `inbox_in_use`.","default":false,"title":"Force"},"description":"Delete even if the inbox is in use: it sent mail in the last 30 days, an API key scoped to it was used in the last 30 days, or it is in the system organization. Without it, those deletes are refused with 409 `inbox_in_use`."}],"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","description":"List messages, newest first, without bodies.\n\nSent and received mail share the list; the `labels` on each item say which\nis which, and `labels=received` or `labels=sent` narrows to one direction.","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":"Search sender, recipients, subject and body.\n\nEvery word in `q` has to appear somewhere in the message, in any order and\nin any of those fields. Unranked: newest first. Ranking is a different\nproject, and shipping a wrong-but-fast one would be harder to walk back\nthan adding it 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","description":"Reply to a message, staying on its thread.\n\n`to` is optional. Left out, the reply goes to whoever sent the message (its\nReply-To if it has one), or on to the original recipients when the message\nis one this inbox sent. `reply_all` adds everyone else on it as Cc. Naming\n`to` redirects the reply instead. The one message nothing can be derived\nfrom is one whose only participant is this inbox, which returns\n`no_reply_recipient`.","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"}},{"name":"assignee","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only conversations assigned to this member_id or api_key_id, to \"me\", or \"none\" for unassigned.","title":"Assignee"},"description":"Only conversations assigned to this member_id or api_key_id, to \"me\", or \"none\" for unassigned."}],"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}/threads/{thread_id}/notes":{"get":{"tags":["threads"],"summary":"List Notes","operationId":"threads_list_notes","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/ListNotesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["threads"],"summary":"Add Note","operationId":"threads_add_note","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/CreateNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/inboxes/{inbox_id}/threads/{thread_id}/notes/{note_id}":{"delete":{"tags":["threads"],"summary":"Delete Note","operationId":"threads_delete_note","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":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note 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/uploads":{"post":{"tags":["uploads"],"summary":"Create Upload","description":"Get a URL to PUT a file to, for attaching files up to 25 MB.\n\nPUT the file's bytes to `upload_url`, then attach it with\n`{\"filename\": ..., \"upload_id\": ...}` wherever an attachment is accepted.","operationId":"uploads_create_upload","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadOut"}}}}}}},"/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/members":{"get":{"tags":["members"],"summary":"List Members","operationId":"members_list_members","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMembersResponse"}}}}}},"post":{"tags":["members"],"summary":"Invite Member","operationId":"members_invite_member","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteMemberRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/members/{member_id}":{"get":{"tags":["members"],"summary":"Get Member","operationId":"members_get_member","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["members"],"summary":"Update Member","operationId":"members_update_member","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["members"],"summary":"Remove Member","operationId":"members_remove_member","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member 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"}},{"name":"assignee","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only conversations assigned to this member_id or api_key_id, to \"me\", or \"none\" for unassigned.","title":"Assignee"},"description":"Only conversations assigned to this member_id or api_key_id, to \"me\", or \"none\" for unassigned."}],"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/events":{"get":{"tags":["events"],"summary":"List Events","operationId":"events_list_events","parameters":[{"name":"event_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Event Types"}},{"name":"inbox_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Id"}},{"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":"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/ListEventsResponse"}}}},"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"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","description":"Delete even if the inbox is in use: it sent mail in the last 30 days, an API key scoped to it was used in the last 30 days, or it is in the system organization. Without it, those deletes are refused with 409 `inbox_in_use`.","default":false,"title":"Force"},"description":"Delete even if the inbox is in use: it sent mail in the last 30 days, an API key scoped to it was used in the last 30 days, or it is in the system organization. Without it, those deletes are refused with 409 `inbox_in_use`."}],"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"}},{"name":"assignee","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"}}],"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}/webhooks/{webhook_id}/headers":{"get":{"tags":["pods"],"summary":"Get Webhook Headers","operationId":"pods_get_webhook_headers","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/WebhookHeadersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pods"],"summary":"Update Webhook Headers","operationId":"pods_update_webhook_headers","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/UpdateWebhookHeadersRequest"}}}},"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/attempts":{"get":{"tags":["webhooks"],"summary":"List All Attempts","description":"Recent deliveries across every endpoint.\n\nDeclared before `/{webhook_id}` so `attempts` is not read as an id.","operationId":"webhooks_list_all_attempts","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhookAttemptsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/webhooks/{webhook_id}/attempts":{"get":{"tags":["webhooks"],"summary":"List Attempts","description":"What happened to this endpoint's deliveries, newest first.\n\nLoading the webhook first is the authorization: an attempt is only\nreadable by whoever owns the endpoint it was made against.","operationId":"webhooks_list_attempts","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhookAttemptsResponse"}}}},"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/webhooks/{webhook_id}/headers":{"get":{"tags":["webhooks"],"summary":"Get Webhook Headers","description":"The names of the custom headers on this webhook. Never the values.\n\nSorted, so a caller diffing two reads sees a change in the set rather than\na change in the order a map happened to come back in.","operationId":"webhooks_get_webhook_headers","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/WebhookHeadersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["webhooks"],"summary":"Update Webhook Headers","operationId":"webhooks_update_webhook_headers","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookHeadersRequest"}}}},"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"}}}}}}},"/v0/inboxes/{inbox_id}/webhooks/{webhook_id}/headers":{"get":{"tags":["webhooks"],"summary":"Get Inbox Webhook Headers","operationId":"webhooks_get_inbox_webhook_headers","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/WebhookHeadersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["webhooks"],"summary":"Update Inbox Webhook Headers","operationId":"webhooks_update_inbox_webhook_headers","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/UpdateWebhookHeadersRequest"}}}},"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":{"Actor":{"properties":{"type":{"type":"string","title":"Type","description":"member (a person in the organization) or api_key (a key made for an agent)."},"member_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Id"},"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The person's name or email, or the key's name."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["type"],"title":"Actor"},"AgentPasswordSigninRequest":{"properties":{"human_email":{"type":"string","title":"Human Email"},"password":{"type":"string","title":"Password"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Which organization to sign in to, when the address belongs to more than one. Omit it for the one you own, or else the one used most recently."}},"type":"object","required":["human_email","password"],"title":"AgentPasswordSigninRequest"},"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"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Which organization to sign in to, when the address belongs to more than one. Omit it for the one you own, or else the one used most recently."},"new_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Password","description":"Set or replace this address's password, for POST /v0/agent/sign-in/password. At least 8 characters."}},"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","description":"Shown once and never returned again \u2014 only its hash is kept. Store it somewhere you can read back later. The only way to replace a key you cannot read is POST /v0/agent/sign-in, which emails a code to the account owner for them to hand over."},"inbox_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Domain","description":"The domain inboxes created from now on will use. A verified account is minted on the main domain instead of the sign-up subdomain."},"inboxes_on_signup_domain":{"items":{"type":"string"},"type":"array","title":"Inboxes On Signup Domain","description":"Inboxes that already existed. An address is never rewritten \u2014 mail is in flight to it and threads reference it \u2014 so these keep the sign-up subdomain for as long as they exist. Create a new inbox to get one on `inbox_domain`; the old one goes on receiving."},"member":{"anyOf":[{"$ref":"#/components/schemas/MemberOut"},{"type":"null"}]},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationChoice"},"type":"array","title":"Organizations","description":"Every organization this address can sign in to."}},"type":"object","required":["organization_id","api_key"],"title":"AgentSigninVerifyResponse"},"AgentSignupRequest":{"properties":{"human_email":{"type":"string","title":"Human Email"},"username":{"type":"string","title":"Username"},"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name","description":"The name recipients see beside the address. Omit it and mail sends with the bare address. Changeable later via PATCH /v0/inboxes/{id}."},"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","description":"Shown once and never returned again \u2014 only its hash is kept. Store it somewhere you can read back later. The only way to replace a key you cannot read is POST /v0/agent/sign-in, which emails a code to the account owner for them to hand over."},"verified":{"type":"boolean","title":"Verified","description":"False after sign-up. Until the owner's address is confirmed the account can receive anything and email only its owner.","default":false},"next_step":{"type":"string","title":"Next Step","description":"What to do to confirm the owner. No code is emailed at sign-up.","default":"To send to anyone, call POST /v0/agent/verification-code to email the owner a six-digit code, then pass it to POST /v0/agent/verify."}},"type":"object","required":["organization_id","inbox_id","api_key"],"title":"AgentSignupResponse"},"AgentVerificationCodeResponse":{"properties":{"sent":{"type":"boolean","title":"Sent","description":"False when a code went out in the last 10 minutes; use that one. Also false when the account is already verified."},"verified":{"type":"boolean","title":"Verified"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["sent","verified","detail"],"title":"AgentVerificationCodeResponse"},"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"},"inbox_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbox Domain","description":"The domain inboxes created from now on will use. A verified account is minted on the main domain instead of the sign-up subdomain."},"inboxes_on_signup_domain":{"items":{"type":"string"},"type":"array","title":"Inboxes On Signup Domain","description":"Inboxes that already existed. An address is never rewritten \u2014 mail is in flight to it and threads reference it \u2014 so these keep the sign-up subdomain for as long as they exist. Create a new inbox to get one on `inbox_domain`; the old one goes on receiving."}},"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"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"When the key stops working. Omit it and the key lives until it is revoked. Cannot be extended later: make a new key instead."}},"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","description":"What will hold this key, so it can be told apart from the others in the list later \u2014 an agent's name, a job, a machine."},"permissions":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Permissions"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"When the key stops working. Omit it and the key lives until it is revoked. Cannot be extended later: make a new key instead."}},"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"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"When the key stops working. Omit it and the key lives until it is revoked. Cannot be extended later: make a new key instead."}},"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","maxLength":255},{"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"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"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"},"CreateNoteRequest":{"properties":{"text":{"type":"string","title":"Text","description":"The note. Seen by the team, never sent."}},"type":"object","required":["text"],"title":"CreateNoteRequest"},"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"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"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"},"DraftInProgress":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"created_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}]},"updated_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}]},"send_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Send At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["draft_id","updated_at"],"title":"DraftInProgress","description":"An unsent reply somebody has started on this conversation."},"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"},"created_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}],"description":"Who wrote the draft."},"updated_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}],"description":"Who last changed it."},"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"},"EventOut":{"properties":{"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"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"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["event_id","event_type","organization_id","created_at"],"title":"EventOut","description":"One event from the log. Append-only; nothing here is ever updated."},"FeedbackRequest":{"properties":{"message":{"type":"string","title":"Message","description":"What the customer wants to tell us."}},"type":"object","required":["message"],"title":"FeedbackRequest"},"FeedbackResponse":{"properties":{"received":{"type":"boolean","title":"Received"}},"type":"object","required":["received"],"title":"FeedbackResponse"},"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"},"member":{"anyOf":[{"$ref":"#/components/schemas/MemberOut"},{"type":"null"}],"description":"The person this key speaks for. Absent for a key made for an agent or a job."},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationChoice"},"type":"array","title":"Organizations","description":"Every organization this person can switch to with POST /v0/auth/switch."}},"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"},"actor":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}],"description":"Who changed the 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"},"InviteMemberRequest":{"properties":{"email":{"type":"string","title":"Email","description":"The address they will sign in with."},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"admin (everything the owner can do) or member (reads and replies in their inboxes, and cannot change the organization). Defaults to member."},"inbox_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Inbox Ids","description":"For a member: the inboxes they may use. Omit it or send [] for every inbox. Ignored for admins, who see every inbox."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["email"],"title":"InviteMemberRequest"},"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"},"ListEventsResponse":{"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/EventOut"},"type":"array","title":"Events"}},"type":"object","required":["count","events"],"title":"ListEventsResponse"},"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"},"ListMembersResponse":{"properties":{"count":{"type":"integer","title":"Count"},"members":{"items":{"$ref":"#/components/schemas/MemberOut"},"type":"array","title":"Members"}},"type":"object","required":["count","members"],"title":"ListMembersResponse"},"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"},"ListNotesResponse":{"properties":{"count":{"type":"integer","title":"Count"},"notes":{"items":{"$ref":"#/components/schemas/NoteOut"},"type":"array","title":"Notes"}},"type":"object","required":["count","notes"],"title":"ListNotesResponse"},"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"},"ListWebhookAttemptsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"attempts":{"items":{"$ref":"#/components/schemas/WebhookAttemptOut"},"type":"array","title":"Attempts"}},"type":"object","required":["count","attempts"],"title":"ListWebhookAttemptsResponse"},"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"},"MemberOut":{"properties":{"member_id":{"type":"string","title":"Member Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"type":"string","title":"Role","description":"owner, admin or member."},"inbox_ids":{"items":{"type":"string"},"type":"array","title":"Inbox Ids","description":"For a member: the inboxes they may use. Empty means every inbox."},"status":{"type":"string","title":"Status","description":"invited until their first sign-in, then active."},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At"},"last_signed_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Signed In At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["member_id","email","role","status"],"title":"MemberOut"},"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},"sent_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}],"description":"Who sent it, for mail this organization sent: a person, or a key made for an agent."},"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},"sent_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}],"description":"Who sent it, for mail this organization sent: a person, or a key made for an agent."},"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"},"authentication":{"additionalProperties":{"type":"string"},"type":"object","title":"Authentication"}},"type":"object","required":["inbox_id","thread_id","message_id","timestamp","from","updated_at","created_at"],"title":"MessageOut"},"NoteOut":{"properties":{"note_id":{"type":"string","title":"Note Id"},"thread_id":{"type":"string","title":"Thread Id"},"inbox_id":{"type":"string","title":"Inbox Id"},"text":{"type":"string","title":"Text"},"author":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["note_id","thread_id","inbox_id","text","created_at"],"title":"NoteOut"},"OrganizationChoice":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"}},"type":"object","required":["organization_id","role","status"],"title":"OrganizationChoice","description":"An organization this person can sign in to."},"OrganizationOut":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"human_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Human Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"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},"member_count":{"type":"integer","title":"Member 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"},"member_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Member 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":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"upload_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Id"},"content_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"},"inline":{"type":"boolean","title":"Inline","default":false}},"type":"object","required":["filename"],"title":"SendAttachment","description":"A file to send: its bytes in `content`, or an `upload_id` from POST /v0/uploads.\n\n`content` travels in the request body, and Lambda refuses a request over\n6 MB before our code sees it, so base64 caps a file there at about 4 MB.\nAn upload goes to S3 directly and carries the full 25 MB."},"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"},"SwitchRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"}},"type":"object","required":["organization_id"],"title":"SwitchRequest"},"SwitchResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"api_key":{"type":"string","title":"Api Key"},"member":{"$ref":"#/components/schemas/MemberOut"}},"type":"object","required":["organization_id","api_key","member"],"title":"SwitchResponse"},"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},"assignee":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}],"description":"Who is handling it: a person, or a key made for an agent."},"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},"assignee":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}],"description":"Who is handling it: a person, or a key made for an agent."},"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"},"notes":{"items":{"$ref":"#/components/schemas/NoteOut"},"type":"array","title":"Notes","description":"Notes the team left on the conversation. Never sent to anyone outside it."},"drafts":{"items":{"$ref":"#/components/schemas/DraftInProgress"},"type":"array","title":"Drafts","description":"Unsent replies on this conversation, and who is writing them."}},"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","maxLength":255},{"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"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Turn delivery on or off. Turning it on clears `disabled_reason`."}},"type":"object","title":"UpdateInboxWebhookRequest","description":"The inbox-scoped mount cannot retarget \u2014 that is what scoping means."},"UpdateMemberRequest":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"admin (everything the owner can do) or member (reads and replies in their inboxes, and cannot change the organization). Defaults to member."},"inbox_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Inbox Ids","description":"For a member: the inboxes they may use. Omit it or send [] for every inbox. Ignored for admins, who see every inbox."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"UpdateMemberRequest"},"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"},"assignee_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Id","description":"Hand the conversation to a person (a member_id), an agent (an api_key_id), or yourself (\"me\"). Send null to unassign; leave it out to keep it."}},"type":"object","title":"UpdateThreadRequest"},"UpdateThreadResponse":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"assignee":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}]}},"type":"object","required":["thread_id","labels"],"title":"UpdateThreadResponse"},"UpdateWebhookHeadersRequest":{"properties":{"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"remove_headers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remove Headers"}},"type":"object","title":"UpdateWebhookHeadersRequest"},"UpdateWebhookRequest":{"properties":{"event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Event Types"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Turn delivery on or off. Turning it on clears `disabled_reason`."},"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"},"UploadOut":{"properties":{"upload_id":{"type":"string","title":"Upload Id"},"upload_url":{"type":"string","title":"Upload Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"max_size":{"type":"integer","title":"Max Size"}},"type":"object","required":["upload_id","upload_url","expires_at","max_size"],"title":"UploadOut","description":"Where to PUT a file, and the id that attaches it once it is there."},"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"},"WebhookAttemptOut":{"properties":{"attempt_id":{"type":"string","title":"Attempt Id"},"webhook_id":{"type":"string","title":"Webhook Id"},"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"url":{"type":"string","title":"Url"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"ok":{"type":"boolean","title":"Ok"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"duration_ms":{"type":"integer","title":"Duration Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["attempt_id","webhook_id","event_id","event_type","url","ok","duration_ms","created_at"],"title":"WebhookAttemptOut","description":"One delivery attempt. Append-only; nothing here is ever updated."},"WebhookHeadersResponse":{"properties":{"header_names":{"items":{"type":"string"},"type":"array","title":"Header Names"}},"type":"object","required":["header_names"],"title":"WebhookHeadersResponse","description":"Names only. The values are write-only, deliberately \u2014 see `Webhook`."},"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},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason","description":"Why delivery turned this webhook off: the endpoint answered 410 Gone, or every delivery failed for 24 hours. Set `enabled` to true to turn it back on."},"disabled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disabled At"},"failing_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Failing Since","description":"When the current run of failed deliveries began. Empty while deliveries succeed."},"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":[]}]}