{"components":{"schemas":{"Addresses":{"description":"One address or a list of them.","oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"ApiError":{"properties":{"code":{"example":"validation_error","type":"string"},"message":{"example":"The request is invalid.","type":"string"}},"required":["code","message"],"type":"object"},"ApiPrincipal":{"properties":{"environment":{"example":"test","type":"string"},"key_id":{"type":"string"},"organization_id":{"type":"string"},"permissions":{},"project_id":{"type":["string","null"]}},"required":["key_id","organization_id","environment","permissions"],"type":"object"},"Assign":{"additionalProperties":false,"description":"Assign to one person or one agent; both empty unassigns.","properties":{"agent":{"description":"Your own name for an agent, for example its agent ID.","type":["string","null"]},"user_id":{"description":"A member of the workspace.","type":["string","null"]}},"type":"object"},"AttachmentDownload":{"properties":{"content_id":{"type":["string","null"]},"content_type":{"type":"string"},"download_expires_at":{"format":"date-time","type":"string"},"download_url":{"description":"Downloads the file under its original name. Do not share it.","type":"string"},"file_name":{"type":"string"},"id":{"type":"string"},"inbound_message_id":{"type":["string","null"]},"inline":{"type":"boolean"},"send_id":{"type":["string","null"]},"size_bytes":{"format":"int32","type":"integer"}},"required":["id","file_name","content_type","size_bytes","inline","download_url","download_expires_at"],"type":"object"},"AttachmentInput":{"additionalProperties":false,"properties":{"content_base64":{"description":"The file, base64 encoded.","type":"string"},"content_id":{"description":"Set to show the file inline in HTML as `cid:<content_id>`.","type":["string","null"]},"content_type":{"example":"application/pdf","type":"string"},"file_name":{"example":"invoice.pdf","type":"string"}},"required":["file_name","content_type","content_base64"],"type":"object"},"AttachmentResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/AttachmentDownload"}},"required":["api_version","data"],"type":"object"},"AttachmentSummary":{"description":"A file on a send or a received message.","properties":{"content_id":{"type":["string","null"]},"content_type":{"example":"application/pdf","type":"string"},"file_name":{"example":"invoice.pdf","type":"string"},"id":{"type":"string"},"inline":{"type":"boolean"},"size_bytes":{"format":"int32","type":"integer"}},"required":["id","file_name","content_type","size_bytes","inline"],"type":"object"},"AuthCheckResponse":{"properties":{"principal":{"$ref":"#/components/schemas/ApiPrincipal"},"valid":{"type":"boolean"}},"required":["valid","principal"],"type":"object"},"BatchItemResult":{"properties":{"email":{"description":"The email, as `POST /email/emails` returns it.","type":["object","null"]},"error":{"type":["object","null"]},"index":{"minimum":0,"type":"integer"},"status":{"description":"The HTTP status this item would have had on its own.","format":"int32","minimum":0,"type":"integer"}},"required":["index","status"],"type":"object"},"BatchSendRequest":{"additionalProperties":false,"properties":{"items":{"description":"Up to 100 emails, each a complete send. With an `Idempotency-Key`\nheader, item `i` uses the key `<key>:<i>`.","items":{"$ref":"#/components/schemas/SendEmailRequest"},"type":"array"}},"required":["items"],"type":"object"},"BatchSendResponse":{"properties":{"api_version":{"type":"string"},"data":{"description":"One result per item, in order.","items":{"$ref":"#/components/schemas/BatchItemResult"},"type":"array"}},"required":["api_version","data"],"type":"object"},"BodyFormat":{"description":"How an inbox message's `text_body` is read.","enum":["text","markdown"],"type":"string"},"Contact":{"properties":{"attributes":{"description":"Flat string, number, boolean or null contact attributes."},"blocked_at":{"format":"date-time","type":["string","null"]},"blocked_reason":{"type":["string","null"]},"consent_source":{"type":["string","null"]},"consented_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"email":{"example":"person@example.com","type":"string"},"first_name":{"type":["string","null"]},"id":{"type":"string"},"last_name":{"type":["string","null"]},"locale":{"example":"en","type":["string","null"]},"marketing_status":{"example":"subscribed","type":"string"},"normalized_email":{"example":"person@example.com","type":"string"},"origin":{"example":"api","type":"string"},"status":{"example":"active","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","email","normalized_email","status","attributes","origin","marketing_status","created_at","updated_at"],"type":"object"},"ContactListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array"}},"required":["api_version","data"],"type":"object"},"ContactQuery":{"description":"Structured contact queries keep filter values in the JSON body, rather than\nturning every combination into a new URL shape.  Every sortable column is\nselected from a fixed allow-list; user input is always a bound value.","properties":{"limit":{"format":"int64","type":["integer","null"]},"marketing_status":{"type":["string","null"]},"offset":{"format":"int64","type":["integer","null"]},"order":{"type":["string","null"]},"order_by":{"type":["string","null"]},"search":{"type":["string","null"]},"status":{"type":["string","null"]}},"type":"object"},"ContactQueryResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"required":["api_version","data","page"],"type":"object"},"ContactResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/Contact"}},"required":["api_version","data"],"type":"object"},"CreateApiKeyRequest":{"additionalProperties":false,"description":"A new key's name, permissions and lifetime.","properties":{"expires_at":{"description":"When it stops working; none by default.","format":"date-time","type":["string","null"]},"name":{"description":"2 to 80 characters, like \"Production server\".","type":"string"},"replaces_key_id":{"description":"The key this one replaces, recorded for the dashboard. Revoke it\nseparately once the new key is in use.","type":["string","null"]},"scope":{"description":"`full` (send and read), `send`, `read`, `events` or `marketing`.","type":"string"}},"required":["name","scope"],"type":"object"},"CreateContact":{"properties":{"attributes":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":["object","null"]},"email":{"type":"string"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"locale":{"type":["string","null"]}},"required":["email"],"type":"object"},"CreateDomainRequest":{"additionalProperties":false,"description":"Adds a sending domain by name.","properties":{"name":{"description":"A domain you control. A dedicated subdomain such as\n`mail.example.com` keeps your existing mail untouched.","example":"mail.example.com","type":"string"}},"required":["name"],"type":"object"},"CreateInbox":{"additionalProperties":false,"properties":{"address":{"description":"The full address, on a verified domain of this project. Direct inboxes\nneed the domain set up for receiving; forwarded ones do not.","example":"support-agent@mail.example.com","type":"string"},"address_source":{"description":"`provided` allocates on an operator-enabled Relevate domain; default `custom`.","type":["string","null"]},"display_name":{"type":["string","null"]},"kind":{"description":"`agent` (default through the API): one agent owns it and people\nsupervise. `team`: people work it together; agents may help.","type":["string","null"]},"name":{"type":["string","null"]},"owner_user_id":{"description":"The supervising person, a member of this workspace. When supplied,\nnew inboxes default to private. Project-only integrations without a\nperson retain workspace visibility unless an owner is supplied.","type":["string","null"]},"receives_via":{"description":"`direct` (default): mail for the address arrives at Relevate.\n`forwarding`: the address stays with the customer's mail provider,\nwhich forwards a copy to the inbox's `forwarding_address`. Replies\nstill go out as the address.","example":"direct","type":["string","null"]},"reference":{"description":"Your own identifier for the inbox, for example an agent or user ID.","type":["string","null"]},"visibility":{"description":"private or workspace. Team sharing is configured by the owner in Relevate.","type":["string","null"]}},"required":["address"],"type":"object"},"CreateTemplateRequest":{"additionalProperties":false,"description":"A new template's draft.","properties":{"alias":{"description":"The name to send it by, like `password-reset`: lowercase letters,\nnumbers and dashes. Unique in the project.","type":["string","null"]},"html":{"description":"The email's HTML, up to 500,000 characters.","type":"string"},"message_class":{"description":"`service` or `marketing`.","type":"string"},"name":{"description":"2 to 120 characters; shown in the dashboard.","type":"string"},"preheader":{"description":"The preview line inboxes show after the subject, up to 200 characters.","type":["string","null"]},"sender_identity_id":{"description":"The sending identity it's sent from; publishing needs one.","type":["string","null"]},"subject":{"description":"Up to 200 characters.","type":"string"},"text":{"description":"The plain-text version, up to 200,000 characters. Made from the HTML\nwhen left out.","type":["string","null"]},"variables":{"description":"The variables it takes from code, as reads return them.","items":{"$ref":"#/components/schemas/VariableDefinition"},"type":["array","null"]}},"required":["name","subject","html","message_class"],"type":"object"},"CreateWebhookResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/Webhook"},"signing_secret":{"type":"string"}},"required":["api_version","data","signing_secret"],"type":"object"},"CrmActivity":{"properties":{"actor_id":{"type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"record_id":{"type":"string"},"summary":{"type":"string"},"type":{"type":"string"}},"required":["id","record_id","type","summary","metadata","created_at"],"type":"object"},"CrmApiError":{"properties":{"api_version":{"type":"string"},"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"}},"required":["api_version","error"],"type":"object"},"CrmAttributeCreate":{"additionalProperties":false,"properties":{"currency_code":{"type":["string","null"]},"expression":{"type":["string","null"]},"key":{"type":"string"},"multiple":{"type":"boolean"},"name":{"maxLength":200,"type":"string"},"options":{"items":{"type":"string"},"maxItems":100,"type":"array"},"required":{"type":"boolean"},"target_object_id":{"type":["string","null"]},"type":{"enum":["text","number","currency","phone","rating","location","multi_select","status","relationship","formula","boolean","date","timestamp","select","record","user"],"type":"string"}},"required":["key","name","type"],"type":"object"},"CrmAttributeDiscovery":{"properties":{"currency_code":{"type":["string","null"]},"expression":{"type":["string","null"]},"id":{"type":"string"},"is_system":{"type":"boolean"},"key":{"type":"string"},"multiple":{"type":"boolean"},"name":{"type":"string"},"options":{"items":{"type":"string"},"type":"array"},"read_only":{"type":"boolean"},"required":{"type":"boolean"},"target_object_id":{"type":["string","null"]},"type":{"type":"string"}},"required":["id","key","name","type","required","multiple","options","read_only"],"type":"object"},"CrmAttributePatch":{"additionalProperties":false,"minProperties":1,"properties":{"name":{"maxLength":200,"type":"string"},"options":{"items":{"type":"string"},"type":"array"},"required":{"type":"boolean"}},"type":"object"},"CrmContentPage":{"properties":{"limit":{"type":"integer"},"next_cursor":{"type":["string","null"]}},"required":["limit","next_cursor"],"type":"object"},"CrmCreateList":{"additionalProperties":false,"properties":{"description":{"default":"","maxLength":2000,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"object_id":{"description":"Object ID or slug, such as people.","type":"string"}},"required":["object_id","name"],"type":"object"},"CrmCreateListEntry":{"additionalProperties":false,"properties":{"record_id":{"type":"string"},"values":{"additionalProperties":true,"default":{},"description":"List attribute keys; object values are not accepted here. Calculated fields cannot be supplied.","type":"object"}},"required":["record_id"],"type":"object"},"CrmDeletedNote":{"properties":{"deleted_at":{"format":"date-time","type":"string"},"id":{"type":"string"}},"required":["id","deleted_at"],"type":"object"},"CrmDeletedTask":{"properties":{"id":{"type":"string"}},"required":["id"],"type":"object"},"CrmList":{"properties":{"created_at":{"format":"date-time","type":"string"},"description":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"object_id":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","object_id","name","description","created_at","updated_at"],"type":"object"},"CrmListDeletionResponse":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}},"required":["id","deleted"],"type":"object"}},"required":["api_version","data"],"type":"object"},"CrmListEntriesPage":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmListEntry"},"type":"array"},"page":{"properties":{"limit":{"type":"integer"},"next_cursor":{"type":["string","null"]}},"required":["limit","next_cursor"],"type":"object"}},"required":["api_version","data","page"],"type":"object"},"CrmListEntry":{"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"list_id":{"type":"string"},"record_id":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"values":{"additionalProperties":true,"description":"List-scoped values, including computed read-only formulas.","type":"object"}},"required":["id","list_id","record_id","values","created_at","updated_at"],"type":"object"},"CrmListEntryResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmListEntry"}},"required":["api_version","data"],"type":"object"},"CrmListResponse":{"properties":{"api_version":{"type":"string"},"attributes":{"items":{"properties":{"currency_code":{"type":["string","null"]},"expression":{"type":["string","null"]},"id":{"type":"string"},"key":{"type":"string"},"multiple":{"type":"boolean"},"name":{"type":"string"},"options":{"items":{"type":"string"},"type":"array"},"read_only":{"type":"boolean"},"required":{"type":"boolean"},"target_object_id":{"type":["string","null"]},"type":{"type":"string"}},"type":"object"},"type":"array"},"data":{"$ref":"#/components/schemas/CrmList"}},"required":["api_version","data"],"type":"object"},"CrmListsPage":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmList"},"type":"array"},"page":{"properties":{"limit":{"type":"integer"},"next_cursor":{"type":["string","null"]}},"required":["limit","next_cursor"],"type":"object"}},"required":["api_version","data","page"],"type":"object"},"CrmMetadataAttribute":{"properties":{"created_at":{"format":"date-time","type":"string"},"currency_code":{"type":["string","null"]},"expression":{"type":["string","null"]},"id":{"type":"string"},"is_system":{"type":"boolean"},"key":{"type":"string"},"list_id":{"type":["string","null"]},"multiple":{"type":"boolean"},"name":{"maxLength":200,"type":"string"},"object_id":{"type":["string","null"]},"options":{"items":{"type":"string"},"maxItems":100,"type":"array"},"organization_id":{"type":"string"},"required":{"type":"boolean"},"target_object_id":{"type":["string","null"]},"type":{"enum":["text","number","currency","phone","rating","location","multi_select","status","relationship","formula","boolean","date","timestamp","select","record","user"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","key","name","type","required","multiple","options","is_system"],"type":"object"},"CrmMetadataAttributeResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmMetadataAttribute"}},"required":["api_version","data"],"type":"object"},"CrmMetadataAttributesResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmMetadataAttribute"},"type":"array"}},"required":["api_version","data"],"type":"object"},"CrmMetadataDeleted":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmMetadataDeletedData"}},"required":["api_version","data"],"type":"object"},"CrmMetadataDeletedData":{"properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"type":"object"},"CrmMetadataObject":{"properties":{"created_at":{"format":"date-time","type":"string"},"enabled":{"type":"boolean"},"icon":{"type":["string","null"]},"id":{"type":"string"},"is_system":{"type":"boolean"},"name":{"type":"string"},"organization_id":{"type":"string"},"slug":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","slug","enabled","is_system"],"type":"object"},"CrmMetadataObjectResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmMetadataObject"}},"required":["api_version","data"],"type":"object"},"CrmNote":{"properties":{"author_id":{"type":["string","null"]},"body":{"type":"string"},"content":{"oneOf":[{"$ref":"#/components/schemas/CrmNoteDocument"},{"type":"null"}]},"created_at":{"format":"date-time","type":"string"},"deleted_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"mention_records":{"items":{"properties":{"archived_at":{"format":"date-time","type":["string","null"]},"display_name":{"type":"string"},"id":{"type":"string"}},"type":"object"},"type":"array"},"mentions":{"items":{"$ref":"#/components/schemas/CrmNoteMention"},"type":"array"},"record_id":{"type":"string"},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","record_id","title","body","mentions","created_at","updated_at"],"type":"object"},"CrmNoteDocument":{"additionalProperties":false,"description":"Validated inert TipTap document. Supports paragraphs, headings 1–3, lists, blockquotes, text, hard breaks, recordMention, and bold/italic/strike/code marks; no URLs, HTML, or arbitrary extensions.","properties":{"content":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"type":{"enum":["doc"],"type":"string"}},"required":["type","content"],"type":"object"},"CrmNoteMention":{"additionalProperties":false,"properties":{"end":{"minimum":1,"type":"integer"},"recordId":{"maxLength":200,"minLength":1,"type":"string"},"start":{"minimum":0,"type":"integer"}},"required":["recordId","start","end"],"type":"object"},"CrmNoteWrite":{"additionalProperties":false,"description":"Create requires a nonempty body or document. Rich content derives body and mentions. PATCH title alone preserves current content; body without content switches to plain text.","properties":{"body":{"maxLength":20000,"type":"string"},"content":{"oneOf":[{"$ref":"#/components/schemas/CrmNoteDocument"},{"type":"null"}]},"mentions":{"items":{"$ref":"#/components/schemas/CrmNoteMention"},"maxItems":100,"type":"array"},"title":{"maxLength":200,"type":"string"}},"type":"object"},"CrmObjectCreate":{"additionalProperties":false,"properties":{"icon":{"maxLength":100,"type":"string"},"name":{"maxLength":200,"type":"string"},"slug":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"}},"required":["name","slug"],"type":"object"},"CrmObjectDelete":{"additionalProperties":false,"properties":{"confirmation_name":{"description":"Exact current name confirming permanent deletion.","type":"string"}},"required":["confirmation_name"],"type":"object"},"CrmObjectDeletionPreview":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmObjectDeletionPreviewData"}},"required":["api_version","data"],"type":"object"},"CrmObjectDeletionPreviewData":{"properties":{"blocking_relationships":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"list_count":{"type":"integer"},"object":{"$ref":"#/components/schemas/CrmMetadataObject"},"record_count":{"type":"integer"}},"required":["object","record_count","list_count","blocking_relationships"],"type":"object"},"CrmObjectDiscovery":{"properties":{"created_at":{"format":"date-time","type":"string"},"enabled":{"type":"boolean"},"icon":{"type":["string","null"]},"id":{"type":"string"},"is_system":{"type":"boolean"},"name":{"type":"string"},"slug":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","slug","name","enabled","is_system"],"type":"object"},"CrmObjectPatch":{"additionalProperties":false,"minProperties":1,"properties":{"enabled":{"type":"boolean"},"icon":{"maxLength":100,"type":"string"},"name":{"maxLength":200,"type":"string"}},"type":"object"},"CrmQualityIssue":{"properties":{"code":{"enum":["required_missing","invalid_value","unknown_attribute","invalid_formula","broken_reference","wrong_reference_object","duplicate_name","duplicate_values","stored_formula"],"type":"string"},"field_key":{"type":["string","null"]},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"CrmQualityRecord":{"properties":{"display_name":{"type":"string"},"duplicate_candidate_count":{"type":"integer"},"duplicate_candidates":{"items":{"properties":{"display_name":{"type":"string"},"record_id":{"type":"string"}},"required":["record_id","display_name"],"type":"object"},"maxItems":20,"type":"array"},"issues":{"items":{"$ref":"#/components/schemas/CrmQualityIssue"},"type":"array"},"record_id":{"type":"string"}},"required":["record_id","display_name","issues","duplicate_candidate_count","duplicate_candidates"],"type":"object"},"CrmQualityResponse":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"notice":{"type":"string"},"object_id":{"type":"string"},"records":{"items":{"$ref":"#/components/schemas/CrmQualityRecord"},"type":"array"},"scanned_records":{"type":"integer"},"summary":{"properties":{"broken_references":{"type":"integer"},"duplicate_candidates":{"type":"integer"},"invalid_values":{"type":"integer"},"missing_required":{"type":"integer"},"records_with_issues":{"type":"integer"}},"required":["records_with_issues","missing_required","invalid_values","broken_references","duplicate_candidates"],"type":"object"}},"required":["object_id","scanned_records","summary","records","notice"],"type":"object"},"page":{"properties":{"limit":{"type":"integer"},"next_cursor":{"type":["string","null"]}},"type":"object"}},"required":["api_version","data","page"],"type":"object"},"CrmRecord":{"properties":{"archived_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"display_name":{"type":"string"},"external_id":{"type":["string","null"]},"id":{"type":"string"},"object_id":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"values":{"additionalProperties":true,"type":"object"}},"required":["id","object_id","display_name","values"],"type":"object"},"CrmRecordCreate":{"additionalProperties":false,"properties":{"display_name":{"maxLength":200,"minLength":1,"type":"string"},"external_id":{"maxLength":200,"type":["string","null"]},"values":{"additionalProperties":true,"type":"object"}},"required":["display_name"],"type":"object"},"CrmRecordPatch":{"additionalProperties":false,"properties":{"archived":{"type":"boolean"},"display_name":{"maxLength":200,"minLength":1,"type":"string"},"values":{"additionalProperties":true,"type":"object"}},"type":"object"},"CrmRecordResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmRecord"}},"type":"object"},"CrmTask":{"properties":{"completed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"description":{"type":"string"},"due_at":{"format":"date-time","type":"string"},"due_timezone":{"type":"string"},"id":{"type":"string"},"owner_id":{"type":["string","null"]},"record_id":{"type":"string"},"status":{"enum":["open","completed"],"type":"string"},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","record_id","title","description","due_at","due_timezone","status","created_at","updated_at"],"type":"object"},"CrmTaskCreate":{"additionalProperties":false,"properties":{"description":{"maxLength":5000,"type":"string"},"due_at":{"description":"ISO UTC datetime ending in Z","format":"date-time","type":"string"},"due_timezone":{"maxLength":100,"minLength":1,"type":"string"},"owner_id":{"type":["string","null"]},"status":{"enum":["open","completed"],"type":"string"},"title":{"maxLength":300,"minLength":1,"type":"string"}},"required":["title","due_at","due_timezone"],"type":"object"},"CrmTaskPatch":{"additionalProperties":false,"properties":{"description":{"maxLength":5000,"type":"string"},"due_at":{"description":"ISO UTC datetime ending in Z","format":"date-time","type":"string"},"due_timezone":{"maxLength":100,"minLength":1,"type":"string"},"owner_id":{"type":["string","null"]},"status":{"enum":["open","completed"],"type":"string"},"title":{"maxLength":300,"minLength":1,"type":"string"}},"type":"object"},"CrmUpdateList":{"additionalProperties":false,"minProperties":1,"properties":{"description":{"maxLength":2000,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"}},"type":"object"},"CrmUpdateListEntry":{"additionalProperties":false,"properties":{"values":{"additionalProperties":true,"description":"Merge with existing list values. Use null to clear an optional field. Calculated fields cannot be supplied.","type":"object"}},"required":["values"],"type":"object"},"CrmUpsert":{"additionalProperties":false,"properties":{"display_name":{"maxLength":200,"minLength":1,"type":"string"},"external_id":{"maxLength":200,"minLength":1,"type":"string"},"values":{"additionalProperties":true,"type":"object"}},"required":["external_id"],"type":"object"},"DeletedDomain":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}},"required":["id","deleted"],"type":"object"},"DeletedDomainResponse":{"properties":{"api_version":{"example":"2026-10-27","type":"string"},"data":{"$ref":"#/components/schemas/DeletedDomain"}},"required":["api_version","data"],"type":"object"},"Domain":{"properties":{"created_at":{"format":"date-time","type":"string"},"dkim_selector":{"example":"relevate","type":"string"},"dmarc_mode":{"example":"quarantine","type":"string"},"id":{"type":"string"},"last_checked_at":{"format":"date-time","type":["string","null"]},"name":{"example":"mail.example.com","type":"string"},"normalized_name":{"example":"mail.example.com","type":"string"},"ownership_verified_at":{"format":"date-time","type":["string","null"]},"receiving_enabled":{"type":"boolean"},"receiving_verified_at":{"format":"date-time","type":["string","null"]},"status":{"example":"verified","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","normalized_name","status","receiving_enabled","dkim_selector","dmarc_mode","created_at","updated_at"],"type":"object"},"DomainListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/Domain"},"type":"array"}},"required":["api_version","data"],"type":"object"},"DomainRecord":{"description":"One DNS record to publish, with what the last check found.","properties":{"detail":{"description":"What the last check concluded, in words.","type":["string","null"]},"found":{"description":"The values DNS returned at the last check.","items":{"type":"string"},"type":"array"},"name":{"description":"The full record name. Many DNS providers want only the part before\nyour registered domain, with `@` for the domain itself.","example":"_relevate.mail.example.com","type":"string"},"priority":{"description":"MX preference; null for other records.","format":"int32","type":["integer","null"]},"purpose":{"description":"What the record is for: `ownership`, `signing` (DKIM), `sending`\n(SPF and bounces), `dmarc` (spoofing protection) or `receiving` (MX).","example":"ownership","type":"string"},"status":{"description":"`pending`, `passed`, `failed` or `unknown` (DNS couldn't be checked).\nReceiving records read `off` while receiving is turned off.","example":"pending","type":"string"},"type":{"description":"`TXT`, `CNAME` or `MX`.","example":"TXT","type":"string"},"value":{"example":"relevate-domain-verification=4f1c…","type":"string"}},"required":["purpose","type","name","value","status","found"],"type":"object"},"DomainResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/Domain"}},"required":["api_version","data"],"type":"object"},"DomainSetup":{"description":"A domain with the records it must publish.","properties":{"created_at":{"format":"date-time","type":"string"},"dkim_selector":{"example":"relevate1","type":"string"},"dmarc_mode":{"example":"unknown","type":"string"},"id":{"type":"string"},"last_checked_at":{"format":"date-time","type":["string","null"]},"name":{"example":"mail.example.com","type":"string"},"normalized_name":{"example":"mail.example.com","type":"string"},"ownership_code_expires_at":{"description":"Until when the ownership record's code is valid.","format":"date-time","type":"string"},"ownership_verified_at":{"format":"date-time","type":["string","null"]},"receiving_enabled":{"type":"boolean"},"receiving_verified_at":{"format":"date-time","type":["string","null"]},"records":{"items":{"$ref":"#/components/schemas/DomainRecord"},"type":"array"},"status":{"description":"`proof_pending` (not verified), `dns_incomplete` (partly verified),\n`monitoring_ready` (campaigns on hold until DMARC enforces),\n`enforcement_ready` (verified), `degraded` (checks unavailable),\n`paused` or `retired`.","example":"proof_pending","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","normalized_name","status","ownership_code_expires_at","receiving_enabled","dkim_selector","dmarc_mode","created_at","updated_at","records"],"type":"object"},"DomainSetupResponse":{"properties":{"api_version":{"example":"2026-10-27","type":"string"},"data":{"$ref":"#/components/schemas/DomainSetup"}},"required":["api_version","data"],"type":"object"},"DuplicateTemplateRequest":{"additionalProperties":false,"description":"Optional choices for a copy.","properties":{"alias":{"description":"Copies never take the original's alias; give the copy its own here.","type":["string","null"]},"name":{"description":"Defaults to the original's name with \" (copy)\".","type":["string","null"]}},"type":"object"},"EmailTemplate":{"additionalProperties":false,"description":"A published template to send, with its variables.","properties":{"id":{"description":"The template's alias, like `password-reset`, or its id.","type":"string"},"variables":{"description":"Values for the template's variables. Nested objects give dotted\nnames: `{\"order\": {\"total\": 5}}` fills `{{order.total}}`.","type":["object","null"]},"version":{"description":"A published version number; the current one when left out.","format":"int32","type":["integer","null"]}},"required":["id"],"type":"object"},"ErrorResponse":{"description":"Stable error envelope returned by every customer-facing Email API route.","properties":{"api_version":{"example":"2026-10-27","type":"string"},"error":{"$ref":"#/components/schemas/ApiError"}},"required":["api_version","error"],"type":"object"},"EventResponse":{"properties":{"api_version":{"type":"string"},"event_id":{"type":"string"},"received_at":{"format":"date-time","type":"string"},"replayed":{"type":"boolean"}},"required":["api_version","event_id","received_at","replayed"],"type":"object"},"ForwardRequest":{"additionalProperties":false,"properties":{"attachments":{"description":"Extra files to add. The original message's files are always included.","items":{"$ref":"#/components/schemas/AttachmentInput"},"type":"array"},"request_key":{"description":"Idempotency key: retrying with the same key returns the first send.","type":"string"},"text_body":{"description":"An optional note above the forwarded message.","type":["string","null"]},"to":{"items":{"type":"string"},"type":"array"}},"required":["request_key","to"],"type":"object"},"HookCreate":{"properties":{"event_types":{"description":"Any of `queued`, `delivered`, `deferred`, `permanently_failed`,\n`complained`, `suppressed`, `opened`, `clicked` and `inbound.received`.","items":{"type":"string"},"type":"array"},"url":{"type":"string"}},"required":["url","event_types"],"type":"object"},"HookUpdate":{"properties":{"event_types":{"items":{"type":"string"},"type":["array","null"]},"status":{"type":["string","null"]},"url":{"type":["string","null"]}},"type":"object"},"InboundListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/InboundMessage"},"type":"array"}},"required":["api_version","data"],"type":"object"},"InboundMessage":{"properties":{"attachments":{"description":"Empty while the message is quarantined and not released.","items":{"$ref":"#/components/schemas/AttachmentSummary"},"type":"array"},"authentication":{},"body_withheld":{"description":"True while the message is quarantined and not released: the body and\nfiles are withheld until someone releases it.","type":"boolean"},"created_at":{"format":"date-time","type":"string"},"delivery_id":{"type":"string"},"disposition":{"example":"quarantined","type":"string"},"envelope_from":{"type":["string","null"]},"envelope_to":{"type":"string"},"header_cc":{"description":"Cc header values. Empty on mail received before they were kept.","items":{"type":"string"},"type":"array"},"header_from":{"type":["string","null"]},"header_reply_to":{"description":"Reply-To header values. Empty on mail received before they were kept.","items":{"type":"string"},"type":"array"},"header_to":{"items":{"type":"string"},"type":"array"},"html_body":{"description":"Null while the message is quarantined and not released.","type":["string","null"]},"id":{"type":"string"},"in_reply_to":{"type":["string","null"]},"malware_verdict":{"type":"string"},"message_id":{"type":["string","null"]},"received_at":{"format":"date-time","type":"string"},"references":{"items":{"type":"string"},"type":"array"},"release_reason":{"type":["string","null"]},"released_at":{"format":"date-time","type":["string","null"]},"route_id":{"type":"string"},"spam_verdict":{"type":"string"},"subject":{"type":"string"},"text_body":{"description":"Null while the message is quarantined and not released.","type":["string","null"]}},"required":["id","route_id","delivery_id","envelope_to","header_to","header_reply_to","header_cc","subject","body_withheld","references","disposition","authentication","spam_verdict","malware_verdict","received_at","created_at","attachments"],"type":"object"},"InboundReceivedData":{"properties":{"disposition":{"description":"`clean`, `suspicious` or `quarantined`. A quarantined message has no\nbody or files in the API until someone releases it.","example":"clean","type":"string"},"inbound_message_id":{"type":"string"},"inbox_id":{"type":"string"},"malware_verdict":{"type":"string"},"received_at":{"format":"date-time","type":"string"},"spam_verdict":{"type":"string"},"thread_id":{"type":["string","null"]}},"required":["inbound_message_id","inbox_id","disposition","spam_verdict","malware_verdict","received_at"],"type":"object"},"InboundReceivedEvent":{"description":"The `inbound.received` webhook event: one per stored message, never for a\nduplicate delivery. It carries identifiers and the safety outcome only;\nread the message or its thread through the API.","properties":{"api_version":{"example":"2026-10-27","type":"string"},"created_at":{"format":"date-time","type":"string"},"data":{"$ref":"#/components/schemas/InboundReceivedData"},"id":{"description":"The event identity, equal to the inbound message ID. Identical on\nretry and replay; deduplicate on it.","type":"string"},"occurred_at":{"format":"date-time","type":"string"},"project_id":{"type":"string"},"type":{"example":"inbound.received","type":"string"}},"required":["api_version","id","type","project_id","occurred_at","created_at","data"],"type":"object"},"InboundResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/InboundMessage"}},"required":["api_version","data"],"type":"object"},"Inbox":{"properties":{"address":{"example":"support-agent@mail.example.com","type":"string"},"can_send":{"description":"False when the inbox's domain is set up for receiving only.","type":"boolean"},"created_at":{"format":"date-time","type":"string"},"created_via":{"example":"api","type":"string"},"forwarding_address":{"description":"Where the customer's mail provider forwards the address's mail. Null\nunless the inbox receives by forwarding.","example":"support-k7m2qx9wfh3rtd8pnc4vbz6y@fwd.example.net","type":["string","null"]},"forwarding_verified_at":{"description":"When the first forwarded message showed it came through the\ncustomer's mail provider. Null until then, and for direct inboxes.","format":"date-time","type":["string","null"]},"id":{"type":"string"},"kind":{"description":"`team` or `agent`.","example":"agent","type":"string"},"name":{"type":"string"},"owner_user_id":{"description":"Human supervisor, when the integration assigned one.","type":["string","null"]},"receives_via":{"description":"`direct` or `forwarding`.","example":"direct","type":"string"},"reference":{"type":["string","null"]},"sending_identity_id":{"type":["string","null"]},"status":{"example":"ready","type":"string"},"updated_at":{"format":"date-time","type":"string"},"visibility":{"description":"private, team, or workspace. Project API keys retain project-wide access.","type":"string"}},"required":["id","address","name","visibility","status","can_send","created_via","kind","receives_via","created_at","updated_at"],"type":"object"},"InboxListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/Inbox"},"type":"array"},"next":{"description":"Pass as `after` to read the next page. Null on the last page.","type":["string","null"]}},"required":["api_version","data"],"type":"object"},"InboxMessage":{"additionalProperties":false,"properties":{"attachments":{"description":"Up to 10 files, 10 MB in total.","items":{"$ref":"#/components/schemas/AttachmentInput"},"type":"array"},"format":{"$ref":"#/components/schemas/BodyFormat","description":"How `text_body` is read. `markdown` makes both parts from it."},"html_body":{"type":["string","null"]},"request_key":{"description":"Idempotency key: retrying with the same key returns the first send.","type":"string"},"scheduled_at":{"description":"Send at this time instead of now, up to 30 days ahead. Move it with\n`PATCH /email/emails/{email_id}`; cancel it with `DELETE`.","format":"date-time","type":["string","null"]},"subject":{"type":"string"},"text_body":{"type":"string"},"to":{"items":{"type":"string"},"type":"array"}},"required":["request_key","to","subject","text_body"],"type":"object"},"InboxResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/Inbox"}},"required":["api_version","data"],"type":"object"},"Label":{"properties":{"color":{"example":"blue","type":["string","null"]},"id":{"type":"string"},"name":{"example":"Invoice","type":"string"}},"required":["id","name"],"type":"object"},"LabelInput":{"additionalProperties":false,"properties":{"color":{"description":"A color name the dashboard knows, such as `blue` or `amber`.","type":["string","null"]},"name":{"example":"Invoice","type":"string"}},"required":["name"],"type":"object"},"NewSuppression":{"additionalProperties":false,"description":"One address to suppress.","properties":{"address":{"example":"person@example.com","type":"string"},"note":{"description":"Why, for your team; up to 500 characters.","type":["string","null"]},"reason":{"description":"Only `manual`, the default. Bounces and complaints are recorded by\ndelivery and unsubscribes by the recipient.","example":"manual","type":["string","null"]},"scope":{"description":"`service` blocks every message to the address; `marketing` blocks\nmarketing email only.","example":"service","type":"string"}},"required":["address","scope"],"type":"object"},"NoteInput":{"additionalProperties":false,"properties":{"actor":{"description":"The agent writing the note, shown to people.","type":["string","null"]},"body":{"description":"Never sent to the other side, never included in webhooks.","type":"string"}},"required":["body"],"type":"object"},"Page":{"properties":{"limit":{"example":25,"format":"int64","maximum":100,"minimum":1,"type":"integer"},"next_offset":{"example":25,"format":"int64","type":["integer","null"]},"offset":{"example":0,"format":"int64","minimum":0,"type":"integer"}},"required":["limit","offset"],"type":"object"},"RecipientResponse":{"properties":{"address":{"type":"string"},"copy":{"description":"`to`, `cc` or `bcc` for an address after the first `to`; absent for the first.","type":["string","null"]},"eligible_for_processing":{"type":["boolean","null"]},"provider":{"type":["string","null"]},"provider_message_id":{"type":["string","null"]},"reason_code":{"type":"string"},"recipient_send_id":{"type":"string"},"state":{"type":"string"}},"required":["recipient_send_id","address","state","reason_code"],"type":"object"},"RenderContact":{"additionalProperties":false,"properties":{"email":{"type":["string","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]}},"type":"object"},"RenderRequest":{"additionalProperties":false,"properties":{"contact":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RenderContact","description":"Who it's for, to fill contact.* the way a real send would."}]},"variables":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":["object","null"]},"version":{"description":"A published version number; the current one when left out.","format":"int32","type":["integer","null"]}},"type":"object"},"ReplayRange":{"properties":{"from":{"description":"Inclusive lower bound on when Relevate recorded the event.","format":"date-time","type":"string"},"to":{"description":"Exclusive upper bound; at most 31 days after `from`.","format":"date-time","type":"string"}},"required":["from","to"],"type":"object"},"ReplyRequest":{"additionalProperties":false,"properties":{"attachments":{"description":"Up to 10 files, 10 MB in total.","items":{"$ref":"#/components/schemas/AttachmentInput"},"type":"array"},"format":{"$ref":"#/components/schemas/BodyFormat","description":"How `text_body` is read. `markdown` makes both parts from it."},"html_body":{"type":["string","null"]},"reply_all":{"description":"Also reply to the other addresses the message was sent to.","type":"boolean"},"request_key":{"description":"Idempotency key: retrying with the same key returns the first send.","type":"string"},"scheduled_at":{"description":"Send at this time instead of now, up to 30 days ahead. Move it with\n`PATCH /email/emails/{email_id}`; cancel it with `DELETE`.","format":"date-time","type":["string","null"]},"text_body":{"type":"string"}},"required":["request_key","text_body"],"type":"object"},"RescheduleRequest":{"additionalProperties":false,"properties":{"scheduled_at":{"description":"The new time, up to 30 days ahead; null sends it now.","format":"date-time","type":["string","null"]}},"type":"object"},"ScheduleApiError":{"properties":{"api_version":{"type":"string"},"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"}},"required":["api_version","error"],"type":"object"},"ScheduleAttribution":{"additionalProperties":false,"description":"Only bounded UTM values are accepted. Invite, idempotency and management capability patterns are discarded and never forwarded.","maxProperties":5,"properties":{"utm_campaign":{"maxLength":200,"type":"string"},"utm_content":{"maxLength":200,"type":"string"},"utm_medium":{"maxLength":200,"type":"string"},"utm_source":{"maxLength":200,"type":"string"},"utm_term":{"maxLength":200,"type":"string"}},"type":"object"},"ScheduleAvailability":{"additionalProperties":false,"properties":{"date_overrides":{"items":{"additionalProperties":false,"properties":{"intervals":{"items":{"additionalProperties":false,"properties":{"end_minute":{"maximum":1440,"minimum":1,"type":"integer"},"start_minute":{"maximum":1439,"minimum":0,"type":"integer"}},"required":["start_minute","end_minute"],"type":"object"},"maxItems":24,"type":"array"},"local_date":{"format":"date","type":"string"}},"required":["local_date","intervals"],"type":"object"},"maxItems":366,"type":"array"},"id":{"type":"string"},"is_default":{"default":false,"description":"First schedule becomes default automatically; selecting another default preserves existing link references.","type":"boolean"},"name":{"maxLength":100,"minLength":1,"type":"string"},"revision":{"minimum":1,"type":"integer"},"timezone":{"maxLength":100,"minLength":1,"type":"string"},"weekly_intervals":{"items":{"additionalProperties":false,"properties":{"end_minute":{"maximum":1440,"minimum":1,"type":"integer"},"start_minute":{"maximum":1439,"minimum":0,"type":"integer"},"weekday":{"maximum":7,"minimum":1,"type":"integer"}},"required":["start_minute","end_minute","weekday"],"type":"object"},"maxItems":168,"type":"array"}},"required":["name","timezone","weekly_intervals","date_overrides","revision","id"],"type":"object"},"ScheduleAvailabilityCreate":{"additionalProperties":false,"properties":{"date_overrides":{"items":{"additionalProperties":false,"properties":{"intervals":{"items":{"additionalProperties":false,"properties":{"end_minute":{"maximum":1440,"minimum":1,"type":"integer"},"start_minute":{"maximum":1439,"minimum":0,"type":"integer"}},"required":["start_minute","end_minute"],"type":"object"},"maxItems":24,"type":"array"},"local_date":{"format":"date","type":"string"}},"required":["local_date","intervals"],"type":"object"},"maxItems":366,"type":"array"},"host_id":{"description":"Host user ID in the key's workspace","type":"string"},"is_default":{"default":false,"description":"First schedule becomes default automatically; selecting another default preserves existing link references.","type":"boolean"},"name":{"maxLength":100,"minLength":1,"type":"string"},"timezone":{"maxLength":100,"minLength":1,"type":"string"},"weekly_intervals":{"items":{"additionalProperties":false,"properties":{"end_minute":{"maximum":1440,"minimum":1,"type":"integer"},"start_minute":{"maximum":1439,"minimum":0,"type":"integer"},"weekday":{"maximum":7,"minimum":1,"type":"integer"}},"required":["start_minute","end_minute","weekday"],"type":"object"},"maxItems":168,"type":"array"}},"required":["name","timezone","weekly_intervals","date_overrides","host_id"],"type":"object"},"ScheduleAvailabilityDelete":{"additionalProperties":false,"properties":{"revision":{"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"},"ScheduleAvailabilityDiagnostic":{"properties":{"available":{"type":"boolean"},"blockers":{"items":{"enum":["link_paused","link_archived","schedule_missing","day_off","start_date_mismatch","not_on_interval","meeting_does_not_fit","minimum_notice","booking_horizon","existing_booking","calendar_busy","calendar_unavailable","availability_unavailable","booking_calendar_missing","conference_unavailable"],"type":"string"},"type":"array"},"capacityBlockers":{"items":{"properties":{"limit":{"type":"integer"},"metric":{"enum":["count","minutes"],"type":"string"},"period":{"enum":["day","week","month"],"type":"string"},"scope":{"enum":["link","host"],"type":"string"},"used":{"type":"integer"}},"required":["scope","period","metric","limit","used"],"type":"object"},"type":"array"},"checkedAt":{"description":"Unix milliseconds","type":"integer"},"date":{"format":"date","type":"string"},"limitations":{"items":{"enum":["live_provider_busy_check","live_conference_capability_check","dst_transition_slot_verification","start_outside_diagnostic_range"],"type":"string"},"type":"array"},"link":{"type":"string"},"start":{"format":"date-time","type":["string","null"]},"timezone":{"type":["string","null"]},"verification":{"enum":["complete","partial"],"type":"string"}},"required":["link","date","start","timezone","checkedAt","available","blockers","capacityBlockers","verification","limitations"],"type":"object"},"ScheduleAvailabilityDiagnosticInput":{"additionalProperties":false,"properties":{"date":{"format":"date","type":"string"},"eventId":{"maxLength":200,"minLength":1,"type":"string"},"start":{"description":"Optional UTC start instant; omit to inspect day-level blockers.","format":"date-time","type":["string","null"]}},"required":["eventId","date"],"type":"object"},"ScheduleAvailabilityDiagnosticResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/ScheduleAvailabilityDiagnostic"}},"required":["api_version","data"],"type":"object"},"ScheduleAvailabilityItem":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/ScheduleAvailability"},{"properties":{"host_id":{"type":"string"}},"type":"object"}]}},"required":["data"],"type":"object"},"ScheduleAvailabilityList":{"properties":{"data":{"items":{"allOf":[{"$ref":"#/components/schemas/ScheduleAvailability"},{"properties":{"host_id":{"type":"string"}},"type":"object"}]},"type":"array"}},"required":["data"],"type":"object"},"ScheduleAvailabilityUpdate":{"additionalProperties":false,"properties":{"date_overrides":{"items":{"additionalProperties":false,"properties":{"intervals":{"items":{"additionalProperties":false,"properties":{"end_minute":{"maximum":1440,"minimum":1,"type":"integer"},"start_minute":{"maximum":1439,"minimum":0,"type":"integer"}},"required":["start_minute","end_minute"],"type":"object"},"maxItems":24,"type":"array"},"local_date":{"format":"date","type":"string"}},"required":["local_date","intervals"],"type":"object"},"maxItems":366,"type":"array"},"is_default":{"default":false,"description":"First schedule becomes default automatically; selecting another default preserves existing link references.","type":"boolean"},"name":{"maxLength":100,"minLength":1,"type":"string"},"revision":{"minimum":1,"type":"integer"},"timezone":{"maxLength":100,"minLength":1,"type":"string"},"weekly_intervals":{"items":{"additionalProperties":false,"properties":{"end_minute":{"maximum":1440,"minimum":1,"type":"integer"},"start_minute":{"maximum":1439,"minimum":0,"type":"integer"},"weekday":{"maximum":7,"minimum":1,"type":"integer"}},"required":["start_minute","end_minute","weekday"],"type":"object"},"maxItems":168,"type":"array"}},"required":["name","timezone","weekly_intervals","date_overrides","revision"],"type":"object"},"ScheduleCapacityLimits":{"additionalProperties":false,"properties":{"day":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"month":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"week":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"}},"type":"object"},"ScheduleConfiguration":{"properties":{"availability_schedules":{"items":{"$ref":"#/components/schemas/ScheduleAvailability"},"type":"array"},"event_types":{"items":{"$ref":"#/components/schemas/ScheduleEventType"},"type":"array"}},"required":["availability_schedules","event_types"],"type":"object"},"ScheduleEventType":{"additionalProperties":true,"properties":{"allow_booking_view_switch":{"default":true,"description":"Allow guests to choose another calendar view.","type":"boolean"},"availability_schedule_id":{"maxLength":200,"minLength":1,"type":"string"},"booking_horizon_days":{"description":"Latest start is current server time plus this many 24-hour days, inclusive.","maximum":365,"minimum":1,"type":"integer"},"booking_questions":{"default":[],"description":"Omitting this field on update preserves existing questions; an empty array clears them.","items":{"additionalProperties":false,"properties":{"help_text":{"default":"","maxLength":500,"type":"string"},"key":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"},"options":{"default":[],"items":{"additionalProperties":false,"properties":{"id":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"}},"required":["id","label"],"type":"object"},"maxItems":20,"type":"array"},"required":{"type":"boolean"},"type":{"enum":["short_text","long_text","single_select","checkbox"],"type":"string"}},"required":["key","type","label","required"],"type":"object"},"maxItems":20,"type":"array"},"booking_view":{"default":"month","description":"Starting calendar view for this booking link.","enum":["month","week","columns"],"type":"string"},"buffer_after_minutes":{"description":"Recovery time protected after the meeting; zero disables it.","maximum":1440,"minimum":0,"type":"integer"},"buffer_before_minutes":{"description":"Preparation time protected before the meeting; zero disables it.","maximum":1440,"minimum":0,"type":"integer"},"calendar_title":{"description":"Optional calendar invitation title. Omission on update preserves it; null clears it. The public link name is unchanged.","maxLength":200,"minLength":1,"type":["string","null"]},"cancellation_notice_minutes":{"default":0,"description":"Attendee cancellation cutoff before the booked start; snapshot on booking. Omission on update preserves the current setting.","maximum":525600,"minimum":0,"type":"integer"},"capacity_limits":{"additionalProperties":false,"description":"Optional per-link daily, Monday-start weekly and calendar-month booking-count and meeting-minute limits. Omission on update preserves current limits; an empty object clears them.","properties":{"day":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"month":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"week":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"}},"type":"object"},"description":{"maxLength":5000,"type":"string"},"duration_minutes":{"description":"Meeting duration, excluding preparation and recovery buffers.","maximum":1440,"minimum":1,"type":"integer"},"id":{"type":"string"},"max_active_bookings_per_booker":{"description":"Optional cap on future active bookings for one normalized attendee email on this event type. Omission on update preserves the setting; null clears it. Anonymous slots remain global; admission enforces this under the host lock. An existing attendee can move a booking with its private management link.","maximum":100,"minimum":1,"type":["integer","null"]},"minimum_notice_minutes":{"description":"Earliest start is current server time plus this many elapsed minutes, inclusive.","maximum":525600,"minimum":0,"type":"integer"},"name":{"maxLength":100,"minLength":1,"type":"string"},"reschedule_notice_minutes":{"default":0,"description":"Attendee rescheduling cutoff before the booked start; snapshot on booking. Omission on update preserves the current setting.","maximum":525600,"minimum":0,"type":"integer"},"revision":{"minimum":1,"type":"integer"},"slot_interval_minutes":{"description":"Start-time spacing in minutes, independent of duration.","maximum":1440,"minimum":1,"type":"integer"},"slug":{"maxLength":100,"minLength":1,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","type":"string"},"state":{"enum":["active","paused","archived"],"type":"string"},"success_redirect":{"description":"Optional approved success destination. Omission on update preserves the current setting; null clears it. Guests see their confirmation and management link before choosing to continue.","oneOf":[{"$ref":"#/components/schemas/ScheduleSuccessRedirect"},{"type":"null"}]},"visibility":{"default":"listed","description":"Unlisted links require only their ordinary URL. Private links require a revocable invitation capability, which may expire or have a booking-use limit. Paused and archived links remain unavailable.","enum":["listed","unlisted","private"],"type":"string"}},"required":["name","description","slug","availability_schedule_id","state","duration_minutes","slot_interval_minutes","buffer_before_minutes","buffer_after_minutes","minimum_notice_minutes","booking_horizon_days","revision","id"],"type":"object"},"ScheduleEventTypeCreate":{"additionalProperties":false,"properties":{"allow_booking_view_switch":{"default":true,"description":"Allow guests to choose another calendar view.","type":"boolean"},"availability_schedule_id":{"maxLength":200,"minLength":1,"type":"string"},"booking_horizon_days":{"description":"Latest start is current server time plus this many 24-hour days, inclusive.","maximum":365,"minimum":1,"type":"integer"},"booking_questions":{"default":[],"description":"Omitting this field on update preserves existing questions; an empty array clears them.","items":{"additionalProperties":false,"properties":{"help_text":{"default":"","maxLength":500,"type":"string"},"key":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"},"options":{"default":[],"items":{"additionalProperties":false,"properties":{"id":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"}},"required":["id","label"],"type":"object"},"maxItems":20,"type":"array"},"required":{"type":"boolean"},"type":{"enum":["short_text","long_text","single_select","checkbox"],"type":"string"}},"required":["key","type","label","required"],"type":"object"},"maxItems":20,"type":"array"},"booking_view":{"default":"month","description":"Starting calendar view for this booking link.","enum":["month","week","columns"],"type":"string"},"buffer_after_minutes":{"description":"Recovery time protected after the meeting; zero disables it.","maximum":1440,"minimum":0,"type":"integer"},"buffer_before_minutes":{"description":"Preparation time protected before the meeting; zero disables it.","maximum":1440,"minimum":0,"type":"integer"},"calendar_title":{"description":"Optional calendar invitation title. Omission on update preserves it; null clears it. The public link name is unchanged.","maxLength":200,"minLength":1,"type":["string","null"]},"cancellation_notice_minutes":{"default":0,"description":"Attendee cancellation cutoff before the booked start; snapshot on booking. Omission on update preserves the current setting.","maximum":525600,"minimum":0,"type":"integer"},"capacity_limits":{"additionalProperties":false,"description":"Optional per-link daily, Monday-start weekly and calendar-month booking-count and meeting-minute limits. Omission on update preserves current limits; an empty object clears them.","properties":{"day":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"month":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"week":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"}},"type":"object"},"description":{"maxLength":5000,"type":"string"},"duration_minutes":{"description":"Meeting duration, excluding preparation and recovery buffers.","maximum":1440,"minimum":1,"type":"integer"},"host_id":{"description":"Host user ID in the key's workspace","type":"string"},"max_active_bookings_per_booker":{"description":"Optional cap on future active bookings for one normalized attendee email on this event type. Omission on update preserves the setting; null clears it. Anonymous slots remain global; admission enforces this under the host lock. An existing attendee can move a booking with its private management link.","maximum":100,"minimum":1,"type":["integer","null"]},"minimum_notice_minutes":{"description":"Earliest start is current server time plus this many elapsed minutes, inclusive.","maximum":525600,"minimum":0,"type":"integer"},"name":{"maxLength":100,"minLength":1,"type":"string"},"reschedule_notice_minutes":{"default":0,"description":"Attendee rescheduling cutoff before the booked start; snapshot on booking. Omission on update preserves the current setting.","maximum":525600,"minimum":0,"type":"integer"},"slot_interval_minutes":{"description":"Start-time spacing in minutes, independent of duration.","maximum":1440,"minimum":1,"type":"integer"},"slug":{"maxLength":100,"minLength":1,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","type":"string"},"state":{"enum":["active","paused","archived"],"type":"string"},"success_redirect":{"description":"Optional approved success destination. Omission on update preserves the current setting; null clears it. Guests see their confirmation and management link before choosing to continue.","oneOf":[{"$ref":"#/components/schemas/ScheduleSuccessRedirect"},{"type":"null"}]},"visibility":{"default":"listed","description":"Unlisted links require only their ordinary URL. Private links require a revocable invitation capability, which may expire or have a booking-use limit. Paused and archived links remain unavailable.","enum":["listed","unlisted","private"],"type":"string"}},"required":["name","description","slug","availability_schedule_id","state","duration_minutes","slot_interval_minutes","buffer_before_minutes","buffer_after_minutes","minimum_notice_minutes","booking_horizon_days","host_id"],"type":"object"},"ScheduleEventTypeItem":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/ScheduleEventType"},{"properties":{"host_id":{"type":"string"}},"type":"object"}]}},"required":["data"],"type":"object"},"ScheduleEventTypeList":{"properties":{"data":{"items":{"allOf":[{"$ref":"#/components/schemas/ScheduleEventType"},{"properties":{"host_id":{"type":"string"}},"type":"object"}]},"type":"array"}},"required":["data"],"type":"object"},"ScheduleEventTypeUpdate":{"additionalProperties":false,"properties":{"allow_booking_view_switch":{"default":true,"description":"Allow guests to choose another calendar view.","type":"boolean"},"availability_schedule_id":{"maxLength":200,"minLength":1,"type":"string"},"booking_horizon_days":{"description":"Latest start is current server time plus this many 24-hour days, inclusive.","maximum":365,"minimum":1,"type":"integer"},"booking_questions":{"default":[],"description":"Omitting this field on update preserves existing questions; an empty array clears them.","items":{"additionalProperties":false,"properties":{"help_text":{"default":"","maxLength":500,"type":"string"},"key":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"},"options":{"default":[],"items":{"additionalProperties":false,"properties":{"id":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"}},"required":["id","label"],"type":"object"},"maxItems":20,"type":"array"},"required":{"type":"boolean"},"type":{"enum":["short_text","long_text","single_select","checkbox"],"type":"string"}},"required":["key","type","label","required"],"type":"object"},"maxItems":20,"type":"array"},"booking_view":{"default":"month","description":"Starting calendar view for this booking link.","enum":["month","week","columns"],"type":"string"},"buffer_after_minutes":{"description":"Recovery time protected after the meeting; zero disables it.","maximum":1440,"minimum":0,"type":"integer"},"buffer_before_minutes":{"description":"Preparation time protected before the meeting; zero disables it.","maximum":1440,"minimum":0,"type":"integer"},"calendar_title":{"description":"Optional calendar invitation title. Omission on update preserves it; null clears it. The public link name is unchanged.","maxLength":200,"minLength":1,"type":["string","null"]},"cancellation_notice_minutes":{"default":0,"description":"Attendee cancellation cutoff before the booked start; snapshot on booking. Omission on update preserves the current setting.","maximum":525600,"minimum":0,"type":"integer"},"capacity_limits":{"additionalProperties":false,"description":"Optional per-link daily, Monday-start weekly and calendar-month booking-count and meeting-minute limits. Omission on update preserves current limits; an empty object clears them.","properties":{"day":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"month":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"},"week":{"additionalProperties":false,"properties":{"count":{"maximum":10000,"minimum":1,"type":["integer","null"]},"minutes":{"maximum":44640,"minimum":1,"type":["integer","null"]}},"type":"object"}},"type":"object"},"description":{"maxLength":5000,"type":"string"},"duration_minutes":{"description":"Meeting duration, excluding preparation and recovery buffers.","maximum":1440,"minimum":1,"type":"integer"},"max_active_bookings_per_booker":{"description":"Optional cap on future active bookings for one normalized attendee email on this event type. Omission on update preserves the setting; null clears it. Anonymous slots remain global; admission enforces this under the host lock. An existing attendee can move a booking with its private management link.","maximum":100,"minimum":1,"type":["integer","null"]},"minimum_notice_minutes":{"description":"Earliest start is current server time plus this many elapsed minutes, inclusive.","maximum":525600,"minimum":0,"type":"integer"},"name":{"maxLength":100,"minLength":1,"type":"string"},"reschedule_notice_minutes":{"default":0,"description":"Attendee rescheduling cutoff before the booked start; snapshot on booking. Omission on update preserves the current setting.","maximum":525600,"minimum":0,"type":"integer"},"revision":{"minimum":1,"type":"integer"},"slot_interval_minutes":{"description":"Start-time spacing in minutes, independent of duration.","maximum":1440,"minimum":1,"type":"integer"},"slug":{"maxLength":100,"minLength":1,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","type":"string"},"state":{"enum":["active","paused","archived"],"type":"string"},"success_redirect":{"description":"Optional approved success destination. Omission on update preserves the current setting; null clears it. Guests see their confirmation and management link before choosing to continue.","oneOf":[{"$ref":"#/components/schemas/ScheduleSuccessRedirect"},{"type":"null"}]},"visibility":{"default":"listed","description":"Unlisted links require only their ordinary URL. Private links require a revocable invitation capability, which may expire or have a booking-use limit. Paused and archived links remain unavailable.","enum":["listed","unlisted","private"],"type":"string"}},"required":["name","description","slug","availability_schedule_id","state","duration_minutes","slot_interval_minutes","buffer_before_minutes","buffer_after_minutes","minimum_notice_minutes","booking_horizon_days","revision"],"type":"object"},"ScheduleFeedbackInput":{"additionalProperties":false,"properties":{"rating":{"maximum":5,"minimum":1,"type":"integer"}},"required":["rating"],"type":"object"},"ScheduleFeedbackResponse":{"properties":{"data":{"properties":{"eligible":{"type":"boolean"},"rating":{"maximum":5,"minimum":1,"type":["integer","null"]}},"required":["eligible","rating"],"type":"object"}},"required":["data"],"type":"object"},"ScheduleFeedbackSavedResponse":{"properties":{"data":{"properties":{"rating":{"maximum":5,"minimum":1,"type":"integer"}},"required":["rating"],"type":"object"}},"required":["data"],"type":"object"},"ScheduleHostAttendanceInput":{"additionalProperties":false,"properties":{"attendance":{"enum":["unknown","attended","attendee_no_show","host_no_show"],"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["revision","attendance"],"type":"object"},"ScheduleHostAttendanceResult":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"revision":{"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"}},"required":["api_version","data"],"type":"object"},"ScheduleHostBooking":{"additionalProperties":false,"properties":{"answers":{"items":{"$ref":"#/components/schemas/ScheduleHostBookingAnswer"},"maxItems":20,"type":"array"},"attendance":{"enum":["unknown","attended","attendee_no_show","host_no_show"],"type":"string"},"email":{"format":"email","type":"string"},"endAt":{"format":"date-time","type":"string"},"eventTypeId":{"type":"string"},"eventTypeName":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"revision":{"minimum":1,"type":"integer"},"startAt":{"format":"date-time","type":"string"},"state":{"enum":["processing","confirmed","rescheduling","cancelling","cancelled","failed","needs_attention"],"type":"string"},"timezone":{"type":"string"}},"required":["id","eventTypeId","eventTypeName","name","email","startAt","endAt","timezone","state","attendance","revision","answers"],"type":"object"},"ScheduleHostBookingAnswer":{"additionalProperties":false,"properties":{"key":{"type":"string"},"label":{"type":"string"},"option_id":{"type":"string"},"option_label":{"type":"string"},"type":{"enum":["short_text","long_text","single_select","checkbox"],"type":"string"},"value":{"type":["string","boolean","null"]}},"required":["key","type","label","value"],"type":"object"},"ScheduleHostBookingDetail":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/ScheduleHostBooking"}},"required":["api_version","data"],"type":"object"},"ScheduleHostBookingList":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"hasMore":{"type":"boolean"},"items":{"items":{"$ref":"#/components/schemas/ScheduleHostBooking"},"maxItems":50,"type":"array"},"page":{"maximum":10000,"minimum":0,"type":"integer"}},"required":["items","hasMore","page"],"type":"object"}},"required":["api_version","data"],"type":"object"},"ScheduleHostCancelInput":{"additionalProperties":false,"properties":{"revision":{"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"},"ScheduleHostCancelResult":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"revision":{"minimum":1,"type":"integer"},"state":{"enum":["cancelling","cancelled"],"type":"string"}},"required":["state","revision"],"type":"object"}},"required":["api_version","data"],"type":"object"},"ScheduleHostCapacityPolicy":{"properties":{"limits":{"$ref":"#/components/schemas/ScheduleCapacityLimits"},"revision":{"minimum":1,"type":"integer"},"timezone":{"type":"string"}},"required":["timezone","limits","revision"],"type":"object"},"ScheduleHostCapacityPolicyInput":{"additionalProperties":false,"properties":{"limits":{"$ref":"#/components/schemas/ScheduleCapacityLimits"},"revision":{"minimum":1,"type":["integer","null"]},"timezone":{"maxLength":100,"minLength":1,"type":"string"}},"required":["timezone","limits"],"type":"object"},"ScheduleHostCapacityPolicyRead":{"oneOf":[{"$ref":"#/components/schemas/ScheduleHostCapacityPolicy"},{"type":"null"}]},"ScheduleHostManagementLink":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"url":{"description":"Sensitive booking-scoped capability URL returned only to a host with schedule:booking_write. Do not log or publish.","format":"uri","type":"string"}},"required":["url"],"type":"object"}},"required":["api_version","data"],"type":"object"},"ScheduleInsightReport":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"attendanceDenominator":{"type":"integer"},"averageRating":{"type":["number","null"]},"byLink":{"items":{"properties":{"bookings":{"type":"integer"},"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name","bookings"],"type":"object"},"type":"array"},"cancelled":{"type":"integer"},"confirmed":{"type":"integer"},"dateBasis":{"const":"scheduled_start"},"feedbackCount":{"type":"integer"},"generatedAt":{"format":"date-time","type":"string"},"noShows":{"type":"integer"},"reportingTimezone":{"const":"UTC"},"rescheduled":{"type":"integer"},"total":{"type":"integer"},"unknownAttendance":{"type":"integer"}},"required":["total","confirmed","cancelled","rescheduled","noShows","attendanceDenominator","unknownAttendance","feedbackCount","averageRating","byLink","generatedAt","dateBasis","reportingTimezone"],"type":"object"}},"required":["api_version","data"],"type":"object"},"ScheduleManagedBooking":{"properties":{"calendarTitle":{"description":"Title used in calendar invitations and downloaded calendar files.","type":"string"},"canCancel":{"type":"boolean"},"canReschedule":{"description":"Saved deadline eligibility. Rust managed slots and rescheduling currently support standalone bookings; calendar-backed moves use the existing Platform flow.","type":"boolean"},"email":{"format":"email","type":"string"},"end":{"description":"Unix milliseconds","type":"integer"},"event":{"type":"string"},"id":{"type":"string"},"location":{"type":["string","null"]},"name":{"type":"string"},"organizationLogo":{"type":["string","null"]},"organizationName":{"type":"string"},"revision":{"type":"integer"},"start":{"description":"Unix milliseconds","type":"integer"},"state":{"type":"string"},"timezone":{"type":"string"},"title":{"type":"string"},"workspace":{"type":"string"}},"required":["id","workspace","organizationName","event","title","name","email","start","end","timezone","state","revision","canCancel","canReschedule"],"type":"object"},"ScheduleManagedBookingResponse":{"properties":{"data":{"$ref":"#/components/schemas/ScheduleManagedBooking"}},"required":["data"],"type":"object"},"ScheduleManagedCancelInput":{"additionalProperties":false,"properties":{"revision":{"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"},"ScheduleManagedCancelResponse":{"properties":{"data":{"properties":{"id":{"type":"string"},"revision":{"type":"integer"},"state":{"enum":["cancelling","cancelled"],"type":"string"}},"required":["id","state","revision"],"type":"object"}},"required":["data"],"type":"object"},"ScheduleManagedRescheduleInput":{"additionalProperties":false,"properties":{"revision":{"minimum":1,"type":"integer"},"start":{"description":"UTC Unix milliseconds","minimum":0,"type":"integer"}},"required":["revision","start"],"type":"object"},"ScheduleManagedRescheduleResponse":{"properties":{"data":{"properties":{"id":{"type":"string"},"revision":{"type":"integer"},"state":{"enum":["confirmed"],"type":"string"}},"required":["id","state","revision"],"type":"object"}},"required":["data"],"type":"object"},"ScheduleManagedSlotsResponse":{"properties":{"data":{"properties":{"slots":{"items":{"description":"UTC Unix milliseconds","type":"integer"},"type":"array"}},"required":["slots"],"type":"object"}},"required":["data"],"type":"object"},"ScheduleNotificationHistoryItem":{"properties":{"dueAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"jobState":{"enum":["pending","in_flight","sent","skipped","dead"],"type":"string"},"kind":{"type":"string"},"recipientRole":{"enum":["attendee","host"],"type":"string"},"recipientState":{"description":"Latest Email recipient state; provider acceptance does not prove inbox placement.","type":["string","null"]},"revision":{"type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","revision","kind","recipientRole","jobState","recipientState","dueAt","updatedAt"],"type":"object"},"ScheduleNotificationHistoryResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/ScheduleNotificationHistoryItem"},"type":"array"}},"required":["api_version","data"],"type":"object"},"ScheduleNotificationSender":{"properties":{"projectId":{"type":"string"},"projectName":{"type":"string"},"senderAddress":{"format":"email","type":"string"},"senderIdentityId":{"type":"string"},"senderStatus":{"type":"string"}},"required":["projectId","projectName","senderIdentityId","senderAddress","senderStatus"],"type":"object"},"ScheduleNotificationSenderListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/ScheduleNotificationSender"},"type":"array"}},"required":["api_version","data"],"type":"object"},"ScheduleNotificationSettings":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"notifyHost":{"default":false,"description":"Opt-in lifecycle email to the verified host of standalone bookings only; calendar-backed hosts receive native invitations.","type":"boolean"},"projectId":{"type":"string"},"reminder1h":{"type":"boolean"},"reminder24h":{"type":"boolean"},"senderIdentityId":{"type":"string"}},"required":["projectId","senderIdentityId","enabled","reminder24h","reminder1h","notifyHost"],"type":"object"},"ScheduleNotificationSettingsInput":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"notifyHost":{"default":false,"description":"Opt-in lifecycle email to the verified host of standalone bookings only; calendar-backed hosts receive native invitations.","type":"boolean"},"projectId":{"type":"string"},"reminder1h":{"type":"boolean"},"reminder24h":{"type":"boolean"},"senderIdentityId":{"type":"string"}},"required":["projectId","senderIdentityId","enabled","reminder24h","reminder1h"],"type":"object"},"ScheduleNotificationSettingsResponse":{"properties":{"api_version":{"type":"string"},"data":{"oneOf":[{"$ref":"#/components/schemas/ScheduleNotificationSettings"},{"type":"null"}]}},"required":["api_version","data"],"type":"object"},"SchedulePrivateLink":{"properties":{"created_at":{"format":"date-time","type":"string"},"event_type_id":{"type":"string"},"expires_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"label":{"type":"string"},"max_uses":{"type":["integer","null"]},"revoked_at":{"format":"date-time","type":["string","null"]},"use_count":{"type":"integer"}},"required":["id","event_type_id","label","use_count","created_at"],"type":"object"},"SchedulePrivateLinkIssue":{"additionalProperties":false,"properties":{"expires_at":{"description":"Optional future expiry within 365 days.","format":"date-time","type":["string","null"]},"label":{"default":"","maxLength":100,"type":"string"},"max_uses":{"maximum":10000,"minimum":1,"type":["integer","null"]}},"type":"object"},"SchedulePrivateLinkIssued":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"id":{"type":"string"},"path":{"description":"One-time relative capability URL. Store securely; the token is not available from list.","type":"string"}},"required":["id","path"],"type":"object"}},"required":["api_version","data"],"type":"object"},"SchedulePrivateLinkList":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/SchedulePrivateLink"},"type":"array"}},"required":["api_version","data"],"type":"object"},"SchedulePrivateLinkRevoked":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"revoked":{"type":"boolean"}},"required":["revoked"],"type":"object"}},"required":["api_version","data"],"type":"object"},"SchedulePublicBookingCreate":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"oneOf":[{"maxLength":5000,"type":"string"},{"type":"boolean"}]},"maxProperties":20,"type":"object"},"attribution":{"$ref":"#/components/schemas/ScheduleAttribution"},"email":{"format":"email","maxLength":254,"type":"string"},"event":{"maxLength":100,"minLength":1,"type":"string"},"invite":{"pattern":"^[A-Za-z0-9_-]{43}$","type":"string"},"name":{"maxLength":200,"type":"string"},"start":{"description":"UTC Unix milliseconds","format":"int64","minimum":0,"type":"integer"},"timezone":{"maxLength":100,"type":"string"},"workspace":{"maxLength":100,"minLength":1,"type":"string"}},"required":["workspace","event","start","timezone","name","email"],"type":"object"},"SchedulePublicBookingCreated":{"properties":{"data":{"properties":{"conferenceUrl":{"format":"uri","type":["string","null"]},"end":{"format":"int64","type":"integer"},"eventName":{"type":"string"},"id":{"type":"string"},"managementUrl":{"description":"Private management capability URL returned on initial insertion only; null on retry.","format":"uri","type":["string","null"]},"name":{"type":"string"},"start":{"format":"int64","type":"integer"},"state":{"type":"string"},"successRedirectUrl":{"description":"Server-built approved destination, only on confirmation, with selected safe UTM parameters. It contains no booking capabilities.","format":"uri","type":["string","null"]}},"required":["id","start","end","name","eventName","state","managementUrl","conferenceUrl","successRedirectUrl"],"type":"object"}},"required":["data"],"type":"object"},"SchedulePublicBookingStatus":{"properties":{"data":{"properties":{"conferenceUrl":{"format":"uri","type":["string","null"]},"state":{"type":"string"},"successRedirectUrl":{"description":"Server-built approved destination, only on confirmation, with selected safe UTM parameters. It contains no booking capabilities.","format":"uri","type":["string","null"]}},"required":["state","conferenceUrl","successRedirectUrl"],"type":"object"}},"required":["data"],"type":"object"},"SchedulePublicEvent":{"properties":{"data":{"properties":{"bookingAvailable":{"type":"boolean"},"bookingUnavailableReason":{"type":["string","null"]},"event":{"properties":{"allowBookingViewSwitch":{"type":"boolean"},"bookingHorizonDays":{"type":"integer"},"bookingQuestions":{"items":{"type":"object"},"type":"array"},"bookingView":{"enum":["month","week","columns"],"type":"string"},"description":{"type":"string"},"durationMinutes":{"type":"integer"},"location":{"type":"string"},"name":{"type":"string"}},"required":["name","description","durationMinutes","location","bookingHorizonDays","bookingQuestions","bookingView","allowBookingViewSwitch"],"type":"object"},"organizationLogo":{"type":["string","null"]},"organizationName":{"type":"string"},"timezone":{"type":"string"}},"required":["organizationName","organizationLogo","timezone","event","bookingAvailable","bookingUnavailableReason"],"type":"object"}},"required":["data"],"type":"object"},"SchedulePublicSlots":{"properties":{"data":{"properties":{"slots":{"items":{"description":"UTC Unix milliseconds","format":"int64","type":"integer"},"type":"array"}},"required":["slots"],"type":"object"}},"required":["data"],"type":"object"},"ScheduleSaveResult":{"properties":{"id":{"type":"string"}},"required":["id"],"type":"object"},"ScheduleSuccessRedirect":{"additionalProperties":false,"properties":{"forward_parameters":{"items":{"enum":["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],"type":"string"},"maxItems":5,"type":"array","uniqueItems":true},"url":{"description":"Public HTTPS URL on an operator-approved exact origin. Credentials, nonstandard ports, query and fragment are forbidden.","format":"uri","maxLength":2048,"type":"string"}},"required":["url","forward_parameters"],"type":"object"},"ScheduleWebhookCreate":{"additionalProperties":false,"properties":{"eventTypes":{"items":{"enum":["schedule.booking.created","schedule.booking.rescheduled","schedule.booking.cancelled"],"type":"string"},"maxItems":3,"minItems":1,"type":"array","uniqueItems":true},"url":{"description":"Operator-approved exact-host public HTTPS URL, with no query or fragment.","format":"uri","type":"string"}},"required":["url","eventTypes"],"type":"object"},"ScheduleWebhookCreateResponse":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"signingSecret":{"description":"Returned once; store securely.","type":"string"},"subscription":{"$ref":"#/components/schemas/ScheduleWebhookSubscription"}},"required":["subscription","signingSecret"],"type":"object"}},"required":["api_version","data"],"type":"object"},"ScheduleWebhookDelivery":{"properties":{"attempts":{"type":"integer"},"createdAt":{"format":"date-time","type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string"},"id":{"type":"string"},"lastError":{"type":["string","null"]},"lastResponseStatus":{"type":["integer","null"]},"nextAttemptAt":{"format":"date-time","type":"string"},"state":{"enum":["pending","in_flight","succeeded","dead"],"type":"string"}},"required":["id","eventId","eventType","state","attempts","nextAttemptAt","createdAt"],"type":"object"},"ScheduleWebhookDeliveryListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/ScheduleWebhookDelivery"},"type":"array"}},"required":["api_version","data"],"type":"object"},"ScheduleWebhookListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/ScheduleWebhookSubscription"},"type":"array"}},"required":["api_version","data"],"type":"object"},"ScheduleWebhookResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/ScheduleWebhookSubscription"}},"required":["api_version","data"],"type":"object"},"ScheduleWebhookRotateResponse":{"properties":{"api_version":{"type":"string"},"data":{"properties":{"signingSecret":{"description":"Returned once; store securely.","type":"string"}},"required":["signingSecret"],"type":"object"}},"required":["api_version","data"],"type":"object"},"ScheduleWebhookSubscription":{"properties":{"createdAt":{"format":"date-time","type":"string"},"eventTypes":{"items":{"enum":["schedule.booking.created","schedule.booking.rescheduled","schedule.booking.cancelled"],"type":"string"},"maxItems":3,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"status":{"enum":["active","paused"],"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"url":{"format":"uri","type":"string"}},"required":["id","url","eventTypes","status","createdAt","updatedAt"],"type":"object"},"ScheduleWebhookUpdate":{"additionalProperties":false,"properties":{"eventTypes":{"items":{"enum":["schedule.booking.created","schedule.booking.rescheduled","schedule.booking.cancelled"],"type":"string"},"maxItems":3,"minItems":1,"type":"array","uniqueItems":true},"status":{"enum":["active","paused"],"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"ScheduleWorkflow":{"properties":{"definition":{"description":"The saved workflow definition. Only immediate confirmed, rescheduled and cancelled email actions attached to owner-hosted links can be enabled through this API.","type":"object"},"id":{"type":"string"},"name":{"type":"string"},"ownerUserId":{"type":"string"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","enabled","disabled","archived"],"type":"string"}},"required":["id","ownerUserId","name","revision","state","definition"],"type":"object"},"ScheduleWorkflowListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/ScheduleWorkflow"},"maxItems":100,"type":"array"}},"required":["api_version","data"],"type":"object"},"ScheduleWorkflowResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/ScheduleWorkflow"}},"required":["api_version","data"],"type":"object"},"ScheduleWorkflowStateInput":{"additionalProperties":false,"properties":{"expectedRevision":{"minimum":1,"type":"integer"},"state":{"enum":["enabled","disabled"],"type":"string"}},"required":["state","expectedRevision"],"type":"object"},"Segment":{"properties":{"created_at":{"format":"date-time","type":"string"},"definition":{},"id":{"type":"string"},"kind":{"example":"dynamic","type":"string"},"last_evaluated_at":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"status":{"example":"active","type":"string"},"updated_at":{"format":"date-time","type":"string"},"version":{"format":"int32","type":"integer"}},"required":["id","name","kind","definition","version","status","created_at","updated_at"],"type":"object"},"SegmentListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/Segment"},"type":"array"}},"required":["api_version","data"],"type":"object"},"SegmentResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/Segment"}},"required":["api_version","data"],"type":"object"},"SendEmailRequest":{"additionalProperties":false,"description":"One email. Send it again with the same `Idempotency-Key` header and you\nget the first answer back instead of a second email.","properties":{"attachments":{"description":"Up to 10 files, 10 MB in total. Executable file types are refused.","items":{"$ref":"#/components/schemas/AttachmentInput"},"type":"array"},"bcc":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Addresses","description":"Hidden copies. Service email only."}]},"cc":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Addresses","description":"Copies named in the Cc header. Service email only."}]},"from":{"description":"`\"Ada <ada@yourdomain.com>\"` or `\"ada@yourdomain.com\"`: an address on\none of your verified domains. Required, unless the template has a sender.","type":["string","null"]},"headers":{"description":"Your own `X-` headers, like `{\"X-Entity-Ref\": \"order-1234\"}`. A\nsign-in code can also go in `OTP-Token`, so mail apps can fill it in:\n`{\"OTP-Token\": \"\\\"123456\\\"; origin=\\\"https://example.com\\\"\"}`, on a\nservice email to one recipient.","type":"object"},"html":{"description":"The HTML body.","type":["string","null"]},"message_class":{"description":"`service` (the default) or `marketing`. Taken from the template when\none is used.","type":["string","null"]},"purpose_id":{"description":"What the email is for, like `password_reset`. `api` when left out, or\n`template:<alias>` for a template.","type":["string","null"]},"reference":{"description":"Your own reference, up to 200 characters; a filter in `/emails/query`.","type":["string","null"]},"reply_to":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Addresses","description":"Where replies go: one address or up to 10."}]},"scheduled_at":{"description":"Deliver at this time instead of now, up to 30 days ahead. Change it\nwith `PATCH /emails/{email_id}`; cancel with `DELETE`.","format":"date-time","type":["string","null"]},"subject":{"description":"Required without a template; leave it out when sending one.","type":["string","null"]},"tags":{"description":"Up to 20 labels for your own bookkeeping, like\n`{\"name\": \"category\", \"value\": \"password_reset\"}`. Returned on the\nemail and in every webhook about it, and a filter in `/emails/query`.","items":{"$ref":"#/components/schemas/SendTag"},"type":"array"},"template":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EmailTemplate","description":"Send a published template instead of subject, html and text."}]},"text":{"description":"The plain-text body. Made from `html` when left out.","type":["string","null"]},"to":{"$ref":"#/components/schemas/Addresses","description":"One address or up to 50, all named in the To header of the one email.\nMarketing email takes exactly one; use `/email/emails/batch` for many people."},"topic_id":{"description":"A marketing email's topic. Whoever it goes to must be on the topic:\nsubscribed, or not opted out of a topic that includes everyone.","type":["string","null"]}},"required":["to"],"type":"object"},"SendEvent":{"description":"One thing that happened to one recipient's copy of a send.","properties":{"bounce_classification":{"description":"Why a message bounced or was deferred, when known.","example":"InvalidRecipient","type":["string","null"]},"classification":{"description":"For `opened` and `clicked`: `observed`, `automated` (a security\nscanner or image proxy) or `unknown`. A fetch is not proof that a\nperson read the message.","example":"observed","type":["string","null"]},"email_id":{"description":"The email's `id`.","type":"string"},"id":{"description":"The same ID the webhook for this event carries.","example":"email_delivery_event_0abc","type":"string"},"occurred_at":{"format":"date-time","type":"string"},"recipient":{"description":"The recipient address as it was given.","example":"ada@example.com","type":"string"},"recipient_send_id":{"type":"string"},"smtp_code":{"description":"The receiving server's SMTP code, when there was one.","example":"550","type":["string","null"]},"type":{"description":"`queued`, `delivered`, `deferred`, `permanently_failed`, `complained`,\n`suppressed`, `opened` or `clicked`: the webhook event types.","example":"delivered","type":"string"},"url":{"description":"For `clicked`: the link, without its query string or fragment.","example":"https://example.com/orders","type":["string","null"]}},"required":["id","email_id","recipient_send_id","recipient","type","occurred_at"],"type":"object"},"SendEventsResponse":{"properties":{"api_version":{"example":"2026-10-27","type":"string"},"data":{"description":"Oldest first.","items":{"$ref":"#/components/schemas/SendEvent"},"type":"array"},"has_more":{"description":"Later events exist after this page.","type":"boolean"},"next_cursor":{"description":"Pass as `after` to read the next page. Null when `has_more` is false.","type":["string","null"]}},"required":["api_version","data","has_more"],"type":"object"},"SendQuery":{"properties":{"limit":{"format":"int64","type":["integer","null"]},"message_class":{"type":["string","null"]},"offset":{"format":"int64","type":["integer","null"]},"reference":{"type":["string","null"]},"scheduled":{"description":"Only sends still waiting for their scheduled time.","type":["boolean","null"]},"state":{"type":["string","null"]},"tags":{"description":"Sends carrying every one of these tags.","items":{"$ref":"#/components/schemas/SendTag"},"type":"array"},"topic_id":{"type":["string","null"]}},"type":"object"},"SendResponse":{"properties":{"accepted_at":{"format":"date-time","type":"string"},"api_version":{"type":"string"},"id":{"description":"The email's ID.","type":"string"},"reason_code":{"type":"string"},"recipients":{"items":{"$ref":"#/components/schemas/RecipientResponse"},"type":"array"},"replayed":{"type":["boolean","null"]},"scheduled_at":{"description":"When delivery starts, for a scheduled send.","format":"date-time","type":["string","null"]},"state":{"type":"string"},"tags":{"items":{"$ref":"#/components/schemas/SendTag"},"type":"array"},"thread_id":{"type":["string","null"]},"topic_id":{"type":["string","null"]}},"required":["api_version","id","accepted_at","state","reason_code","tags","recipients"],"type":"object"},"SendTag":{"additionalProperties":false,"description":"A label for the caller's own bookkeeping, like `category: password_reset`.\nReturned on the send and in every webhook about it, and a filter in queries.","properties":{"name":{"description":"Letters, numbers, `_` and `-`; at most 64 characters.","type":"string"},"value":{"description":"At most 256 characters, no control characters.","type":"string"}},"required":["name","value"],"type":"object"},"SenderIdentity":{"properties":{"address":{"example":"updates@mail.example.com","type":"string"},"created_at":{"format":"date-time","type":"string"},"display_name":{"example":"Example updates","type":["string","null"]},"domain_id":{"type":["string","null"]},"id":{"type":"string"},"reply_to":{"type":["string","null"]},"status":{"example":"active","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","address","status","created_at","updated_at"],"type":"object"},"SenderIdentityListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/SenderIdentity"},"type":"array"}},"required":["api_version","data"],"type":"object"},"SenderIdentityResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/SenderIdentity"}},"required":["api_version","data"],"type":"object"},"Suppression":{"description":"One suppressed address.","properties":{"address":{"description":"The normalized address.","example":"person@example.com","type":"string"},"created_at":{"format":"date-time","type":"string"},"id":{"example":"email_suppression_0abc","type":"string"},"note":{"description":"The note given when it was added through the API.","type":["string","null"]},"reason":{"description":"`manual` (added through the API), `hard_bounce`, `complaint`,\n`unsubscribe` (the recipient opted out) or `manual_block` (blocked by\nyour team in the dashboard).","example":"manual","type":"string"},"released_at":{"format":"date-time","type":["string","null"]},"removable":{"description":"Whether `DELETE /email/suppressions/{address}` can remove it: only\nactive suppressions added through the API can be.","type":"boolean"},"scope":{"description":"`service` blocks every message to the address; `marketing` blocks\nmarketing email only.","example":"service","type":"string"},"status":{"description":"`active` or `released`.","example":"active","type":"string"}},"required":["id","address","reason","scope","status","removable","created_at"],"type":"object"},"SuppressionBatch":{"properties":{"created":{"minimum":0,"type":"integer"},"existing":{"minimum":0,"type":"integer"},"invalid":{"minimum":0,"type":"integer"},"results":{"items":{"$ref":"#/components/schemas/SuppressionBatchItem"},"type":"array"}},"required":["created","existing","invalid","results"],"type":"object"},"SuppressionBatchItem":{"description":"What happened to one item of a batch.","properties":{"address":{"type":["string","null"]},"error":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SuppressionItemError"}]},"index":{"description":"The item's position in the request, from 0.","minimum":0,"type":"integer"},"status":{"description":"`created`, `exists` (already suppressed for that scope) or `invalid`.","example":"created","type":"string"},"suppression":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Suppression"}]}},"required":["index","status"],"type":"object"},"SuppressionBatchRequest":{"additionalProperties":false,"properties":{"suppressions":{"description":"1 to 1000 suppressions. Each is checked on its own: one bad item\ndoesn't stop the rest.","items":{"$ref":"#/components/schemas/NewSuppression"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["suppressions"],"type":"object"},"SuppressionBatchResponse":{"properties":{"api_version":{"example":"2026-10-27","type":"string"},"data":{"$ref":"#/components/schemas/SuppressionBatch"}},"required":["api_version","data"],"type":"object"},"SuppressionItemError":{"properties":{"code":{"example":"invalid_email","type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"SuppressionListResponse":{"properties":{"api_version":{"example":"2026-10-27","type":"string"},"data":{"items":{"$ref":"#/components/schemas/Suppression"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"required":["api_version","data","page"],"type":"object"},"SuppressionRemoval":{"properties":{"address":{"type":"string"},"released":{"description":"The suppressions this request released.","items":{"$ref":"#/components/schemas/Suppression"},"type":"array"},"still_suppressed":{"description":"True when a bounce, complaint, block or the recipient's own\nunsubscribe still stops some email to the address.","type":"boolean"}},"required":["address","released","still_suppressed"],"type":"object"},"SuppressionRemovalResponse":{"properties":{"api_version":{"example":"2026-10-27","type":"string"},"data":{"$ref":"#/components/schemas/SuppressionRemoval"}},"required":["api_version","data"],"type":"object"},"SuppressionResponse":{"properties":{"api_version":{"example":"2026-10-27","type":"string"},"data":{"$ref":"#/components/schemas/Suppression"}},"required":["api_version","data"],"type":"object"},"TemplatePin":{"additionalProperties":false,"properties":{"id":{"description":"The template's alias or id.","type":"string"},"version":{"description":"A published version number; the current one when left out.","format":"int32","type":["integer","null"]}},"required":["id"],"type":"object"},"TemplateSelector":{"description":"Which template to send: its alias or id for the version people publish\nnext, or pinned to one published version.","oneOf":[{"description":"`\"password-reset\"` or `\"email_template_…\"`: the current published version.","type":"string"},{"$ref":"#/components/schemas/TemplatePin"}]},"Thread":{"properties":{"assigned":{"$ref":"#/components/schemas/ThreadAssignee"},"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"inbox_id":{"type":"string"},"labels":{"items":{"$ref":"#/components/schemas/Label"},"type":"array"},"last_message_at":{"format":"date-time","type":"string"},"message_count":{"format":"int32","type":"integer"},"snoozed_until":{"format":"date-time","type":["string","null"]},"status":{"description":"`open`, `snoozed` or `done`. A snooze that ran out reads as `open`.","example":"open","type":"string"},"subject":{"type":"string"},"unread":{"description":"Mail arrived after the key last marked the thread read.","type":"boolean"}},"required":["id","inbox_id","subject","message_count","status","assigned","labels","unread","last_message_at","created_at"],"type":"object"},"ThreadAssignee":{"description":"One person or one agent, or neither.","properties":{"agent":{"type":["string","null"]},"user_id":{"type":["string","null"]}},"type":"object"},"ThreadListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/Thread"},"type":"array"},"next":{"description":"Pass as `after` to read the next page. Null on the last page.","type":["string","null"]}},"required":["api_version","data"],"type":"object"},"ThreadMessage":{"description":"A received or sent message in a thread.","properties":{"at":{"format":"date-time","type":"string"},"attachments":{"description":"Empty for quarantined messages that were not released.","items":{"$ref":"#/components/schemas/AttachmentSummary"},"type":"array"},"body_withheld":{"description":"True for a received message that is quarantined and not released; its\nbody and files are withheld.","type":"boolean"},"cc":{"description":"Cc header values, on received messages only.","items":{"type":"string"},"type":["array","null"]},"direction":{"example":"received","type":"string"},"from":{"type":["string","null"]},"html_body":{"type":["string","null"]},"id":{"type":"string"},"in_reply_to":{"type":["string","null"]},"message_id":{"type":["string","null"]},"recipients":{"description":"Per-recipient delivery state, on sent messages only."},"reply_to":{"description":"Reply-To header values, on received messages only.","items":{"type":"string"},"type":["array","null"]},"status":{"description":"The disposition of a received message, or the state of a send.","example":"clean","type":"string"},"subject":{"type":"string"},"text_body":{"type":["string","null"]},"to":{"items":{"type":"string"},"type":"array"}},"required":["id","direction","to","subject","body_withheld","status","at","attachments"],"type":"object"},"ThreadResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/ThreadWithMessages"},"has_more":{"description":"Earlier messages exist before this page.","type":"boolean"},"next_cursor":{"description":"Pass as `before` to read the page of earlier messages. Null when\n`has_more` is false.","type":["string","null"]}},"required":["api_version","data","has_more"],"type":"object"},"ThreadUpdate":{"additionalProperties":false,"properties":{"actor":{"description":"Shown in the thread's activity, for example the agent's name.","type":["string","null"]},"add_labels":{"description":"Label IDs to add.","items":{"type":"string"},"type":"array"},"assign":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Assign"}]},"remove_labels":{"description":"Label IDs to remove.","items":{"type":"string"},"type":"array"},"snoozed_until":{"description":"Required with `snoozed`: when the thread comes back.","format":"date-time","type":["string","null"]},"status":{"description":"`open`, `snoozed` or `done`.","type":["string","null"]}},"type":"object"},"ThreadWithMessages":{"properties":{"activity":{"description":"What happened and who did it, oldest first.","items":{},"type":"array"},"assigned":{"$ref":"#/components/schemas/ThreadAssignee"},"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"inbox_id":{"type":"string"},"labels":{"items":{"$ref":"#/components/schemas/Label"},"type":"array"},"last_message_at":{"format":"date-time","type":"string"},"message_count":{"format":"int32","type":"integer"},"messages":{"items":{"$ref":"#/components/schemas/ThreadMessage"},"type":"array"},"notes":{"description":"Internal notes; never sent.","items":{},"type":"array"},"snoozed_until":{"format":"date-time","type":["string","null"]},"status":{"description":"`open`, `snoozed` or `done`. A snooze that ran out reads as `open`.","example":"open","type":"string"},"subject":{"type":"string"},"unread":{"description":"Mail arrived after the key last marked the thread read.","type":"boolean"}},"required":["id","inbox_id","subject","message_count","status","assigned","labels","unread","last_message_at","created_at","messages","notes","activity"],"type":"object"},"TrackEventRequest":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":["object","null"]},"create_contact":{"type":["boolean","null"]},"email":{"type":"string"},"event":{"type":"string"},"idempotency_key":{"type":"string"},"occurred_at":{"format":"date-time","type":["string","null"]},"properties":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":["object","null"]}},"required":["email","event","idempotency_key"],"type":"object"},"UpdateContact":{"properties":{"attributes":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":["object","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"locale":{"type":["string","null"]}},"type":"object"},"UpdateTemplateRequest":{"additionalProperties":false,"description":"Changes to a draft. Fields left out stay as they are; `null` clears the\noptional ones. New HTML replaces a design made in the dashboard.","properties":{"alias":{"type":["string","null"]},"html":{"description":"Replaces the content. A design made in the dashboard is dropped, and\nthe text version is made again from this HTML unless `text` is given.","type":["string","null"]},"message_class":{"type":["string","null"]},"name":{"type":["string","null"]},"preheader":{"type":["string","null"]},"sender_identity_id":{"type":["string","null"]},"subject":{"type":["string","null"]},"text":{"description":"`null` makes it again from the HTML.","type":["string","null"]},"variables":{"description":"Replaces the whole list; `null` or `[]` removes them all.","items":{"$ref":"#/components/schemas/VariableDefinition"},"type":["array","null"]}},"type":"object"},"VariableDefinition":{"description":"One variable a template takes from code.","properties":{"description":{"type":["string","null"]},"example":{"description":"A sample value, used in previews and code samples.","type":["string","null"]},"fallback":{"description":"Used when a send leaves the variable out. Also accepted as\n`fallback_value`, and as a number.","type":["string","null"]},"name":{"description":"Also accepted as `key`.","type":"string"},"required":{"type":"boolean"},"type":{"description":"`text`, `number`, `date` or `url`; `string` is read as `text`.","type":"string"}},"required":["name"],"type":"object"},"VariableProblem":{"description":"A variable that doesn't fit: missing, the wrong type, or unknown.","properties":{"problem":{"type":"string"},"recipient":{"description":"The recipient it concerns; absent when it's the same for every recipient.","type":["string","null"]},"variable":{"type":"string"}},"required":["variable","problem"],"type":"object"},"Webhook":{"properties":{"created_at":{"format":"date-time","type":"string"},"event_types":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"status":{"example":"active","type":"string"},"updated_at":{"format":"date-time","type":"string"},"url":{"example":"https://example.com/webhooks/relevate","type":"string"}},"required":["id","url","event_types","status","created_at","updated_at"],"type":"object"},"WebhookDelivery":{"properties":{"attempt_count":{"format":"int32","type":"integer"},"created_at":{"format":"date-time","type":"string"},"event_id":{"type":"string"},"event_type":{"type":"string"},"id":{"type":"string"},"last_attempt_at":{"format":"date-time","type":["string","null"]},"last_error":{"type":["string","null"]},"next_attempt_at":{"format":"date-time","type":["string","null"]},"payload":{},"state":{"type":"string"}},"required":["id","event_id","event_type","payload","state","attempt_count","created_at"],"type":"object"},"WebhookDeliveryListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array"}},"required":["api_version","data"],"type":"object"},"WebhookListResponse":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/Webhook"},"type":"array"}},"required":["api_version","data"],"type":"object"},"WebhookResponse":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/Webhook"}},"required":["api_version","data"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"Relevate API key","description":"Relevate API key scoped to the operation's product and environment.","scheme":"bearer","type":"http"},"bookingCapability":{"description":"Secret booking-scoped UUID issued as the Idempotency-Key. Grants status access. Older bookings may also use it for private management; do not log or expose it.","scheme":"bearer","type":"http"},"managementCapability":{"description":"Booking-scoped UUID capability embedded in the private management link. New bookings receive a distinct management secret; older bookings may reuse the Idempotency-Key.","scheme":"bearer","type":"http"},"xApiKey":{"description":"Relevate API key scoped to the operation's product and environment.","in":"header","name":"x-api-key","type":"apiKey"}}},"info":{"description":"Email uses project-scoped email permissions. CRM uses workspace-scoped crm:read/crm:write permissions. Relevate integrations and customers use these same endpoints.","license":{"name":""},"title":"Relevate API","version":"2026-10-27"},"openapi":"3.1.0","paths":{"/crm/lists":{"get":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"listCrmLists","parameters":[{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Use page.next_cursor from the previous response.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Filter by object ID or slug.","in":"query","name":"object_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListsPage"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List CRM lists","tags":["CRM"]},"post":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"createCrmList","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCreateList"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create a CRM list","tags":["CRM"]}},"/crm/lists/{list}":{"delete":{"description":"Disable enabled workflows scoped to or targeting this list before deletion. Deletion removes entries, list fields, views and scoped workflows; CRM records are retained.","operationId":"deleteCrmList","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListDeletionResponse"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Delete a list and its entries","tags":["CRM"]},"get":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"getCrmList","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListResponse"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Get a CRM list and its attributes","tags":["CRM"]},"patch":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"updateCrmList","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmUpdateList"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListResponse"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Update list name or description","tags":["CRM"]}},"/crm/lists/{list}/attributes":{"get":{"operationId":"listCrmListAttributes","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataAttributesResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"listCrmListAttributes","tags":["CRM"]},"post":{"operationId":"createCrmListAttribute","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmAttributeCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataAttributeResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"createCrmListAttribute","tags":["CRM"]}},"/crm/lists/{list}/attributes/{attribute}":{"delete":{"operationId":"deleteCrmListAttribute","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}},{"in":"path","name":"attribute","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataDeleted"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"deleteCrmListAttribute","tags":["CRM"]},"patch":{"operationId":"updateCrmListAttribute","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}},{"in":"path","name":"attribute","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmAttributePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataAttributeResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"updateCrmListAttribute","tags":["CRM"]}},"/crm/lists/{list}/entries":{"get":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"listCrmListEntries","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Use page.next_cursor from the previous response.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListEntriesPage"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List entries with computed values","tags":["CRM"]},"post":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"createCrmListEntry","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCreateListEntry"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListEntryResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Add an active record to a list","tags":["CRM"]}},"/crm/lists/{list}/entries/{entry}":{"delete":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"deleteCrmListEntry","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}},{"in":"path","name":"entry","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListDeletionResponse"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Remove a list entry","tags":["CRM"]},"get":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"getCrmListEntry","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}},{"in":"path","name":"entry","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListEntryResponse"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Get a list entry","tags":["CRM"]},"patch":{"description":"Workspace-scoped CRM operation. Reads require crm:read; writes require crm:write. The parent CRM object must be enabled.","operationId":"updateCrmListEntry","parameters":[{"in":"path","name":"list","required":true,"schema":{"type":"string"}},{"in":"path","name":"entry","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmUpdateListEntry"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmListEntryResponse"}}},"description":"Success; data contains the result and paginated reads include page.limit and page.next_cursor."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid values or definition"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"API key missing or invalid"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM permission required or workspace CRM disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Not found in this workspace or parent object disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Duplicate entry, archived record, or enabled workflow dependency"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Update an active record's list values","tags":["CRM"]}},"/crm/notes/{note_id}":{"delete":{"operationId":"deleteCrmNote","parameters":[{"in":"path","name":"note_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmDeletedNote"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Soft delete a note","tags":["CRM"]},"get":{"operationId":"getCrmNote","parameters":[{"in":"path","name":"note_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmNote"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Get a note and resolved mention records","tags":["CRM"]},"patch":{"operationId":"updateCrmNote","parameters":[{"in":"path","name":"note_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmNoteWrite"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmNote"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Patch note content or title","tags":["CRM"]}},"/crm/objects":{"get":{"operationId":"listCrmObjects","parameters":[{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"after","schema":{"type":"string"}},{"in":"query","name":"include_disabled","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmObjectDiscovery"},"type":"array"},"page":{"type":"object"}},"type":"object"}}},"description":"Object page"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM read permission required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List enabled CRM objects","tags":["CRM"]},"post":{"operationId":"createCrmObject","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmObjectCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataObjectResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"createCrmObject","tags":["CRM"]}},"/crm/objects/{object}":{"delete":{"operationId":"deleteCrmObject","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmObjectDelete"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataDeleted"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"deleteCrmObject","tags":["CRM"]},"get":{"operationId":"getCrmObject","parameters":[{"description":"Object ID or slug","in":"path","name":"object","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"attributes":{"items":{"$ref":"#/components/schemas/CrmAttributeDiscovery"},"type":"array"},"data":{"$ref":"#/components/schemas/CrmObjectDiscovery"}},"type":"object"}}},"description":"Object and attributes"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"CRM read permission required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Object unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Get an object definition, including disabled objects","tags":["CRM"]},"patch":{"operationId":"updateCrmObject","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmObjectPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataObjectResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"updateCrmObject","tags":["CRM"]}},"/crm/objects/{object}/attributes":{"get":{"operationId":"listCrmObjectAttributes","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataAttributesResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"listCrmObjectAttributes","tags":["CRM"]},"post":{"operationId":"createCrmObjectAttribute","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmAttributeCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataAttributeResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"createCrmObjectAttribute","tags":["CRM"]}},"/crm/objects/{object}/attributes/{attribute}":{"delete":{"operationId":"deleteCrmObjectAttribute","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}},{"in":"path","name":"attribute","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataDeleted"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"deleteCrmObjectAttribute","tags":["CRM"]},"patch":{"operationId":"updateCrmObjectAttribute","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}},{"in":"path","name":"attribute","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmAttributePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetadataAttributeResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"updateCrmObjectAttribute","tags":["CRM"]}},"/crm/objects/{object}/deletion-preview":{"get":{"operationId":"previewCrmObjectDeletion","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmObjectDeletionPreview"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"previewCrmObjectDeletion","tags":["CRM"]}},"/crm/objects/{object}/quality":{"get":{"operationId":"getCrmObjectQuality","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"after","schema":{"type":"string"}},{"in":"query","name":"include_archived","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmQualityResponse"}}},"description":"Full-source summary and paginated actionable records; source limit 10000"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable in this workspace"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Conflict with existing data or dependencies"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Inspect bounded workspace-scoped record quality without modifying data","tags":["CRM"]}},"/crm/objects/{object}/records":{"get":{"operationId":"listCrmRecords","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"after","schema":{"type":"string"}},{"in":"query","name":"external_id","schema":{"type":"string"}},{"in":"query","name":"include_archived","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmRecord"},"type":"array"},"page":{"properties":{"limit":{"type":"integer"},"next_cursor":{"type":["string","null"]}},"type":"object"}},"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request or field values"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"External identity conflict or archived record"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List records in an enabled object","tags":["CRM"]},"post":{"operationId":"createCrmRecord","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request or field values"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"External identity conflict or archived record"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create a record","tags":["CRM"]}},"/crm/objects/{object}/records/upsert":{"post":{"operationId":"upsertCrmRecord","parameters":[{"in":"path","name":"object","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmUpsert"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordResponse"}}},"description":"Successful operation"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request or field values"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"External identity conflict or archived record"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create or update a record by its unique external ID","tags":["CRM"]}},"/crm/records/{record_id}":{"delete":{"operationId":"archiveCrmRecord","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request or field values"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"External identity conflict or archived record"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Archive a record and preserve its external identity","tags":["CRM"]},"get":{"operationId":"getCrmRecord","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request or field values"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"External identity conflict or archived record"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Get a record, including archived records","tags":["CRM"]},"patch":{"operationId":"updateCrmRecord","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmRecordResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Invalid request or field values"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Missing or invalid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Required CRM permission unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Resource unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"External identity conflict or archived record"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Storage temporarily unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Patch a record using typed attribute keys","tags":["CRM"]}},"/crm/records/{record_id}/activities":{"get":{"operationId":"listCrmActivities","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque timestamp and ID cursor","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmActivity"},"type":"array"},"page":{"$ref":"#/components/schemas/CrmContentPage"}},"required":["api_version","data","page"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read the persistent activity timeline","tags":["CRM"]}},"/crm/records/{record_id}/notes":{"get":{"operationId":"listCrmNotes","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque timestamp and ID cursor","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmNote"},"type":"array"},"page":{"$ref":"#/components/schemas/CrmContentPage"}},"required":["api_version","data","page"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List active notes","tags":["CRM"]},"post":{"operationId":"createCrmNote","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmNoteWrite"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmNote"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create a plain or rich document note","tags":["CRM"]}},"/crm/records/{record_id}/tasks":{"get":{"operationId":"listCrmTasks","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque timestamp and ID cursor","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/CrmTask"},"type":"array"},"page":{"$ref":"#/components/schemas/CrmContentPage"}},"required":["api_version","data","page"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List record tasks","tags":["CRM"]},"post":{"operationId":"createCrmTask","parameters":[{"in":"path","name":"record_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTaskCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmTask"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create a scheduled task","tags":["CRM"]}},"/crm/tasks/{task_id}":{"delete":{"operationId":"deleteCrmTask","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmDeletedTask"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Delete a task and retain activity history","tags":["CRM"]},"get":{"operationId":"getCrmTask","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmTask"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Get a task","tags":["CRM"]},"patch":{"operationId":"updateCrmTask","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTaskPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"type":"string"},"data":{"$ref":"#/components/schemas/CrmTask"}},"required":["api_version","data"],"type":"object"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Request body too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Unsupported content type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmApiError"}}},"description":"Operation rejected or unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Patch, complete, reopen, assign or reschedule a task","tags":["CRM"]}},"/email/api-keys":{"get":{"operationId":"listEmailApiKeys","responses":{"200":{"description":"The project's Email API keys, without their secrets."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key can't manage keys."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"The project's Email keys, newest first. `current` marks the key making the\nrequest.","tags":["API keys"]},"post":{"operationId":"createEmailApiKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}},"required":true},"responses":{"201":{"description":"The new key, with its `secret` shown this once."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key can't manage keys."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The project already has the most keys it can."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The name, scope or expiry doesn't fit."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Makes a key for this project. The secret is in this response only; store it\nnow.","tags":["API keys"]}},"/email/api-keys/{id}":{"delete":{"operationId":"revokeEmailApiKey","parameters":[{"description":"API key ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The key was revoked."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key can't manage keys."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not one of this project's Email keys."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Revokes one of the project's Email keys at once. A key can revoke itself.","tags":["API keys"]}},"/email/attachments/{attachment_id}":{"get":{"operationId":"getEmailAttachment","parameters":[{"description":"Attachment ID.","in":"path","name":"attachment_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}},"description":"The file's details and a download link valid for 10 minutes."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Attachment not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The message is quarantined; release it before downloading its files."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/auth-check":{"get":{"operationId":"checkEmailAuth","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCheckResponse"}}},"description":"The API key is valid for reading this Email project."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid, expired or environment-mismatched API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key lacks email:read or project scope."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Authentication storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Configuration"]}},"/email/contacts":{"get":{"operationId":"listEmailContacts","parameters":[{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListResponse"}}},"description":"A bounded list of contacts."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Contacts"]},"post":{"operationId":"createEmailContact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContact"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"A contact was created or merged by normalized email."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The contact input is invalid, or the address is a temporary inbox (`disposable_email`) or looks mistyped (`mistyped_email`, with a suggestion in the message)."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Contacts"]}},"/email/contacts/query":{"post":{"operationId":"queryEmailContacts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactQuery"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactQueryResponse"}}},"description":"A filtered, bounded page of contacts."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The filter or page is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Contacts"]}},"/email/contacts/{id}":{"delete":{"operationId":"deleteEmailContact","parameters":[{"description":"Contact ID or email address.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The contact was deleted."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Contact not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Erases a contact, as the dashboard does: their address stays suppressed\nfor marketing so adding them again can't re-subscribe them, and emails to\nthem not yet handed off are cancelled.","tags":["Contacts"]},"get":{"operationId":"getEmailContact","parameters":[{"description":"Contact ID or email address.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"A contact."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Contact not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Contacts"]},"patch":{"operationId":"updateEmailContact","parameters":[{"description":"Contact ID or email address.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContact"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"The updated contact. Address, consent, blocking and suppression are not publicly mutable."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Contact not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The contact patch is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Contacts"]}},"/email/domains":{"get":{"operationId":"listEmailDomains","parameters":[{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainListResponse"}}},"description":"Verified sending domains."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Configuration"]},"post":{"operationId":"createEmailDomain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDomainRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainSetupResponse"}}},"description":"The domain was added. Publish its records, then verify it."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot manage this Email project's domains."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"This project already has the domain."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The name is not a usable domain."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Domain setup is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Adds a sending domain. The response lists the DNS records to publish;\nverify the domain once they are in place.","tags":["Configuration"]}},"/email/domains/{id}":{"delete":{"operationId":"deleteEmailDomain","parameters":[{"description":"Domain ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedDomainResponse"}}},"description":"The domain was removed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot manage this Email project's domains."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Domain not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Sender identities still use this domain; remove them first."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Removes a domain. Refused while sender identities still use it.","tags":["Configuration"]},"get":{"operationId":"getEmailDomain","parameters":[{"description":"Domain ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}},"description":"A verified sending domain."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Domain not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Configuration"]}},"/email/domains/{id}/verify":{"post":{"operationId":"verifyEmailDomain","parameters":[{"description":"Domain ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainSetupResponse"}}},"description":"The domain's status and each record's result after checking DNS."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot manage this Email project's domains."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Domain not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Another verified owner controls this domain or a related one, or the domain changed during the check."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The domain was checked moments ago; `Retry-After` says when to try again."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"DNS or storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Checks DNS now and stores the results, as the domain page's \"Check now\".","tags":["Configuration"]}},"/email/emails":{"post":{"operationId":"sendEmail","parameters":[{"description":"1 to 200 characters. The same key with the same body returns the first answer instead of sending again; with a different body it's a 409. Without one, every request is a new email.","in":"header","name":"Idempotency-Key","required":false,"schema":{"type":["string","null"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendResponse"}}},"description":"The email was accepted for durable processing."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot send for this Email project."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The Idempotency-Key was reused with a different body."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The request is invalid, or `from` isn't an address on one of the project's verified domains."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The current sending allowance has been reached. `Retry-After` says when to try again; `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` come with every accepted send too."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Email storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Sends"]}},"/email/emails/batch":{"post":{"operationId":"sendEmailBatch","parameters":[{"description":"1 to 200 characters. Item `i` is sent with the key `<key>:<i>`, so retrying the batch with the same key and body replays the items that were accepted and tries the rest again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"type":["string","null"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSendRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSendResponse"}}},"description":"Every item was tried; each has its own status. Retry with the same Idempotency-Key to resend only the failed items."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot send for this Email project."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The batch is empty or has more than 100 items."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Sends"]}},"/email/emails/query":{"post":{"operationId":"queryEmails","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendQuery"}}},"required":true},"responses":{"200":{"description":"A bounded page of accepted sends."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot read this Email project."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The query is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Email storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Queries accepted sends without requiring consumers to recreate the service's\ninternal filtering rules client-side.  Filters are deliberately finite and\nevery value is parameterized.","tags":["Sends"]}},"/email/emails/{email_id}":{"delete":{"operationId":"cancelEmail","parameters":[{"description":"The email's `id`.","in":"path","name":"email_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendResponse"}}},"description":"The send was cancelled before transport submission."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot send for this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The send does not exist."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The send can no longer be cancelled."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Email storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Sends"]},"get":{"operationId":"getEmail","parameters":[{"description":"The email's `id`.","in":"path","name":"email_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendResponse"}}},"description":"The durable send and recipient states."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot read this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The send does not exist."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Email storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Sends"]},"patch":{"operationId":"rescheduleEmail","parameters":[{"description":"The email's `id`.","in":"path","name":"email_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendResponse"}}},"description":"The send's new time."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot send for this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The send does not exist."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The send isn't waiting for a scheduled time any more."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The time is in the past or too far ahead."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Sends"]}},"/email/emails/{email_id}/events":{"get":{"operationId":"listEmailEvents","parameters":[{"description":"The email's `id`.","in":"path","name":"email_id","required":true,"schema":{"type":"string"}},{"description":"Events per page, 1 to 500. Defaults to 100.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"`next_cursor` from the previous page: returns the events after it.","in":"query","name":"after","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEventsResponse"}}},"description":"Delivered, deferred, bounced (`permanently_failed`), complained, suppressed, opened and clicked events for every recipient, oldest first, with the names and IDs webhooks use. Pass `next_cursor` as `after` while `has_more` is true."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot read this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The send does not exist."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The page size or cursor is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Email storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Lists the delivery events of every recipient of a send, oldest first.","tags":["Sends"]}},"/email/emails/{email_id}/recipients/{recipient_send_id}/events":{"get":{"operationId":"listEmailRecipientEvents","parameters":[{"description":"The email's `id`.","in":"path","name":"email_id","required":true,"schema":{"type":"string"}},{"description":"The recipient's `recipient_send_id` from the email.","in":"path","name":"recipient_send_id","required":true,"schema":{"type":"string"}},{"description":"Events per page, 1 to 500. Defaults to 100.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"`next_cursor` from the previous page: returns the events after it.","in":"query","name":"after","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEventsResponse"}}},"description":"This recipient's events, oldest first. Pass `next_cursor` as `after` while `has_more` is true."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot read this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The send does not exist, or the recipient is not part of it."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The page size or cursor is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Email storage is temporarily unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Lists the delivery events of one recipient of a send, oldest first.","tags":["Sends"]}},"/email/events":{"post":{"operationId":"trackEmailEvent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackEventRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventResponse"}}},"description":"The event was durably recorded."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot write events for this Email project."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The idempotency key was reused with different input."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The event is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Event storage is temporarily unavailable."}},"tags":["Events"]}},"/email/inbound":{"get":{"operationId":"listEmailInbound","parameters":[{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundListResponse"}}},"description":"Safely parsed inbound messages, newest first. Raw MIME is never exposed. Quarantined messages that were not released have no body and no files."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The page is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inbound"]}},"/email/inbound/{message_id}":{"get":{"operationId":"getEmailInbound","parameters":[{"description":"Inbound message ID.","in":"path","name":"message_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundResponse"}}},"description":"A safely parsed inbound message. A quarantined message that was not released has no body and no files."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Inbound message not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inbound"]}},"/email/inbound/{message_id}/forward":{"post":{"operationId":"forwardEmailInbound","parameters":[{"description":"Inbound message ID.","in":"path","name":"message_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardRequest"}}},"required":true},"responses":{"202":{"description":"The forward was accepted and recorded in the message's thread."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Message not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The message is quarantined, the inbox is disabled, or the request key was reused."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The forward is invalid."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The sending allowance has been reached."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/inbound/{message_id}/reply":{"post":{"operationId":"replyToEmailInbound","parameters":[{"description":"Inbound message ID.","in":"path","name":"message_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyRequest"}}},"required":true},"responses":{"202":{"description":"The reply was accepted into the message's thread."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Message not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The message is quarantined, the inbox is disabled, or the request key was reused."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The reply is invalid or there is no address to reply to."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The sending allowance has been reached."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/inboxes":{"get":{"operationId":"listEmailInboxes","parameters":[{"description":"Page size, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"Return inboxes created before this inbox ID.","in":"query","name":"after","required":false,"schema":{"type":"string"}},{"description":"Only inboxes with this reference.","in":"query","name":"reference","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxListResponse"}}},"description":"Inboxes, newest first. `next` is the cursor for the following page."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The page is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]},"post":{"operationId":"createEmailInbox","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInbox"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxResponse"}}},"description":"The inbox was created and receives mail immediately."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The address is already an inbox."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The address is invalid, its domain is not verified (for receiving, unless the inbox receives by forwarding), or forwarding is not available."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The project has reached its inbox limit."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/inboxes/provided-domains":{"get":{"operationId":"listProvidedEmailDomains","responses":{"200":{"description":"Available Relevate-provided address domains"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Discover operator-enabled domains without exposing operator workspace data.","tags":["Inboxes"]}},"/email/inboxes/{inbox_id}":{"delete":{"operationId":"disableEmailInbox","parameters":[{"description":"Inbox ID.","in":"path","name":"inbox_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The inbox stops receiving mail. Its threads stay readable."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Inbox not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]},"get":{"operationId":"getEmailInbox","parameters":[{"description":"Inbox ID.","in":"path","name":"inbox_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxResponse"}}},"description":"The inbox."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Inbox not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/inboxes/{inbox_id}/messages":{"post":{"operationId":"sendEmailInboxMessage","parameters":[{"description":"Inbox ID.","in":"path","name":"inbox_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMessage"}}},"required":true},"responses":{"202":{"description":"The message was accepted and starts a new thread. The response includes `thread_id`."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Inbox not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The inbox is disabled, or the request key was reused with different input."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The message is invalid or the inbox cannot send."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The sending allowance has been reached."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/inboxes/{inbox_id}/threads":{"get":{"operationId":"listEmailThreads","parameters":[{"description":"Inbox ID.","in":"path","name":"inbox_id","required":true,"schema":{"type":"string"}},{"description":"Page size, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"Return threads after this thread ID in the listing.","in":"query","name":"after","required":false,"schema":{"type":"string"}},{"description":"`open`, `snoozed` or `done`.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"A label ID.","in":"query","name":"label","required":false,"schema":{"type":"string"}},{"description":"Threads assigned to this agent name.","in":"query","name":"assigned_agent","required":false,"schema":{"type":"string"}},{"description":"Threads assigned to this person.","in":"query","name":"assigned_user_id","required":false,"schema":{"type":"string"}},{"description":"Only threads nobody is assigned to.","in":"query","name":"unassigned","required":false,"schema":{"type":"boolean"}},{"description":"Only threads with mail the agent has not marked read.","in":"query","name":"unread","required":false,"schema":{"type":"boolean"}},{"description":"Words in the subject, sender or text of received mail.","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadListResponse"}}},"description":"Threads, most recent activity first."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Inbox not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The page is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/labels":{"get":{"operationId":"listEmailLabels","responses":{"200":{"description":"The project's labels, by name."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]},"post":{"operationId":"createEmailLabel","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelInput"}}},"required":true},"responses":{"201":{"description":"The label was created."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A label with this name exists."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The name or color is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/labels/{label_id}":{"delete":{"operationId":"deleteEmailLabel","parameters":[{"description":"Label ID.","in":"path","name":"label_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The label was removed from every thread and deleted."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Label not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/segments":{"get":{"operationId":"listEmailSegments","parameters":[{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentListResponse"}}},"description":"Existing segment definitions. Segment mutation remains dashboard-owned."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Contacts"]}},"/email/segments/{id}":{"get":{"operationId":"getEmailSegment","parameters":[{"description":"Segment ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentResponse"}}},"description":"A segment definition."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Segment not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Contacts"]}},"/email/sender-identities":{"get":{"operationId":"listEmailSenderIdentities","parameters":[{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderIdentityListResponse"}}},"description":"Active and pending sender identities."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Configuration"]}},"/email/sender-identities/{id}":{"get":{"operationId":"getEmailSenderIdentity","parameters":[{"description":"Sender identity ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderIdentityResponse"}}},"description":"A sender identity."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Sender identity not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Configuration"]}},"/email/suppressions":{"get":{"operationId":"listEmailSuppressions","parameters":[{"description":"1 to 100; 25 by default.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"0 to 10000.","in":"query","name":"offset","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"`manual`, `hard_bounce`, `complaint`, `unsubscribe` or `manual_block`.","in":"query","name":"reason","required":false,"schema":{"type":"string"}},{"description":"`service` or `marketing`.","in":"query","name":"scope","required":false,"schema":{"type":"string"}},{"description":"One address, matched case-insensitively.","in":"query","name":"address","required":false,"schema":{"type":"string"}},{"description":"`active` (default), `released` or `all`.","in":"query","name":"status","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionListResponse"}}},"description":"A page of suppressions, active ones unless `status` says otherwise."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot read this Email project."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A filter or the page is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Lists suppressed addresses, newest first.","tags":["Suppressions"]},"post":{"operationId":"createEmailSuppression","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSuppression"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionResponse"}}},"description":"The address was already suppressed for that scope."},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionResponse"}}},"description":"The address is now suppressed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key needs email:send for this Email project."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The address, reason, scope or note is invalid. Only `manual` reasons can be added."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Suppresses one address. Adding one that is already suppressed for that\nscope changes nothing and returns the existing suppression with 200.","tags":["Suppressions"]}},"/email/suppressions/batch":{"post":{"operationId":"createEmailSuppressionBatch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionBatchRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionBatchResponse"}}},"description":"One result per item, in request order: `created`, `exists` or `invalid` with an error."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key needs email:send for this Email project."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The batch is empty or has more than 1000 items."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable; nothing was added."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Suppresses up to 1000 addresses at once, with a result for each.","tags":["Suppressions"]}},"/email/suppressions/{address}":{"delete":{"operationId":"deleteEmailSuppression","parameters":[{"description":"The email address, URL-encoded. Matched case-insensitively.","in":"path","name":"address","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionRemovalResponse"}}},"description":"The manual suppressions were released; `still_suppressed` says whether anything else still blocks the address."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key needs email:send for this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The address isn't suppressed."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Only a bounce, complaint, block or the recipient's unsubscribe suppresses the address; those can't be removed (`suppression_not_removable`)."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The address is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Removes the suppressions added through the API for one address. Bounces,\ncomplaints, blocks from your team and the recipient's own unsubscribe stay.","tags":["Suppressions"]},"get":{"operationId":"getEmailSuppression","parameters":[{"description":"The email address, URL-encoded. Matched case-insensitively.","in":"path","name":"address","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionResponse"}}},"description":"The active suppression for the address."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot read this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The address isn't suppressed."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The address is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Reads whether one address is suppressed. When several things suppress it,\nthis is the one that blocks the most email.","tags":["Suppressions"]}},"/email/templates":{"get":{"operationId":"listEmailTemplates","responses":{"200":{"description":"Published templates, current versions only."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot read this Email project."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Lists published templates with their variables.","tags":["Templates"]},"post":{"operationId":"createEmailTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateRequest"}}},"required":true},"responses":{"201":{"description":"The new draft."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot send from this Email project."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Another template already uses that alias."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A field doesn't fit, or the sender isn't in this project."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Creates a template as a draft. Nothing sends it until it's published.","tags":["Templates"]}},"/email/templates/{template}":{"delete":{"operationId":"deleteEmailTemplate","parameters":[{"description":"Alias or id","in":"path","name":"template","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted, or archived when it was ever published (`archived: true`)."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No template has that alias or id."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Something still uses this draft."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Deletes a template. One that was ever published is archived instead: its\nversions may back mail already sent. Either way it can't be sent or read\nagain, and its alias is free for another template.","tags":["Templates"]},"get":{"operationId":"getEmailTemplate","parameters":[{"description":"Alias or id","in":"path","name":"template","required":true,"schema":{"type":"string"}},{"description":"A published version number; the current one when left out.","in":"query","name":"version","required":false,"schema":{"format":"int32","type":"integer"}},{"description":"`true` reads the editable draft instead, published or not, with\nwhether it differs from the current version.","in":"query","name":"draft","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"The template's published version, or its draft with `draft=true`."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No template has that alias or id."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The template has no published version."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"`draft` and `version` were both given."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Reads one published template: content, variables and their JSON Schema.\nWith `draft=true`, reads the editable draft instead.","tags":["Templates"]},"patch":{"operationId":"updateEmailTemplate","parameters":[{"description":"Alias or id","in":"path","name":"template","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateRequest"}}},"required":true},"responses":{"200":{"description":"The changed draft."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No template has that alias or id."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Another template already uses that alias, or someone is editing the design while new HTML would replace it."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A field doesn't fit, or the sender isn't in this project."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Changes a template's draft. What's sent stays the published version until\nthe draft is published again.","tags":["Templates"]}},"/email/templates/{template}/duplicate":{"post":{"operationId":"duplicateEmailTemplate","parameters":[{"description":"Alias or id","in":"path","name":"template","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/DuplicateTemplateRequest"}]}}},"description":"Optional; a body-less POST works."},"responses":{"201":{"description":"The new draft."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key cannot send from this Email project."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such template."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Another template already uses that alias."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The name or alias doesn't fit."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Copies a template's draft (design, text, variables, translations, sender,\nbrand and folder) into a new draft. Its versions and alias stay with the\noriginal.","tags":["Templates"]}},"/email/templates/{template}/publish":{"post":{"operationId":"publishEmailTemplate","parameters":[{"description":"Alias or id","in":"path","name":"template","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The published version, and whether this publish created it."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No template has that alias or id."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The draft can't be sent yet; the message says why."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Publishes the draft as a new version, which sends by alias use from then\non. The same checks as publishing in the dashboard. A draft that hasn't\nchanged since the current version keeps that version (`created: false`).","tags":["Templates"]}},"/email/templates/{template}/render":{"post":{"operationId":"renderEmailTemplate","parameters":[{"description":"Alias or id","in":"path","name":"template","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderRequest"}}},"required":true},"responses":{"200":{"description":"The finished subject, HTML and text."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No template has that alias or id."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The template has no published version."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A variable is missing, unknown or the wrong type; `details` names each one."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Renders a template with variables, exactly as it would be sent, without\nsending anything. For tests and previews.","tags":["Templates"]}},"/email/threads/{thread_id}":{"get":{"operationId":"getEmailThread","parameters":[{"description":"Thread ID.","in":"path","name":"thread_id","required":true,"schema":{"type":"string"}},{"description":"Messages per page, 1 to 200. Defaults to 100. The first page holds the\nmost recent messages.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"`next_cursor` from the previous page: returns the messages before it.","in":"query","name":"before","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadResponse"}}},"description":"The thread with its most recent received and sent messages, oldest first within the page. Pass `next_cursor` as `before` to read earlier messages while `has_more` is true. Quarantined messages that were not released have no body and no files."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Thread not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The page size or cursor is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]},"patch":{"operationId":"updateEmailThread","parameters":[{"description":"Thread ID.","in":"path","name":"thread_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadUpdate"}}},"required":true},"responses":{"200":{"description":"The updated thread. Every change is recorded in its activity."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Thread not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The change is invalid, or a person or label is not in this project."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/threads/{thread_id}/notes":{"post":{"operationId":"addEmailThreadNote","parameters":[{"description":"Thread ID.","in":"path","name":"thread_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteInput"}}},"required":true},"responses":{"201":{"description":"The note was added to the thread."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Thread not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The note is empty or too long."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/threads/{thread_id}/read":{"post":{"operationId":"markEmailThreadRead","parameters":[{"description":"Thread ID.","in":"path","name":"thread_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The thread is read until new mail arrives."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Thread not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Inboxes"]}},"/email/usage":{"get":{"operationId":"getEmailUsage","responses":{"200":{"description":"Current allowances and use. Counts are recipients accepted, as limits count them."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The key isn't an Email key for a project."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Sends in the current hour and day for each kind of mail, against the\nproject's allowances, and the workspace's accepted emails this month.\nAny Email key of the project can read it.","tags":["Usage"]}},"/email/webhooks":{"get":{"operationId":"listEmailWebhooks","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookListResponse"}}},"description":"Webhook subscriptions."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]},"post":{"operationId":"createEmailWebhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookResponse"}}},"description":"Webhook created. The signing secret is returned only once."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The HTTPS URL or event types are invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]}},"/email/webhooks/{webhook_id}":{"delete":{"operationId":"deleteEmailWebhook","parameters":[{"description":"Webhook subscription ID.","in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Webhook deleted."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Webhook not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]},"patch":{"operationId":"updateEmailWebhook","parameters":[{"description":"Webhook subscription ID.","in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"}}},"description":"Updated webhook subscription."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Webhook not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The webhook patch is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]}},"/email/webhooks/{webhook_id}/deliveries":{"get":{"operationId":"listEmailWebhookDeliveries","parameters":[{"description":"Webhook subscription ID.","in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryListResponse"}}},"description":"Webhook delivery attempts and payloads."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The page is invalid."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]}},"/email/webhooks/{webhook_id}/deliveries/{delivery_id}/replay":{"post":{"operationId":"replayEmailWebhookDelivery","parameters":[{"description":"Webhook subscription ID.","in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}},{"description":"Webhook delivery ID.","in":"path","name":"delivery_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delivery re-queued with its original event identity."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Webhook or delivery not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The webhook is disabled or the delivery is still being attempted."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]}},"/email/webhooks/{webhook_id}/replay":{"post":{"operationId":"replayEmailWebhookRange","parameters":[{"description":"Webhook subscription ID.","in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayRange"}}},"required":true},"responses":{"200":{"description":"Finished deliveries recorded in the range were re-queued."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Webhook not found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The webhook is disabled."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The range is invalid or holds more than 1000 deliveries."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]}},"/email/webhooks/{webhook_id}/rotate-secret":{"post":{"operationId":"rotateEmailWebhookSecret","parameters":[{"description":"Webhook subscription ID.","in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"New signing secret, returned only once. The previous secret stops signing immediately."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid API key."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Webhook not found."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Storage or signing unavailable."}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"tags":["Webhooks"]}},"/schedule/booking-pages/{workspace}/{event}":{"get":{"description":"Booking availability is true only when the full horizon of selected conflict calendars can be checked. Video locations currently fail closed because Rust admission cannot verify their fulfillment; Platform owns provider-operation execution. Private links require an active invite query token.","operationId":"getScheduleBookingPage","parameters":[{"in":"path","name":"workspace","required":true,"schema":{"maxLength":100,"type":"string"}},{"in":"path","name":"event","required":true,"schema":{"maxLength":100,"type":"string"}},{"in":"query","name":"invite","required":false,"schema":{"description":"Required only for private event types.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePublicEvent"}}},"description":"Public event metadata and verified booking health"},"400":{"description":"Invalid link"},"404":{"description":"Unavailable link or private invitation"},"503":{"description":"Storage or provider verification unavailable"}},"security":[],"summary":"Read public event metadata and booking health","tags":["Schedule"]}},"/schedule/bookings":{"get":{"description":"Workspace is derived from the API key and the actor must be its member. Reads require schedule:booking_read; management-link issuance requires schedule:booking_write. Booking rows are also scoped to the actor as host. Read responses contain only display fields and validated question answers, never raw snapshots, hashes, private invitations, or management capabilities.","operationId":"listScheduleBookings","parameters":[{"description":"Only this host's; every host's in the workspace when left out","in":"query","name":"host_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"period","required":false,"schema":{"default":"upcoming","enum":["upcoming","past","all"],"type":"string"}},{"in":"query","name":"state","required":false,"schema":{"enum":["processing","confirmed","rescheduling","cancelling","cancelled","failed","needs_attention"],"type":"string"}},{"description":"Fifty bookings per page.","in":"query","name":"page","required":false,"schema":{"default":0,"maximum":10000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostBookingList"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List bookings, every host's or one host's","tags":["Schedule"]},"post":{"description":"Requires a UUID Idempotency-Key for retries and later status reads. A separate random management UUID is returned only within the private managementUrl. Reservation admission rechecks publication, schedule/calendar revisions, local timing, held ranges, provider busy and capacity. This Rust route currently fails closed for video meeting fulfillment.","operationId":"createScheduleBooking","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePublicBookingCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePublicBookingCreated"}}},"description":"Confirmed standalone booking or processing calendar booking"},"400":{"description":"Invalid booking request"},"404":{"description":"Unavailable link or private invitation"},"409":{"description":"Time, capacity, invitation or idempotency conflict"},"503":{"description":"Provider, storage, or fulfillment unavailable"}},"security":[],"summary":"Reserve a public meeting with an idempotency capability","tags":["Schedule"]}},"/schedule/bookings/{id}":{"get":{"description":"Workspace is derived from the API key and the actor must be its member. Reads require schedule:booking_read; management-link issuance requires schedule:booking_write. Booking rows are also scoped to the actor as host. Read responses contain only display fields and validated question answers, never raw snapshots, hashes, private invitations, or management capabilities.","operationId":"getScheduleBooking","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ScheduleHostBookingDetail"},{"$ref":"#/components/schemas/ScheduleManagedBookingResponse"}]}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]},{"managementCapability":[]}],"summary":"Read a booking: the host's view with an API key, the guest's with their private link","tags":["Schedule"]}},"/schedule/bookings/{id}/attendance":{"post":{"description":"Requires schedule:booking_write and the actor to be a workspace member and booking host. A confirmed booking may be marked after its start. The current revision is required; a changed attendance value increments it and records an actor audit.","operationId":"markScheduleBookingAttendance","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostAttendanceInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostAttendanceResult"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Record a booking's attendance","tags":["Schedule"]}},"/schedule/bookings/{id}/cancel":{"post":{"description":"Requires schedule:booking_write and the actor to be a workspace member and booking host. The current revision is required. A host may override the attendee cancellation deadline; the override and actor are audited. Standalone bookings release their reservation only when no provider operation exists. Calendar bookings queue one native cancellation and retain their reservation until the Schedule worker verifies success; provider uncertainty remains held for reconciliation.","operationId":"cancelScheduleBooking","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostCancelInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ScheduleHostCancelResult"},{"$ref":"#/components/schemas/ScheduleManagedCancelResponse"}]}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]},{"managementCapability":[]}],"summary":"Cancel a booking as its host (API key) or guest (private link)","tags":["Schedule"]}},"/schedule/bookings/{id}/feedback":{"get":{"description":"Requires the private management UUID as Bearer authorization. Only a completed confirmed booking can be rated, once; retries return the original rating. No attendee details or capability are returned.","operationId":"getScheduleBookingFeedback","parameters":[{"description":"Booking ID; the private link must belong to it","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleFeedbackResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"}},"security":[{"managementCapability":[]}],"summary":"Read rating eligibility for a completed booking","tags":["Schedule"]},"post":{"description":"Requires the private management UUID as Bearer authorization. Only a completed confirmed booking can be rated, once; retries return the original rating. No attendee details or capability are returned.","operationId":"rateScheduleBooking","parameters":[{"description":"Booking ID; the private link must belong to it","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleFeedbackInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleFeedbackSavedResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"}},"security":[{"managementCapability":[]}],"summary":"Rate a completed confirmed booking once","tags":["Schedule"]}},"/schedule/bookings/{id}/management-link":{"post":{"description":"Requires schedule:booking_write, the API key's workspace and an actor who is both a workspace member and booking host. Reuses a trusted stored link or rotates the booking capability under a row lock. The response is no-store and no-referrer. The URL is sensitive; do not log or publish it.","operationId":"createScheduleBookingManagementLink","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostManagementLink"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Issue or retrieve a booking management link","tags":["Schedule"]}},"/schedule/bookings/{id}/reschedule":{"post":{"description":"The booking-scoped UUID capability from the private management link is supplied only as Authorization: Bearer and grants access to one booking. Responses are not cached. Mutations check the saved deadline and revision under a booking row lock. Rust managed slots and rescheduling currently support standalone bookings; calendar-backed moves fail closed.","operationId":"rescheduleScheduleBooking","parameters":[{"description":"Booking ID; the private link must belong to it","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleManagedRescheduleInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleManagedRescheduleResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"}},"security":[{"managementCapability":[]}],"summary":"Move a standalone booking to a verified start","tags":["Schedule"]}},"/schedule/bookings/{id}/slots":{"get":{"description":"The booking-scoped UUID capability from the private management link is supplied only as Authorization: Bearer and grants access to one booking. Responses are not cached. Mutations check the saved deadline and revision under a booking row lock. Rust managed slots and rescheduling currently support standalone bookings; calendar-backed moves fail closed.","operationId":"listScheduleBookingSlots","parameters":[{"description":"Booking ID; the private link must belong to it","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"query","name":"date","required":true,"schema":{"format":"date","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleManagedSlotsResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid capability or request, stale revision, expired deadline, or unavailable booking storage"}},"security":[{"managementCapability":[]}],"summary":"Read verified replacement starts for a standalone booking","tags":["Schedule"]}},"/schedule/bookings/{id}/status":{"get":{"description":"The Bearer UUID is the booking Idempotency-Key and is scoped to this booking. The workspace slug and event slug are required query values; no attendee details are returned.","operationId":"getScheduleBookingStatus","parameters":[{"in":"path","name":"id","required":true,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"workspace","required":true,"schema":{"maxLength":100,"type":"string"}},{"in":"query","name":"event","required":true,"schema":{"maxLength":100,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePublicBookingStatus"}}},"description":"Current booking status"},"400":{"description":"Invalid query"},"401":{"description":"Missing or invalid booking capability"},"409":{"description":"Booking not found"},"503":{"description":"Storage unavailable"}},"security":[{"bookingCapability":[]}],"summary":"Read booking status using its UUID capability","tags":["Schedule"]}},"/schedule/event-types":{"get":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"listScheduleEventTypes","parameters":[{"description":"Only this host's; every host's in the workspace when left out","in":"query","name":"host_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEventTypeList"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List event types, every host's or one host's","tags":["Schedule"]},"post":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"createScheduleEventType","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEventTypeCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaveResult"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create an event type for host_id","tags":["Schedule"]}},"/schedule/event-types/{id}":{"get":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"getScheduleEventType","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEventTypeItem"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read one event type","tags":["Schedule"]},"put":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"replaceScheduleEventType","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEventTypeUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaveResult"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Replace or archive an event type using its current revision","tags":["Schedule"]}},"/schedule/event-types/{id}/private-links":{"get":{"description":"Workspace comes from the API key. The actor must be a workspace member and the API key must have schedule:booking_read. An invitation consumes one use when a booking is admitted; cancellation does not refund it. Issue returns its capability URL once. Do not log or publish the path.","operationId":"listSchedulePrivateLinks","parameters":[{"description":"Event type ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePrivateLinkList"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List private invitation metadata","tags":["Schedule"],"x-required-schedule-action":"booking_read"},"post":{"description":"Workspace comes from the API key. The actor must be a workspace member and the API key must have schedule:booking_write. An invitation consumes one use when a booking is admitted; cancellation does not refund it. Issue returns its capability URL once. Do not log or publish the path.","operationId":"issueSchedulePrivateLink","parameters":[{"description":"Event type ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePrivateLinkIssue"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePrivateLinkIssued"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Issue a private invitation","tags":["Schedule"],"x-required-schedule-action":"booking_write"}},"/schedule/event-types/{id}/private-links/{link_id}":{"delete":{"description":"Workspace comes from the API key. The actor must be a workspace member and the API key must have schedule:booking_write. An invitation consumes one use when a booking is admitted; cancellation does not refund it. Issue returns its capability URL once. Do not log or publish the path.","operationId":"revokeSchedulePrivateLink","parameters":[{"description":"Event type ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"link_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePrivateLinkRevoked"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Revoke a private invitation","tags":["Schedule"],"x-required-schedule-action":"booking_write"}},"/schedule/hosts/{actor}":{"get":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"getScheduleHost","parameters":[{"description":"Host user ID in the key's workspace","in":"path","name":"actor","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleConfiguration"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read a host's Schedule configuration","tags":["Schedule"]}},"/schedule/hosts/{actor}/booking-limits":{"get":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"getScheduleHostBookingLimits","parameters":[{"description":"Host user ID in the key's workspace","in":"path","name":"actor","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostCapacityPolicyRead"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read host-wide booking limits","tags":["Schedule"]},"put":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"updateScheduleHostBookingLimits","parameters":[{"description":"Host user ID in the key's workspace","in":"path","name":"actor","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostCapacityPolicyInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleHostCapacityPolicy"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Save host-wide booking limits using the current revision","tags":["Schedule"]}},"/schedule/hosts/{actor}/insights":{"get":{"description":"Requires schedule:booking_read and actor membership. Rows are scoped to the actor as booking host; no attendee fields or booking capabilities are returned. UTC scheduled-start range is limited to 366 days and 10,000 bookings.","operationId":"getScheduleHostInsights","parameters":[{"in":"path","name":"actor","required":true,"schema":{"type":"string"}},{"in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleInsightReport"}}},"description":"Aggregate report"},"400":{"description":"Invalid or overlarge range"},"401":{"description":"Invalid API key"},"403":{"description":"Host not authorized"},"503":{"description":"Storage unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read a host's aggregate Schedule report","tags":["Schedule"]}},"/schedule/hosts/{actor}/insights/export":{"get":{"description":"Requires schedule:report_export and actor membership. Uses the identical host, date and row filters as the JSON report. Includes no attendee-identifying data. Link names are neutralized against spreadsheet formula execution.","operationId":"exportScheduleHostInsightsCsv","parameters":[{"in":"path","name":"actor","required":true,"schema":{"type":"string"}},{"in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"text/csv":{"schema":{"type":"string"}}},"description":"Aggregate CSV"},"400":{"description":"Invalid or overlarge range"},"401":{"description":"Invalid API key"},"403":{"description":"Host not authorized"},"503":{"description":"Storage unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Export the same host aggregate report as CSV","tags":["Schedule"]}},"/schedule/notification-history":{"get":{"description":"Requires schedule:booking_read for the booking workspace. Returns built-in and workflow job/recipient states without recipient addresses or message contents; provider acceptance does not prove inbox placement.","operationId":"listScheduleNotificationHistory","parameters":[{"in":"query","name":"bookingId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleNotificationHistoryResponse"}}},"description":"Notification history"},"400":{"description":"Invalid booking ID"},"401":{"description":"Invalid API key"},"403":{"description":"Missing Schedule booking_read scope"},"503":{"description":"Storage unavailable"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read a booking's operational email timeline","tags":["Schedule"]}},"/schedule/notification-senders":{"get":{"description":"Workspace is derived from the API key. schedule:booking_read can inspect sender configuration; schedule:booking_write is required to enable or change operational booking messages. Messages use the configured active Email project and sender identity as service sends.","operationId":"listScheduleNotificationSenders","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleNotificationSenderListResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List eligible Email senders for Schedule","tags":["Schedule"]}},"/schedule/notification-settings":{"get":{"description":"Workspace is derived from the API key. schedule:booking_read can inspect sender configuration; schedule:booking_write is required to enable or change operational booking messages. Messages use the configured active Email project and sender identity as service sends.","operationId":"getScheduleNotificationSettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleNotificationSettingsResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read operational notification settings","tags":["Schedule"]},"put":{"description":"Workspace is derived from the API key. schedule:booking_read can inspect sender configuration; schedule:booking_write is required to enable or change operational booking messages. Messages use the configured active Email project and sender identity as service sends.","operationId":"saveScheduleNotificationSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleNotificationSettingsInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleNotificationSettingsResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, ineligible sender or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Configure operational notifications","tags":["Schedule"]}},"/schedule/schedules":{"get":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"listScheduleSchedules","parameters":[{"description":"Only this host's; every host's in the workspace when left out","in":"query","name":"host_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAvailabilityList"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List availability schedules, every host's or one host's","tags":["Schedule"]},"post":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"createScheduleAvailability","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAvailabilityCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaveResult"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create working hours and date overrides for host_id","tags":["Schedule"]}},"/schedule/schedules/{id}":{"delete":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"deleteScheduleAvailability","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAvailabilityDelete"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaveResult"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Delete an unreferenced nondefault schedule using its revision","tags":["Schedule"]},"get":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"getScheduleAvailability","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAvailabilityItem"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read one availability schedule","tags":["Schedule"]},"put":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"replaceScheduleAvailability","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAvailabilityUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaveResult"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Replace a schedule using its current revision","tags":["Schedule"]}},"/schedule/slots":{"get":{"description":"Each returned start passes working hours, both buffers, active reservations, fresh selected provider calendars and count/minute caps. Unknown provider or DST-transition state fails closed. Private links require an active invite query token.","operationId":"listScheduleSlots","parameters":[{"in":"query","name":"workspace","required":true,"schema":{"maxLength":100,"type":"string"}},{"in":"query","name":"event","required":true,"schema":{"maxLength":100,"type":"string"}},{"in":"query","name":"date","required":true,"schema":{"format":"date","type":"string"}},{"in":"query","name":"timezone","required":true,"schema":{"maxLength":100,"type":"string"}},{"in":"query","name":"invite","required":false,"schema":{"description":"Required only for private event types.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePublicSlots"}}},"description":"Verified UTC start instants"},"400":{"description":"Invalid query"},"404":{"description":"Unavailable link or private invitation"},"503":{"description":"Calendar, capacity, storage, or transition verification unavailable"}},"security":[],"summary":"Read freshly verified public booking starts","tags":["Schedule"]}},"/schedule/slots/diagnose":{"post":{"description":"Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.","operationId":"diagnoseScheduleSlot","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAvailabilityDiagnosticInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAvailabilityDiagnosticResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope/host, revision or uniqueness conflict, or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Explain why an event type's UTC start may be unavailable","tags":["Schedule"]}},"/schedule/webhooks":{"get":{"description":"Workspace is derived from the API key. schedule:booking_read is required for subscription and delivery reads; schedule:booking_write is required for mutations because a subscription forwards booking activity. Destinations require an operator-approved exact-host allowlist. No attendee answers or management capabilities are included in delivered payloads.","operationId":"listScheduleWebhooks","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWebhookListResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List workspace Schedule webhook subscriptions","tags":["Schedule"]},"post":{"description":"Workspace is derived from the API key. schedule:booking_read is required for subscription and delivery reads; schedule:booking_write is required for mutations because a subscription forwards booking activity. Destinations require an operator-approved exact-host allowlist. No attendee answers or management capabilities are included in delivered payloads.","operationId":"createScheduleWebhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWebhookCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWebhookCreateResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Create a signed Schedule webhook subscription","tags":["Schedule"]}},"/schedule/webhooks/{id}":{"patch":{"description":"Workspace is derived from the API key. schedule:booking_read is required for subscription and delivery reads; schedule:booking_write is required for mutations because a subscription forwards booking activity. Destinations require an operator-approved exact-host allowlist. No attendee answers or management capabilities are included in delivered payloads.","operationId":"updateScheduleWebhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWebhookUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWebhookResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Update, pause or reactivate a webhook subscription","tags":["Schedule"]}},"/schedule/webhooks/{id}/deliveries":{"get":{"description":"Workspace is derived from the API key. schedule:booking_read is required for subscription and delivery reads; schedule:booking_write is required for mutations because a subscription forwards booking activity. Destinations require an operator-approved exact-host allowlist. No attendee answers or management capabilities are included in delivered payloads.","operationId":"listScheduleWebhookDeliveries","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWebhookDeliveryListResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List recent webhook deliveries","tags":["Schedule"]}},"/schedule/webhooks/{id}/rotate-secret":{"post":{"description":"Workspace is derived from the API key. schedule:booking_read is required for subscription and delivery reads; schedule:booking_write is required for mutations because a subscription forwards booking activity. Destinations require an operator-approved exact-host allowlist. No attendee answers or management capabilities are included in delivered payloads.","operationId":"rotateScheduleWebhookSecret","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWebhookRotateResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleApiError"}}},"description":"Invalid request, unauthorized scope, disabled destination or unavailable storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Rotate a webhook signing secret","tags":["Schedule"]}},"/schedule/workflows":{"get":{"description":"Workspace comes from the Schedule API key. schedule:read lists and reads definitions; schedule:write changes state using an expected revision. Enabling requires an active verified Schedule Email sender, a current owner member, and link attachments hosted by that owner. Only immediate confirmed, rescheduled and cancelled email actions can execute; timed, team, SMS and AI definitions remain drafts. Reads return up to 100 workflows.","operationId":"listScheduleWorkflows","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWorkflowListResponse"}}},"description":"Workflow configuration"},"400":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"401":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"403":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"404":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"409":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"413":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"422":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"503":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"List workspace workflow definitions","tags":["Schedule"]}},"/schedule/workflows/{id}":{"get":{"description":"Workspace comes from the Schedule API key. schedule:read lists and reads definitions; schedule:write changes state using an expected revision. Enabling requires an active verified Schedule Email sender, a current owner member, and link attachments hosted by that owner. Only immediate confirmed, rescheduled and cancelled email actions can execute; timed, team, SMS and AI definitions remain drafts. Reads return up to 100 workflows.","operationId":"getScheduleWorkflow","parameters":[{"in":"path","name":"id","required":true,"schema":{"maxLength":200,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWorkflowResponse"}}},"description":"Workflow configuration"},"400":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"401":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"403":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"404":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"409":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"413":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"422":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"503":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Read a workspace workflow definition","tags":["Schedule"]}},"/schedule/workflows/{id}/state":{"put":{"description":"Workspace comes from the Schedule API key. schedule:read lists and reads definitions; schedule:write changes state using an expected revision. Enabling requires an active verified Schedule Email sender, a current owner member, and link attachments hosted by that owner. Only immediate confirmed, rescheduled and cancelled email actions can execute; timed, team, SMS and AI definitions remain drafts. Reads return up to 100 workflows.","operationId":"changeScheduleWorkflowState","parameters":[{"in":"path","name":"id","required":true,"schema":{"maxLength":200,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWorkflowStateInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleWorkflowResponse"}}},"description":"Workflow configuration"},"400":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"401":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"403":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"404":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"409":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"413":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"422":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"},"503":{"description":"Invalid request, scope, workflow, revision, activation settings or storage"}},"security":[{"bearerAuth":[]},{"xApiKey":[]}],"summary":"Enable or disable an immediate email workflow","tags":["Schedule"]}}},"tags":[{"description":"Create, inspect, cancel and query email sends.","name":"Sends"},{"description":"Record application events for Email automations.","name":"Events"},{"description":"Read and manage Email contacts.","name":"Contacts"},{"description":"Read verified sending configuration.","name":"Configuration"},{"description":"List, create and revoke the project's Email API keys. Needs a key with the keys permission.","name":"API keys"},{"description":"Current sending allowances and use.","name":"Usage"},{"description":"Read safely parsed inbound email.","name":"Inbound"},{"description":"Create inboxes, read their threads, and send, reply and forward from them.","name":"Inboxes"},{"description":"Manage signed webhooks for delivery, engagement and received-mail events, and replay their deliveries.","name":"Webhooks"}]}