Python SDK: Account
The methods of the Python client under Account. The account, its plan and usage, and account-wide counts.
client.me
client.me() -> models.MeSends me: GET /v1/me
Who am I.
Access any: any API key, or a console session. An app token needs account:read.
client.metrics
client.metrics(*, from_: str | None = None, to: str | None = None, interval: Literal['hour', 'day'] | None = None, inbox_id: str | None = None) -> models.MetricsSends metrics: GET /v1/metrics
Metrics.
Access any: any API key, or a console session. An app token needs account:read.
client.overview
client.overview() -> models.OverviewSends overview: GET /v1/overview
Overview.
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs account:read.
client.billing.checkout
client.billing.checkout() -> models.BillingRedirectSends billing.checkout: POST /v1/billing/checkout
Start a checkout.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of billing, which a deployment switches on: where it takes no payments, the call answers 404 not_found.
client.billing.portal
client.billing.portal() -> models.BillingRedirectSends billing.portal: POST /v1/billing/portal
Open the billing portal.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of billing, which a deployment switches on: where it takes no payments, the call answers 404 not_found.
client.billing.seats
client.billing.seats(body: models.SetSeats) -> models.BillingSyncedSends billing.seats: POST /v1/billing/seats
Change the organization's seats.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of billing, which a deployment switches on: where it takes no payments, the call answers 404 not_found.
client.billing.sync
client.billing.sync() -> models.BillingSyncedSends billing.sync: POST /v1/billing/sync
Read billing again.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused. Part of billing, which a deployment switches on: where it takes no payments, the call answers 404 not_found.
client.invitations.create
client.invitations.create(body: models.CreateInvitation) -> models.InvitationSends invitations.create: POST /v1/invitations
Invite someone to the organization.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.invitations.list
client.invitations.list() -> models.InvitationListSends invitations.list: GET /v1/invitations
List the organization's invitations.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.invitations.revoke
client.invitations.revoke(invitation_id: str) -> NoneSends invitations.revoke: DELETE /v1/invitations/{invitationId}
Take an invitation back.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.invitations.update
client.invitations.update(invitation_id: str, body: models.UpdateInvitation) -> models.InvitationSends invitations.update: PATCH /v1/invitations/{invitationId}
Record that an invitation was sent.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.members.list
client.members.list() -> models.MemberListSends members.list: GET /v1/members
List the organization's members.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.members.update
client.members.update(user_id: str, body: models.UpdateMember) -> models.MemberSends members.update: PATCH /v1/members/{userId}
Change a member's role.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.organization.adopt
client.organization.adopt(body: models.AdoptAccount) -> models.AccountSends organization.adopt: POST /v1/organization/adopt
Move a personal account into the organization.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.push.get
client.push.get() -> models.PushSettingsSends push.get: GET /v1/push
Read notification settings.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.push.subscriptions.create
client.push.subscriptions.create(body: models.CreatePushSubscription) -> models.PushSubscriptionSends push.subscriptions.create: POST /v1/push/subscriptions
Switch notifications on for a browser.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
client.push.subscriptions.delete
client.push.subscriptions.delete(subscription_id: str) -> NoneSends push.subscriptions.delete: DELETE /v1/push/subscriptions/{subscriptionId}
Switch notifications off for a browser.
Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

