Account creation
UsePOST /api/v1/auth/register to create a new credentials-based account.
To use that account in Workspace, complete one of these operations:
- Create a workspace member with the account ID in Workspace members - Create a workspace member.
- Join directly to an organization through
POST /api/v1/account/organization/{orgId}/join.
Endpoint parameters
Endpoint parameters
Example response
Example response
Log in with credentials
Example response
Example response
Log out
Example response
Example response
Manage API tokens
Use these endpoints to manage API tokens for the authenticated account. Token secrets are returned only when a token is created; after that, list responses include metadata and the token hash.List tokens
Endpoint parameters
Endpoint parameters
Example response
Example response
Create a token
Endpoint parameters
Endpoint parameters
Read.All can be created without gateway_id, but its ZylonGPT read grants are usable only when the token carries that gateway context. In contrast, account-token creation returns 400 when either dedicated PrivateGPT.* scope is requested without gateway_id.
Example response
Example response
Delete a token
Delete uses the stored token hash, not the clear token secret.Example response
Example response
Errors and edge cases
- 401/403: missing or invalid API token.
- 400:
scopesis explicitly empty, a PrivateGPT scope has nogateway_id, or a gateway token request contains a non-PrivateGPT scope. - 429: too many login attempts.
- 400: register payload missing required account roles, email, or password.