# Retrieve an exam attempt

`GET https://api.cademi.com.br/api/v3/products/{product_id}/exams/{exam_id}/attempts/{exam_attempt_id}`

Operation ID: `exams.attempts.get` · API v3

Retrieves an exam attempt by its public ID. The user who took the exam is identified by ID and name; the email address is not included.

The response includes an `ETag` representing the current revision. Send this value in the `If-Match` header when reopening the attempt to avoid acting on an outdated version.

Required permissions: `exams.attempts.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `exam_id` | path | string | yes |  |
| `exam_attempt_id` | path | string | yes |  |

## Responses

### 200

Returns the requested attempt.

Body: `data`: ExamAttempt.

Fields of ExamAttempt:

| Field | Type | Required | Description |
|---|---|---|---|
| `correct_count` | integer | yes |  |
| `exam_id` | string | yes | Public ID of the exam, prefixed with exm_. |
| `finished_at` | string or null (date-time) | yes |  |
| `id` | string | yes | Public ID of the exam attempt, prefixed with exa_. |
| `lesson_id` | string or null | yes | Public ID of the lesson in which the exam was taken. |
| `min_score` | number or null | yes |  |
| `object` | string, one of `exam_attempt` | yes |  |
| `passed` | boolean or null | yes | Whether the attempt reached the passing score. null when the exam has no passing score or the attempt is not finished. |
| `product_id` | string | yes | Public ID of the product, prefixed with prd_. |
| `revision` | string | yes |  |
| `score` | number or null | yes |  |
| `started_at` | string (date-time) | yes |  |
| `status` | string, one of `open`, `completed`, `discarded`, `timed_out` | yes |  |
| `user` | object | yes | The user who made the attempt. The email address is never included. |
| `wrong_count` | integer | 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 attempt was not found for the specified exam or is not accessible with the current credentials.

Body: Error.

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