Create App
POSThttps://cloud.agenta.ai/api/apps
Create a new app for a user or organization.
Args: payload (CreateApp): The payload containing the app name and organization ID (optional). stoken_session (SessionContainer): The session container containing the user's session token.
Returns: CreateAppOutput: The output containing the newly created app's ID and name.
Raises: HTTPException: If there is an error creating the app or the user does not have permission to access the app.
Request
- application/json
Body
required
app_name App Name (string)required
project_id
object
workspace_id
object
organization_id
object
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
app_id App Id (string)required
app_name App Name (string)required
{
"app_id": "string",
"app_name": "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 'https://cloud.agenta.ai/api/apps' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"app_name": "string",
"project_id": "string",
"workspace_id": "string",
"organization_id": "string"
}'
ResponseClear