Get current compute auth context
client.auth.me(RequestOptionsoptions?): AuthMeResponse
GET/compute/v1/auth/me
Returns the organization context available to the current API key or OAuth bearer token. OAuth callers can use X-Boltz-Organization-Id to select one of their organizations.
Returns
Get current compute auth context
import Boltz from 'boltz-api';
const client = new Boltz({
apiKey: process.env['BOLTZ_API_KEY'], // This is the default and can be omitted
});
const response = await client.auth.me();
console.log(response);{
"api_key_id": "api_key_example",
"key_type": "workspace",
"mode": "live",
"organization_id": "org_123",
"principal_type": "api_key",
"selected_organization_id": "org_123",
"workspace_id": "ws_123"
}Returns Examples
{
"api_key_id": "api_key_example",
"key_type": "workspace",
"mode": "live",
"organization_id": "org_123",
"principal_type": "api_key",
"selected_organization_id": "org_123",
"workspace_id": "ws_123"
}