---
title: "Create App"
method: POST
path: "/apps"
tags: ["Apps"]
---

# Create App

`POST /apps`

Create a new app for a user or organization.

Args:
    payload (CreateApp): The payload containing the app name and organization ID (optional).

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 body

- CreateApp
  - `app_name` string, required
  - `template_key` string, nullable
  - `project_id` string, nullable
  - `workspace_id` string, nullable
  - `folder_id` string, nullable
  - `organization_id` string, nullable

## Response `200`

Successful Response

- CreateAppOutput
  - `app_id` string, required
  - `app_name` string, required
  - `app_type` string, nullable
  - `created_at` string, nullable
  - `updated_at` string, nullable
  - `folder_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-01-14** `53da4c9de2b7` — 5 info
  - added the new optional request property `folder_id`
  - added the optional property `app_type` to the response with the `200` status
  - added the optional property `created_at` to the response with the `200` status
  - added the optional property `folder_id` to the response with the `200` status
  - …1 more
- **2025-06-27** `e3e84db47198` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/apps/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/8fcd55a5a656/schema)
