# Retrieve a processing attempt

`GET https://api.cademi.com.br/api/v3/imports/{import_id}/processing-attempts/{attempt_id}`

Operation ID: `imports.processing_attempts.get` · API v3

Retrieves a processing attempt of the specified import. An attempt that belongs to a different import returns `404 Not Found`.

If the attempt failed, `error` explains why the rows could not be queued. Errors for individual rows are reported by the list import rows operation.

Required permissions: `imports.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `import_id` | path | string | yes |  |
| `attempt_id` | path | string | yes |  |

## Responses

### 200

Returns the requested processing attempt.

Body: `data`: ProcessingAttempt.

Fields of ProcessingAttempt:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `effects` | object | no | Effects of the attempt on the lead. Present in Diamond membership attempts. |
| `error` | object or null | yes |  |
| `event_id` | string | no | Public ID of the sales event, with the sev_ prefix. Present in sales event attempts. |
| `id` | string | yes | Public ID, with the pat_ prefix. |
| `import_id` | string | no | Public ID of the import, with the imp_ prefix. Present in import attempts. |
| `membership_id` | string | no | Public ID of the lead's Diamond membership, with the mbr_ prefix. Present in Diamond membership attempts. |
| `object` | string, one of `processing_attempt` | yes |  |
| `operation_id` | string | yes | Public ID of the operation, with the op_ prefix. |
| `requested_by` | object | yes |  |
| `selection` | object | no | Spreadsheet rows selected by the attempt. Present in import attempts. |
| `status` | string, one of `queued`, `succeeded`, `failed` | yes |  |

### 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 import or processing attempt was not found, the attempt belongs to a different import, or it is not accessible with the current credentials.

Body: Error.

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