Create Api Key
POSThttps://cloud.agenta.ai/api/keys
Creates an API key for a user.
Args: request (Request): The request object containing the user ID in the request state.
Returns: str: The created API key.
Request
Query Parameters
workspace_id Workspace Idrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
string
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 -X POST 'https://cloud.agenta.ai/api/keys' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear