Skip to main content
POST
/
prompts
Create Prompt
curl --request POST \
  --url https://api.peec.ai/customer/v1/prompts \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "text": "<string>",
  "country_code": "AE",
  "tag_ids": [
    "<string>"
  ],
  "topic_id": "<string>"
}
'
{
  "id": "pr_93f790de-5b7a-45ee-b782-61103c81f20d"
}

Authorizations

X-API-Key
string
header
required

Body

text
string
required
Required string length: 1 - 200
country_code
enum<string>
required
Available options:
AE,
AL,
AM,
AR,
AT,
AU,
BA,
BE,
BG,
BH,
BO,
BR,
BY,
CA,
CH,
CL,
CO,
CR,
CY,
CZ,
DE,
DK,
DO,
EC,
EE,
EG,
ES,
FI,
FR,
GB,
GE,
GR,
GT,
HN,
HR,
HU,
ID,
IE,
IL,
IN,
IQ,
IS,
IT,
JO,
JP,
KR,
KW,
LB,
LT,
LU,
LV,
MA,
MD,
ME,
MK,
MT,
MX,
MY,
NI,
NL,
NO,
NZ,
OM,
PK,
PA,
PE,
PH,
PL,
PT,
PY,
PS,
QA,
RO,
RS,
SA,
SE,
SG,
SI,
SK,
SV,
TH,
TN,
TR,
TW,
UA,
US,
UY,
VE,
VN,
ZA
tag_ids
string[]
topic_id
string

Response

Prompt created successfully

Prompt created successfully

id
string
required
Example:

"pr_93f790de-5b7a-45ee-b782-61103c81f20d"