> ## Documentation Index
> Fetch the complete documentation index at: https://guide.rolodexcrm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Tags

## `GET` tags

`GET` `/user-api/v1/tags`

### Query Parameters

<ParamField path="limit" type="string">
  Set a limit to the number of records to return (Default:25)
</ParamField>

<ParamField path="offset" type="string">
  Number of records to skip.
</ParamField>

<ParamField path="order_by" type="string">
  Sort order: `created_at:asc`, `created_at:desc`, `name:asc`, `name:desc`
</ParamField>

<ParamField path="include" type="string">
  Related data to include: `contacts`, `companies`, `tasks`
</ParamField>

### Headers

| Header              | Value               |
| ------------------- | ------------------- |
| `x-rolodex-api-key` | `f1e2d3c4b5a697...` |

### Response

```json theme={null}
{
  "pagination": {
    "limit": 25,
    "offset": 0,
    "total": 150
  },
  "data": [
    {
      "id": "tag_12345",
      "name": "Lead",
      "created_at": "2025-01-15T10:30:00Z",
      "updated_at": "2025-01-15T10:30:00Z"
    },
    {
      "id": "tag_67890",
      "name": "Hot Prospect",
      "created_at": "2025-01-14T09:15:00Z",
      "updated_at": "2025-01-14T09:15:00Z"
    }
  ]
}
```

### With Include Parameters

`GET` `/user-api/v1/tags?include=contacts,companies,tasks`

### Response with all includes

```json theme={null}
{
  "pagination": {
    "limit": 25,
    "offset": 0,
    "total": 150
  },
  "data": [
    {
      "id": "tag_12345",
      "name": "Lead",
      "created_at": "2025-01-15T10:30:00Z",
      "updated_at": "2025-01-15T10:30:00Z",
      "contacts": [
        {
          "id": "contact_123",
          "full_name": "John Doe",
          "image_url": "https://example.com/avatar.jpg"
        }
      ],
      "companies": [
        {
          "id": "company_456",
          "name": "Acme Corp",
          "logo_url": "https://example.com/logo.png"
        }
      ],
      "tasks": [
        {
          "id": "task_789",
          "body": "Follow up with lead"
        }
      ]
    }
  ]
}
```

## `GET`Tag

`GET` `/user-api/v1/tags/:id`

### Path Parameters

<ParamField path="id" type="string">
  Tag ID
</ParamField>

### Query Parameters

<ParamField path="param" type="string">
  Related data to include: `contacts`, `companies`, `tasks`
</ParamField>

### Endpoint Example

`GET` `/user-api/v1/tags/tag_12345?include=contacts,companies`

### Response

```json theme={null}
{
  "data": {
    "id": "tag_12345",
    "name": "Lead",
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T10:30:00Z"
  }
}
```
