Skip to main content
GET
/
auth
/
context
JavaScript
import Cerca from '@cerca-dev/sdk';

const client = new Cerca({
  apiKey: process.env['CERCA_API_KEY'], // This is the default and can be omitted
});

const authContextResponse = await client.auth.context();

console.log(authContextResponse.keyId);
{
  "keyId": "<string>",
  "orgId": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cerca.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

API key authentication context.

keyId
string
required
orgId
string
required