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.
Publicado el 2026-11-26 · 6 min de lectura
| API version | v1 |
|---|---|
| Auth | Bearer token (amk_ organisation API token) |
| Base URL | https://www.authmarks.com/api/v1 |
| Methods | GET and HEAD only |
| Format | JSON, UTF-8, Cache-Control no-store |
| OpenAPI | https://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
| Topic | Rule |
|---|---|
| Base URL | https://www.authmarks.com/api/v1/orgs/{orgId}. orgId is your organisation's UUID, shown in Settings → Developers. |
| Authentication | Authorization: Bearer amk_…, an organisation API token. See Authentication and scopes. |
| Read-only | Only GET and HEAD. Every other method answers 405. Nothing in v1 creates, changes or deletes data. |
| Caching | Every response carries Cache-Control: no-store. Do not cache responses in shared proxies. |
| Timestamps | ISO 8601 in UTC, for example 2026-11-25T18:02:44Z. A timestamp that does not apply is null. |
| Ids | Opaque 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 limit | 600 requests a minute per token; 429 with Retry-After (seconds) when over. |
| Organisation boundary | A 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:
| Parameter | In | Type | Default | Notes |
|---|---|---|---|---|
limit | query | integer | 50 | 1 to 200. Out of range answers 400 invalid_request. |
cursor | query | string | none | The next_cursor of the previous page. Opaque; an edited cursor answers 400. |
Error codes
| Status | code | Meaning |
|---|---|---|
| 400 | invalid_request | A parameter is malformed or out of range. |
| 401 | unauthorized | No token, an unknown, revoked or expired token, or a token from another organisation. |
| 403 | forbidden | The token is valid but lacks the endpoint's scope, or the organisation's plan lacks the feature the scope needs. |
| 404 | not_found | The object does not exist in this organisation. |
| 405 | method_not_allowed | Any method other than GET or HEAD. |
| 429 | rate_limited | Too many requests for this token, or too many failed authentications from this address. Wait Retry-After seconds. |
| 503 | unavailable | A 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
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
orgId | path | string | yes | Your organisation id. |
Response fields (data[])
| Field | Type | Notes |
|---|---|---|
id | string | Connection id. Use it for grade returns. |
label | string | The name an admin gave the connection. |
issuer | string | The platform's LTI issuer URL. |
client_id | string | The LTI client id the platform assigned. |
product | string | The LMS product, for example canvas or moodle. |
status | string | pending (waiting for approval), active or disabled. |
source | string | dynamic (LTI Dynamic Registration) or manual. |
deployments | array | [{ deployment_id, status }], one per LTI deployment. |
created_at | string | When the connection was registered. |
approved_at | string or null | When 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
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
orgId | path | string | yes | Your organisation id. |
connectionId | path | string | yes | An id from the connection list. |
limit | query | integer | no | 1 to 200, default 50. |
cursor | query | string | no | From next_cursor. |
Response fields (data[])
| Field | Type | Notes |
|---|---|---|
id | string | Grade-return id. |
resource_link_id | string | The LMS's own id for the placement (the LTI resource_link.id). |
lineitem | string | The LMS line item URL the return was sent to. |
activity_progress | string | The LTI AGS activityProgress sent, for example Submitted. |
grading_progress | string | The LTI AGS gradingProgress sent, for example PendingManual or FullyGraded. |
status | string | sent or failed. |
created_at | string | When 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
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
orgId | path | string | yes | Your organisation id. |
limit | query | integer | no | 1 to 200, default 50. |
cursor | query | string | no | From next_cursor. |
Response fields (data[])
| Field | Type | Notes |
|---|---|---|
id | string | Assignment id. Use it for submissions. |
title | string | The assignment title. |
status | string | The assignment's lifecycle state, for example active or completed. Treat unknown values as valid. |
course_id | string or null | The course the assignment belongs to. |
module_id | string or null | The module inside the course, when there is one. |
starts_at | string or null | When writing opens. |
due_at | string or null | The due time. |
created_at | string | When 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
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
orgId | path | string | yes | Your organisation id. |
assignmentId | path | string | yes | An id from the assignment list. |
limit | query | integer | no | 1 to 200, default 50. |
cursor | query | string | no | From next_cursor. |
Response fields (data[])
| Field | Type | Notes |
|---|---|---|
student.id | string | The student's id in Authmarks. |
student.name | string or null | Display name. |
student.email | string or null | Email address. Treat it as personal data. |
document_id | string | The student's document for this assignment. |
sealed | boolean | true when the document has a sealed record. |
record_id | string or null | The sealed record id; null when not sealed. |
sealed_at | string or null | When it was sealed; null when not sealed. |
record_url | string or null | The 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
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
orgId | path | string | yes | Your organisation id. |
recordId | path | string | yes | A record id, for example from a submission. |
Response fields (data)
| Field | Type | Notes |
|---|---|---|
id | string | The record id. |
document_id | string | The document that was sealed. |
sealed_at | string | When it was sealed. |
content_sha256 | string or null | SHA-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_url | string | The record page. |
verify_url | string | The 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.
Related endpoints
| Endpoint | Auth | Page |
|---|---|---|
POST /api/mcp | Same token | MCP server |
POST /api/verify/hash, POST /api/verify/file, GET /api/records/{id}/public | None | Verification API |
/api/scim/v2/{orgId}/… | Token with scim_users or scim_groups | SCIM and audit stream |
GET /api/orgs/{orgId}/audit-stream | Token with audit_stream | SCIM and audit stream |
Fuentes
- OpenAPI Specification 3.1.0 — a fecha de 2026-11-26
- RFC 3339, Date and Time on the Internet (ISO 8601 profile) — a fecha de 2026-11-26
Notas de cambios
- 2026-11-26 — First published.
¿Ha encontrado un error? Escriba a sales@authmarks.com y corregiremos la página indicando la fecha de la corrección.