---
title: "Create App"
method: POST
path: "/api/v1/apps"
tags: ["Apps & Publishing"]
---

# Create App

`POST /api/v1/apps`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/apps`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

## Request body

- object
  - `name` string, required
  - `slug` string
  - `metadata` object, nullable
  - `config` object

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` object, required
    - `id` string, required
    - `organizationId` string, required
    - `name` string, required
    - `slug` string, required
    - `metadata` unknown
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `deletedAt` string, date-time, nullable, required
    - `appConfig` object, nullable, required
      - `id` string
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `deletedAt` string, date-time, nullable
      - `config` object, required
      - `organizationId` string, nullable
      - `productId` string, nullable
      - `appId` string, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api.md) - [All operations](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/revisions/c0451ea10e9a?raw)
