---
title: "Get favorite contacts and lists"
method: GET
path: "/api/v2/contacts/favorite"
tags: ["Lists"]
---

# Get favorite contacts and lists

`GET /api/v2/contacts/favorite`

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Lists/getFavorites" target="_blank">Try in sandbox</a><br>

## Query parameters

- `page` integer
- `limit` integer
- `query` string

## Response `200`

Favorite entities have been returned with success.

- GetFavoritesPaginatedResponse
  - `page` integer, required
  - `pageCount` integer, required — The total number of pages.
  - `limit` integer, required — The number of results per page.
  - `resources` FavoriteContact[], required
    - `entityId` integer, required — List or Contact ID.
    - `entityType` 'list' | 'contact', required — Entity type which should be marked as **favorite**.
    - `primaryLabel` string, required — Contact first name/last name if entityType is **contact**; List name if entity type is **list**.
    - `secondaryLabel` string, required — Phone number if entityType is **contact**; List contacts number if entity type is **list**.
    - `tertiaryLabel` string, nullable, required — Contact country if entityType is **contact**; else, null.
    - `avatar` string, nullable, required

## Other responses

- `401` — Unauthorized request.

---

[API](https://skmtc.net/textmagic/apis/textmagic-api.md) · [All operations](https://skmtc.net/textmagic/apis/textmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textmagic/textmagic-api/revisions/3e4029d19684/schema)
