Skip to main content
Create identity = auth() and teams = orgs() for these examples. hosted().orgs is available; there is no hosted().auth property. Python examples run inside an async function.

status

Identify the account and API key making the request.
Returns: AuthStatus. No arguments.
Returns key metadata only, never its secret value. auth() has no key-creation, listing, or revocation methods; see the identity guide.

list

List organizations you belong to, with your personal organization first.
Returns: Organization[] / List[Organization]. No arguments; this is not a paginated result.

get

Read an organization’s membership, limits, and current usage.
Returns: OrganizationDetail.
org is a required organization slug or id. Quotas are read-only through the SDK. A limit of zero pauses the corresponding enforced workload; see the quota notes below.

create

Create a shared organization and become its owner.
Returns: Organization.
A taken slug returns org_slug_taken.

invite

Create an invitation for an organization you own.
Returns: OrgInviteCreated: invitation metadata plus its one-time token.
org is a required slug or id. SDK calls use the server defaults: a 7-day expiry and unlimited uses. Neither SDK exposes invitation limits in this method. Personal organizations cannot issue invitations.

join

Redeem an invitation token to join as a member.
Returns: OrgJoined: org: Organization and already_member: boolean.
token is required. If you already belong to the organization, already_member is true and no invitation use is consumed.

members

List an organization’s members, owners first.
Returns: OrgMember[] / List[OrgMember].
org is a required slug or id. Any organization member can read the list; this method is not paginated.

Response fields

Both languages use the field names below. Python returns dataclasses, with None for null. Optional TypeScript role is an optional Python value.
Fields
key.created_at can be null / None when the credential service has no creation timestamp, despite the current SDK’s string annotation. last_used_at is currently always null; the credential service does not record it.
Fields
All quota values are effective limits after applying platform defaults. monthly_budget_usd: null means no monthly budget. month_spend_usd: null means no current meter copy is available; month_spend_as_of records when the copied meter was read.max_concurrent_analyses covers both trace analyses and task checks. Provider sandbox limits cover work sharing that provider. max_concurrent_sessions is reported but not yet enforced when creating managed sessions. active_sessions is zero for shared organizations because sessions carry no organization.
Fields
expires_at: null means no expiry; max_uses: null means unlimited uses. Tokens appear only when an invitation is created.
Fields
SDK sharing methods belong to jobs and checks. Team rename/delete, role changes, and invitation revocation have no SDK methods; see team HTTP operations.