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": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "promptCount": 123
    }
  ]
}

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