curl --request GET \ --url https://control-plane.kubiya.ai/api/v1/auth/validate \ --header 'Authorization: <api-key>'
Copy
Ask AI
{}
Authentication
Validate Token
Validate authentication token and return organization data.
This endpoint allows other services (like context-graph-api) to validate
tokens without duplicating auth logic. The control plane handles all
validation, caching, and Kubiya API integration.
The token should be passed in the Authorization header:
- Bearer <token> for user JWT tokens
- UserKey <token> for worker/API key tokens
Returns:
Organization dict with user and org information:
{
"id": "org-slug",
"name": "Organization Name",
"slug": "org-slug",
"user_id": "user-uuid",
"user_email": "[email protected]",
"user_name": "User Name",
"user_avatar": "...",
"user_status": "...",
"user_groups": [...]
}
Raises:
401: Invalid or expired token
500: Internal server error
Example:
```bash
curl -H "Authorization: Bearer <token>" \
https://control-plane.kubiya.ai/api/v1/auth/validate
```
GET
/
api
/
v1
/
auth
/
validate
Validate Token
Copy
Ask AI
curl --request GET \ --url https://control-plane.kubiya.ai/api/v1/auth/validate \ --header 'Authorization: <api-key>'