import { GetLinksRequest } from "dub/models/operations";
let value: GetLinksRequest = {};
Field | Type | Required | Description | Example |
---|---|---|---|---|
domain |
string | ➖ | The domain to filter the links by. E.g. ac.me . If not provided, all links for the workspace will be returned. |
|
tagId |
string | ➖ | Deprecated. Use tagIds instead. The tag ID to filter the links by. |
|
tagIds |
operations.QueryParamTagIds | ➖ | The tag IDs to filter the links by. | |
tagNames |
operations.QueryParamTagNames | ➖ | The unique name of the tags assigned to the short link (case insensitive). | |
search |
string | ➖ | The search term to filter the links by. The search term will be matched against the short link slug and the destination url. | |
userId |
string | ➖ | The user ID to filter the links by. | |
tenantId |
string | ➖ | The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant. | |
showArchived |
boolean | ➖ | Whether to include archived links in the response. Defaults to false if not provided. |
|
withTags |
boolean | ➖ | DEPRECATED. Filter for links that have at least one tag assigned to them. | |
sortBy |
operations.SortBy | ➖ | The field to sort the links by. The default is createdAt . |
|
sortOrder |
operations.SortOrder | ➖ | The sort order. The default is desc . |
|
sort |
operations.Sort | ➖ | DEPRECATED. Use sortBy instead. |
|
page |
number | ➖ | The page number for pagination. | 1 |
pageSize |
number | ➖ | The number of items per page. | 50 |