POST
/
project
/
{id}
/
key
/
verify
curl --request POST \
  --url http://localhost:3003/project/{id}/key/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "key_id": "<string>"
}'
{
  "is_valid": true,
  "key": {
    "id": "<string>",
    "label": "<string>",
    "roles": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization Token header using the Bearer scheme

Path Parameters

id
string
required

Unique identifier of the project

Body

application/json
key
string
required

API key to verify

key_id
string

Optional key ID for more specific verification

Response

200
application/json

API key verification result

is_valid
boolean

Whether the API key is valid

key
object

Key details if valid