Skip to main content
POST
/
tags
Create Tags
curl --request POST \
  --url https://server.promptwatch.com/api/v2/tags \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "names": [
    "<string>"
  ]
}
'
{
  "tags": [
    {
      "id": "6ba7b820-9dad-11d1-80b4-00c04fd430c8",
      "name": "Q2 campaign",
      "promptCount": 14
    },
    {
      "id": "6ba7b821-9dad-11d1-80b4-00c04fd430c8",
      "name": "Brand queries",
      "promptCount": 32
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.

Body

application/json
names
string[]
required

Array of tag names to create

Minimum array length: 1
Minimum string length: 1

Response

Default Response

tags
object[]
required

Array of tags