Skip to content

Validate Key

GET
/v1/auth/validate
curl --request GET \
--url https://api.uavcrew.ai/v1/auth/validate \
--header 'Authorization: Bearer <token>'

Validate an API key and return its metadata.

Pass the API key in the X-API-Key header. Returns information about the key’s permissions and limits.

Successful Response

Media typeapplication/json
APIKeyValidationResponse

API key validation response.

object
valid
required
Valid
boolean
organization_id
Any of:
string
tier
Any of:
string
scopes
Scopes
Array<string>
default:
rate_limit
Any of:
integer

Example

{
"scopes": []
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}