Validate Api Key
GEThttps://cloud.agenta.ai/api/keys/:key_prefix/validate
This Function is called by the CLI and is used to validate an API key provided by a user in agenta init setup. Returns: bool: True. If the request reaches this point, the API key is valid.
Request
Path Parameters
key_prefix Key Prefixrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
boolean
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://cloud.agenta.ai/api/keys/:key_prefix/validate' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear