Skip to main content
POST
/
topics
Create Topic
curl --request POST \
  --url https://api.peec.ai/customer/v1/topics \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "country_code": "AE"
}
'
{
  "id": "to_5524d66a-df1e-47e4-9dbc-802af39235ad"
}

Authorizations

X-API-Key
string
header
required

Body

name
string
required
Required string length: 1 - 64
country_code
enum<string>
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

Response

Topic created successfully

Topic created successfully

id
string
required
Example:

"to_5524d66a-df1e-47e4-9dbc-802af39235ad"