> ## Documentation Index
> Fetch the complete documentation index at: https://solidroad.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an assignment

> GET /v2/assignments/{id} returns one training assignment.

```
GET https://api.solidroad.com/v2/assignments/{id}
```

Scope: `assignments:read`.

## Path parameters

| Parameter | Type | Meaning |
| - | - | - |
| `id` | string | The assignment ID: `asg_` and a UUID. |

This endpoint takes no query parameters.

## Request

```bash theme={null}
curl https://api.solidroad.com/v2/assignments/asg_00000000-0000-4000-8000-000000000001 \
  -H "Authorization: Bearer $SOLIDROAD_API_KEY"
```

## Response

```json theme={null}
{
  "id": "asg_00000000-0000-4000-8000-000000000001",
  "object": "assignment",
  "createdAt": "2026-10-01T09:00:00.000Z",
  "updatedAt": "2026-10-28T09:14:02.511Z",
  "appUrl": "https://app.solidroad.com/dashboard/assignments/asg_00000000-0000-4000-8000-000000000001",
  "name": "Refund calls: October",
  "status": "open",
  "startAt": "2026-10-02T08:00:00.000Z",
  "dueAt": "2026-11-15T23:59:00.000Z",
  "passingScore": 80,
  "attemptLimit": 3,
  "requiresRetry": false,
  "learnerInstructions": "Complete both role-plays before the due date.",
  "simulationIds": [
    "sim_00000000-0000-4000-8000-000000000001",
    "sim_00000000-0000-4000-8000-000000000002"
  ]
}
```

## Assignment object

| Field | Type | When present | Meaning |
| - | - | - | - |
| `id` | string | Always | The assignment ID, `asg_…`. |
| `object` | string | Always | Always `assignment`. |
| `createdAt` | time | Always | When the assignment was created. |
| `updatedAt` | time | Always | When the assignment or its simulations last changed. Read [Simulations](#simulations). |
| `appUrl` | string | Always | Opens the assignment in the Solidroad app. |
| `name` | string | Always | The assignment's name. |
| `status` | string | Always | `draft`, `scheduled`, `open` or `ended`. |
| `startAt` | time | When set | When the assignment starts. |
| `dueAt` | time | When set | When the assignment is due. |
| `passingScore` | integer | When set | The score that a learner needs to pass. |
| `attemptLimit` | integer | When set | The number of attempts a learner can make at each simulation. |
| `requiresRetry` | boolean | Always | `true` when a learner must make at least 2 attempts at each simulation before it counts. |
| `learnerInstructions` | string | When set | The instructions that learners see. |
| `simulationIds` | array of strings | When the assignment has simulations | The simulations in the assignment, as `sim_…` IDs, in the order that learners take them. Read [Simulations](#simulations). |

### Assignment status

| Value | Meaning |
| - | - |
| `draft` | The assignment is not sent to learners yet. |
| `scheduled` | The assignment starts at `startAt`. |
| `open` | Learners can do the assignment. |
| `ended` | The assignment is closed. |

### Passing score and attempt limit

A `passingScore` of `0` means the same as no passing score. Enrollments in an assignment with no passing score end as `completed`, not `passed` or `failed`.

An `attemptLimit` of `0` means the same as no attempt limit. Then each learner can make up to 50 attempts at each simulation.

### Simulations

`simulationIds` lists the role-plays and system simulations in the assignment. It leaves out hiring simulations, simulations shared across workspaces and deleted simulations. The field is left out when no simulations remain.

`updatedAt` moves when a simulation is added, removed or moved in the assignment. It also moves when a simulation in the assignment is deleted or restored.

## Errors

| Status | `code` | Cause |
| - | - | - |
| 401 | `unauthorized` | The API key is missing or not valid. |
| 403 | `insufficient_scope` | The key does not have `assignments:read`. |
| 404 | `not_found` | No assignment with this ID is in your workspace, or it was deleted. |
| 429 | `rate_limited` | You sent too many requests. |

Read [Errors](https://solidroad.mintlify.site/api-reference/v2/errors.md) for every code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.