---
title: "Create Prompt"
method: POST
path: "/console/v1/prompts"
tags: ["Prompts"]
---

# Create Prompt

`POST /console/v1/prompts`

## Request body

- AIConfigCreateDto
  - `name` string, required — Name for the AI Config.
  - `displayName` string — Optional display name for the AI Config.
  - `description` string — Description for the AI Config.
  - `targetApps` union — List of target app names.
    - string
    - string[]
  - `team` string — Team name.
  - `teamID` string — Team ID.
  - `tags` string[] — Optional tags to associate with the AI Config.
  - `creatorID` string, nullable
  - `owner` object, nullable — Schema for owner data including ID, type, name.
    - `ownerID` string — ID of the owner
    - `ownerType` string — Type of the owner (e.g., SDK_KEY or USER)
    - `ownerName` string — The name of the owner. This field is optional.
    - `ownerEmail` string — The email of the owner. This field is optional.
  - `creatorEmail` string, nullable

## Response `200`

Create Prompt

- object
  - `message` string, required — A simple string explaining the result of the operation.
  - `data` object, required — A single result.
    - `id` string, required — ID
    - `name` string — The gate display name
    - `idType` string
    - `description` string, required
    - `lastModifierID` string, nullable, required — ID of the last modifier.
    - `lastModifiedTime` number, double, nullable, required — Time of the last modification.
    - `lastModifierEmail` string, nullable, required — Email of the last modifier.
    - `lastModifierName` string, nullable, required — Name of the last modifier.
    - `creatorID` string, nullable
    - `createdTime` number, double, required — Timestamp when the entity was created.
    - `creatorName` string, nullable, required — Name of the creator.
    - `creatorEmail` string, nullable
    - `tags` string[]
    - `targetApps` string[] — List of target applications associated with this configuration.
    - `holdoutIDs` string[] — Holdouts applied to this configuration.
    - `team` string, nullable
    - `teamID` string, nullable
    - `version` number, double — Version number

## Other responses

- `400` — Invalid request. Please check the request input and try again.
- `401` — This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
- `403` — Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource.

---

[API](https://skmtc.net/statsig/apis/console-api.md) · [All operations](https://skmtc.net/statsig/apis/console-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/statsig/console-api/revisions/439e60273a2e/schema)
