---
title: "Segments this contact is in: those whose rules match it and those it was added to."
method: GET
path: "/contacts/{id}/segments"
tags: ["contacts"]
---

# Segments this contact is in: those whose rules match it and those it was added to.

`GET /contacts/{id}/segments`

## Request

- Base URL: `https://api.agentisend.com`
- URL: `https://api.agentisend.com/contacts/{id}/segments`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `after` string
- `before` string

## Response `200`

Success

- GetContactsByIdSegmentsReply
  - `object` 'list', required
  - `data` object[], required
    - `id` string, uuid, required
    - `name` string, required
    - `created_at` string, date-time, required
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required

## Other responses

- `400`: The request is malformed or a field failed validation. Codes: validation_error, invalid_idempotency_key, invalid_cursor, plan_not_purchasable, stripe_signature_invalid, support_upload_rejected, sign_in_check_required.
- `429`: A rate, quota or ramp ceiling was reached. Codes: onboarding_daily_cap_reached, trust_throttled, invite_limit_reached, rate_ceiling_exceeded, daily_quota_exceeded, monthly_quota_exceeded, rate_limit_exceeded, support_rate_limited.
- `500`: Something failed on our side. Codes: internal_server_error.

---

[API](https://skmtc.dev/agentisend/apis/agentisend-api.md) · [All operations](https://skmtc.dev/agentisend/apis/agentisend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentisend/apis/agentisend-api/revisions/3066dda62a56?raw)
