GET
/
tags
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.tags.list();

  // Handle the result
  console.log(result);
}

run();
[
  {
    "id": "<string>",
    "name": "<string>",
    "color": "red"
  }
]

Authorizations

Authorization
string
header
required

Default authentication mechanism

Response

200
application/json
A list of tags
id
string
required

The unique ID of the tag.

name
string
required

The name of the tag.

color
enum<string>
required

The color of the tag.

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