Endpoints

API keys

API keys endpoints of the Elnora REST API.

Base URL https://platform.elnora.ai/api/v1. Authenticate every request with the X-API-Key header — see Authentication.

GET /api-keys

List API keys.

curl https://platform.elnora.ai/api/v1/api-keys \
  -H "X-API-Key: $ELNORA_API_KEY"

Parameters

NameInTypeRequired
scopequerystringno

Responses: 200 · 403

POST /api-keys

Create a new API key for the user's active organization.

curl -X POST https://platform.elnora.ai/api/v1/api-keys \
  -H "X-API-Key: $ELNORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "..." }'

Request body

FieldTypeRequired
namestringyes
expiresAtdate-timeno

Responses: 200 · 403

DELETE /api-keys/{id}

Revoke an API key.

curl -X DELETE https://platform.elnora.ai/api/v1/api-keys/{id} \
  -H "X-API-Key: $ELNORA_API_KEY"

Parameters

NameInTypeRequired
idpathuuidyes

Responses: 204 · 404

GET /api-keys/policy

Get the API key creation policy for the organization.

curl https://platform.elnora.ai/api/v1/api-keys/policy \
  -H "X-API-Key: $ELNORA_API_KEY"

Responses: 200

PUT /api-keys/policy

Set the API key creation policy for the organization (Owner/Admin only).

curl -X PUT https://platform.elnora.ai/api/v1/api-keys/policy \
  -H "X-API-Key: $ELNORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

Request body

FieldTypeRequired
policystringno

Responses: 204 · 403

On this page