---
title: "Get all contact IDs in a list"
method: GET
path: "/api/v2/lists/{id}/contacts/ids"
tags: ["Lists"]
---

# Get all contact IDs in a list

`GET /api/v2/lists/{id}/contacts/ids`

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

## Path parameters

- `id` integer, required

## Response `200`

Returned when successful.

- integer[]

## Other responses

- `401` — Unauthorized request.
- `404` — Request data not found.

---

[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)
