TeamGriddeveloper
TeamGrid Developer

authorization SDK client

3 typed @teamgrid/api-client methods for Authentication.

Client propertyclient.authorization
Mapped operations3
API groupsAuthentication

Operation methods

Parameter declarations below are taken from the pinned TypeScript source. Request fields and responses are summarized from the matching OpenAPI operation; follow the API link for every field, constraint, example, and error description.

POST/auth/cli/storage-compensation
Full API operation →

authorization.compensateCliStorage

Revokes the exact personal credential issued by a recently consumed TeamGrid CLI browser-authorization grant when the operating-system credential store rejects that credential. The just-issued credential authenticates this request; the grant ID is not an independent authority and cannot select any other credential. The recovery window is short and the operation is intended only for automatic CLI cleanup.

client.authorization.compensateCliStorage(grantId: string, options: RequestOptions = {})
Return form
Promise
Operation ID
compensateCliAuthorizationStorage
Required scopes
None
SDK parameters
grantId: stringoptions: RequestOptions
Request body
objectapplication/json
Success
204
Declared API errors
400401403429502503
GET/auth/context
Full API operation →

authorization.getContext

Returns only the safe metadata of the credential authenticating this request. This operation deliberately requires no additional scope so even a least-privilege credential can diagnose its own routing and expiry.

client.authorization.getContext(options: RequestOptions = {})
Return form
Promise
Operation ID
getCurrentCredentialContext
Required scopes
None
SDK parameters
options: RequestOptions
Success
200 CredentialContext envelope
Declared API errors
400401403429502503
DELETE/auth/context
Full API operation →

authorization.revokeCurrentCredential

Permanently revokes exactly the credential authenticating this request. A retry after a confirmed response is expected to receive 401 because the bearer credential is no longer valid.

client.authorization.revokeCurrentCredential(options: RequestOptions = {})
Return form
Promise
Operation ID
revokeCurrentCredential
Required scopes
None
SDK parameters
options: RequestOptions
Success
204
Declared API errors
400401403409429502503

Errors and transport metadata

HTTP failures reject with TeamGridApiError, including the status, stable error documents, request ID, optional retry delay, and transport metadata. Local validation, routing, timeout, response-size, and pagination failures reject withTeamGridClientError and a stable client error code. Successful envelopes expose non-enumerable transport metadata.

See pagination and errors andclient configuration for handling guidance.

Stable documentation · Developer Platform · Reviewed 2026-08-10Edit this page ↗
Documentation feedbackWas this page useful?
Esc

Search TeamGrid Developer

Find guides, concepts and every API operation.