Skip to main content
POST
/
tags
Create Tag
curl --request POST \
  --url https://api.peec.ai/customer/v1/tags \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "color": "gray"
}
'
{
  "id": "tg_23abec5b-100a-4261-9ee7-1effe68f0149"
}

Authorizations

X-API-Key
string
header
required

Body

name
string
required
Minimum string length: 1
color
enum<string>
default:gray
Available options:
gray,
red,
orange,
yellow,
lime,
green,
cyan,
blue,
purple,
fuchsia,
pink,
emerald,
amber,
violet,
indigo,
teal,
sky,
rose,
slate,
zinc,
neutral,
stone

Response

Tag created successfully

Tag created successfully

id
string
required
Example:

"tg_23abec5b-100a-4261-9ee7-1effe68f0149"