---
updatedAt: 2025-11-15T02:22:39.000Z
agentTools:
  projectIndex: https://developers.rebrandly.com/llms.txt
---

# Listing your tags

You can access your tags collection at any time with an HTTP `GET` on the tags endpoint `https://api.rebrandly.com/v1/tags`.

> 📘 Understanding pagination and sortings
>
> We recommend you have deep comprehension about how our API manages [Pagination](https://developers.rebrandly.com/docs/understanding-pagination) and [Sorting](https://developers.rebrandly.com/docs/understanding-sorting).

If you want to get only tags matching a given set of conditions, you can attach filters to your request:

## QUERY PARAMETERS

<table>
<thead>
<tr>
  <th>Parameter name</th>
  <th>Type</th>
  <th>Constraints</th>
  <th>Description</th>
</tr>
</thead>
<tbody>
<tr>
  <td><p>orderBy</p></td>
  <td>
  <p>string enum  </p>
<ul>
<li><code>name</code><br/>_default_See <a href="doc:understanding-sorting">Sorting</a></li>
</ul></td>
  <td><p><em>optional</em></p></td>
  <td><p>Sorting criteria to apply to your tags collection</p></td>
</tr>
<tr>
  <td><p>orderDir</p></td>
  <td>
  <p>string enum  </p>
<ul>
<li><code>desc</code><br/><em>default</em></li>
<li><code>asc</code>See <a href="doc:understanding-sorting">Sorting</a></li>
</ul></td>
  <td><p><em>optional</em></p></td>
  <td><p>Sorting direction to apply to your tags collection</p></td>
</tr>
<tr>
  <td><p>last</p></td>
  <td><p>string  </p>
<p>See <a href="doc:understanding-pagination">Pagination</a></p></td>
  <td><p><em>optional</em></p></td>
  <td><p>The id of the last tag you fetched in the last listing API call</p></td>
</tr>
<tr>
  <td><p>limit</p></td>
  <td><p>integer<br/><em>default is 25</em>  </p>
<p>See <a href="doc:understanding-pagination">Pagination</a></p></td>
  <td><p><em>optional</em><br/>Strictly positive<br/>Max 25</p></td>
  <td><p>How many tags to load</p></td>
</tr>
</tbody>
</table>

## GETting tags collection

```curl
$ curl 'https://api.rebrandly.com/v1/tags?orderBy=name&orderDir=asc&limit=100' \
-H 'apikey: YOUR_API_KEY'
```

## JSON response (list of tags matching filters)

```json
[
 {
  "id": "fffa4cc5b6ee45d6g7897b06ac2d16af",
  "name": "promo",
  "color": "FF9944"
 },
 {
  "id": "abcdecc5b6ee45d6g7897b06ac2d1xyz",
  "name": "tracked",
  "color": "55223D"
 }
 // up to 100 tag objects sorted by name asc
]
```

## Handling errors

| HTTP Status | Error type                                    | Description                                                                                                                             |
| :---------- | :-------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------- |
| 403         | [403 - Invalid format](https://developers.rebrandly.com/docs/validation-errors) | Invalid query parameters format. Double check value for `property` query parameter. Details about validation failure in `message` field |