Forbróirí

Authmarks REST API v1 reference: endpoints, fields and errors

Complete reference for the read-only Authmarks REST API v1: every endpoint, required scope, parameter, response field and error code, with examples.

Foilsithe 2026-11-26 · 6 nóim. léitheoireachta

API versionv1
AuthBearer token (amk_ organisation 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 you get: the exact contract of the Authmarks REST API v1. Each endpoint below lists its method, path, required scope, parameters, response fields, errors and an example. The machine-readable version of this page is the OpenAPI 3.1 document at https://www.authmarks.com/api/v1/openapi.json. New to the API? Start with the quickstart.

Conventions

TopicRule
Base URLhttps://www.authmarks.com/api/v1/orgs/{orgId}. orgId is your organisation's UUID, shown in Settings → Developers.
AuthenticationAuthorization: Bearer amk_…, an organisation API token. See Authentication and scopes.
Read-onlyOnly GET and HEAD. Every other method answers 405. Nothing in v1 creates, changes or deletes data.
CachingEvery response carries Cache-Control: no-store. Do not cache responses in shared proxies.
TimestampsISO 8601 in UTC, for example 2026-11-25T18:02:44Z. A timestamp that does not apply is null.
IdsOpaque strings. Store them as text, compare them exactly and never parse their parts.
Lists{ "data": [...], "next_cursor": "..." }. limit 1 to 200 (default 50). Pass next_cursor back as cursor. next_cursor is null on the last page.
Single objects{ "data": { ... } }.
Errors{ "error": { "code": "...", "message": "..." } }. code is stable; message is for people and may change.
Rate limit600 requests a minute per token; 429 with Retry-After (seconds) when over.
Organisation boundaryA token only works for its own organisation. Another organisation's id answers 401, never 403, so a token cannot be used to probe which organisations exist.

List parameters

Every list endpoint that pages accepts:

ParameterInTypeDefaultNotes
limitqueryinteger501 to 200. Out of range answers 400 invalid_request.
cursorquerystringnoneThe next_cursor of the previous page. Opaque; an edited cursor answers 400.

Error codes

StatuscodeMeaning
400invalid_requestA parameter is malformed or out of range.
401unauthorizedNo token, an unknown, revoked or expired token, or a token from another organisation.
403forbiddenThe token is valid but lacks the endpoint's scope, or the organisation's plan lacks the feature the scope needs.
404not_foundThe object does not exist in this organisation.
405method_not_allowedAny method other than GET or HEAD.
429rate_limitedToo many requests for this token, or too many failed authentications from this address. Wait Retry-After seconds.
503unavailableA temporary problem. Retry with backoff.

List LMS connections

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

Scope: lms_read (the organisation's plan needs the LTI feature).

Lists the LTI 1.3 platforms connected to your organisation, with their deployments. Use it to spot connections waiting for approval. Setup is covered in LTI 1.3 setup.

Parameters

ParameterInTypeRequiredNotes
orgIdpathstringyesYour organisation id.

Response fields (data[])

FieldTypeNotes
idstringConnection id. Use it for grade returns.
labelstringThe name an admin gave the connection.
issuerstringThe platform's LTI issuer URL.
client_idstringThe LTI client id the platform assigned.
productstringThe LMS product, for example canvas or moodle.
statusstringpending (waiting for approval), active or disabled.
sourcestringdynamic (LTI Dynamic Registration) or manual.
deploymentsarray[{ deployment_id, status }], one per LTI deployment.
created_atstringWhen the connection was registered.
approved_atstring or nullWhen an admin approved it; null while pending.

next_cursor is part of the envelope.

Errors

401, 403, 405, 429, 503.

Example

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: lms_read.

The log of grade and status returns Authmarks sent to the LMS through LTI Assignment and Grade Services. Use it to find returns that failed. See Grades and roster.

Parameters

ParameterInTypeRequiredNotes
orgIdpathstringyesYour organisation id.
connectionIdpathstringyesAn id from the connection list.
limitqueryintegerno1 to 200, default 50.
cursorquerystringnoFrom next_cursor.

Response fields (data[])

FieldTypeNotes
idstringGrade-return id.
resource_link_idstringThe LMS's own id for the placement (the LTI resource_link.id).
lineitemstringThe LMS line item URL the return was sent to.
activity_progressstringThe LTI AGS activityProgress sent, for example Submitted.
grading_progressstringThe LTI AGS gradingProgress sent, for example PendingManual or FullyGraded.
statusstringsent or failed.
created_atstringWhen the return was attempted.

Errors

400, 401, 403, 404 (unknown connection), 405, 429, 503.

Example

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: assignments_read.

Parameters

ParameterInTypeRequiredNotes
orgIdpathstringyesYour organisation id.
limitqueryintegerno1 to 200, default 50.
cursorquerystringnoFrom next_cursor.

Response fields (data[])

FieldTypeNotes
idstringAssignment id. Use it for submissions.
titlestringThe assignment title.
statusstringThe assignment's lifecycle state, for example active or completed. Treat unknown values as valid.
course_idstring or nullThe course the assignment belongs to.
module_idstring or nullThe module inside the course, when there is one.
starts_atstring or nullWhen writing opens.
due_atstring or nullThe due time.
created_atstringWhen the assignment was created.

Errors

400, 401, 403, 405, 429, 503.

Example

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: records_read.

One row per submission: the student, their document and whether it is sealed. The API returns no scores, no percentages and no detector output.

Parameters

ParameterInTypeRequiredNotes
orgIdpathstringyesYour organisation id.
assignmentIdpathstringyesAn id from the assignment list.
limitqueryintegerno1 to 200, default 50.
cursorquerystringnoFrom next_cursor.

Response fields (data[])

FieldTypeNotes
student.idstringThe student's id in Authmarks.
student.namestring or nullDisplay name.
student.emailstring or nullEmail address. Treat it as personal data.
document_idstringThe student's document for this assignment.
sealedbooleantrue when the document has a sealed record.
record_idstring or nullThe sealed record id; null when not sealed.
sealed_atstring or nullWhen it was sealed; null when not sealed.
record_urlstring or nullThe record page link; null when not sealed.

Errors

400, 401, 403, 404 (unknown assignment), 405, 429, 503.

Example

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: records_read.

Only records that belong to your organisation's members or assignments are returned. Any other record id answers 404, whether or not it exists. For checks anyone can run without a token, see the Verification API.

Parameters

ParameterInTypeRequiredNotes
orgIdpathstringyesYour organisation id.
recordIdpathstringyesA record id, for example from a submission.

Response fields (data)

FieldTypeNotes
idstringThe record id.
document_idstringThe document that was sealed.
sealed_atstringWhen it was sealed.
content_sha256string or nullSHA-256 of the sealed file (the sealed document PDF, or else the Authmarks sealed copy), 64 lowercase hex characters. Check it with POST /api/verify/hash or the MCP verify_hash tool. Null when the record has no sealed file.
record_urlstringThe record page.
verify_urlstringThe public, no-account check of this record (/api/records/{recordId}/public).

Errors

401, 403, 404, 405, 429, 503.

Example

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. A public OpenAPI 3.1 document describing every endpoint on this page, the public verification endpoints (POST /api/verify/hash, POST /api/verify/file) and the MCP endpoint (POST /api/mcp). Its security scheme is orgToken: HTTP bearer with bearer format amk_ token. Generate clients from it as shown in the quickstart.

EndpointAuthPage
POST /api/mcpSame tokenMCP server
POST /api/verify/hash, POST /api/verify/file, GET /api/records/{id}/publicNoneVerification API
/api/scim/v2/{orgId}/…Token with scim_users or scim_groupsSCIM and audit stream
GET /api/orgs/{orgId}/audit-streamToken with audit_streamSCIM and audit stream

Nótaí athruithe

  • 2026-11-26 — First published.

An bhfaca tú earráid? Seol ríomhphost chuig sales@authmarks.com agus ceartóimid an leathanach agus cuirfimid dáta leis an gceartúchán.