The tokens area has 3 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).
tokensCreate
Mint an agent token; the secret is shown once
- Request:
POSTon/v1/tenants/{tenantId}/tokens
tokensCreate(args: { tenantId: string; body: CreateAgentTokenRequest }, options?: CallOptions): Promise<AgentTokenCreated>tokensList
List agent tokens
- Request:
GETon/v1/tenants/{tenantId}/tokens
tokensList(args: { tenantId: string }, options?: CallOptions): Promise<Record<string, unknown>>tokensRevoke
Revoke an agent token
- Request:
DELETEon/v1/tenants/{tenantId}/tokens/{tokenId}
tokensRevoke(args: { tenantId: string; tokenId: string }, options?: CallOptions): Promise<Record<string, unknown>>