Skip to content

Platform Authentication

Lynxius platform supports API key authentication to run evaluations in a specific project.

API Key Authentication

Generates an API key associated with a specific project (defined by {project-uuid}) that can be used to run evaluations.

Example Request
curl -X 'POST' \
  'https://platform.lynxius.ai/api/projects/{project-uuid}/apikeys/' \
  -H "Authorization: Bearer $JWT_ACCESS_TOKEN" \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "YOUR_API_KEY_NAME"
}'
Returns
{
  "uuid": "b0daa39e-0d1f-4e1d-8cd7-2783838ed013",
  "name": "YOUR_API_KEY_NAME",
  "date_created": "2024-05-16T19:23:28.663844Z",
  "api_key_fragment": "...EKWI",
  "api_key": "ysMzJxsI88WHyLKQb8FpaUctjM3nnE6jKSZnNHMAYNkiEKWI"
}