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.AuthStatus. No arguments.
Parameters and behavior
Parameters and behavior
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.Organization[] / List[Organization]. No arguments; this is not a paginated result.
get
Read an organization’s membership, limits, and current usage.OrganizationDetail.
Parameters and behavior
Parameters and behavior
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.Organization.
Parameters and behavior
Parameters and behavior
A taken slug returns
org_slug_taken.invite
Create an invitation for an organization you own.OrgInviteCreated: invitation metadata plus its one-time token.
Parameters and behavior
Parameters and behavior
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.OrgJoined: org: Organization and already_member: boolean.
Parameters and behavior
Parameters and behavior
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.OrgMember[] / List[OrgMember].
Parameters and behavior
Parameters and behavior
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, withNone for null. Optional TypeScript role is an optional Python value.
Identity and key metadata
Identity and key metadata
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.Organization and members
Organization and members
Fields
Quotas and usage
Quotas and usage
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
Invitation and join result
Invitation and join result
expires_at: null means no expiry; max_uses: null means unlimited uses. Tokens appear only when an invitation is created.Fields

