Developers

Authmarks REST API v1 reference: every endpoint, field and error code

The full reference for the read-only Authmarks REST API v1, written for Canadian campus IT and LMS teams: each endpoint with its scope, parameters, response fields, error codes and a worked example.

Published 2026-11-26 · 7 min read

API versionv1
AuthBearer token (amk_ organization API token)
Base URLhttps://www.authmarks.com/api/v1
MethodsGET and HEAD only
FormatJSON, UTF-8, Cache-Control no-store
OpenAPIhttps://www.authmarks.com/api/v1/openapi.json

What this page covers: the precise contract of version 1 of the Authmarks REST API. For each endpoint you will find the method, the path, the scope it requires, its parameters, the fields it returns, its errors and a sample call. The same contract in machine-readable form is the OpenAPI 3.1 document at https://www.authmarks.com/api/v1/openapi.json. If this is your first time with the API, begin with the quickstart.

Conventions

TopicRule
Base URLhttps://www.authmarks.com/api/v1/orgs/{orgId}. orgId is the UUID of your organization, displayed under Settings → Developers.
AuthenticationAuthorization: Bearer amk_…, using an organization API token. Details are in Authentication and scopes.
Read-onlyGET and HEAD only; any other method gets 405. Nothing in v1 can create, edit or delete data.
CachingEach response is sent with Cache-Control: no-store. Shared proxies should not cache it.
TimestampsISO 8601 in UTC, such as 2026-11-25T18:02:44Z. When a timestamp does not apply, it is null.
IdsOpaque strings. Keep them as text, compare them character for character and never split them into parts.
Lists{ "data": [...], "next_cursor": "..." }. limit ranges from 1 to 200 (50 if omitted). Send next_cursor back as cursor; it is null on the final page.
Single objects{ "data": { ... } }.
Errors{ "error": { "code": "...", "message": "..." } }. You can rely on code; message is written for people and can change.
Rate limit600 requests a minute per token; past that you get 429 with Retry-After (in seconds).
Organization boundaryA token is valid for its own organization only. Any other organization's id returns 401, never 403, so nobody can use a token to discover which organizations exist.

List parameters

All paged list endpoints accept the following:

ParameterLocationTypeDefaultNotes
limitqueryinteger50Between 1 and 200. A value outside that range gets 400 invalid_request.
cursorquerystringnoneThe previous page's next_cursor. It is opaque, and a modified cursor gets 400.

Error codes

StatuscodeWhat it means
400invalid_requestA parameter is badly formed or outside its allowed range.
401unauthorizedThe token is absent, unknown, revoked or expired, or it belongs to a different organization.
403forbiddenThe token is valid but does not hold this endpoint's scope, or the organization's plan does not include the feature that scope depends on.
404not_foundNo such object exists in this organization.
405method_not_allowedThe method was something other than GET or HEAD.
429rate_limitedThis token sent too many requests, or this address had too many failed authentications. Wait for Retry-After seconds.
503unavailableA temporary fault. Try again with backoff.

List LMS connections

GET /api/v1/orgs/{orgId}/lms-connections

Scope needed: lms_read (your organization's plan must include the LTI feature).

Returns the LTI 1.3 platforms connected to your organization, along with their deployments. It is a quick way to see which connections are still waiting for approval, whether your campus runs D2L Brightspace, Canvas or Moodle. For setup, see LTI 1.3 setup.

Path and query parameters

ParameterLocationTypeRequiredNotes
orgIdpathstringyesThe id of your organization.

Fields in each data[] item

FieldTypeNotes
idstringThe connection's id; you pass it when asking for grade returns.
labelstringThe name an administrator gave this connection.
issuerstringThe LTI issuer URL of the platform.
client_idstringThe LTI client id that the platform issued.
productstringWhich LMS it is, such as canvas or moodle.
statusstringpending (not yet approved), active or disabled.
sourcestringdynamic (registered through LTI Dynamic Registration) or manual.
deploymentsarray[{ deployment_id, status }], with one entry for each LTI deployment.
created_atstringThe moment the connection was registered.
approved_atstring or nullThe moment an administrator approved it; null until then.

The envelope also carries next_cursor.

Error responses

Possible statuses: 401, 403, 405, 429, 503.

Sample request and response

curl -sS "https://www.authmarks.com/api/v1/orgs/$AUTHMARKS_ORG/lms-connections" \
  -H "Authorization: Bearer $AUTHMARKS_TOKEN"
{
  "data": [
    {
      "id": "lc_9a8b7c6d",
      "label": "Moodle staging",
      "issuer": "https://moodle.example.edu",
      "client_id": "ZqP3x0aBcD",
      "product": "moodle",
      "status": "pending",
      "source": "dynamic",
      "deployments": [{ "deployment_id": "1", "status": "pending" }],
      "created_at": "2026-11-24T16:40:00Z",
      "approved_at": null
    }
  ],
  "next_cursor": null
}

List grade returns for a connection

GET /api/v1/orgs/{orgId}/lms-connections/{connectionId}/grade-returns

Scope needed: lms_read.

This is the log of grades and statuses that Authmarks sent back to the LMS through LTI Assignment and Grade Services. Read it to find any return that failed. More context is in Grades and roster.

Path and query parameters

ParameterLocationTypeRequiredNotes
orgIdpathstringyesThe id of your organization.
connectionIdpathstringyesOne of the id values from the connection list.
limitqueryintegernoBetween 1 and 200; 50 if omitted.
cursorquerystringnoTaken from next_cursor.

Fields in each data[] item

FieldTypeNotes
idstringThe id of this grade return.
resource_link_idstringThe LMS's own id for the placement (LTI resource_link.id).
lineitemstringThe URL of the LMS line item that received the return.
activity_progressstringThe LTI AGS activityProgress value sent, such as Submitted.
grading_progressstringThe LTI AGS gradingProgress value sent, such as PendingManual or FullyGraded.
statusstringEither sent or failed.
created_atstringThe moment the return was attempted.

Error responses

Possible statuses: 400, 401, 403, 404 (connection not found), 405, 429, 503.

Sample request and response

curl -sS "https://www.authmarks.com/api/v1/orgs/$AUTHMARKS_ORG/lms-connections/lc_6f1e2d3c/grade-returns?limit=100" \
  -H "Authorization: Bearer $AUTHMARKS_TOKEN"
{
  "data": [
    {
      "id": "gr_01HZX5",
      "resource_link_id": "f8b0c1d2-assignment-link",
      "lineitem": "https://canvas.example.edu/api/lti/courses/120/line_items/88",
      "activity_progress": "Submitted",
      "grading_progress": "PendingManual",
      "status": "failed",
      "created_at": "2026-11-25T21:15:40Z"
    }
  ],
  "next_cursor": "eyJvIjoxMDB9"
}

List assignments

GET /api/v1/orgs/{orgId}/assignments

Scope needed: assignments_read.

Path and query parameters

ParameterLocationTypeRequiredNotes
orgIdpathstringyesThe id of your organization.
limitqueryintegernoBetween 1 and 200; 50 if omitted.
cursorquerystringnoTaken from next_cursor.

Fields in each data[] item

FieldTypeNotes
idstringThe assignment's id; you pass it when asking for submissions.
titlestringWhat the assignment is called.
statusstringWhere the assignment is in its lifecycle, such as active or completed. Accept values you do not recognize as valid.
course_idstring or nullThe course that holds the assignment.
module_idstring or nullThe module within the course, if one is set.
starts_atstring or nullThe moment writing opens.
due_atstring or nullThe deadline.
created_atstringThe moment the assignment was created.

Error responses

Possible statuses: 400, 401, 403, 405, 429, 503.

Sample request and response

curl -sS "https://www.authmarks.com/api/v1/orgs/$AUTHMARKS_ORG/assignments?limit=1" \
  -H "Authorization: Bearer $AUTHMARKS_TOKEN"
{
  "data": [
    {
      "id": "a7c1d2e3-4f56-4789-8abc-def012345678",
      "title": "Essay 2: Climate policy",
      "status": "active",
      "course_id": "c0ffee00-1111-4222-8333-444455556666",
      "module_id": null,
      "starts_at": "2026-11-02T08:00:00Z",
      "due_at": "2026-11-30T23:59:00Z",
      "created_at": "2026-10-28T14:12:09Z"
    }
  ],
  "next_cursor": "eyJvIjoxfQ"
}

List submissions for an assignment

GET /api/v1/orgs/{orgId}/assignments/{assignmentId}/submissions

Scope needed: records_read.

Each row is one submission: who the student is, which document they wrote and whether it has been sealed. No scores, no percentages and no detector output are ever returned.

Path and query parameters

ParameterLocationTypeRequiredNotes
orgIdpathstringyesThe id of your organization.
assignmentIdpathstringyesOne of the id values from the assignment list.
limitqueryintegernoBetween 1 and 200; 50 if omitted.
cursorquerystringnoTaken from next_cursor.

Fields in each data[] item

FieldTypeNotes
student.idstringThe student's Authmarks id.
student.namestring or nullThe name shown for the student.
student.emailstring or nullThe student's email address. Handle it as personal information, the term PIPEDA and provincial privacy laws use.
document_idstringThe document the student wrote for this assignment.
sealedbooleantrue if the document has a sealed record.
record_idstring or nullThe id of the sealed record; null if not sealed.
sealed_atstring or nullThe moment it was sealed; null if not sealed.
record_urlstring or nullLink to the record page; null if not sealed.

Error responses

Possible statuses: 400, 401, 403, 404 (assignment not found), 405, 429, 503.

Sample request and response

curl -sS "https://www.authmarks.com/api/v1/orgs/$AUTHMARKS_ORG/assignments/a7c1d2e3-4f56-4789-8abc-def012345678/submissions" \
  -H "Authorization: Bearer $AUTHMARKS_TOKEN"
{
  "data": [
    {
      "student": { "id": "p_3b9c0d1e", "name": "Jordan Lee", "email": "jordan.lee@example.edu" },
      "document_id": "doc_7Hq2",
      "sealed": true,
      "record_id": "rec_k9x2_a1_4f8e2c1d9b7a6e5f",
      "sealed_at": "2026-11-25T18:02:44Z",
      "record_url": "https://www.authmarks.com/r/rec_k9x2_a1_4f8e2c1d9b7a6e5f"
    },
    {
      "student": { "id": "p_8e7f6a5b", "name": "Sam Ortiz", "email": "sam.ortiz@example.edu" },
      "document_id": "doc_9Lm4",
      "sealed": false,
      "record_id": null,
      "sealed_at": null,
      "record_url": null
    }
  ],
  "next_cursor": null
}

Get a sealed record

GET /api/v1/orgs/{orgId}/records/{recordId}

Scope needed: records_read.

You only get records that belong to your organization's members or assignments. Any other record id returns 404, whether that record exists or not. For checks that need no token at all, see the Verification API.

Path and query parameters

ParameterLocationTypeRequiredNotes
orgIdpathstringyesThe id of your organization.
recordIdpathstringyesA record id, for instance one taken from a submission.

Fields in data

FieldTypeNotes
idstringThe id of the record.
document_idstringThe document that was sealed.
sealed_atstringThe moment it was sealed.
content_sha256string or nullSHA-256 of the sealed file (the sealed document PDF, otherwise the Authmarks sealed copy), as 64 lowercase hex characters. You can check it with POST /api/verify/hash or with the MCP verify_hash tool. It is null when the record holds no sealed file.
record_urlstringThe page for this record.
verify_urlstringThe public check of this record, which needs no account (/api/records/{recordId}/public).

Error responses

Possible statuses: 401, 403, 404, 405, 429, 503.

Sample request and response

curl -sS "https://www.authmarks.com/api/v1/orgs/$AUTHMARKS_ORG/records/rec_k9x2_a1_4f8e2c1d9b7a6e5f" \
  -H "Authorization: Bearer $AUTHMARKS_TOKEN"
{
  "data": {
    "id": "rec_k9x2_a1_4f8e2c1d9b7a6e5f",
    "document_id": "doc_7Hq2",
    "sealed_at": "2026-11-25T18:02:44Z",
    "content_sha256": "9f2c4a1b0e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e4d3c2b",
    "record_url": "https://www.authmarks.com/r/rec_k9x2_a1_4f8e2c1d9b7a6e5f",
    "verify_url": "https://www.authmarks.com/api/records/rec_k9x2_a1_4f8e2c1d9b7a6e5f/public"
  }
}

OpenAPI document

GET https://www.authmarks.com/api/v1/openapi.json

Auth: none. This public OpenAPI 3.1 document describes every endpoint listed here, plus the public verification endpoints (POST /api/verify/hash, POST /api/verify/file) and the MCP endpoint (POST /api/mcp). Its security scheme is orgToken, an HTTP bearer scheme with bearer format amk_ token. You can generate clients from it by following the quickstart.

EndpointAuthPage
POST /api/mcpThe same tokenMCP server
POST /api/verify/hash, POST /api/verify/file, GET /api/records/{id}/publicNone neededVerification API
/api/scim/v2/{orgId}/…A token holding scim_users or scim_groupsSCIM and audit stream
GET /api/orgs/{orgId}/audit-streamA token holding audit_streamSCIM and audit stream

Change notes

  • 2026-11-26 — First published.

Spotted an error? Email sales@authmarks.com and we will correct the page and date the correction.