Docs
DevelopersAPI reference

List attempts

GET/attempts

Lists every submission, passed or failed, oldest update first. To sync, send the latest updated_at you have seen as updated_since and follow next_cursor to the end; records at that exact instant come again, so de-duplicate by id. Attempts on anonymised surveys never appear.

Authorization

apiKey attempts:read
AuthorizationBearer <token>

An organisation API key, sent as Authorization: Bearer enl_…. Create keys in Settings, API Keys.

In: header

Scope: attempts:read

Query Parameters

limit?integer
Range1 <= value <= 200
Default50
cursor?string

The next_cursor from the previous page.

updated_since?string

Return records updated at or after this timestamp. Keep the same value across pages of a sync.

Formatdate-time
user_id?string
Formatuuid
material_id?string
Formatuuid
material_type?string

Value in

  • "course"
  • "policy"
  • "survey"
assignment_id?string
Formatuuid
counts_as_completion?string

Value in

  • "true"
  • "false"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/attempts"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "assignment_id": "d43495bb-b4cb-46c1-906a-f8265fda9c73",      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",      "material_id": "fba2a54e-bc4a-4e2a-8ad4-84dcfe66dea1",      "material_type": "course",      "material_version": 2,      "attempt_number": 1,      "outcome": "passed",      "counts_as_completion": true,      "score": 85,      "duration_seconds": 312,      "completed_at": "2019-08-24T14:15:22Z",      "late": true,      "signatures": [        {          "method": "draw",          "source": "saved",          "signed_at": "2019-08-24T14:15:22Z"        }      ],      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}