POST
/
tags
curl --request POST \
  --url https://api.dub.co/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tag": "<string>",
  "color": "red"
}'
{
  "id": "<string>",
  "name": "<string>",
  "color": "<string>"
}

Authorizations

Authorization
string
headerrequired

Default authentication mechanism

Query Parameters

projectSlug
string
required

The slug for the project to create tags for. E.g. for app.dub.co/acme, the projectSlug is acme.

Body

application/json
tag
string
required

The name of the tag to create.

color
enum<string>

The color of the tag (random if not provided).

Available options:
red,
yellow,
green,
blue,
purple,
brown

Response

200 - application/json
id
string

The unique ID of the tag.

name
string

The name of the tag.

color
string

The color of the tag.