Python SDK: Inboxes
The methods of the Python client under Inboxes. Addresses on the inbox domain: issue, read, rename and delete them.
client.inboxes.create
client.inboxes.create(body: models.CreateInbox) -> models.CreatedInboxSends inboxes.create: POST /v1/inboxes
Issue an inbox.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs inboxes:write.
client.inboxes.delete
client.inboxes.delete(inbox_id: str) -> NoneSends inboxes.delete: DELETE /v1/inboxes/{inboxId}
Delete an inbox.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs inboxes:write.
client.inboxes.get
client.inboxes.get(inbox_id: str) -> models.InboxSends inboxes.get: GET /v1/inboxes/{inboxId}
Read an inbox.
Access any: any API key, or a console session. An app token needs inboxes:read.
client.inboxes.list
client.inboxes.list(*, q: str | None = None, external_id: str | None = None, limit: int | None = None, offset: int | None = None) -> models.InboxPageSends inboxes.list: GET /v1/inboxes
List inboxes.
Access any: any API key, or a console session. An app token needs inboxes:read.
client.inboxes.iterate
client.inboxes.iterate(*, q: str | None = None, external_id: str | None = None, limit: int | None = None, offset: int | None = None) -> Iterator[models.InboxListItem]Every item of client.inboxes.list, one page at a time: the next page is asked for when the loop reaches it. A page that does not advance raises ApiError.
client.inboxes.update
client.inboxes.update(inbox_id: str, body: models.UpdateInbox) -> models.InboxSends inboxes.update: PATCH /v1/inboxes/{inboxId}
Update an inbox.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs inboxes:write.
client.inboxes.rules.create
client.inboxes.rules.create(inbox_id: str, body: models.CreateRule) -> models.RuleSends inboxes.rules.create: POST /v1/inboxes/{inboxId}/rules
Create an inbound rule.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
client.inboxes.rules.delete
client.inboxes.rules.delete(inbox_id: str, rule_id: str) -> NoneSends inboxes.rules.delete: DELETE /v1/inboxes/{inboxId}/rules/{ruleId}
Delete an inbound rule.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
client.inboxes.rules.get
client.inboxes.rules.get(inbox_id: str, rule_id: str) -> models.RuleSends inboxes.rules.get: GET /v1/inboxes/{inboxId}/rules/{ruleId}
Read an inbound rule.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
client.inboxes.rules.list
client.inboxes.rules.list(inbox_id: str) -> models.RuleListSends inboxes.rules.list: GET /v1/inboxes/{inboxId}/rules
List inbound rules.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
client.inboxes.rules.runs
client.inboxes.rules.runs(inbox_id: str, rule_id: str, *, limit: int | None = None, offset: int | None = None) -> models.RuleRunPageSends inboxes.rules.runs: GET /v1/inboxes/{inboxId}/rules/{ruleId}/runs
List rule executions.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
client.inboxes.rules.iterate_runs
client.inboxes.rules.iterate_runs(inbox_id: str, rule_id: str, *, limit: int | None = None, offset: int | None = None) -> Iterator[models.RuleRun]Every item of client.inboxes.rules.runs, one page at a time: the next page is asked for when the loop reaches it. A page that does not advance raises ApiError.
client.inboxes.rules.update
client.inboxes.rules.update(inbox_id: str, rule_id: str, body: models.UpdateRule) -> models.RuleSends inboxes.rules.update: PATCH /v1/inboxes/{inboxId}/rules/{ruleId}
Update an inbound rule.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.

