Skip to main content
POST
/
console
/
v1
/
prompts
Create Prompt
curl --request POST \
  --url https://statsigapi.net/console/v1/prompts \
  --header 'Content-Type: application/json' \
  --header 'STATSIG-API-KEY: <api-key>' \
  --data '{
  "name": "my_prompt",
  "displayName": "<string>",
  "description": "<string>",
  "targetApps": "<string>",
  "team": "<string>",
  "teamID": "<string>",
  "tags": [
    "<string>"
  ],
  "creatorID": "<string>",
  "owner": {
    "ownerID": "user123",
    "ownerType": "USER",
    "ownerName": "John Doe",
    "ownerEmail": "[email protected]"
  },
  "creatorEmail": "<string>"
}'
{
  "message": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "idType": "<string>",
    "description": "<string>",
    "lastModifierID": "<string>",
    "lastModifiedTime": 123,
    "lastModifierEmail": "<string>",
    "lastModifierName": "<string>",
    "creatorID": "<string>",
    "createdTime": 123,
    "creatorName": "<string>",
    "creatorEmail": "<string>",
    "tags": [
      "<string>"
    ],
    "targetApps": [
      "<string>"
    ],
    "holdoutIDs": [
      "<string>"
    ],
    "team": "<string>",
    "teamID": "<string>",
    "version": 123
  }
}

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Body

application/json
name
string
required
Required string length: 3 - 100
Example:
displayName
string
Required string length: 3 - 100
description
string
Maximum length: 1000
targetApps
team
string
teamID
string
tags
string[]
creatorID
string | null
owner
object | null
Example:
creatorEmail
string | null

Response

message
string
required
data
object
required