Skip to main content

API Keys

Use API keys via:
  • x-api-key: <API_KEY>

Create

curl -X POST http://localhost:3004/auth/api-keys \
  -H "Authorization: Bearer $JWT" \
  -H 'Content-Type: application/json' \
  -d '{"name":"yaak"}'

List

curl http://localhost:3004/auth/api-keys \
  -H "Authorization: Bearer $JWT"

Revoke

curl -X DELETE http://localhost:3004/auth/api-keys/$API_KEY_ID \
  -H "Authorization: Bearer $JWT"