# List a contact's dial attempts

`GET https://api.morevoice.ai/v1/campaigns/{id}/contacts/{contact_id}/attempts`

Lists the dial attempts made to one contact of the campaign, newest first: when each one started, how it ended, and the call it placed.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `campaigns_contacts_list_attempts`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A campaign ID (`cmp_…`). |
| `contact_id` | `string` | yes | A contact ID (`ctc_…`). |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | no | How many objects to return, 1–100 (default 20). |
| `starting_after` | `string` | no | A cursor (`next_cursor`) or object ID: return the objects after it (older). |
| `ending_before` | `string` | no | A cursor or object ID: return the objects before it (newer). |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |

## Responses

### 200 OK

OK Returns `CampaignAttemptList`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `CampaignAttempt[]` | — |
| `has_more` | `boolean` | Whether more objects follow in the requested direction. |
| `next_cursor` | `string \| null` | Pass as starting_after (or ending_before, when paging backwards) to continue; null on the last page. |
| `url` | `string` | The list's path. |

Example:

```json
{
  "data": [
    {
      "answered_at": "2026-11-02T09:14:09.900Z",
      "attempt_number": 1,
      "call_id": "call_3Hk9PqR2sT",
      "campaign_id": "cmp_2Yb7mCq9aPLk",
      "contact_id": "ctc_1aB2cD3eF4g",
      "disposition": "interested",
      "duration_ms": 210000,
      "end_reason": "assistant-ended",
      "ended_at": "2026-11-02T09:17:30.000Z",
      "id": "att_4dE5fG6hJ7",
      "livemode": true,
      "object": "campaign_attempt",
      "phone": "+972501234567",
      "result": "answered",
      "ring_ms": 8700,
      "ringing_at": "2026-11-02T09:14:01.200Z",
      "sip_status": 200,
      "started_at": "2026-11-02T09:14:00.000Z",
      "status": "done",
      "talk_ms": 200100
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/campaigns/cmp_2Yb7mCq9aPLk/contacts/ctc_1aB2cD3eF4g/attempts"
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment

for await (const contact of mv.campaigns.contacts.listAttempts("cmp_7Hk2Lm9Qp", "ctc_7Hk2Lm9Qp")) {
	console.log(contact);
}
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for contact in client.campaigns.contacts.list_attempts("cmp_7Hk2Lm9Qp", "ctc_7Hk2Lm9Qp"):
    print(contact)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/campaigns/cmp_7Hk2Lm9Qp/contacts/ctc_7Hk2Lm9Qp/attempts \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
