> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.resmarksystems.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Resmark API: Tags and Resellers

Tags let you group products for filtering and search. Reseller endpoints provide information about businesses that sell your products through TrueConnect.

### Get All Tags

```
GET /tag
```

Returns all tag categories, each containing an array of tags. Tags are managed in the app at **Settings > Custom Search Filters**.

**Response structure:**

| Field | Type | Description |
| ---- |
| data[].id | string | Tag category ID |
| data[].name | string | Tag category name (e.g., "Season", "Difficulty") |
| data[].tags[].id | string | Tag ID |
| data[].tags[].name | string | Tag name (e.g., "Summer", "Easy") |

Tag IDs can be used with the `tagIds` parameter on the Get All Products endpoint to filter products by tag.

### Get Reseller User Information

```
GET /agency/{userId}
```

Returns the list of reseller businesses a given user is associated with, along with their Agent ID for each.

| Parameter | Type | Required | Description |
| ---- |
| userId | string | Yes | Email address or AlternativeId of a user in a reseller business |

**Example response:**
```json
{
  "errorMessage": null,
  "data": [
    {
      "name": "Sample Travel Agency",
      "entityId": "6143bcca7fb4eb0011b58159",
      "agentId": "61ca43f8ec8b040018883c97"
    }
  ]
}
```

### Get Reseller Information

```
GET /agency/{agencyId}/agencyInfo
```

Returns contact and business details for a specific connected reseller.

| Parameter | Type | Required | Description |
| ---- |
| agencyId | string | Yes | A valid Agency ID for a connected reseller |

**Response fields:**

| Field | Type | Description |
| ---- |
| name | string | Reseller business name |
| country | object | Country object with `name` |
| addressOne | string | Street address |
| postalCode | string | Postal code |
| locality | string | City |
| state | object | State object with `name` |
| businessEmail | string | Reseller business email |
| website | string | Reseller website URL |
| phoneList | array | Phone objects with `phoneType` and `phoneNumber` |
| resmarkUrl | string | Reseller's Resmark subdomain URL |

### Finding Reseller IDs

The Reseller Business ID (used as `resellerEntityId` in product endpoints) can be found in the URL at **TrueConnect > Connected Reseller > Manage Connection**.