# List operation attempts

`GET https://api.cademi.com.br/api/v3/operations/{operation_id}/attempts`

Operation ID: `operations.attempts.list` · API v3

Lists the execution attempts of an operation, most recent first, using cursor-based pagination.

Required permissions: `operations.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `operation_id` | path | string | yes |  |
| `limit` | query | integer | no |  |
| `cursor` | query | string | no |  |

## Responses

### 200

Returns the collection of attempts.

Body: `data`: array of OperationAttempt.

Fields of OperationAttempt:

| Field | Type | Required | Description |
|---|---|---|---|
| `finished_at` | string or null (date-time) | yes |  |
| `number` | integer | yes |  |
| `object` | string, one of `operation_attempt` | yes |  |
| `origin` | string, one of `automatic`, `manual`, `replay` | yes |  |
| `started_at` | string (date-time) | yes |  |
| `status` | string, one of `running`, `succeeded`, `failed`, `lost` | yes |  |

### 400

The cursor is invalid or the request contains an unsupported query parameter.

Body: Error.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The operation was not found or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
