---
title: "Get a contact's SMS consent"
description: "Read a contact's current SMS consent state and the full immutable consent history — what was agreed to, when, and from which source. `GET /api/v1/contacts/{id}/sms-consent`"
url: https://www.unitpost.com/docs/sms/get-contacts-id-sms-consent
section: "SMS API reference"
updated: 2026-11-17
---
# Get a contact's SMS consent

`GET /api/v1/contacts/{id}/sms-consent`

Read a contact's current SMS consent state and the full immutable consent history — what was agreed to, when, and from which source. Use this to answer a carrier or regulator asking you to prove a recipient opted in, without contacting support. `marketing_eligible` is the field that decides whether marketing SMS to this contact will be accepted. Requires the `contacts:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `phone` | string \| null | yes | — |
| `country` | string \| null | no | — |
| `status` | string | yes | — |
| `marketing_eligible` | boolean | no | — |
| `consented_at` | string \| null | no | — |
| `consent_source` | string \| null | no | — |
| `consent_purpose` | string \| null | no | — |
| `history` | object[] | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 200 | The consent state and history. |
| 401 | Missing or invalid API key. |
| 404 | Contact not found. |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/contacts/con_123/sms-consent' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "sms_consent",
  "phone": "string",
  "country": "string",
  "status": "queued",
  "marketing_eligible": false,
  "consented_at": "2026-01-01T00:00:00.000Z",
  "consent_source": "string",
  "consent_purpose": "string",
  "history": [
    {
      "id": "id_123",
      "action": "string",
      "source": "string",
      "purpose": "string",
      "occurred_at": "2026-01-01T00:00:00.000Z",
      "evidence_url": "https://example.com",
      "disclosure_version": "string"
    }
  ]
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/sms/get-contacts-id-sms-consent
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
