Skip to main content

Create App And Variant From Template

POST 

https://cloud.agenta.ai/api/apps/app_and_variant_from_template

Create an app and variant from a template.

Args: payload (CreateAppVariant): The payload containing the app and variant information. stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).

Raises: HTTPException: If the user has reached the app limit or if an app with the same name already exists.

Returns: AppVariantResponse: The output of the created app variant.

Request

Body

required

    app_name App Name (string)required
    template_id Template Id (string)required

    env_vars

    object

    required

    property name* string
    organization_id Organization Id (string)
    workspace_id Workspace Id (string)

Responses

Successful Response

Schema

    app_id App Id (string)required
    app_name App Name (string)required
    variant_id Variant Id (string)required
    variant_name Variant Name (string)required
    parameters object
    previous_variant_name Previous Variant Name (string)
    user_id User Id (string)required
    base_name Base Name (string)required
    base_id Base Id (string)required
    config_name Config Name (string)required
    uri Uri (string)
    revision Revision (integer)required
    organization_id Organization Id (string)
    workspace_id Workspace Id (string)
curl -L 'https://cloud.agenta.ai/api/apps/app_and_variant_from_template' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"app_name": "string",
"template_id": "string",
"env_vars": {},
"organization_id": "string",
"workspace_id": "string"
}'
Request Collapse all
Base URL
https://cloud.agenta.ai/api
Auth
Body required
{
  "app_name": "string",
  "template_id": "string",
  "env_vars": {},
  "organization_id": "string",
  "workspace_id": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!