Validate Api Key
GET/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
- Array [ 
- Array [ 
- MOD1
- MOD2
- ] 
- ] 
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Loading...