GET
/
tags
package main

import(
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"log"
)

func main() {
    ctx := context.Background()

    s := dubgo.New(
        dubgo.WithSecurity("DUB_API_KEY"),
    )

    res, err := s.Tags.List(ctx, operations.GetTagsRequest{
        PageSize: dubgo.Float64(50),
    })
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}
[
  {
    "id": "<string>",
    "name": "<string>",
    "color": "red"
  }
]

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

sortBy
enum<string>
default:name

The field to sort the tags by.

Available options:
name,
createdAt
sortOrder
enum<string>
default:asc

The order to sort the tags by.

Available options:
asc,
desc

The search term to filter the tags by.

ids

IDs of tags to filter by.

page
number
default:1

The page number for pagination.

Required range: x > 0
Example:

1

pageSize
number
default:100

The number of items per page.

Required range: 0 < x <= 100
Example:

50

Response

200
application/json

A list of tags

The response is of type Tag · object[].