diff --git a/openapi-app.json b/openapi-app.json index 5a6e744..7eedcf0 100644 --- a/openapi-app.json +++ b/openapi-app.json @@ -275,123 +275,6 @@ ], "type": "object" }, - "CalendarWebhookEventData": { - "additionalProperties": false, - "properties": { - "created": { - "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "maxItems": 100, - "type": "array" - }, - "destroyed": { - "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "maxItems": 100, - "type": "array" - }, - "has_more": { - "type": "boolean" - }, - "mailbox_id": { - "type": "string" - }, - "new_state": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "old_state": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "resource": { - "enum": [ - "calendar", - "event" - ], - "type": "string" - }, - "sync_required": { - "type": "boolean" - }, - "updated": { - "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "maxItems": 100, - "type": "array" - } - }, - "required": [ - "mailbox_id", - "resource", - "created", - "updated", - "destroyed", - "old_state", - "new_state", - "has_more", - "sync_required" - ], - "type": "object" - }, - "CalendarWebhookEventPayload": { - "additionalProperties": false, - "properties": { - "data": { - "$ref": "#/components/schemas/CalendarWebhookEventData" - }, - "id": { - "description": "Stable per-event identifier. Also sent in the X-Qubrics-Event-Id and X-Sendmux-Event-Id headers.", - "example": "evt_clxxxxxxxxxxxxxxxxxxxxxxxxx", - "type": "string" - }, - "occurred_at": { - "description": "When the event occurred.", - "example": "2026-05-21T09:12:00Z", - "type": "string" - }, - "team_public_id": { - "description": "Team that owns the event.", - "example": "team_clxxxxxxxxxxxxxxxxxxxxxxxxx", - "type": "string" - }, - "type": { - "enum": [ - "calendar.changed" - ], - "type": "string" - } - }, - "required": [ - "id", - "type", - "team_public_id", - "occurred_at", - "data" - ], - "type": "object" - }, "Connection": { "additionalProperties": false, "properties": { @@ -532,91 +415,6 @@ ], "type": "object" }, - "CreateCalendarBody": { - "additionalProperties": false, - "properties": { - "name": { - "description": "Private calendar name.", - "example": "Appointments", - "maxLength": 255, - "minLength": 1, - "type": "string" - }, - "time_zone": { - "description": "Time zone for local event times.", - "example": "Australia/Melbourne", - "maxLength": 100, - "minLength": 1, - "type": "string" - } - }, - "required": [ - "name", - "time_zone" - ], - "type": "object" - }, - "CreateCalendarEventBody": { - "additionalProperties": false, - "properties": { - "calendar_id": { - "description": "Calendar ID in the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "description": { - "description": "Plain text event details. Set null to clear.", - "maxLength": 20000, - "type": [ - "string", - "null" - ] - }, - "duration": { - "description": "Event duration expressed as days, hours, minutes or seconds.", - "example": "PT1H", - "maxLength": 80, - "pattern": "^P(?=\\d+D|T\\d)(?:\\d+D)?(?:T(?=\\d)(?:\\d+H)?(?:\\d+M)?(?:\\d+(?:\\.\\d{1,9})?S)?)?$", - "type": "string" - }, - "start": { - "description": "Local start date and time without an offset, interpreted in time_zone.", - "example": "2026-11-02T10:00:00", - "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$", - "type": "string" - }, - "time_zone": { - "description": "Time zone for local event times.", - "example": "Australia/Melbourne", - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "title": { - "description": "Event title.", - "example": "Appointment", - "maxLength": 1000, - "type": "string" - }, - "uid": { - "description": "Stable caller-held identity, retained before this request. An uncertain create must be reconciled by UID lookup; never repeat it after an empty immediate lookup.", - "maxLength": 255, - "minLength": 1, - "type": "string" - } - }, - "required": [ - "calendar_id", - "uid", - "title", - "start", - "time_zone", - "duration" - ], - "type": "object" - }, "CreateMailboxDraft": { "additionalProperties": false, "properties": { @@ -2672,122 +2470,61 @@ ], "unevaluatedProperties": false }, - "MailboxCalendar": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "is_default": { - "description": "Whether this is the mailbox's current default calendar.", - "type": "boolean" - }, - "mailbox_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "time_zone": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "id", - "mailbox_id", - "name", - "time_zone", - "is_default" - ], - "type": "object" - }, - "MailboxCalendarChanges": { + "MailboxChanges": { "additionalProperties": false, "properties": { "created": { "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, - "maxItems": 100, "type": "array" }, "destroyed": { "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, - "maxItems": 100, "type": "array" }, "has_more": { "type": "boolean" }, - "mailbox_id": { - "type": "string" - }, "new_state": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "old_state": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "resource": { - "enum": [ - "event" - ], - "type": "string" + "type": [ + "string", + "null" + ] }, "sync_required": { + "description": "When true, refetch this resource list instead of applying the incremental arrays.", "type": "boolean" }, "updated": { "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, - "maxItems": 100, + "type": "array" + }, + "updated_properties": { + "items": { + "type": "string" + }, "type": "array" } }, "required": [ - "mailbox_id", - "resource", - "created", - "updated", - "destroyed", "old_state", "new_state", "has_more", - "sync_required" + "created", + "updated", + "destroyed" ], "type": "object" }, - "MailboxCalendarChangesResponse": { + "MailboxChangesResponse": { "allOf": [ { "$ref": "#/components/schemas/SuccessEnvelope" @@ -2795,7 +2532,7 @@ { "properties": { "data": { - "$ref": "#/components/schemas/MailboxCalendarChanges" + "$ref": "#/components/schemas/MailboxChanges" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" @@ -2809,281 +2546,270 @@ ], "unevaluatedProperties": false }, - "MailboxCalendarCreated": { + "MailboxContentHeaders": { "additionalProperties": false, "properties": { - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "mailbox_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "time_zone": { + "full": { + "items": { + "additionalProperties": false, + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, "type": [ - "string", + "array", "null" ] - } - }, - "required": [ - "id", - "mailbox_id", - "name", - "time_zone" - ], - "type": "object" - }, - "MailboxCalendarCreatedResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" }, - { + "mode": { + "enum": [ + "none", + "selected", + "full" + ], + "type": "string" + }, + "selected": { "properties": { - "data": { - "$ref": "#/components/schemas/MailboxCalendarCreated" - }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" - } - }, - "required": [ - "data" - ], - "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxCalendarDeletedResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" - }, - { - "properties": { - "data": { - "additionalProperties": false, - "properties": { - "deleted": { - "enum": [ - true - ], - "type": "boolean" - }, - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - } + "in_reply_to": { + "type": [ + "string", + "null" + ] + }, + "message_id": { + "items": { + "type": "string" }, - "required": [ - "id", - "deleted" - ], - "type": "object" + "type": "array" }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" + "references": { + "items": { + "type": "string" + }, + "type": "array" + }, + "reply_to": { + "items": { + "$ref": "#/components/schemas/MailboxAddress" + }, + "type": "array" } }, "required": [ - "data" + "message_id", + "in_reply_to", + "references", + "reply_to" ], - "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxCalendarEvent": { - "additionalProperties": false, - "properties": { - "calendar_ids": { - "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "maxItems": 250, - "type": "array" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "duration": { - "type": "string" - }, - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "mailbox_id": { - "type": "string" - }, - "start": { - "type": "string" - }, - "time_zone": { "type": [ - "string", + "object", "null" ] - }, - "title": { - "type": "string" - }, - "uid": { - "type": "string" } }, "required": [ - "id", - "mailbox_id", - "calendar_ids", - "uid", - "title", - "description", - "start", - "time_zone", - "duration" + "mode", + "selected", + "full" ], "type": "object" }, - "MailboxCalendarEventCreated": { + "MailboxCostUsage": { "additionalProperties": false, "properties": { - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "mailbox_id": { + "currency": { + "enum": [ + "USD" + ], "type": "string" }, - "uid": { + "end": { + "format": "date-time", "type": "string" - } - }, - "required": [ - "id", - "mailbox_id", - "uid" - ], - "type": "object" - }, - "MailboxCalendarEventCreatedResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" }, - { + "incoming": { + "additionalProperties": false, "properties": { - "data": { - "$ref": "#/components/schemas/MailboxCalendarEventCreated" + "coverage_started_at": { + "format": "date-time", + "type": [ + "string", + "null" + ] }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" + "incurred_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" + }, + "posted_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" + }, + "posted_quantity": { + "pattern": "^\\d+$", + "type": "string" + }, + "quantity": { + "pattern": "^\\d+$", + "type": "string" + }, + "state": { + "enum": [ + "pending", + "final" + ], + "type": "string" + }, + "unbillable_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" + }, + "unbillable_quantity": { + "pattern": "^\\d+$", + "type": "string" } }, "required": [ - "data" + "quantity", + "incurred_amount", + "posted_quantity", + "posted_amount", + "unbillable_quantity", + "unbillable_amount", + "coverage_started_at", + "state" ], "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxCalendarEventDeletedResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" }, - { + "mailbox_id": { + "type": "string" + }, + "outgoing": { + "additionalProperties": false, "properties": { - "data": { - "additionalProperties": false, - "properties": { - "deleted": { - "enum": [ - true - ], - "type": "boolean" - }, - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - } - }, - "required": [ - "id", - "deleted" + "coverage_started_at": { + "format": "date-time", + "type": [ + "string", + "null" + ] + }, + "incurred_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" + }, + "posted_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" + }, + "posted_quantity": { + "pattern": "^\\d+$", + "type": "string" + }, + "quantity": { + "pattern": "^\\d+$", + "type": "string" + }, + "state": { + "enum": [ + "pending", + "final" ], - "type": "object" + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" + "unbillable_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" + }, + "unbillable_quantity": { + "pattern": "^\\d+$", + "type": "string" } }, "required": [ - "data" + "quantity", + "incurred_amount", + "posted_quantity", + "posted_amount", + "unbillable_quantity", + "unbillable_amount", + "coverage_started_at", + "state" ], "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxCalendarEventListResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" }, - { + "posted_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" + }, + "start": { + "format": "date-time", + "type": "string" + }, + "state": { + "enum": [ + "pending", + "final" + ], + "type": "string" + }, + "storage": { + "additionalProperties": false, "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/MailboxCalendarEvent" - }, - "type": "array" + "allocated_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" + "posted_amount": { + "pattern": "^\\d+\\.\\d{6}$", + "type": "string" }, - "pagination": { - "$ref": "#/components/schemas/CursorPagination" + "raw_amount": { + "pattern": "^\\d+\\.\\d{18}$", + "type": "string" + }, + "state": { + "enum": [ + "pending", + "final" + ], + "type": "string" } }, "required": [ - "data", - "pagination" + "raw_amount", + "allocated_amount", + "posted_amount", + "state" ], "type": "object" } + }, + "required": [ + "mailbox_id", + "start", + "end", + "currency", + "state", + "posted_amount", + "incoming", + "outgoing", + "storage" ], - "unevaluatedProperties": false + "type": "object" }, - "MailboxCalendarEventResponse": { + "MailboxCostUsageResponse": { "allOf": [ { "$ref": "#/components/schemas/SuccessEnvelope" @@ -3091,7 +2817,7 @@ { "properties": { "data": { - "$ref": "#/components/schemas/MailboxCalendarEventWithEtag" + "$ref": "#/components/schemas/MailboxCostUsage" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" @@ -3105,7 +2831,39 @@ ], "unevaluatedProperties": false }, - "MailboxCalendarEventUpdatedResponse": { + "MailboxCreateResult": { + "additionalProperties": false, + "properties": { + "credential": { + "anyOf": [ + { + "$ref": "#/components/schemas/MailboxCredential" + }, + { + "type": "null" + } + ], + "description": "Initial credential for the mailbox. `null` if credential generation failed — call POST /mailboxes/{id}/keys to retry." + }, + "mailbox": { + "$ref": "#/components/schemas/Mailbox" + }, + "warning": { + "description": "Optional warning string when the mailbox was created without an initial credential", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "mailbox", + "credential", + "warning" + ], + "type": "object" + }, + "MailboxCreateResultResponse": { "allOf": [ { "$ref": "#/components/schemas/SuccessEnvelope" @@ -3113,27 +2871,7 @@ { "properties": { "data": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "updated": { - "enum": [ - true - ], - "type": "boolean" - } - }, - "required": [ - "id", - "updated" - ], - "type": "object" + "$ref": "#/components/schemas/MailboxCreateResult" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" @@ -3147,74 +2885,57 @@ ], "unevaluatedProperties": false }, - "MailboxCalendarEventWithEtag": { + "MailboxCredential": { "additionalProperties": false, "properties": { - "calendar_ids": { - "items": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - }, - "maxItems": 250, - "type": "array" - }, - "description": { - "type": [ - "string", - "null" - ] + "imap_port": { + "description": "IMAP retrieval port", + "example": 993, + "type": "integer" }, - "duration": { + "key_prefix": { "type": "string" }, - "etag": { - "description": "Current event version, also returned in the ETag response header. Pass this value in If-Match when updating or deleting the event.", + "key_suffix": { "type": "string" }, - "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", + "public_id": { + "description": "Credential public ID", + "example": "smx_clxxxxxxxxxxxxxxxxxxxxxxxxx", "type": "string" }, - "mailbox_id": { + "secret": { + "description": "Mailbox credential — shown exactly once. Use as a Bearer token on the HTTP API and as the password for IMAP retrieval and SMTP submission.", "type": "string" }, - "start": { + "server": { + "description": "Mailbox server name", + "example": "mail.qubrics.com", "type": "string" }, - "time_zone": { - "type": [ - "string", - "null" - ] - }, - "title": { - "type": "string" + "smtp_port": { + "description": "SMTP submission port", + "example": 587, + "type": "integer" }, - "uid": { + "username": { + "description": "Mailbox email address used as the login", "type": "string" } }, "required": [ - "id", - "mailbox_id", - "calendar_ids", - "uid", - "title", - "description", - "start", - "time_zone", - "duration", - "etag" + "public_id", + "secret", + "key_prefix", + "key_suffix", + "server", + "imap_port", + "smtp_port", + "username" ], "type": "object" }, - "MailboxCalendarListResponse": { + "MailboxDeletedResponse": { "allOf": [ { "$ref": "#/components/schemas/SuccessEnvelope" @@ -3222,36 +2943,23 @@ { "properties": { "data": { - "items": { - "$ref": "#/components/schemas/MailboxCalendar" + "additionalProperties": false, + "properties": { + "deleted": { + "enum": [ + true + ], + "type": "boolean" + }, + "id": { + "type": "string" + } }, - "type": "array" - }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" - }, - "pagination": { - "$ref": "#/components/schemas/CursorPagination" - } - }, - "required": [ - "data", - "pagination" - ], - "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxCalendarResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" - }, - { - "properties": { - "data": { - "$ref": "#/components/schemas/MailboxCalendarWithEtag" + "required": [ + "deleted", + "id" + ], + "type": "object" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" @@ -3265,1077 +2973,533 @@ ], "unevaluatedProperties": false }, - "MailboxCalendarWithEtag": { + "MailboxDomain": { "additionalProperties": false, "properties": { - "etag": { - "description": "Current calendar version, matching the ETag response header. Use this value in If-Match to delete an empty calendar.", + "created_at": { + "description": "ISO 8601 creation timestamp", + "type": "string" + }, + "dns_records": { + "$ref": "#/components/schemas/MailboxDomainDnsRecords" + }, + "domain": { + "description": "Fully qualified domain name", + "example": "mail.acme.com", "type": "string" }, "id": { - "description": "Opaque identifier scoped to the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", + "description": "Public ID", + "example": "mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", "type": "string" }, - "is_default": { - "description": "Whether this is the mailbox's current default calendar.", - "type": "boolean" + "mailbox_count": { + "description": "Active mailboxes currently using this domain", + "example": 14, + "minimum": 0, + "type": "integer" }, - "mailbox_id": { + "mode": { + "description": "`send_only` verifies outbound DNS only. `send_receive` also verifies MX records and can host mailboxes.", + "enum": [ + "send_only", + "send_receive" + ], + "example": "send_receive", "type": "string" }, - "name": { - "type": "string" + "ses_dkim_signing_enabled": { + "description": "Whether Amazon SES DKIM signing is currently enabled for this identity", + "type": [ + "boolean", + "null" + ] }, - "time_zone": { + "ses_dkim_status": { + "description": "Amazon SES DKIM status (pending/success/failed/temporary_failure/not_started)", "type": [ "string", "null" ] - } - }, - "required": [ + }, + "ses_identity_checked_at": { + "description": "ISO 8601 timestamp of the latest complete Amazon SES identity check", + "type": [ + "string", + "null" + ] + }, + "ses_identity_verification_status": { + "description": "Latest Amazon SES identity verification status", + "type": [ + "string", + "null" + ] + }, + "ses_mail_from_status": { + "description": "Amazon SES MAIL FROM status (pending/success/failed/temporary_failure/not_started)", + "type": [ + "string", + "null" + ] + }, + "ses_verified_for_sending": { + "description": "Whether Amazon SES currently permits sending for this identity", + "type": [ + "boolean", + "null" + ] + }, + "verification_status": { + "description": "Current verification state", + "enum": [ + "pending", + "verified", + "failed" + ], + "type": "string" + }, + "verified_at": { + "description": "ISO 8601 timestamp of last successful verification", + "type": [ + "string", + "null" + ] + } + }, + "required": [ "id", - "mailbox_id", - "name", - "time_zone", - "is_default", - "etag" + "domain", + "mode", + "verification_status", + "ses_identity_verification_status", + "ses_verified_for_sending", + "ses_dkim_status", + "ses_dkim_signing_enabled", + "ses_identity_checked_at", + "ses_mail_from_status", + "verified_at", + "created_at", + "mailbox_count", + "dns_records" ], "type": "object" }, - "MailboxChanges": { + "MailboxDomainDnsRecords": { "additionalProperties": false, "properties": { - "created": { - "items": { - "type": "string" - }, - "type": "array" - }, - "destroyed": { + "dkim": { + "description": "Three Amazon SES DKIM CNAME records", "items": { - "type": "string" + "$ref": "#/components/schemas/MailboxDomainNameValueRecord" }, "type": "array" }, - "has_more": { - "type": "boolean" - }, - "new_state": { - "type": "string" - }, - "old_state": { - "type": [ - "string", - "null" + "dmarc": { + "allOf": [ + { + "$ref": "#/components/schemas/MailboxDomainNameValueRecord" + }, + { + "description": "DMARC enforcement record (quarantine, no reporting)" + } ] }, - "sync_required": { - "description": "When true, refetch this resource list instead of applying the incremental arrays.", - "type": "boolean" + "mail_from": { + "$ref": "#/components/schemas/MailboxDomainMailFromRecords" }, - "updated": { + "mx": { + "description": "MX records the customer must place. All point at Qubrics' inbound mail servers.", "items": { - "type": "string" + "$ref": "#/components/schemas/MailboxDomainMxRecord" }, "type": "array" }, - "updated_properties": { - "items": { - "type": "string" - }, - "type": "array" + "spf": { + "allOf": [ + { + "$ref": "#/components/schemas/MailboxDomainNameValueRecord" + }, + { + "description": "SPF TXT record covering Amazon SES sending" + } + ] + }, + "verification": { + "allOf": [ + { + "$ref": "#/components/schemas/MailboxDomainNameValueRecord" + }, + { + "description": "Ownership-proof TXT record (Qubrics-specific)" + } + ] } }, "required": [ - "old_state", - "new_state", - "has_more", - "created", - "updated", - "destroyed" + "mx", + "mail_from", + "spf", + "dmarc", + "dkim", + "verification" ], "type": "object" }, - "MailboxChangesResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" + "MailboxDomainMailFromRecords": { + "additionalProperties": false, + "description": "Custom MAIL FROM records for Amazon SES bounce handling", + "properties": { + "mx": { + "$ref": "#/components/schemas/MailboxDomainNamedMxRecord" }, - { - "properties": { - "data": { - "$ref": "#/components/schemas/MailboxChanges" - }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" - } - }, - "required": [ - "data" - ], - "type": "object" + "spf": { + "$ref": "#/components/schemas/MailboxDomainNameValueRecord" } + }, + "required": [ + "mx", + "spf" ], - "unevaluatedProperties": false + "type": "object" }, - "MailboxContentHeaders": { + "MailboxDomainMxRecord": { "additionalProperties": false, "properties": { - "full": { - "items": { - "additionalProperties": false, - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": [ - "array", - "null" - ] + "priority": { + "example": 10, + "type": "integer" }, - "mode": { - "enum": [ - "none", - "selected", - "full" - ], + "target": { + "example": "mail.qubrics.com", "type": "string" - }, - "selected": { - "properties": { - "in_reply_to": { - "type": [ - "string", - "null" - ] - }, - "message_id": { - "items": { - "type": "string" - }, - "type": "array" - }, - "references": { - "items": { - "type": "string" - }, - "type": "array" - }, - "reply_to": { - "items": { - "$ref": "#/components/schemas/MailboxAddress" - }, - "type": "array" - } - }, - "required": [ - "message_id", - "in_reply_to", - "references", - "reply_to" - ], - "type": [ - "object", - "null" - ] } }, "required": [ - "mode", - "selected", - "full" + "priority", + "target" ], "type": "object" }, - "MailboxCostUsage": { + "MailboxDomainNamedMxRecord": { "additionalProperties": false, + "description": "MX record for Amazon SES bounce handling", "properties": { - "currency": { - "enum": [ - "USD" - ], + "name": { + "example": "bounce.acme.com", "type": "string" }, - "end": { - "format": "date-time", - "type": "string" - }, - "incoming": { - "additionalProperties": false, - "properties": { - "coverage_started_at": { - "format": "date-time", - "type": [ - "string", - "null" - ] - }, - "incurred_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "posted_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "posted_quantity": { - "pattern": "^\\d+$", - "type": "string" - }, - "quantity": { - "pattern": "^\\d+$", - "type": "string" - }, - "state": { - "enum": [ - "pending", - "final" - ], - "type": "string" - }, - "unbillable_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "unbillable_quantity": { - "pattern": "^\\d+$", - "type": "string" - } - }, - "required": [ - "quantity", - "incurred_amount", - "posted_quantity", - "posted_amount", - "unbillable_quantity", - "unbillable_amount", - "coverage_started_at", - "state" - ], - "type": "object" - }, - "mailbox_id": { - "type": "string" - }, - "outgoing": { - "additionalProperties": false, - "properties": { - "coverage_started_at": { - "format": "date-time", - "type": [ - "string", - "null" - ] - }, - "incurred_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "posted_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "posted_quantity": { - "pattern": "^\\d+$", - "type": "string" - }, - "quantity": { - "pattern": "^\\d+$", - "type": "string" - }, - "state": { - "enum": [ - "pending", - "final" - ], - "type": "string" - }, - "unbillable_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "unbillable_quantity": { - "pattern": "^\\d+$", - "type": "string" - } - }, - "required": [ - "quantity", - "incurred_amount", - "posted_quantity", - "posted_amount", - "unbillable_quantity", - "unbillable_amount", - "coverage_started_at", - "state" - ], - "type": "object" - }, - "posted_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "start": { - "format": "date-time", - "type": "string" + "priority": { + "example": 10, + "type": "integer" }, - "state": { - "enum": [ - "pending", - "final" - ], + "target": { + "example": "feedback-smtp.eu-central-1.amazonses.com", "type": "string" - }, - "storage": { - "additionalProperties": false, - "properties": { - "allocated_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "posted_amount": { - "pattern": "^\\d+\\.\\d{6}$", - "type": "string" - }, - "raw_amount": { - "pattern": "^\\d+\\.\\d{18}$", - "type": "string" - }, - "state": { - "enum": [ - "pending", - "final" - ], - "type": "string" - } - }, - "required": [ - "raw_amount", - "allocated_amount", - "posted_amount", - "state" - ], - "type": "object" } }, "required": [ - "mailbox_id", - "start", - "end", - "currency", - "state", - "posted_amount", - "incoming", - "outgoing", - "storage" + "name", + "priority", + "target" ], "type": "object" }, - "MailboxCostUsageResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" - }, - { - "properties": { - "data": { - "$ref": "#/components/schemas/MailboxCostUsage" - }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" - } - }, - "required": [ - "data" - ], - "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxCreateResult": { + "MailboxDomainNameValueRecord": { "additionalProperties": false, + "description": "SPF TXT record for the custom MAIL FROM subdomain", "properties": { - "credential": { - "anyOf": [ - { - "$ref": "#/components/schemas/MailboxCredential" - }, - { - "type": "null" - } - ], - "description": "Initial credential for the mailbox. `null` if credential generation failed — call POST /mailboxes/{id}/keys to retry." - }, - "mailbox": { - "$ref": "#/components/schemas/Mailbox" + "name": { + "example": "_qubrics.acme.com", + "type": "string" }, - "warning": { - "description": "Optional warning string when the mailbox was created without an initial credential", - "type": [ - "string", - "null" - ] + "value": { + "example": "qubrics-verify=team_abc123", + "type": "string" } }, "required": [ - "mailbox", - "credential", - "warning" + "name", + "value" ], "type": "object" }, - "MailboxCreateResultResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" - }, - { - "properties": { - "data": { - "$ref": "#/components/schemas/MailboxCreateResult" - }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" - } - }, - "required": [ - "data" - ], - "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxCredential": { + "MailboxDomainVerifyChecks": { "additionalProperties": false, "properties": { - "imap_port": { - "description": "IMAP retrieval port", - "example": 993, - "type": "integer" - }, - "key_prefix": { - "type": "string" - }, - "key_suffix": { - "type": "string" + "dmarc": { + "description": "A DMARC record containing v=DMARC1 is present.", + "type": "boolean" }, - "public_id": { - "description": "Credential public ID", - "example": "smx_clxxxxxxxxxxxxxxxxxxxxxxxxx", - "type": "string" + "mail_from_mx": { + "description": "Custom MAIL FROM MX record matches expected value", + "type": "boolean" }, - "secret": { - "description": "Mailbox credential — shown exactly once. Use as a Bearer token on the HTTP API and as the password for IMAP retrieval and SMTP submission.", - "type": "string" + "mail_from_spf": { + "description": "Custom MAIL FROM SPF policy is compatible with the required Amazon SES sender authorisation.", + "type": "boolean" }, - "server": { - "description": "Mailbox server name", - "example": "mail.qubrics.com", - "type": "string" + "mx": { + "description": "MX record present when the domain is configured for receiving. Always true for send-only domains.", + "type": "boolean" }, - "smtp_port": { - "description": "SMTP submission port", - "example": 587, - "type": "integer" + "spf": { + "description": "Published SPF policy is compatible with the required Amazon SES sender authorisation.", + "type": "boolean" }, - "username": { - "description": "Mailbox email address used as the login", - "type": "string" + "verification_txt": { + "description": "Ownership TXT record present with correct value", + "type": "boolean" } }, "required": [ - "public_id", - "secret", - "key_prefix", - "key_suffix", - "server", - "imap_port", - "smtp_port", - "username" + "mx", + "verification_txt", + "spf", + "dmarc", + "mail_from_mx", + "mail_from_spf" ], "type": "object" }, - "MailboxDeletedResponse": { - "allOf": [ - { - "$ref": "#/components/schemas/SuccessEnvelope" - }, - { - "properties": { - "data": { - "additionalProperties": false, - "properties": { - "deleted": { - "enum": [ - true - ], - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "required": [ - "deleted", - "id" - ], - "type": "object" - }, - "meta": { - "$ref": "#/components/schemas/ResponseMeta" - } - }, - "required": [ - "data" - ], - "type": "object" - } - ], - "unevaluatedProperties": false - }, - "MailboxDomain": { + "MailboxDomainVerifyResult": { "additionalProperties": false, "properties": { - "created_at": { - "description": "ISO 8601 creation timestamp", - "type": "string" - }, - "dns_records": { - "$ref": "#/components/schemas/MailboxDomainDnsRecords" - }, - "domain": { - "description": "Fully qualified domain name", - "example": "mail.acme.com", - "type": "string" - }, - "id": { - "description": "Public ID", - "example": "mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", - "type": "string" - }, - "mailbox_count": { - "description": "Active mailboxes currently using this domain", - "example": 14, - "minimum": 0, - "type": "integer" - }, - "mode": { - "description": "`send_only` verifies outbound DNS only. `send_receive` also verifies MX records and can host mailboxes.", - "enum": [ - "send_only", - "send_receive" - ], - "example": "send_receive", - "type": "string" + "checks": { + "$ref": "#/components/schemas/MailboxDomainVerifyChecks" }, "ses_dkim_signing_enabled": { - "description": "Whether Amazon SES DKIM signing is currently enabled for this identity", - "type": [ - "boolean", - "null" - ] + "description": "Whether Amazon SES DKIM signing is enabled", + "type": "boolean" }, "ses_dkim_status": { - "description": "Amazon SES DKIM status (pending/success/failed/temporary_failure/not_started)", - "type": [ - "string", - "null" - ] + "description": "Latest Amazon SES DKIM status", + "type": "string" }, "ses_identity_checked_at": { - "description": "ISO 8601 timestamp of the latest complete Amazon SES identity check", - "type": [ - "string", - "null" - ] + "description": "ISO 8601 time of this SES identity check", + "type": "string" }, "ses_identity_verification_status": { - "description": "Latest Amazon SES identity verification status", - "type": [ - "string", - "null" - ] + "description": "Latest Amazon SES identity status", + "type": "string" }, "ses_mail_from_status": { - "description": "Amazon SES MAIL FROM status (pending/success/failed/temporary_failure/not_started)", - "type": [ - "string", - "null" - ] + "description": "Latest Amazon SES MAIL FROM status", + "type": "string" }, "ses_verified_for_sending": { - "description": "Whether Amazon SES currently permits sending for this identity", - "type": [ - "boolean", - "null" - ] + "description": "Whether Amazon SES permits identity sending", + "type": "boolean" }, - "verification_status": { - "description": "Current verification state", + "status": { + "description": "Post-check verification status", "enum": [ - "pending", "verified", + "pending", "failed" ], "type": "string" - }, - "verified_at": { - "description": "ISO 8601 timestamp of last successful verification", - "type": [ - "string", - "null" - ] } }, "required": [ - "id", - "domain", - "mode", - "verification_status", + "status", "ses_identity_verification_status", "ses_verified_for_sending", "ses_dkim_status", "ses_dkim_signing_enabled", "ses_identity_checked_at", "ses_mail_from_status", - "verified_at", - "created_at", - "mailbox_count", - "dns_records" + "checks" ], "type": "object" }, - "MailboxDomainDnsRecords": { + "MailboxDraft": { "additionalProperties": false, "properties": { - "dkim": { - "description": "Three Amazon SES DKIM CNAME records", + "attachments": { + "description": "Attachments and inline images.", "items": { - "$ref": "#/components/schemas/MailboxDomainNameValueRecord" + "additionalProperties": false, + "properties": { + "blob_id": { + "description": "An attachment uploaded to this mailbox.", + "maxLength": 255, + "minLength": 1, + "type": "string" + }, + "content_id": { + "description": "Content ID referenced by an inline image.", + "maxLength": 998, + "minLength": 1, + "type": "string" + }, + "content_type": { + "description": "Attachment media type.", + "maxLength": 255, + "minLength": 1, + "type": "string" + }, + "disposition": { + "description": "Whether the attachment appears within the message.", + "enum": [ + "attachment", + "inline" + ], + "type": "string" + }, + "filename": { + "description": "Attachment filename.", + "maxLength": 255, + "minLength": 1, + "type": "string" + }, + "size_bytes": { + "description": "Attachment size in bytes; verified when saved.", + "maximum": 7500000, + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "blob_id", + "filename", + "content_type", + "size_bytes" + ], + "type": "object" }, + "maxItems": 10, "type": "array" }, - "dmarc": { - "allOf": [ - { - "$ref": "#/components/schemas/MailboxDomainNameValueRecord" + "bcc": { + "description": "Hidden copied recipients.", + "items": { + "additionalProperties": false, + "properties": { + "email": { + "description": "Email address.", + "format": "email", + "maxLength": 254, + "type": "string" + }, + "name": { + "description": "Display name.", + "maxLength": 255, + "type": [ + "string", + "null" + ] + } }, - { - "description": "DMARC enforcement record (quarantine, no reporting)" - } - ] - }, - "mail_from": { - "$ref": "#/components/schemas/MailboxDomainMailFromRecords" + "required": [ + "email" + ], + "type": "object" + }, + "maxItems": 50, + "type": "array" }, - "mx": { - "description": "MX records the customer must place. All point at Qubrics' inbound mail servers.", + "cc": { + "description": "Visible copied recipients.", "items": { - "$ref": "#/components/schemas/MailboxDomainMxRecord" + "additionalProperties": false, + "properties": { + "email": { + "description": "Email address.", + "format": "email", + "maxLength": 254, + "type": "string" + }, + "name": { + "description": "Display name.", + "maxLength": 255, + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "email" + ], + "type": "object" }, + "maxItems": 50, "type": "array" }, - "spf": { - "allOf": [ - { - "$ref": "#/components/schemas/MailboxDomainNameValueRecord" - }, - { - "description": "SPF TXT record covering Amazon SES sending" - } + "custom_headers": { + "additionalProperties": { + "type": "string" + }, + "description": "Custom X-* headers preserved with this revision. Older drafts containing reserved headers remain readable.", + "type": "object" + }, + "failure_code": { + "description": "Safe failure reason. Correct failed draft content or current permissions before retrying. Never retry an uncertain send as a new message.", + "enum": [ + "preparation_failed", + "authorisation_revoked", + "send_rejected" + ], + "type": [ + "string", + "null" ] }, - "verification": { - "allOf": [ - { - "$ref": "#/components/schemas/MailboxDomainNameValueRecord" + "from": { + "additionalProperties": false, + "description": "Authorised sender; defaults to this inbox.", + "properties": { + "email": { + "description": "Email address.", + "format": "email", + "maxLength": 254, + "type": "string" }, - { - "description": "Ownership-proof TXT record (Qubrics-specific)" + "name": { + "description": "Display name.", + "maxLength": 255, + "type": [ + "string", + "null" + ] } - ] - } - }, - "required": [ - "mx", - "mail_from", - "spf", - "dmarc", - "dkim", - "verification" - ], - "type": "object" - }, - "MailboxDomainMailFromRecords": { - "additionalProperties": false, - "description": "Custom MAIL FROM records for Amazon SES bounce handling", - "properties": { - "mx": { - "$ref": "#/components/schemas/MailboxDomainNamedMxRecord" - }, - "spf": { - "$ref": "#/components/schemas/MailboxDomainNameValueRecord" - } - }, - "required": [ - "mx", - "spf" - ], - "type": "object" - }, - "MailboxDomainMxRecord": { - "additionalProperties": false, - "properties": { - "priority": { - "example": 10, - "type": "integer" - }, - "target": { - "example": "mail.qubrics.com", - "type": "string" - } - }, - "required": [ - "priority", - "target" - ], - "type": "object" - }, - "MailboxDomainNamedMxRecord": { - "additionalProperties": false, - "description": "MX record for Amazon SES bounce handling", - "properties": { - "name": { - "example": "bounce.acme.com", - "type": "string" - }, - "priority": { - "example": 10, - "type": "integer" + }, + "required": [ + "email" + ], + "type": "object" }, - "target": { - "example": "feedback-smtp.eu-central-1.amazonses.com", - "type": "string" - } - }, - "required": [ - "name", - "priority", - "target" - ], - "type": "object" - }, - "MailboxDomainNameValueRecord": { - "additionalProperties": false, - "description": "SPF TXT record for the custom MAIL FROM subdomain", - "properties": { - "name": { - "example": "_qubrics.acme.com", + "html_body": { + "description": "HTML body, preserved when saved.", + "maxLength": 1000000, "type": "string" }, - "value": { - "example": "qubrics-verify=team_abc123", + "id": { + "description": "Stable draft ID.", "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "MailboxDomainVerifyChecks": { - "additionalProperties": false, - "properties": { - "dmarc": { - "description": "A DMARC record containing v=DMARC1 is present.", - "type": "boolean" - }, - "mail_from_mx": { - "description": "Custom MAIL FROM MX record matches expected value", - "type": "boolean" }, - "mail_from_spf": { - "description": "Custom MAIL FROM SPF policy is compatible with the required Amazon SES sender authorisation.", - "type": "boolean" + "in_reply_to": { + "description": "Snapshotted parent message identifiers.", + "items": { + "type": "string" + }, + "type": "array" }, - "mx": { - "description": "MX record present when the domain is configured for receiving. Always true for send-only domains.", - "type": "boolean" + "message_id": { + "description": "Saved message ID; absent until saving finishes.", + "type": [ + "string", + "null" + ] }, - "spf": { - "description": "Published SPF policy is compatible with the required Amazon SES sender authorisation.", - "type": "boolean" - }, - "verification_txt": { - "description": "Ownership TXT record present with correct value", - "type": "boolean" - } - }, - "required": [ - "mx", - "verification_txt", - "spf", - "dmarc", - "mail_from_mx", - "mail_from_spf" - ], - "type": "object" - }, - "MailboxDomainVerifyResult": { - "additionalProperties": false, - "properties": { - "checks": { - "$ref": "#/components/schemas/MailboxDomainVerifyChecks" - }, - "ses_dkim_signing_enabled": { - "description": "Whether Amazon SES DKIM signing is enabled", - "type": "boolean" - }, - "ses_dkim_status": { - "description": "Latest Amazon SES DKIM status", - "type": "string" - }, - "ses_identity_checked_at": { - "description": "ISO 8601 time of this SES identity check", - "type": "string" - }, - "ses_identity_verification_status": { - "description": "Latest Amazon SES identity status", - "type": "string" - }, - "ses_mail_from_status": { - "description": "Latest Amazon SES MAIL FROM status", - "type": "string" - }, - "ses_verified_for_sending": { - "description": "Whether Amazon SES permits identity sending", - "type": "boolean" - }, - "status": { - "description": "Post-check verification status", - "enum": [ - "verified", - "pending", - "failed" - ], - "type": "string" - } - }, - "required": [ - "status", - "ses_identity_verification_status", - "ses_verified_for_sending", - "ses_dkim_status", - "ses_dkim_signing_enabled", - "ses_identity_checked_at", - "ses_mail_from_status", - "checks" - ], - "type": "object" - }, - "MailboxDraft": { - "additionalProperties": false, - "properties": { - "attachments": { - "description": "Attachments and inline images.", - "items": { - "additionalProperties": false, - "properties": { - "blob_id": { - "description": "An attachment uploaded to this mailbox.", - "maxLength": 255, - "minLength": 1, - "type": "string" - }, - "content_id": { - "description": "Content ID referenced by an inline image.", - "maxLength": 998, - "minLength": 1, - "type": "string" - }, - "content_type": { - "description": "Attachment media type.", - "maxLength": 255, - "minLength": 1, - "type": "string" - }, - "disposition": { - "description": "Whether the attachment appears within the message.", - "enum": [ - "attachment", - "inline" - ], - "type": "string" - }, - "filename": { - "description": "Attachment filename.", - "maxLength": 255, - "minLength": 1, - "type": "string" - }, - "size_bytes": { - "description": "Attachment size in bytes; verified when saved.", - "maximum": 7500000, - "minimum": 0, - "type": "integer" - } - }, - "required": [ - "blob_id", - "filename", - "content_type", - "size_bytes" - ], - "type": "object" - }, - "maxItems": 10, - "type": "array" - }, - "bcc": { - "description": "Hidden copied recipients.", - "items": { - "additionalProperties": false, - "properties": { - "email": { - "description": "Email address.", - "format": "email", - "maxLength": 254, - "type": "string" - }, - "name": { - "description": "Display name.", - "maxLength": 255, - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "email" - ], - "type": "object" - }, - "maxItems": 50, - "type": "array" - }, - "cc": { - "description": "Visible copied recipients.", - "items": { - "additionalProperties": false, - "properties": { - "email": { - "description": "Email address.", - "format": "email", - "maxLength": 254, - "type": "string" - }, - "name": { - "description": "Display name.", - "maxLength": 255, - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "email" - ], - "type": "object" - }, - "maxItems": 50, - "type": "array" - }, - "custom_headers": { - "additionalProperties": { - "type": "string" - }, - "description": "Custom X-* headers preserved with this revision. Older drafts containing reserved headers remain readable.", - "type": "object" - }, - "failure_code": { - "description": "Safe failure reason. Correct failed draft content or current permissions before retrying. Never retry an uncertain send as a new message.", - "enum": [ - "preparation_failed", - "authorisation_revoked", - "send_rejected" - ], - "type": [ - "string", - "null" - ] - }, - "from": { - "additionalProperties": false, - "description": "Authorised sender; defaults to this inbox.", - "properties": { - "email": { - "description": "Email address.", - "format": "email", - "maxLength": 254, - "type": "string" - }, - "name": { - "description": "Display name.", - "maxLength": 255, - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "email" - ], - "type": "object" - }, - "html_body": { - "description": "HTML body, preserved when saved.", - "maxLength": 1000000, - "type": "string" - }, - "id": { - "description": "Stable draft ID.", - "type": "string" - }, - "in_reply_to": { - "description": "Snapshotted parent message identifiers.", - "items": { - "type": "string" - }, - "type": "array" - }, - "message_id": { - "description": "Saved message ID; absent until saving finishes.", - "type": [ - "string", - "null" - ] - }, - "references": { - "description": "Snapshotted conversation identifiers.", - "items": { - "type": "string" - }, - "type": "array" + "references": { + "description": "Snapshotted conversation identifiers.", + "items": { + "type": "string" + }, + "type": "array" }, "reply_to": { "description": "Authorised reply addresses; defaults to this inbox.", @@ -8058,60 +7222,20 @@ ], "type": "object" }, - "PatchCalendarEventBody": { + "PatchMailboxFolderBody": { "additionalProperties": false, "properties": { - "description": { - "description": "Plain text event details. Set null to clear.", - "maxLength": 20000, + "name": { + "type": "string" + }, + "parent_id": { "type": [ "string", "null" ] }, - "duration": { - "description": "Event duration expressed as days, hours, minutes or seconds.", - "example": "PT1H", - "maxLength": 80, - "pattern": "^P(?=\\d+D|T\\d)(?:\\d+D)?(?:T(?=\\d)(?:\\d+H)?(?:\\d+M)?(?:\\d+(?:\\.\\d{1,9})?S)?)?$", - "type": "string" - }, - "start": { - "description": "Local start date and time without an offset, interpreted in time_zone.", - "example": "2026-11-02T10:00:00", - "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$", - "type": "string" - }, - "time_zone": { - "description": "Time zone for local event times.", - "example": "Australia/Melbourne", - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "title": { - "description": "Event title.", - "example": "Appointment", - "maxLength": 1000, - "type": "string" - } - }, - "type": "object" - }, - "PatchMailboxFolderBody": { - "additionalProperties": false, - "properties": { - "name": { - "type": "string" - }, - "parent_id": { - "type": [ - "string", - "null" - ] - }, - "sort_order": { - "type": "integer" + "sort_order": { + "type": "integer" } }, "type": "object" @@ -10459,7 +9583,6 @@ "message.delivery_delayed", "message.received", "message.received.spam", - "calendar.changed", "sendmux.test" ], "example": "message.bounced", @@ -10573,7 +9696,6 @@ "message.delivery_delayed", "message.received", "message.received.spam", - "calendar.changed", "sendmux.test" ], "example": "message.bounced", @@ -10734,7 +9856,6 @@ "message.delivery_delayed", "message.received", "message.received.spam", - "calendar.changed", "sendmux.test" ], "example": "message.bounced", @@ -10953,7 +10074,6 @@ "description": "The JSON request body delivered to the webhook endpoint.", "discriminator": { "mapping": { - "calendar.changed": "#/components/schemas/CalendarWebhookEventPayload", "message.bounced": "#/components/schemas/MailWebhookEventPayload", "message.complained": "#/components/schemas/MailWebhookEventPayload", "message.delivered": "#/components/schemas/MailWebhookEventPayload", @@ -10994,9 +10114,6 @@ "oneOf": [ { "$ref": "#/components/schemas/MailWebhookEventPayload" - }, - { - "$ref": "#/components/schemas/CalendarWebhookEventPayload" } ] }, @@ -11049,7 +10166,6 @@ "message.delivery_delayed", "message.received", "message.received.spam", - "calendar.changed", "sendmux.test" ], "example": "message.bounced", @@ -11183,7 +10299,6 @@ "message.delivery_delayed", "message.received", "message.received.spam", - "calendar.changed", "sendmux.test" ], "example": "message.bounced", @@ -11298,7 +10413,6 @@ "message.delivery_delayed", "message.received", "message.received.spam", - "calendar.changed", "sendmux.test" ], "example": "message.bounced", @@ -11354,8 +10468,6 @@ "billing.auto_topup": "Configure auto top-up settings", "billing.read": "View balance, transactions, invoices", "billing.topup": "Purchase balance top-ups", - "calendar.read": "Read calendars and events in this mailbox", - "calendar.write": "Create calendars and create, edit and delete events in this mailbox", "domain.*": "All domain operations", "domain.create": "Add sending domains", "domain.delete": "Remove domains", @@ -11389,1947 +10501,46 @@ "routing.read": "List/view delivery groups and routing rules", "routing.update": "Update delivery group configuration", "team.*": "All team operations", - "team.members.invite": "Invite team members", - "team.members.remove": "Remove team members", - "team.members.roles": "Change member roles", - "team.read": "View team settings and members", - "team.update": "Update team settings", - "webhook.*": "All webhook operations", - "webhook.create": "Create webhook subscriptions", - "webhook.delete": "Delete webhook subscriptions", - "webhook.manage": "Rotate signing secret + send test events", - "webhook.read": "List/view webhook subscriptions", - "webhook.update": "Update webhook URL, event types, enabled flag" - }, - "tokenUrl": "https://app.qubrics.com/oauth/token" - } - }, - "type": "oauth2" - } - } - }, - "info": { - "description": "Programmatic access to your Qubrics email infrastructure.", - "title": "Qubrics API", - "version": "1.0.0" - }, - "openapi": "3.1.0", - "paths": { - "/billing/balance": { - "get": { - "description": "Returns the current spendable balance.", - "operationId": "managementListBalance", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BalanceResponse" - } - } - }, - "description": "Current spendable balance" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "billing.read" - ] - } - ], - "summary": "Get current balance", - "tags": [ - "Billing" - ] - } - }, - "/billing/summary": { - "get": { - "description": "Returns a spend summary over a configurable lookback period.", - "operationId": "managementGetSpendSummary", - "parameters": [ - { - "in": "query", - "name": "days", - "required": false, - "schema": { - "description": "Lookback period in days (default: 30)", - "enum": [ - "7", - "30", - "90" - ], - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SpendSummaryResponse" - } - } - }, - "description": "Spend summary" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "billing.read" - ] - } - ], - "summary": "Get spend summary", - "tags": [ - "Billing" - ] - } - }, - "/billing/transactions": { - "get": { - "description": "Returns paginated credit transaction history with optional type filter. Uses cursor-based pagination ordered by created_at descending — pass `cursor=` from the previous response to fetch the next page.", - "operationId": "managementListTransactions", - "parameters": [ - { - "in": "query", - "name": "cursor", - "required": false, - "schema": { - "description": "Pagination cursor — the `next_cursor` from the previous response.", - "type": "string" - } - }, - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "description": "Max results (default 25, max 100)", - "maximum": 100, - "minimum": 1, - "type": "integer" - } - }, - { - "in": "query", - "name": "type", - "required": false, - "schema": { - "enum": [ - "PURCHASE", - "USAGE", - "AUTO_TOPUP", - "REFUND", - "ADJUSTMENT" - ], - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransactionCursorListResponse" - } - } - }, - "description": "Transaction list" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "billing.read" - ] - } - ], - "summary": "List transactions", - "tags": [ - "Billing" - ] - } - }, - "/domains": { - "get": { - "description": "Returns a cursor-paginated list of sending domains configured for the team, ordered by `created_at` descending. Each entry includes the DNS records the customer must place, the current verification status, and the SES DKIM state. Pass `cursor=` from the previous response to fetch the next page.", - "operationId": "managementListDomains", - "parameters": [ - { - "in": "query", - "name": "cursor", - "required": false, - "schema": { - "description": "Pagination cursor — the `next_cursor` from the previous response.", - "type": "string" - } - }, - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "description": "Maximum results (default 50, max 100)", - "maximum": 100, - "minimum": 1, - "type": "integer" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DomainItemCursorListResponse" - } - } - }, - "description": "Domain list" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "domain.read" - ] - } - ], - "summary": "List mailbox domains", - "tags": [ - "Domains" - ] - }, - "post": { - "description": "Creates a new domain and returns the DNS records the customer must place before verification can succeed. `send_only` configures outbound sending without changing MX records. `send_receive` also configures the domain for hosted mailboxes. Provisioning touches our email platform and Amazon SES; on any failure the partial state is automatically rolled back.\n\nSupply an `Idempotency-Key` header (any unique string, max 255 chars) to safely retry on network errors. Replays with the same key return the original response; replays with a different body return `409 idempotency_conflict`.", - "operationId": "managementCreateDomain", - "parameters": [ - { - "in": "header", - "name": "Idempotency-Key", - "required": false, - "schema": { - "description": "Client-chosen unique key to safely retry the request. Cached for 24h per (team, endpoint, key). Different body with same key returns 409 idempotency_conflict.", - "example": "domains-create-20260424-001", - "maxLength": 255, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "additionalProperties": false, - "properties": { - "domain": { - "description": "Fully qualified domain name. Must be lowercased and domain-only (no scheme).", - "example": "mail.acme.com", - "type": "string" - }, - "mode": { - "description": "Domain usage mode. Defaults to `send_receive` when omitted.", - "enum": [ - "send_only", - "send_receive" - ], - "example": "send_only", - "type": "string" - } - }, - "required": [ - "domain" - ], - "type": "object" - } - } - } - }, - "responses": { - "201": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DomainItemResponse" - } - } - }, - "description": "Domain created. The response carries a `Location` header pointing at the canonical GET URL for the new domain.", - "headers": { - "Location": { - "description": "Canonical GET URL for the newly created domain.", - "schema": { - "example": "/api/v1/domains/mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", - "type": "string" - } - } - } - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Invalid request body" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain already in use, or `Idempotency-Key` was replayed with a different body." - }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request body too large" - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "SES tenant not yet provisioned for this team" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "domain.create" - ] - } - ], - "summary": "Add a mailbox domain", - "tags": [ - "Domains" - ] - } - }, - "/domains/{public_id}": { - "delete": { - "description": "Removes a domain from our mail platform, Amazon SES, and Qubrics. Blocked if any active mailbox still uses the domain — delete those mailboxes first.", - "operationId": "managementDeleteDomain", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Domain public ID", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DomainDeletedResponse" - } - } - }, - "description": "Deletion result" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain still has active mailboxes (error code `conflict`)." - }, - "500": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Unexpected server error." - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Deletion is temporarily unavailable; retry after the indicated delay.", - "headers": { - "Retry-After": { - "description": "Seconds to wait before retrying.", - "schema": { - "example": 30, - "type": "integer" - } - } - } - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "domain.delete" - ] - } - ], - "summary": "Delete a mailbox domain", - "tags": [ - "Domains" - ] - }, - "get": { - "description": "Returns a single domain including its DNS records and latest verification state. Responses carry a weak `ETag` header — send it back as `If-None-Match` on the next request and the server will return `304 Not Modified` (no body) when the resource has not changed.", - "operationId": "managementGetDomain", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Domain public ID", - "example": "mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", - "type": "string" - } - }, - { - "in": "header", - "name": "If-None-Match", - "required": false, - "schema": { - "description": "Weak ETag from a previous response. Returns 304 when unchanged.", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DomainItemResponse" - } - } - }, - "description": "Domain", - "headers": { - "ETag": { - "description": "Weak ETag for conditional GETs.", - "schema": { - "example": "W/\"a1b2c3d4e5f60718\"", - "type": "string" - } - } - } - }, - "304": { - "description": "Not Modified — the client's cached copy (matching `If-None-Match`) is still current.", - "headers": { - "ETag": { - "description": "Current weak ETag (same as request's `If-None-Match`).", - "schema": { - "type": "string" - } - } - } - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain not found" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "domain.read" - ] - } - ], - "summary": "Get a mailbox domain", - "tags": [ - "Domains" - ] - }, - "patch": { - "description": "Upgrades a send-only domain to sending and receiving. Downgrades are rejected. After upgrade, the domain returns to `pending` until the required MX record verifies.", - "operationId": "managementUpdateDomain", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Domain public ID", - "example": "mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", - "type": "string" - } - }, - { - "in": "header", - "name": "If-Match", - "required": false, - "schema": { - "description": "Weak ETag from a prior GET. Reject with 409 conflict when the server's current ETag differs.", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "additionalProperties": false, - "properties": { - "mode": { - "description": "The only supported update is upgrading to `send_receive`.", - "enum": [ - "send_receive" - ], - "example": "send_receive", - "type": "string" - } - }, - "required": [ - "mode" - ], - "type": "object" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DomainItemResponse" - } - } - }, - "description": "Updated domain", - "headers": { - "ETag": { - "description": "Weak ETag for the post-update resource.", - "schema": { - "type": "string" - } - } - } - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Invalid request body" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "`If-Match` mismatch, or the domain cannot be upgraded in its current state." - }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request body too large" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Unsupported update. Only `{ mode: \"send_receive\" }` is accepted." - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "domain.create" - ] - } - ], - "summary": "Update a mailbox domain", - "tags": [ - "Domains" - ] - } - }, - "/domains/{public_id}/filters": { - "get": { - "description": "Returns the current sender-filter mode and rule set applied to every mailbox under this domain. Only sending and receiving domains support domain-wide filters. Per-mailbox rules take precedence at match time.\n\nResponses carry a weak `ETag` — send it as `If-None-Match` to skip the body when the filter set has not changed (returns `304 Not Modified`). The same ETag is the value to use in `If-Match` on the corresponding PUT for optimistic concurrency.", - "operationId": "managementGetDomainFilters", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Domain public ID", - "type": "string" - } - }, - { - "in": "header", - "name": "If-None-Match", - "required": false, - "schema": { - "description": "Weak ETag from a previous response. Returns 304 when unchanged.", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FilterStateResponse" - } - } - }, - "description": "Filter state", - "headers": { - "ETag": { - "description": "Weak ETag for conditional GETs and optimistic-concurrency PUTs.", - "schema": { - "example": "W/\"a1b2c3d4e5f60718\"", - "type": "string" - } - } - } - }, - "304": { - "description": "Not Modified — the client's cached copy (matching `If-None-Match`) is still current.", - "headers": { - "ETag": { - "description": "Current weak ETag.", - "schema": { - "type": "string" - } - } - } - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain is send-only and does not support inbound filters." - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Filter service temporarily unavailable" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "mailbox.admin.manage" - ] - } - ], - "summary": "Get domain-wide sender filters", - "tags": [ - "Domain Filters" - ] - }, - "put": { - "description": "Atomically replaces the sender-filter mode and rule set for an entire sending and receiving domain. Applies to every mailbox under the domain unless that mailbox has its own per-mailbox rules (which take precedence). Maximum 1000 rules per request.\n\nFor optimistic concurrency, send `If-Match: ` using the ETag from a prior GET. A mismatched `If-Match` returns `409 conflict` (the server's ETag is echoed back so you can decide whether to re-fetch). Responses carry the new ETag so chained edits can pipeline without a re-GET.", - "operationId": "managementSetDomainFilters", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Domain public ID", - "type": "string" - } - }, - { - "in": "header", - "name": "If-Match", - "required": false, - "schema": { - "description": "Weak ETag from a prior GET. Reject with 409 conflict when the server's current ETag differs.", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SetFilterStateBody" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FilterStateResponse" - } - } - }, - "description": "Updated filter state", - "headers": { - "ETag": { - "description": "Weak ETag for the post-update resource.", - "schema": { - "type": "string" - } - } - } - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Invalid request body" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "`If-Match` ETag does not match the server's current version, the domain is send-only, or deletion is in progress." - }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request body too large" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Rule cap exceeded or invalid rule pattern" - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Filter service temporarily unavailable" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "mailbox.admin.manage" - ] - } - ], - "summary": "Replace domain-wide sender filters", - "tags": [ - "Domain Filters" - ] - } - }, - "/domains/{public_id}/verify": { - "post": { - "description": "Checks the domain's published DNS records and latest Amazon SES DKIM and MAIL FROM statuses. If every required check passes, the domain is marked verified. A previously failed domain remains failed until a complete check succeeds. Domains automatically re-verify every 6 hours — this endpoint is only needed to trigger a check on demand.", - "operationId": "managementVerifyDomain", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Domain public ID", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DomainVerifyResponse" - } - } - }, - "description": "Verification result" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "The domain changed while verification was running." - }, - "500": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Unexpected server error." - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Verification is temporarily unavailable; retry after the indicated delay.", - "headers": { - "Retry-After": { - "description": "Seconds to wait before retrying.", - "schema": { - "example": 30, - "type": "integer" - } - } - } - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "domain.verify" - ] - } - ], - "summary": "Verify a mailbox domain", - "tags": [ - "Domains" - ] - } - }, - "/domains/{public_id}/zone-file": { - "get": { - "description": "Returns the domain's DNS records formatted as a BIND-style zone file fragment. Suitable for direct paste into a DNS provider that accepts zone-file imports.", - "operationId": "managementGetDomainZoneFile", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Domain public ID", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "text/plain": { - "schema": { - "type": "string" - } - } - }, - "description": "Zone file (text/plain)", - "headers": { - "Content-Disposition": { - "description": "Attachment filename `.zone`.", - "schema": { - "example": "attachment; filename=\"mail.acme.com.zone\"", - "type": "string" - } - } - } - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Domain not found" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "domain.read" - ] - } - ], - "summary": "Download a domain as a zone file", - "tags": [ - "Domains" - ] - } - }, - "/emails/logs": { - "get": { - "description": "Returns paginated delivery logs with cursor-based pagination and filters.", - "operationId": "managementListEmailLogs", - "parameters": [ - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "description": "Max results (default 25)", - "maximum": 100, - "minimum": 1, - "type": "integer" - } - }, - { - "in": "query", - "name": "cursor", - "required": false, - "schema": { - "description": "Cursor from previous page", - "type": "string" - } - }, - { - "in": "query", - "name": "status", - "required": false, - "schema": { - "description": "Filter by delivery status.", - "enum": [ - "pending", - "sent", - "failed", - "rejected" - ], - "type": "string" - } - }, - { - "in": "query", - "name": "from_date", - "required": false, - "schema": { - "description": "ISO 8601 start date. Date-only values start at 00:00 UTC.", - "type": "string" - } - }, - { - "in": "query", - "name": "to_date", - "required": false, - "schema": { - "description": "ISO 8601 end date. Date-only values include the full UTC day.", - "type": "string" - } - }, - { - "in": "query", - "name": "provider_id", - "required": false, - "schema": { - "description": "Filter by provider publicId", - "type": "string" - } - }, - { - "in": "query", - "name": "search", - "required": false, - "schema": { - "description": "Search to_email, from_email, sent_from_email, subject, message_id", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeliveryLogItemCursorListResponse" - } - } - }, - "description": "Delivery log list" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "logs.read" - ] - } - ], - "summary": "List delivery logs", - "tags": [ - "Emails" - ] - } - }, - "/emails/logs/{public_id}": { - "get": { - "description": "Returns a single delivery log by its public ID. Responses carry a weak `ETag` header — send it back as `If-None-Match` on the next request and the server will return `304 Not Modified` (no body) when the log has not changed. Logs in a terminal status (sent/failed/rejected) stop changing, so 304 replay is a real bandwidth win on repeated polls.", - "operationId": "managementGetEmailLog", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Delivery log public ID (dlog_...)", - "type": "string" - } - }, - { - "in": "header", - "name": "If-None-Match", - "required": false, - "schema": { - "description": "Weak ETag from a previous response. Returns 304 when unchanged.", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeliveryLogItemResponse" - } - } - }, - "description": "Delivery log detail", - "headers": { - "ETag": { - "description": "Weak ETag for conditional GETs.", - "schema": { - "example": "W/\"a1b2c3d4e5f60718\"", - "type": "string" - } - } - } - }, - "304": { - "description": "Not Modified — the client's cached copy (matching `If-None-Match`) is still current.", - "headers": { - "ETag": { - "description": "Current weak ETag (same as request's `If-None-Match`).", - "schema": { - "type": "string" - } - } - } - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Not found" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "logs.read" - ] - } - ], - "summary": "Get delivery log", - "tags": [ - "Emails" - ] - } - }, - "/emails/metrics": { - "get": { - "description": "Returns aggregated email delivery counts with flexible time windowing and comparison period.", - "operationId": "managementGetEmailMetrics", - "parameters": [ - { - "in": "query", - "name": "window", - "required": false, - "schema": { - "description": "Preset time window (default: 24h)", - "enum": [ - "24h", - "7d", - "30d" - ], - "type": "string" - } - }, - { - "in": "query", - "name": "from_date", - "required": false, - "schema": { - "description": "ISO 8601 start date (overrides window)", - "type": "string" - } - }, - { - "in": "query", - "name": "to_date", - "required": false, - "schema": { - "description": "ISO 8601 end date", - "type": "string" - } - }, - { - "in": "query", - "name": "granularity", - "required": false, - "schema": { - "description": "Timeseries granularity (default: daily)", - "enum": [ - "hourly", - "daily" - ], - "type": "string" - } - }, - { - "in": "query", - "name": "provider_id", - "required": false, - "schema": { - "description": "Filter by provider publicId", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EmailMetricsResponse" - } - } - }, - "description": "Email metrics with comparison" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "analytics.read" - ] - } - ], - "summary": "Get email metrics", - "tags": [ - "Emails" - ] - } - }, - "/inboxes/logs": { - "get": { - "description": "Returns paginated incoming message logs for billing accountability.", - "operationId": "managementListInboxLogs", - "parameters": [ - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "description": "Max results (default 25)", - "maximum": 100, - "minimum": 1, - "type": "integer" - } - }, - { - "in": "query", - "name": "cursor", - "required": false, - "schema": { - "description": "Cursor from previous page", - "type": "string" - } - }, - { - "in": "query", - "name": "mailbox_id", - "required": false, - "schema": { - "description": "Filter by mailbox public ID", - "type": "string" - } - }, - { - "in": "query", - "name": "event_type", - "required": false, - "schema": { - "enum": [ - "message.received", - "message.received.spam" - ], - "type": "string" - } - }, - { - "in": "query", - "name": "from_date", - "required": false, - "schema": { - "description": "ISO 8601 start date. Date-only values start at 00:00 UTC.", - "type": "string" - } - }, - { - "in": "query", - "name": "to_date", - "required": false, - "schema": { - "description": "ISO 8601 end date. Date-only values include the full UTC day.", - "type": "string" - } - }, - { - "in": "query", - "name": "search", - "required": false, - "schema": { - "description": "Search mailbox, sender, recipient, subject, or message ID", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IncomingLogItemCursorListResponse" - } - } - }, - "description": "Incoming log list" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "logs.read" - ] - } - ], - "summary": "List incoming logs", - "tags": [ - "Inboxes" - ] - } - }, - "/inboxes/logs/{public_id}": { - "get": { - "description": "Returns one incoming message log by public ID.", - "operationId": "managementGetInboxLog", - "parameters": [ - { - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Incoming log public ID (ilog_...)", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IncomingLogItemResponse" - } - } - }, - "description": "Incoming log detail" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Insufficient permissions" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Not found" - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "logs.read" - ] - } - ], - "summary": "Get incoming log", - "tags": [ - "Inboxes" - ] - } - }, - "/mailbox-send-policies/{scope}/{public_id}": { - "get": { - "description": "Sender, Reply-To and recipient restrictions intersect across team, inbox and credential policies. Requires an administrative connection: team.read/team.update for team policies, mailbox.admin.read/mailbox.admin.manage for inbox policies, or key.read/key.* for credential policies. Integration and mailbox keys cannot manage these policies.", - "operationId": "managementGetMailboxSendPolicy", - "parameters": [ - { - "description": "Policy level to read or replace.", - "in": "path", - "name": "scope", - "required": true, - "schema": { - "description": "Policy level to read or replace.", - "enum": [ - "team", - "mailbox", - "api_key", - "oauth_grant", - "agent_registration" - ], - "type": "string" - } - }, - { - "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", - "maxLength": 128, - "minLength": 1, - "type": "string" - } - }, - { - "description": "Return 304 when this ETag still matches.", - "in": "header", - "name": "If-None-Match", - "required": false, - "schema": { - "description": "Return 304 when this ETag still matches.", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MailboxSendPolicyResponse" - } - } - }, - "description": "Current sending policy.", - "headers": { - "ETag": { - "description": "Exact version to use for conditional reads and replacement.", - "schema": { - "type": "string" - } - } - } - }, - "304": { - "description": "The policy is unchanged.", - "headers": { - "ETag": { - "description": "Current policy version.", - "schema": { - "type": "string" - } - } - } - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "429": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "500": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - } - }, - "security": [ - { - "bearerAuth": [] - }, - { - "oauth2": [ - "team.read" - ] - }, - { - "oauth2": [ - "mailbox.admin.read" - ] - }, - { - "oauth2": [ - "key.read" - ] - } - ], - "summary": "Get a sending policy", - "tags": [ - "Mailboxes" - ] - }, - "put": { - "description": "Sender, Reply-To and recipient restrictions intersect across team, inbox and credential policies. Requires an administrative connection: team.read/team.update for team policies, mailbox.admin.read/mailbox.admin.manage for inbox policies, or key.read/key.* for credential policies. Integration and mailbox keys cannot manage these policies.", - "operationId": "managementReplaceMailboxSendPolicy", - "parameters": [ - { - "description": "Policy level to read or replace.", - "in": "path", - "name": "scope", - "required": true, - "schema": { - "description": "Policy level to read or replace.", - "enum": [ - "team", - "mailbox", - "api_key", - "oauth_grant", - "agent_registration" - ], - "type": "string" - } - }, - { - "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", - "in": "path", - "name": "public_id", - "required": true, - "schema": { - "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", - "maxLength": 128, - "minLength": 1, - "type": "string" - } - }, - { - "description": "Required exact ETag from the current policy. Wildcards are not accepted.", - "in": "header", - "name": "If-Match", - "required": true, - "schema": { - "description": "Required exact ETag from the current policy. Wildcards are not accepted.", - "type": "string" - } - }, - { - "description": "Reuse with the same policy and ETag to replay a successful replacement.", - "in": "header", - "name": "Idempotency-Key", - "required": false, - "schema": { - "description": "Reuse with the same policy and ETag to replay a successful replacement.", - "type": "string" - } + "team.members.invite": "Invite team members", + "team.members.remove": "Remove team members", + "team.members.roles": "Change member roles", + "team.read": "View team settings and members", + "team.update": "Update team settings", + "webhook.*": "All webhook operations", + "webhook.create": "Create webhook subscriptions", + "webhook.delete": "Delete webhook subscriptions", + "webhook.manage": "Rotate signing secret + send test events", + "webhook.read": "List/view webhook subscriptions", + "webhook.update": "Update webhook URL, event types, enabled flag" + }, + "tokenUrl": "https://app.qubrics.com/oauth/token" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReplaceMailboxSendPolicy" - } - } - }, - "required": true }, + "type": "oauth2" + } + } + }, + "info": { + "description": "Programmatic access to your Qubrics email infrastructure.", + "title": "Qubrics API", + "version": "1.0.0" + }, + "openapi": "3.1.0", + "paths": { + "/billing/balance": { + "get": { + "description": "Returns the current spendable balance.", + "operationId": "managementListBalance", "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxSendPolicyResponse" - } - } - }, - "description": "Current sending policy.", - "headers": { - "ETag": { - "description": "Exact version to use for conditional reads and replacement.", - "schema": { - "type": "string" - } - } - } - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/BalanceResponse" } } }, - "description": "Request failed." + "description": "Current spendable balance" }, "401": { "content": { @@ -13339,7 +10550,7 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, "403": { "content": { @@ -13349,19 +10560,57 @@ } } }, - "description": "Request failed." + "description": "Insufficient permissions" + } + }, + "security": [ + { + "bearerAuth": [] }, - "404": { + { + "oauth2": [ + "billing.read" + ] + } + ], + "summary": "Get current balance", + "tags": [ + "Billing" + ] + } + }, + "/billing/summary": { + "get": { + "description": "Returns a spend summary over a configurable lookback period.", + "operationId": "managementGetSpendSummary", + "parameters": [ + { + "in": "query", + "name": "days", + "required": false, + "schema": { + "description": "Lookback period in days (default: 30)", + "enum": [ + "7", + "30", + "90" + ], + "type": "string" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/SpendSummaryResponse" } } }, - "description": "Request failed." + "description": "Spend summary" }, - "409": { + "401": { "content": { "application/json": { "schema": { @@ -13369,9 +10618,9 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, - "413": { + "403": { "content": { "application/json": { "schema": { @@ -13379,29 +10628,78 @@ } } }, - "description": "Request failed." + "description": "Insufficient permissions" + } + }, + "security": [ + { + "bearerAuth": [] }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." + { + "oauth2": [ + "billing.read" + ] + } + ], + "summary": "Get spend summary", + "tags": [ + "Billing" + ] + } + }, + "/billing/transactions": { + "get": { + "description": "Returns paginated credit transaction history with optional type filter. Uses cursor-based pagination ordered by created_at descending — pass `cursor=` from the previous response to fetch the next page.", + "operationId": "managementListTransactions", + "parameters": [ + { + "in": "query", + "name": "cursor", + "required": false, + "schema": { + "description": "Pagination cursor — the `next_cursor` from the previous response.", + "type": "string" + } }, - "429": { + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "description": "Max results (default 25, max 100)", + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "enum": [ + "PURCHASE", + "USAGE", + "AUTO_TOPUP", + "REFUND", + "ADJUSTMENT" + ], + "type": "string" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/TransactionCursorListResponse" } } }, - "description": "Request failed." + "description": "Transaction list" }, - "500": { + "401": { "content": { "application/json": { "schema": { @@ -13409,9 +10707,9 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, - "503": { + "403": { "content": { "application/json": { "schema": { @@ -13419,7 +10717,7 @@ } } }, - "description": "Request failed." + "description": "Insufficient permissions" } }, "security": [ @@ -13428,72 +10726,54 @@ }, { "oauth2": [ - "team.update" - ] - }, - { - "oauth2": [ - "mailbox.admin.manage" - ] - }, - { - "oauth2": [ - "key.*" + "billing.read" ] } ], - "summary": "Replace a sending policy", + "summary": "List transactions", "tags": [ - "Mailboxes" + "Billing" ] } }, - "/mailbox/attachment-uploads": { - "post": { - "description": "Creates a short-lived signed PUT URL for one attachment. The caller must be authenticated to mint the URL; the later PUT uses the signed URL, exact Content-Type, and exact Content-Length without sending a bearer token. The PUT returns a blob ID that can be supplied to `POST /mailbox/messages/send`.", - "operationId": "mailboxCreateAttachmentUpload", + "/domains": { + "get": { + "description": "Returns a cursor-paginated list of sending domains configured for the team, ordered by `created_at` descending. Each entry includes the DNS records the customer must place, the current verification status, and the SES DKIM state. Pass `cursor=` from the previous response to fetch the next page.", + "operationId": "managementListDomains", "parameters": [ { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", "in": "query", - "name": "mailbox_id", + "name": "cursor", "required": false, "schema": { + "description": "Pagination cursor — the `next_cursor` from the previous response.", "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MailboxAttachmentUploadIntentBody" - } - } - } - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MailboxAttachmentUploadIntentResultResponse" - } - } - }, - "description": "Attachment upload URL created" }, - "400": { + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "description": "Maximum results (default 50, max 100)", + "maximum": 100, + "minimum": 1, + "type": "integer" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/DomainItemCursorListResponse" } } }, - "description": "Invalid upload request" + "description": "Domain list" }, - "413": { + "401": { "content": { "application/json": { "schema": { @@ -13501,9 +10781,9 @@ } } }, - "description": "Request body or attachment too large" + "description": "Authentication required" }, - "503": { + "403": { "content": { "application/json": { "schema": { @@ -13511,7 +10791,7 @@ } } }, - "description": "Attachment uploads unavailable" + "description": "Insufficient permissions" } }, "security": [ @@ -13520,70 +10800,79 @@ }, { "oauth2": [ - "email.send" - ] - }, - { - "bearerAuth": [] - }, - { - "oauth2": [ - "mailbox.read", - "mailbox.drafts.write" + "domain.read" ] } ], - "summary": "Create a presigned mailbox attachment upload", + "summary": "List mailbox domains", "tags": [ - "Mailbox API" + "Domains" ] - } - }, - "/mailbox/attachments:upload": { + }, "post": { - "description": "Uploads one attachment as binary data and returns a blob ID that can be supplied to `POST /mailbox/messages/send`.", - "operationId": "mailboxUploadAttachment", + "description": "Creates a new domain and returns the DNS records the customer must place before verification can succeed. `send_only` configures outbound sending without changing MX records. `send_receive` also configures the domain for hosted mailboxes. Provisioning touches our email platform and Amazon SES; on any failure the partial state is automatically rolled back.\n\nSupply an `Idempotency-Key` header (any unique string, max 255 chars) to safely retry on network errors. Replays with the same key return the original response; replays with a different body return `409 idempotency_conflict`.", + "operationId": "managementCreateDomain", "parameters": [ { - "in": "query", - "name": "filename", - "required": true, - "schema": { - "description": "Filename to use when sending the uploaded attachment.", - "type": "string" - } - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", + "in": "header", + "name": "Idempotency-Key", "required": false, "schema": { + "description": "Client-chosen unique key to safely retry the request. Cached for 24h per (team, endpoint, key). Different body with same key returns 409 idempotency_conflict.", + "example": "domains-create-20260424-001", + "maxLength": 255, "type": "string" } } ], "requestBody": { "content": { - "application/octet-stream": { + "application/json": { "schema": { - "description": "Raw attachment bytes.", - "format": "binary", - "type": "string" + "additionalProperties": false, + "properties": { + "domain": { + "description": "Fully qualified domain name. Must be lowercased and domain-only (no scheme).", + "example": "mail.acme.com", + "type": "string" + }, + "mode": { + "description": "Domain usage mode. Defaults to `send_receive` when omitted.", + "enum": [ + "send_only", + "send_receive" + ], + "example": "send_only", + "type": "string" + } + }, + "required": [ + "domain" + ], + "type": "object" } } } }, "responses": { - "200": { + "201": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxAttachmentUploadResultResponse" + "$ref": "#/components/schemas/DomainItemResponse" } } }, - "description": "Attachment uploaded" + "description": "Domain created. The response carries a `Location` header pointing at the canonical GET URL for the new domain.", + "headers": { + "Location": { + "description": "Canonical GET URL for the newly created domain.", + "schema": { + "example": "/api/v1/domains/mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", + "type": "string" + } + } + } }, "400": { "content": { @@ -13593,7 +10882,17 @@ } } }, - "description": "Invalid upload request" + "description": "Invalid request body" + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiError" + } + } + }, + "description": "Domain already in use, or `Idempotency-Key` was replayed with a different body." }, "413": { "content": { @@ -13603,7 +10902,7 @@ } } }, - "description": "Attachment too large" + "description": "Request body too large" }, "503": { "content": { @@ -13613,7 +10912,7 @@ } } }, - "description": "Mailbox service unavailable" + "description": "SES tenant not yet provisioned for this team" } }, "security": [ @@ -13622,83 +10921,27 @@ }, { "oauth2": [ - "email.send" - ] - }, - { - "bearerAuth": [] - }, - { - "oauth2": [ - "mailbox.read", - "mailbox.drafts.write" + "domain.create" ] } ], - "summary": "Upload a mailbox attachment", + "summary": "Add a mailbox domain", "tags": [ - "Mailbox API" + "Domains" ] } }, - "/mailbox/calendar-events": { - "get": { - "description": "UID search is eventually consistent. An empty immediate lookup leaves an uncertain create unresolved and never authorises repeating it.", - "operationId": "mailboxListCalendarEvents", + "/domains/{public_id}": { + "delete": { + "description": "Removes a domain from our mail platform, Amazon SES, and Qubrics. Blocked if any active mailbox still uses the domain — delete those mailboxes first.", + "operationId": "managementDeleteDomain", "parameters": [ { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "default": 50, - "description": "Maximum records per page, up to 100.", - "maximum": 100, - "minimum": 1, - "type": "integer" - } - }, - { - "in": "query", - "name": "cursor", - "required": false, - "schema": { - "description": "Cursor from the previous page. Keep the same filters while paging.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - } - }, - { - "in": "query", - "name": "uid", - "required": false, - "schema": { - "description": "Exact immutable event UID. Empty results can reflect a recent create awaiting search visibility; never repeat an uncertain create.", - "maxLength": 255, - "minLength": 1, - "type": "string" - } - }, - { - "in": "query", - "name": "calendar_id", - "required": false, - "schema": { - "description": "Limit events to this calendar in the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - } - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", - "required": false, + "in": "path", + "name": "public_id", + "required": true, "schema": { + "description": "Domain public ID", "type": "string" } } @@ -13708,13 +10951,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarEventListResponse" + "$ref": "#/components/schemas/DomainDeletedResponse" } } }, - "description": "Events." + "description": "Deletion result" }, - "400": { + "404": { "content": { "application/json": { "schema": { @@ -13722,9 +10965,9 @@ } } }, - "description": "Request failed." + "description": "Domain not found" }, - "401": { + "409": { "content": { "application/json": { "schema": { @@ -13732,9 +10975,9 @@ } } }, - "description": "Request failed." + "description": "Domain still has active mailboxes (error code `conflict`)." }, - "403": { + "500": { "content": { "application/json": { "schema": { @@ -13742,9 +10985,9 @@ } } }, - "description": "Request failed." + "description": "Unexpected server error." }, - "404": { + "503": { "content": { "application/json": { "schema": { @@ -13752,59 +10995,89 @@ } } }, - "description": "Request failed." - }, - "409": { - "content": { - "application/json": { + "description": "Deletion is temporarily unavailable; retry after the indicated delay.", + "headers": { + "Retry-After": { + "description": "Seconds to wait before retrying.", "schema": { - "$ref": "#/components/schemas/ApiError" + "example": 30, + "type": "integer" } } - }, - "description": "Request failed." + } + } + }, + "security": [ + { + "bearerAuth": [] }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." + { + "oauth2": [ + "domain.delete" + ] + } + ], + "summary": "Delete a mailbox domain", + "tags": [ + "Domains" + ] + }, + "get": { + "description": "Returns a single domain including its DNS records and latest verification state. Responses carry a weak `ETag` header — send it back as `If-None-Match` on the next request and the server will return `304 Not Modified` (no body) when the resource has not changed.", + "operationId": "managementGetDomain", + "parameters": [ + { + "in": "path", + "name": "public_id", + "required": true, + "schema": { + "description": "Domain public ID", + "example": "mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", + "type": "string" + } }, - "422": { + { + "in": "header", + "name": "If-None-Match", + "required": false, + "schema": { + "description": "Weak ETag from a previous response. Returns 304 when unchanged.", + "type": "string" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/DomainItemResponse" } } }, - "description": "Request failed." - }, - "429": { - "content": { - "application/json": { + "description": "Domain", + "headers": { + "ETag": { + "description": "Weak ETag for conditional GETs.", "schema": { - "$ref": "#/components/schemas/ApiError" + "example": "W/\"a1b2c3d4e5f60718\"", + "type": "string" } } - }, - "description": "Request failed." + } }, - "500": { - "content": { - "application/json": { + "304": { + "description": "Not Modified — the client's cached copy (matching `If-None-Match`) is still current.", + "headers": { + "ETag": { + "description": "Current weak ETag (same as request's `If-None-Match`).", "schema": { - "$ref": "#/components/schemas/ApiError" + "type": "string" } } - }, - "description": "Request failed." + } }, - "503": { + "404": { "content": { "application/json": { "schema": { @@ -13812,7 +11085,7 @@ } } }, - "description": "Request failed." + "description": "Domain not found" } }, "security": [ @@ -13821,36 +11094,35 @@ }, { "oauth2": [ - "calendar.read" + "domain.read" ] } ], - "summary": "List calendar events", + "summary": "Get a mailbox domain", "tags": [ - "Mailbox API" + "Domains" ] }, - "post": { - "description": "Creates one event without participants, recurrence or alerts. Invitations and scheduling messages are disabled. Retain UID before dispatch. If creation is uncertain, use read-only UID lookup; do not repeat the create.", - "operationId": "mailboxCreateCalendarEvent", + "patch": { + "description": "Upgrades a send-only domain to sending and receiving. Downgrades are rejected. After upgrade, the domain returns to `pending` until the required MX record verifies.", + "operationId": "managementUpdateDomain", "parameters": [ { - "in": "header", - "name": "Idempotency-Key", - "required": false, + "in": "path", + "name": "public_id", + "required": true, "schema": { - "description": "Stable key for this exact create in this mailbox. Saved responses replay for 24 hours. Uncertain creates still require read-only reconciliation.", - "maxLength": 255, - "minLength": 1, + "description": "Domain public ID", + "example": "mdom_clxxxxxxxxxxxxxxxxxxxxxxxxx", "type": "string" } }, { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", + "in": "header", + "name": "If-Match", "required": false, "schema": { + "description": "Weak ETag from a prior GET. Reject with 409 conflict when the server's current ETag differs.", "type": "string" } } @@ -13859,24 +11131,38 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateCalendarEventBody" + "additionalProperties": false, + "properties": { + "mode": { + "description": "The only supported update is upgrading to `send_receive`.", + "enum": [ + "send_receive" + ], + "example": "send_receive", + "type": "string" + } + }, + "required": [ + "mode" + ], + "type": "object" } } - }, - "required": true + } }, "responses": { - "201": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarEventCreatedResponse" + "$ref": "#/components/schemas/DomainItemResponse" } } }, - "description": "Event identity acknowledged. Fetch it using the Location header.", + "description": "Updated domain", "headers": { - "Location": { + "ETag": { + "description": "Weak ETag for the post-update resource.", "schema": { "type": "string" } @@ -13891,9 +11177,9 @@ } } }, - "description": "Request failed." + "description": "Invalid request body" }, - "401": { + "404": { "content": { "application/json": { "schema": { @@ -13901,9 +11187,9 @@ } } }, - "description": "Request failed." + "description": "Domain not found" }, - "403": { + "409": { "content": { "application/json": { "schema": { @@ -13911,9 +11197,9 @@ } } }, - "description": "Request failed." + "description": "`If-Match` mismatch, or the domain cannot be upgraded in its current state." }, - "404": { + "413": { "content": { "application/json": { "schema": { @@ -13921,9 +11207,9 @@ } } }, - "description": "Request failed." + "description": "Request body too large" }, - "409": { + "422": { "content": { "application/json": { "schema": { @@ -13931,29 +11217,81 @@ } } }, - "description": "Request failed." + "description": "Unsupported update. Only `{ mode: \"send_receive\" }` is accepted." + } + }, + "security": [ + { + "bearerAuth": [] }, - "413": { + { + "oauth2": [ + "domain.create" + ] + } + ], + "summary": "Update a mailbox domain", + "tags": [ + "Domains" + ] + } + }, + "/domains/{public_id}/filters": { + "get": { + "description": "Returns the current sender-filter mode and rule set applied to every mailbox under this domain. Only sending and receiving domains support domain-wide filters. Per-mailbox rules take precedence at match time.\n\nResponses carry a weak `ETag` — send it as `If-None-Match` to skip the body when the filter set has not changed (returns `304 Not Modified`). The same ETag is the value to use in `If-Match` on the corresponding PUT for optimistic concurrency.", + "operationId": "managementGetDomainFilters", + "parameters": [ + { + "in": "path", + "name": "public_id", + "required": true, + "schema": { + "description": "Domain public ID", + "type": "string" + } + }, + { + "in": "header", + "name": "If-None-Match", + "required": false, + "schema": { + "description": "Weak ETag from a previous response. Returns 304 when unchanged.", + "type": "string" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/FilterStateResponse" } } }, - "description": "Request failed." + "description": "Filter state", + "headers": { + "ETag": { + "description": "Weak ETag for conditional GETs and optimistic-concurrency PUTs.", + "schema": { + "example": "W/\"a1b2c3d4e5f60718\"", + "type": "string" + } + } + } }, - "422": { - "content": { - "application/json": { + "304": { + "description": "Not Modified — the client's cached copy (matching `If-None-Match`) is still current.", + "headers": { + "ETag": { + "description": "Current weak ETag.", "schema": { - "$ref": "#/components/schemas/ApiError" + "type": "string" } } - }, - "description": "Request failed." + } }, - "429": { + "404": { "content": { "application/json": { "schema": { @@ -13961,9 +11299,9 @@ } } }, - "description": "Request failed." + "description": "Domain not found" }, - "500": { + "409": { "content": { "application/json": { "schema": { @@ -13971,7 +11309,7 @@ } } }, - "description": "Request failed." + "description": "Domain is send-only and does not support inbound filters." }, "503": { "content": { @@ -13981,7 +11319,7 @@ } } }, - "description": "Request failed." + "description": "Filter service temporarily unavailable" } }, "security": [ @@ -13990,104 +11328,67 @@ }, { "oauth2": [ - "calendar.write" + "mailbox.admin.manage" ] } ], - "summary": "Create a non-sending event", + "summary": "Get domain-wide sender filters", "tags": [ - "Mailbox API" + "Domain Filters" ] - } - }, - "/mailbox/calendar-events/{event_id}": { - "delete": { - "operationId": "mailboxDeleteCalendarEvent", + }, + "put": { + "description": "Atomically replaces the sender-filter mode and rule set for an entire sending and receiving domain. Applies to every mailbox under the domain unless that mailbox has its own per-mailbox rules (which take precedence). Maximum 1000 rules per request.\n\nFor optimistic concurrency, send `If-Match: ` using the ETag from a prior GET. A mismatched `If-Match` returns `409 conflict` (the server's ETag is echoed back so you can decide whether to re-fetch). Responses carry the new ETag so chained edits can pipeline without a re-GET.", + "operationId": "managementSetDomainFilters", "parameters": [ { "in": "path", - "name": "event_id", + "name": "public_id", "required": true, "schema": { - "description": "Event ID in the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", + "description": "Domain public ID", "type": "string" } }, { "in": "header", "name": "If-Match", - "required": true, - "schema": { - "description": "ETag from the most recent event GET. Wildcards are rejected.", - "minLength": 1, - "type": "string" - } - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", "required": false, "schema": { + "description": "Weak ETag from a prior GET. Reject with 409 conflict when the server's current ETag differs.", "type": "string" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetFilterStateBody" + } + } + } + }, "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarEventDeletedResponse" - } - } - }, - "description": "Event deleted." - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/FilterStateResponse" } } }, - "description": "Request failed." - }, - "404": { - "content": { - "application/json": { + "description": "Updated filter state", + "headers": { + "ETag": { + "description": "Weak ETag for the post-update resource.", "schema": { - "$ref": "#/components/schemas/ApiError" + "type": "string" } } - }, - "description": "Request failed." + } }, - "409": { + "400": { "content": { "application/json": { "schema": { @@ -14095,9 +11396,9 @@ } } }, - "description": "Request failed." + "description": "Invalid request body" }, - "413": { + "404": { "content": { "application/json": { "schema": { @@ -14105,9 +11406,9 @@ } } }, - "description": "Request failed." + "description": "Domain not found" }, - "422": { + "409": { "content": { "application/json": { "schema": { @@ -14115,9 +11416,9 @@ } } }, - "description": "Request failed." + "description": "`If-Match` ETag does not match the server's current version, the domain is send-only, or deletion is in progress." }, - "429": { + "413": { "content": { "application/json": { "schema": { @@ -14125,9 +11426,9 @@ } } }, - "description": "Request failed." + "description": "Request body too large" }, - "500": { + "422": { "content": { "application/json": { "schema": { @@ -14135,7 +11436,7 @@ } } }, - "description": "Request failed." + "description": "Rule cap exceeded or invalid rule pattern" }, "503": { "content": { @@ -14145,7 +11446,7 @@ } } }, - "description": "Request failed." + "description": "Filter service temporarily unavailable" } }, "security": [ @@ -14154,45 +11455,27 @@ }, { "oauth2": [ - "calendar.write" + "mailbox.admin.manage" ] } ], - "summary": "Delete a non-sending event", + "summary": "Replace domain-wide sender filters", "tags": [ - "Mailbox API" + "Domain Filters" ] - }, - "get": { - "operationId": "mailboxGetCalendarEvent", + } + }, + "/domains/{public_id}/verify": { + "post": { + "description": "Checks the domain's published DNS records and latest Amazon SES DKIM and MAIL FROM statuses. If every required check passes, the domain is marked verified. A previously failed domain remains failed until a complete check succeeds. Domains automatically re-verify every 6 hours — this endpoint is only needed to trigger a check on demand.", + "operationId": "managementVerifyDomain", "parameters": [ { "in": "path", - "name": "event_id", + "name": "public_id", "required": true, "schema": { - "description": "Event ID in the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - } - }, - { - "in": "header", - "name": "If-None-Match", - "required": false, - "schema": { - "description": "ETag from a previous resource GET; a matching version returns 304.", - "type": "string" - } - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", - "required": false, - "schema": { + "description": "Domain public ID", "type": "string" } } @@ -14202,32 +11485,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarEventResponse" + "$ref": "#/components/schemas/DomainVerifyResponse" } } }, - "description": "Event.", - "headers": { - "ETag": { - "description": "Current resource version.", - "schema": { - "type": "string" - } - } - } - }, - "304": { - "description": "Unchanged.", - "headers": { - "ETag": { - "description": "Current resource version.", - "schema": { - "type": "string" - } - } - } + "description": "Verification result" }, - "400": { + "404": { "content": { "application/json": { "schema": { @@ -14235,9 +11499,9 @@ } } }, - "description": "Request failed." + "description": "Domain not found" }, - "401": { + "409": { "content": { "application/json": { "schema": { @@ -14245,9 +11509,9 @@ } } }, - "description": "Request failed." + "description": "The domain changed while verification was running." }, - "403": { + "500": { "content": { "application/json": { "schema": { @@ -14255,9 +11519,9 @@ } } }, - "description": "Request failed." + "description": "Unexpected server error." }, - "404": { + "503": { "content": { "application/json": { "schema": { @@ -14265,29 +11529,70 @@ } } }, - "description": "Request failed." - }, - "409": { - "content": { - "application/json": { + "description": "Verification is temporarily unavailable; retry after the indicated delay.", + "headers": { + "Retry-After": { + "description": "Seconds to wait before retrying.", "schema": { - "$ref": "#/components/schemas/ApiError" + "example": 30, + "type": "integer" } } - }, - "description": "Request failed." + } + } + }, + "security": [ + { + "bearerAuth": [] }, - "413": { + { + "oauth2": [ + "domain.verify" + ] + } + ], + "summary": "Verify a mailbox domain", + "tags": [ + "Domains" + ] + } + }, + "/domains/{public_id}/zone-file": { + "get": { + "description": "Returns the domain's DNS records formatted as a BIND-style zone file fragment. Suitable for direct paste into a DNS provider that accepts zone-file imports.", + "operationId": "managementGetDomainZoneFile", + "parameters": [ + { + "in": "path", + "name": "public_id", + "required": true, + "schema": { + "description": "Domain public ID", + "type": "string" + } + } + ], + "responses": { + "200": { "content": { - "application/json": { + "text/plain": { "schema": { - "$ref": "#/components/schemas/ApiError" + "type": "string" } } }, - "description": "Request failed." + "description": "Zone file (text/plain)", + "headers": { + "Content-Disposition": { + "description": "Attachment filename `.zone`.", + "schema": { + "example": "attachment; filename=\"mail.acme.com.zone\"", + "type": "string" + } + } + } }, - "422": { + "404": { "content": { "application/json": { "schema": { @@ -14295,19 +11600,114 @@ } } }, - "description": "Request failed." + "description": "Domain not found" + } + }, + "security": [ + { + "bearerAuth": [] }, - "429": { + { + "oauth2": [ + "domain.read" + ] + } + ], + "summary": "Download a domain as a zone file", + "tags": [ + "Domains" + ] + } + }, + "/emails/logs": { + "get": { + "description": "Returns paginated delivery logs with cursor-based pagination and filters.", + "operationId": "managementListEmailLogs", + "parameters": [ + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "description": "Max results (default 25)", + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "in": "query", + "name": "cursor", + "required": false, + "schema": { + "description": "Cursor from previous page", + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "description": "Filter by delivery status.", + "enum": [ + "pending", + "sent", + "failed", + "rejected" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "from_date", + "required": false, + "schema": { + "description": "ISO 8601 start date. Date-only values start at 00:00 UTC.", + "type": "string" + } + }, + { + "in": "query", + "name": "to_date", + "required": false, + "schema": { + "description": "ISO 8601 end date. Date-only values include the full UTC day.", + "type": "string" + } + }, + { + "in": "query", + "name": "provider_id", + "required": false, + "schema": { + "description": "Filter by provider publicId", + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "description": "Search to_email, from_email, sent_from_email, subject, message_id", + "type": "string" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/DeliveryLogItemCursorListResponse" } } }, - "description": "Request failed." + "description": "Delivery log list" }, - "500": { + "401": { "content": { "application/json": { "schema": { @@ -14315,9 +11715,9 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, - "503": { + "403": { "content": { "application/json": { "schema": { @@ -14325,7 +11725,7 @@ } } }, - "description": "Request failed." + "description": "Insufficient permissions" } }, "security": [ @@ -14334,142 +11734,72 @@ }, { "oauth2": [ - "calendar.read" + "logs.read" ] } ], - "summary": "Get a calendar event", + "summary": "List delivery logs", "tags": [ - "Mailbox API" + "Emails" ] - }, - "patch": { - "operationId": "mailboxUpdateCalendarEvent", + } + }, + "/emails/logs/{public_id}": { + "get": { + "description": "Returns a single delivery log by its public ID. Responses carry a weak `ETag` header — send it back as `If-None-Match` on the next request and the server will return `304 Not Modified` (no body) when the log has not changed. Logs in a terminal status (sent/failed/rejected) stop changing, so 304 replay is a real bandwidth win on repeated polls.", + "operationId": "managementGetEmailLog", "parameters": [ { "in": "path", - "name": "event_id", + "name": "public_id", "required": true, "schema": { - "description": "Event ID in the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", + "description": "Delivery log public ID (dlog_...)", "type": "string" } }, { "in": "header", - "name": "If-Match", - "required": true, - "schema": { - "description": "ETag from the most recent event GET. Wildcards are rejected.", - "minLength": 1, - "type": "string" - } - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", + "name": "If-None-Match", "required": false, "schema": { + "description": "Weak ETag from a previous response. Returns 304 when unchanged.", "type": "string" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PatchCalendarEventBody" - } - } - }, - "required": true - }, "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarEventUpdatedResponse" - } - } - }, - "description": "Update acknowledged. Fetch the event for its current version." - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/DeliveryLogItemResponse" } } }, - "description": "Request failed." - }, - "413": { - "content": { - "application/json": { + "description": "Delivery log detail", + "headers": { + "ETag": { + "description": "Weak ETag for conditional GETs.", "schema": { - "$ref": "#/components/schemas/ApiError" + "example": "W/\"a1b2c3d4e5f60718\"", + "type": "string" } } - }, - "description": "Request failed." + } }, - "422": { - "content": { - "application/json": { + "304": { + "description": "Not Modified — the client's cached copy (matching `If-None-Match`) is still current.", + "headers": { + "ETag": { + "description": "Current weak ETag (same as request's `If-None-Match`).", "schema": { - "$ref": "#/components/schemas/ApiError" + "type": "string" } } - }, - "description": "Request failed." + } }, - "429": { + "401": { "content": { "application/json": { "schema": { @@ -14477,9 +11807,9 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, - "500": { + "403": { "content": { "application/json": { "schema": { @@ -14487,9 +11817,9 @@ } } }, - "description": "Request failed." + "description": "Insufficient permissions" }, - "503": { + "404": { "content": { "application/json": { "schema": { @@ -14497,7 +11827,7 @@ } } }, - "description": "Request failed." + "description": "Not found" } }, "security": [ @@ -14506,147 +11836,88 @@ }, { "oauth2": [ - "calendar.write" + "logs.read" ] } ], - "summary": "Update a non-sending event", + "summary": "Get delivery log", "tags": [ - "Mailbox API" + "Emails" ] } }, - "/mailbox/calendar-events/changes": { + "/emails/metrics": { "get": { - "description": "Coalesced changes for synchronisation, not a lossless mutation history. Missing or expired state requires a full list refresh; establish a new baseline before listing and then consume changes to cover concurrent edits.", - "operationId": "mailboxGetCalendarEventChanges", + "description": "Returns aggregated email delivery counts with flexible time windowing and comparison period.", + "operationId": "managementGetEmailMetrics", "parameters": [ { "in": "query", - "name": "since_state", + "name": "window", "required": false, "schema": { - "description": "Event state from the previous changes response. Omit to establish a full-refresh baseline.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", + "description": "Preset time window (default: 24h)", + "enum": [ + "24h", + "7d", + "30d" + ], "type": "string" } }, { "in": "query", - "name": "limit", + "name": "from_date", "required": false, "schema": { - "default": 100, - "description": "Maximum changed IDs across the response, up to 100.", - "maximum": 100, - "minimum": 1, - "type": "integer" + "description": "ISO 8601 start date (overrides window)", + "type": "string" } }, { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", "in": "query", - "name": "mailbox_id", + "name": "to_date", "required": false, "schema": { + "description": "ISO 8601 end date", "type": "string" } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MailboxCalendarChangesResponse" - } - } - }, - "description": "Changes or an explicit full refresh requirement." - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." + { + "in": "query", + "name": "granularity", + "required": false, + "schema": { + "description": "Timeseries granularity (default: daily)", + "enum": [ + "hourly", + "daily" + ], + "type": "string" + } }, - "429": { + { + "in": "query", + "name": "provider_id", + "required": false, + "schema": { + "description": "Filter by provider publicId", + "type": "string" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/EmailMetricsResponse" } } }, - "description": "Request failed." + "description": "Email metrics with comparison" }, - "500": { + "401": { "content": { "application/json": { "schema": { @@ -14654,9 +11925,9 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, - "503": { + "403": { "content": { "application/json": { "schema": { @@ -14664,7 +11935,7 @@ } } }, - "description": "Request failed." + "description": "Insufficient permissions" } }, "security": [ @@ -14673,27 +11944,27 @@ }, { "oauth2": [ - "calendar.read" + "analytics.read" ] } ], - "summary": "Get calendar event changes", + "summary": "Get email metrics", "tags": [ - "Mailbox API" + "Emails" ] } }, - "/mailbox/calendars": { + "/inboxes/logs": { "get": { - "operationId": "mailboxListCalendars", + "description": "Returns paginated incoming message logs for billing accountability.", + "operationId": "managementListInboxLogs", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { - "default": 50, - "description": "Maximum records per page, up to 100.", + "description": "Max results (default 25)", "maximum": 100, "minimum": 1, "type": "integer" @@ -14704,19 +11975,55 @@ "name": "cursor", "required": false, "schema": { - "description": "Cursor from the previous page. Keep the same filters while paging.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", + "description": "Cursor from previous page", "type": "string" } }, { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", "in": "query", "name": "mailbox_id", "required": false, "schema": { + "description": "Filter by mailbox public ID", + "type": "string" + } + }, + { + "in": "query", + "name": "event_type", + "required": false, + "schema": { + "enum": [ + "message.received", + "message.received.spam" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "from_date", + "required": false, + "schema": { + "description": "ISO 8601 start date. Date-only values start at 00:00 UTC.", + "type": "string" + } + }, + { + "in": "query", + "name": "to_date", + "required": false, + "schema": { + "description": "ISO 8601 end date. Date-only values include the full UTC day.", + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "description": "Search mailbox, sender, recipient, subject, or message ID", "type": "string" } } @@ -14726,21 +12033,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarListResponse" - } - } - }, - "description": "Calendars." - }, - "400": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/IncomingLogItemCursorListResponse" } } }, - "description": "Request failed." + "description": "Incoming log list" }, "401": { "content": { @@ -14750,7 +12047,7 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, "403": { "content": { @@ -14760,49 +12057,52 @@ } } }, - "description": "Request failed." - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." - }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." + "description": "Insufficient permissions" + } + }, + "security": [ + { + "bearerAuth": [] }, - "422": { + { + "oauth2": [ + "logs.read" + ] + } + ], + "summary": "List incoming logs", + "tags": [ + "Inboxes" + ] + } + }, + "/inboxes/logs/{public_id}": { + "get": { + "description": "Returns one incoming message log by public ID.", + "operationId": "managementGetInboxLog", + "parameters": [ + { + "in": "path", + "name": "public_id", + "required": true, + "schema": { + "description": "Incoming log public ID (ilog_...)", + "type": "string" + } + } + ], + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/IncomingLogItemResponse" } } }, - "description": "Request failed." + "description": "Incoming log detail" }, - "429": { + "401": { "content": { "application/json": { "schema": { @@ -14810,9 +12110,9 @@ } } }, - "description": "Request failed." + "description": "Authentication required" }, - "500": { + "403": { "content": { "application/json": { "schema": { @@ -14820,9 +12120,9 @@ } } }, - "description": "Request failed." + "description": "Insufficient permissions" }, - "503": { + "404": { "content": { "application/json": { "schema": { @@ -14830,7 +12130,7 @@ } } }, - "description": "Request failed." + "description": "Not found" } }, "security": [ @@ -14839,61 +12139,85 @@ }, { "oauth2": [ - "calendar.read" + "logs.read" ] } ], - "summary": "List calendars", + "summary": "Get incoming log", "tags": [ - "Mailbox API" + "Inboxes" ] - }, - "post": { - "operationId": "mailboxCreateCalendar", + } + }, + "/mailbox-send-policies/{scope}/{public_id}": { + "get": { + "description": "Sender, Reply-To and recipient restrictions intersect across team, inbox and credential policies. Requires an administrative connection: team.read/team.update for team policies, mailbox.admin.read/mailbox.admin.manage for inbox policies, or key.read/key.* for credential policies. Integration and mailbox keys cannot manage these policies.", + "operationId": "managementGetMailboxSendPolicy", "parameters": [ { - "in": "header", - "name": "Idempotency-Key", - "required": false, + "description": "Policy level to read or replace.", + "in": "path", + "name": "scope", + "required": true, "schema": { - "description": "Stable key for this exact create in this mailbox. Saved responses replay for 24 hours. Uncertain creates still require read-only reconciliation.", - "maxLength": 255, + "description": "Policy level to read or replace.", + "enum": [ + "team", + "mailbox", + "api_key", + "oauth_grant", + "agent_registration" + ], + "type": "string" + } + }, + { + "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", + "in": "path", + "name": "public_id", + "required": true, + "schema": { + "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", + "maxLength": 128, "minLength": 1, "type": "string" } }, { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", + "description": "Return 304 when this ETag still matches.", + "in": "header", + "name": "If-None-Match", "required": false, "schema": { + "description": "Return 304 when this ETag still matches.", "type": "string" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateCalendarBody" - } - } - }, - "required": true - }, "responses": { - "201": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarCreatedResponse" + "$ref": "#/components/schemas/MailboxSendPolicyResponse" } } }, - "description": "Calendar created.", + "description": "Current sending policy.", "headers": { - "Location": { + "ETag": { + "description": "Exact version to use for conditional reads and replacement.", + "schema": { + "type": "string" + } + } + } + }, + "304": { + "description": "The policy is unchanged.", + "headers": { + "ETag": { + "description": "Current policy version.", "schema": { "type": "string" } @@ -15003,67 +12327,111 @@ }, "security": [ { - "bearerAuth": [] + "bearerAuth": [] + }, + { + "oauth2": [ + "team.read" + ] + }, + { + "oauth2": [ + "mailbox.admin.read" + ] }, { "oauth2": [ - "calendar.write" + "key.read" ] } ], - "summary": "Create a private calendar", + "summary": "Get a sending policy", "tags": [ - "Mailbox API" + "Mailboxes" ] - } - }, - "/mailbox/calendars/{calendar_id}": { - "delete": { - "description": "Fetch the calendar and supply its ETag in If-Match. A calendar containing events returns 409 conflict.", - "operationId": "mailboxDeleteCalendar", + }, + "put": { + "description": "Sender, Reply-To and recipient restrictions intersect across team, inbox and credential policies. Requires an administrative connection: team.read/team.update for team policies, mailbox.admin.read/mailbox.admin.manage for inbox policies, or key.read/key.* for credential policies. Integration and mailbox keys cannot manage these policies.", + "operationId": "managementReplaceMailboxSendPolicy", "parameters": [ { + "description": "Policy level to read or replace.", + "in": "path", + "name": "scope", + "required": true, + "schema": { + "description": "Policy level to read or replace.", + "enum": [ + "team", + "mailbox", + "api_key", + "oauth_grant", + "agent_registration" + ], + "type": "string" + } + }, + { + "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", "in": "path", - "name": "calendar_id", + "name": "public_id", "required": true, "schema": { - "description": "Calendar ID in the selected mailbox.", - "maxLength": 4096, + "description": "Public ID of the team, inbox, API key, connected-app grant or agent registration.", + "maxLength": 128, "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, { + "description": "Required exact ETag from the current policy. Wildcards are not accepted.", "in": "header", "name": "If-Match", "required": true, "schema": { - "description": "ETag from the most recent calendar GET. Wildcards are rejected.", - "minLength": 1, + "description": "Required exact ETag from the current policy. Wildcards are not accepted.", "type": "string" } }, { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "in": "query", - "name": "mailbox_id", + "description": "Reuse with the same policy and ETag to replay a successful replacement.", + "in": "header", + "name": "Idempotency-Key", "required": false, "schema": { + "description": "Reuse with the same policy and ETag to replay a successful replacement.", "type": "string" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReplaceMailboxSendPolicy" + } + } + }, + "required": true + }, "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarDeletedResponse" + "$ref": "#/components/schemas/MailboxSendPolicyResponse" } } }, - "description": "Calendar deleted." + "description": "Current sending policy.", + "headers": { + "ETag": { + "description": "Exact version to use for conditional reads and replacement.", + "schema": { + "type": "string" + } + } + } }, "400": { "content": { @@ -15172,39 +12540,31 @@ }, { "oauth2": [ - "calendar.write" + "team.update" + ] + }, + { + "oauth2": [ + "mailbox.admin.manage" + ] + }, + { + "oauth2": [ + "key.*" ] } ], - "summary": "Delete an empty calendar", + "summary": "Replace a sending policy", "tags": [ - "Mailbox API" + "Mailboxes" ] - }, - "get": { - "operationId": "mailboxGetCalendar", + } + }, + "/mailbox/attachment-uploads": { + "post": { + "description": "Creates a short-lived signed PUT URL for one attachment. The caller must be authenticated to mint the URL; the later PUT uses the signed URL, exact Content-Type, and exact Content-Length without sending a bearer token. The PUT returns a blob ID that can be supplied to `POST /mailbox/messages/send`.", + "operationId": "mailboxCreateAttachmentUpload", "parameters": [ - { - "in": "path", - "name": "calendar_id", - "required": true, - "schema": { - "description": "Calendar ID in the selected mailbox.", - "maxLength": 4096, - "minLength": 1, - "pattern": "^[A-Za-z0-9_-]+$", - "type": "string" - } - }, - { - "in": "header", - "name": "If-None-Match", - "required": false, - "schema": { - "description": "ETag from a previous resource GET; a matching version returns 304.", - "type": "string" - } - }, { "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", "in": "query", @@ -15215,35 +12575,25 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MailboxAttachmentUploadIntentBody" + } + } + } + }, "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MailboxCalendarResponse" + "$ref": "#/components/schemas/MailboxAttachmentUploadIntentResultResponse" } } }, - "description": "Calendar.", - "headers": { - "ETag": { - "description": "Current resource version.", - "schema": { - "type": "string" - } - } - } - }, - "304": { - "description": "Unchanged.", - "headers": { - "ETag": { - "description": "Current resource version.", - "schema": { - "type": "string" - } - } - } + "description": "Attachment upload URL created" }, "400": { "content": { @@ -15253,9 +12603,9 @@ } } }, - "description": "Request failed." + "description": "Invalid upload request" }, - "401": { + "413": { "content": { "application/json": { "schema": { @@ -15263,9 +12613,9 @@ } } }, - "description": "Request failed." + "description": "Request body or attachment too large" }, - "403": { + "503": { "content": { "application/json": { "schema": { @@ -15273,49 +12623,81 @@ } } }, - "description": "Request failed." + "description": "Attachment uploads unavailable" + } + }, + "security": [ + { + "bearerAuth": [] }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." + { + "oauth2": [ + "email.send" + ] }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." + { + "bearerAuth": [] }, - "413": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ApiError" - } - } - }, - "description": "Request failed." + { + "oauth2": [ + "mailbox.read", + "mailbox.drafts.write" + ] + } + ], + "summary": "Create a presigned mailbox attachment upload", + "tags": [ + "Mailbox API" + ] + } + }, + "/mailbox/attachments:upload": { + "post": { + "description": "Uploads one attachment as binary data and returns a blob ID that can be supplied to `POST /mailbox/messages/send`.", + "operationId": "mailboxUploadAttachment", + "parameters": [ + { + "in": "query", + "name": "filename", + "required": true, + "schema": { + "description": "Filename to use when sending the uploaded attachment.", + "type": "string" + } }, - "422": { + { + "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", + "in": "query", + "name": "mailbox_id", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/octet-stream": { + "schema": { + "description": "Raw attachment bytes.", + "format": "binary", + "type": "string" + } + } + } + }, + "responses": { + "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiError" + "$ref": "#/components/schemas/MailboxAttachmentUploadResultResponse" } } }, - "description": "Request failed." + "description": "Attachment uploaded" }, - "429": { + "400": { "content": { "application/json": { "schema": { @@ -15323,9 +12705,9 @@ } } }, - "description": "Request failed." + "description": "Invalid upload request" }, - "500": { + "413": { "content": { "application/json": { "schema": { @@ -15333,7 +12715,7 @@ } } }, - "description": "Request failed." + "description": "Attachment too large" }, "503": { "content": { @@ -15343,7 +12725,7 @@ } } }, - "description": "Request failed." + "description": "Mailbox service unavailable" } }, "security": [ @@ -15352,11 +12734,20 @@ }, { "oauth2": [ - "calendar.read" + "email.send" + ] + }, + { + "bearerAuth": [] + }, + { + "oauth2": [ + "mailbox.read", + "mailbox.drafts.write" ] } ], - "summary": "Get a calendar", + "summary": "Upload a mailbox attachment", "tags": [ "Mailbox API" ] @@ -24999,7 +22390,6 @@ "message.delivery_delayed", "message.received", "message.received.spam", - "calendar.changed", "sendmux.test" ], "example": "message.bounced", diff --git a/postman/sendmux-mailbox.postman_collection.json b/postman/sendmux-mailbox.postman_collection.json index 5b85991..a18e9f1 100644 --- a/postman/sendmux-mailbox.postman_collection.json +++ b/postman/sendmux-mailbox.postman_collection.json @@ -247,2169 +247,6 @@ } ] }, - { - "event": [], - "name": "List calendar events", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "description": { - "content": "UID search is eventually consistent. An empty immediate lookup leaves an uncertain create unresolved and never authorises repeating it.", - "type": "text/plain" - }, - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "GET", - "name": "List calendar events", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendar-events" - ], - "query": [ - { - "disabled": true, - "key": "limit", - "value": "50" - }, - { - "disabled": true, - "key": "cursor", - "value": "" - }, - { - "disabled": true, - "key": "uid", - "value": "" - }, - { - "disabled": true, - "key": "calendar_id", - "value": "" - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Events.", - "status": "OK" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Create a non-sending event", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "body": { - "mode": "raw", - "options": { - "raw": { - "language": "json" - } - }, - "raw": "{\n \"calendar_id\": \"\",\n \"description\": \"\",\n \"duration\": \"\",\n \"start\": \"\",\n \"time_zone\": \"\",\n \"title\": \"\",\n \"uid\": \"\"\n}" - }, - "description": { - "content": "Creates one event without participants, recurrence or alerts. Invitations and scheduling messages are disabled. Retain UID before dispatch. If creation is uncertain, use read-only UID lookup; do not repeat the create.", - "type": "text/plain" - }, - "header": [ - { - "description": "", - "disabled": true, - "key": "Idempotency-Key", - "value": "" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "POST", - "name": "Create a non-sending event", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendar-events" - ], - "query": [ - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 201, - "cookie": [], - "header": [ - { - "description": "", - "disabled": true, - "key": "Location", - "value": "string" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Event identity acknowledged. Fetch it using the Location header.", - "status": "Created" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Delete a non-sending event", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "description": {}, - "header": [ - { - "description": "(Required) ", - "disabled": false, - "key": "If-Match", - "value": "" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "DELETE", - "name": "Delete a non-sending event", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendar-events", - ":event_id" - ], - "query": [ - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [ - { - "description": "(Required) ", - "disabled": false, - "key": "event_id", - "type": "any", - "value": "" - } - ] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Event deleted.", - "status": "OK" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Get a calendar event", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "description": {}, - "header": [ - { - "description": "", - "disabled": true, - "key": "If-None-Match", - "value": "" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "GET", - "name": "Get a calendar event", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendar-events", - ":event_id" - ], - "query": [ - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [ - { - "description": "(Required) ", - "disabled": false, - "key": "event_id", - "type": "any", - "value": "" - } - ] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "description": "Current resource version.", - "disabled": true, - "key": "ETag", - "value": "string" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Event.", - "status": "OK" - }, - { - "_postman_previewlanguage": "text", - "body": "", - "code": 304, - "cookie": [], - "header": [ - { - "description": "Current resource version.", - "disabled": true, - "key": "ETag", - "value": "string" - }, - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "name": "Unchanged.", - "status": "Not Modified" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Update a non-sending event", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "body": { - "mode": "raw", - "options": { - "raw": { - "language": "json" - } - }, - "raw": "{\n \"description\": \"\",\n \"duration\": \"\",\n \"start\": \"\",\n \"time_zone\": \"\",\n \"title\": \"\"\n}" - }, - "description": {}, - "header": [ - { - "description": "(Required) ", - "disabled": false, - "key": "If-Match", - "value": "" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "PATCH", - "name": "Update a non-sending event", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendar-events", - ":event_id" - ], - "query": [ - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [ - { - "description": "(Required) ", - "disabled": false, - "key": "event_id", - "type": "any", - "value": "" - } - ] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Update acknowledged. Fetch the event for its current version.", - "status": "OK" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Get calendar event changes", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "description": { - "content": "Coalesced changes for synchronisation, not a lossless mutation history. Missing or expired state requires a full list refresh; establish a new baseline before listing and then consume changes to cover concurrent edits.", - "type": "text/plain" - }, - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "GET", - "name": "Get calendar event changes", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendar-events", - "changes" - ], - "query": [ - { - "disabled": true, - "key": "since_state", - "value": "" - }, - { - "disabled": true, - "key": "limit", - "value": "100" - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Changes or an explicit full refresh requirement.", - "status": "OK" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "List calendars", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "description": {}, - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "GET", - "name": "List calendars", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendars" - ], - "query": [ - { - "disabled": true, - "key": "limit", - "value": "50" - }, - { - "disabled": true, - "key": "cursor", - "value": "" - }, - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Calendars.", - "status": "OK" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Create a private calendar", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "body": { - "mode": "raw", - "options": { - "raw": { - "language": "json" - } - }, - "raw": "{\n \"name\": \"\",\n \"time_zone\": \"\"\n}" - }, - "description": {}, - "header": [ - { - "description": "", - "disabled": true, - "key": "Idempotency-Key", - "value": "" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "POST", - "name": "Create a private calendar", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendars" - ], - "query": [ - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 201, - "cookie": [], - "header": [ - { - "description": "", - "disabled": true, - "key": "Location", - "value": "string" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Calendar created.", - "status": "Created" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Delete an empty calendar", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "description": { - "content": "Fetch the calendar and supply its ETag in If-Match. A calendar containing events returns 409 conflict.", - "type": "text/plain" - }, - "header": [ - { - "description": "(Required) ", - "disabled": false, - "key": "If-Match", - "value": "" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "DELETE", - "name": "Delete an empty calendar", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendars", - ":calendar_id" - ], - "query": [ - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [ - { - "description": "(Required) ", - "disabled": false, - "key": "calendar_id", - "type": "any", - "value": "" - } - ] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Calendar deleted.", - "status": "OK" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, - { - "event": [], - "name": "Get a calendar", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "description": {}, - "header": [ - { - "description": "", - "disabled": true, - "key": "If-None-Match", - "value": "" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "method": "GET", - "name": "Get a calendar", - "url": { - "host": [ - "{{mailbox_base_url}}" - ], - "path": [ - "mailbox", - "calendars", - ":calendar_id" - ], - "query": [ - { - "description": "Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.", - "disabled": true, - "key": "mailbox_id", - "value": "" - } - ], - "variable": [ - { - "description": "(Required) ", - "disabled": false, - "key": "calendar_id", - "type": "any", - "value": "" - } - ] - } - }, - "response": [ - { - "_postman_previewlanguage": "json", - "body": "", - "code": 200, - "cookie": [], - "header": [ - { - "description": "Current resource version.", - "disabled": true, - "key": "ETag", - "value": "string" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Calendar.", - "status": "OK" - }, - { - "_postman_previewlanguage": "text", - "body": "", - "code": 304, - "cookie": [], - "header": [ - { - "description": "Current resource version.", - "disabled": true, - "key": "ETag", - "value": "string" - }, - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "name": "Unchanged.", - "status": "Not Modified" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 400, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Bad Request" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 401, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unauthorized" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 403, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Forbidden" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 404, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Not Found" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 409, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Conflict" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 413, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Request Entity Too Large" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 422, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Unprocessable Entity (WebDAV) (RFC 4918)" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 429, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Too Many Requests" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 500, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Internal Server Error" - }, - { - "_postman_previewlanguage": "json", - "body": "", - "code": 503, - "cookie": [], - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "name": "Request failed.", - "status": "Service Unavailable" - } - ] - }, { "event": [], "name": "Get mailbox changes",