Project

Create Source Tag

Changed on

Create a tag that can be put on URLs and domains.

post/source-tags

Request

  • Base URL
    https://api.peec.ai/customer/v1
  • URL
    https://api.peec.ai/customer/v1/source-tags
  • Auth
    • API key in header X-API-Key
    • or API key in query parameter api_key
    • or HTTP bearer

Request body

namestring required

Tag name, unique within the project regardless of letter case.

color'gray' | 'red' | 'orange' | 'yellow' | 'lime' | 'green' | 'cyan' | 'blue' | 'purple' | 'fuchsia' | 'pink' | 'emerald' | 'amber' | 'violet' | 'indigo' | 'teal' | 'sky' | 'rose' | 'slate' | 'zinc' | 'neutral' | 'stone'

Badge color the tag is shown with.

Example request

{
  "name": "Affiliate",
  "color": "orange"
}

Response

Source tag created

idstring required

Example response

{
  "id": "stg_23abec5b-100a-4261-9ee7-1effe68f0149"
}

Changes