Skip to main content
POST
/
auth
/
validate-key
Validate an API key
curl --request POST \
  --url https://api.qontext.ai/auth/validate-key \
  --header 'X-API-Key: <api-key>'
{
  "message": "API key confirmed",
  "workspace": {
    "id": "ws_123e4567-e89b-12d3-a456-426614174000",
    "name": "My Workspace",
    "url": "https://myworkspace.com",
    "type": "ai_tool",
    "createdAt": "2021-01-01T00:00:00.000Z",
    "updatedAt": "2021-01-01T00:00:00.000Z"
  },
  "knowledgeGraphId": "kg_123e4567-e89b-12d3-a456-426614174000"
}

Authorizations

X-API-Key
string
header
required

API key for the Qontext API

Response

API key valid

message
string
required

Confirmation message.

Example:

"API key confirmed"

workspace
object
required

The workspace associated with the validated API key.

knowledgeGraphId
string

Optional ID of the knowledge graph (vault) this API key is scoped to. If absent, the key is workspace-scoped.

Example:

"kg_123e4567-e89b-12d3-a456-426614174000"