Skip to main content
POST
/
auth
/
validate-key
Validate an API key
curl --request POST \
  --url http://localhost:4000/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"
  }
}

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.

⌘I