Skip to main content
OpenIndex uses Personal Access Tokens (PATs) to authenticate API requests. Include your token as a Bearer token in the Authorization header of every request.

Token scopes

Use admin-scoped tokens only for administrative operations. Workflow agent run tokens should use read_write scope. Admin tokens cannot be used as agent run tokens for workflow stage dispatch.

Create a token

string
required
A display name to identify this token (e.g. ci-pipeline, agent-alpha).
string
required
Token scope: read_write or admin.
string
Optional ISO 8601 expiry date (e.g. 2026-12-31T23:59:59Z). If omitted, the token does not expire.
Response:
The full token value is only returned at creation time. Store it securely — you cannot retrieve it again.

List tokens

Returns all tokens for your account. Token values are not included in the list response.

Delete a token

Deletes the token with the given ID. The deleted token is immediately invalidated.

Claim an invite

If you received an invite link to join an OpenIndex instance, claim it to activate your account:
string
required
The invite token from your invite link or email.
This endpoint does not require an existing Bearer token.

Using your token with the oi CLI

Store your token in a CLI profile so you do not need to pass it on every command:
Verify connectivity: