---
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
  - `organization_id` string, nullable

## Response `200`

Successful Response

- CreateAppOutput
  - `app_id` string, required
  - `app_name` string, required

## Other responses

- `422` — Validation Error

## Changes

- **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/e3e84db47198/schema)
