List teams
Returns the teams your credential can act for, newest-first.
/v1/teamsAuthorizationBearer token · headerrequiredBetter Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.
limitintegerrequiredcursorstringResponse for status 200
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
dataobject[]requiredShow propertiesHide properties
objectidstringrequiredThe team id (the Better Auth team id in the main tenant).
tenantIdstringrequiredThe owning tenant id; ten_main for self-serve teams.
namestringrequiredThe team display name.
slugstringrequiredURL-safe team slug, unique per tenant.
rolestringrequiredRequesting member's role; member for non-session credentials.
owneradminmemberplanstringrequiredResolved plan code from the active subscription.
freegoplusgoldenterpriseinternalpartnerobject | nullrequiredPartner access for this team, or null when the team is not a partner.
Show propertiesHide properties
enabledAtstring<date-time>requiredThe instant this team became a partner.
nulldefaultDataLocationstringrequiredDefault placement region for new spaces; "auto" lets placement decide.
createdAtstring<date-time>requiredupdatedAtstring<date-time>requiredpaginationobjectrequiredShow propertiesHide properties
nextCursorstring | nullrequiredOpaque cursor for the next page; null when there are no more results.
hasMorebooleanrequiredWhether another page exists after this one.
Problem details (RFC 9457). Any 4xx/5xx response is one application/problem+json document.
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
typestringrequiredProblem type URI resolving to the error docs page. The server derives it mechanically from code against the docs origin.
titlestringrequiredShort human-readable summary of the problem type. The server derives it mechanically from code.
statusintegerrequiredHTTP status code of this response, repeated in the body.
detailstringrequiredHuman-readable failure explanation for this occurrence.
codestringrequiredStable snake_case error code naming the failed public contract.
pointerstringRFC 6901 JSON Pointer into the failing request field, for example "/files/37/path", on validation failures.
detailsobjectMachine-readable context for the error code.
suggestionsstring[]Actionable recovery steps safe to show in dashboards, SDKs, and CLI output.
nextstring[]Copy-pasteable commands or API requests an agent can run next.
requestIdstringrequiredThe request id to quote when contacting support.