Developers

Authmarks API authentication for Australian uni IT teams: organisation tokens and scopes

How Authmarks organisation API tokens work: the amk_ format, scopes and the plan features behind them, expiry, rotation, revocation, safe storage, and what to do if a token leaks from your uni's systems.

Published 2026-11-26 · 5 min read

AuthBearer token (in the Authorization header)
Token formatamk_ then 43 base64url characters
StorageSHA-256 hash only; displayed once
Live tokensUp to 20 per organisation
ExpiryOptional, 1 to 730 days
Who manages tokensOrganisation owners and admins

What this page covers: everything you need to issue, scope, store, rotate and revoke the tokens that call Authmarks. There is one kind of credential, the organisation API token, and it is used by the REST API, the MCP server, and SCIM provisioning and the audit stream. Every token belongs to a single organisation and holds only the scopes you pick. For a uni IT services team, that means each integration can be given exactly the access it needs and nothing more.

How tokens work

PropertyDetail
Formatamk_ then 43 base64url characters (32 random bytes).
ShownOnce only, when it is created or rotated. Copy it at that moment.
StoredOnly as a SHA-256 hash, plus the first 12 characters so admins can tell tokens apart. Authmarks has no way to show you a token again.
OrganisationEach token belongs to one organisation. Used with a different organisation's id, it answers 401 just like an unknown token.
ScopesSet when the token is created. To change them, create a new token and revoke the old one.
Live tokensUp to 20 live tokens (neither revoked nor expired) per organisation.
ExpiryOptional, 1 to 730 days. If you don't set one, the token lasts until it is revoked.
Last usedThe Developers tab displays when each token was last used.
WhoOwners and admins create, rotate and revoke tokens. Authmarks support can't create or rotate tokens, not even during a support session.
AuditEach create, rotate and revoke is written to the organisation's admin audit log before it takes place. Neither the token nor its hash is ever logged.

Send the token as a bearer token with every request:

curl -sS "https://www.authmarks.com/api/v1/orgs/$AUTHMARKS_ORG/assignments" \
  -H "Authorization: Bearer $AUTHMARKS_TOKEN"

Never put a token in a URL query string. URLs turn up in logs, browser history and referrer headers.

Scopes

ScopeWhat it allowsPlan feature needed
assignments_readGET /assignments (REST) and list_assignments (MCP).None
records_readGET /assignments/{id}/submissions and GET /records/{id} (REST); list_submissions and get_record (MCP).None
lms_readGET /lms-connections and GET /lms-connections/{id}/grade-returns (REST); list_lms_connections and list_grade_returns (MCP).LTI
scim_usersSCIM 2.0 Users plus the discovery endpoints. Creates, changes and deactivates members.SCIM
scim_groupsSCIM 2.0 Groups: moves people between the member, instructor and admin groups.SCIM
audit_streamGET /api/orgs/{orgId}/audit-stream, the NDJSON pull of the audit log for your SIEM.SIEM streaming

Points to note:

  • The three _read scopes and the REST API v1 are read-only. The two SCIM scopes can change membership, which is why they are kept apart.
  • A scope that depends on a plan feature can only be added once the organisation's plan includes that feature.
  • Any valid token, whatever scopes it holds, can call the MCP tool verify_hash, which runs the same check as the public verify-by-hash endpoint.
  • A missing scope answers 403 forbidden. The fix is a new token that holds the scope.

Least privilege: one job, one token, fewest scopes

JobScopes
LMS health check that raises an alert on failed grade returnslms_read
Nightly report of submissions not yet sealedassignments_read, records_read
AI coding agent exploring your data (MCP)Only what the task calls for, often just assignments_read
Provisioning from Okta or Microsoft Entra IDscim_users, scim_groups
SIEM collectoraudit_stream

Rules of thumb:

  • One token per tool or per person. Label it with the tool and its owner (siem-splunk-prod, agent-cursor-jlee). Revoking one never breaks another, and the last-used time shows you who is still active.
  • Keep write and read apart. Don't hand a reporting script the SCIM scopes.
  • Always set an expiry for anything that isn't a long-running service. Pick the shortest expiry the job needs; an agent for one project needs less than a standing script.

Store tokens safely

Do:

  • Keep tokens in a secrets manager (AWS Secrets Manager, Google Secret Manager, Azure Key Vault, HashiCorp Vault, 1Password, Doppler) or in your CI system's encrypted secrets.
  • Load them into environment variables when the job runs.
  • Limit who can read the secret to the service that uses it.

Don't:

  • Commit tokens to a repository, even a private one. Add .env to .gitignore.
  • Put tokens in client-side code (browser JavaScript, mobile apps, browser extensions). Anyone can read them there.
  • Paste tokens into chat, service desk tickets, AI prompts or screenshots.

Reading a token from the environment:

# .env (never committed)
AUTHMARKS_TOKEN=amk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AUTHMARKS_ORG=3f2a9c1e-8b7d-4e21-9a0f-5c6d7e8f9a01
const token = process.env.AUTHMARKS_TOKEN;
if (!token?.startsWith("amk_")) {
  throw new Error("AUTHMARKS_TOKEN is not set");
}
import os

token = os.environ.get("AUTHMARKS_TOKEN", "")
if not token.startswith("amk_"):
    raise SystemExit("AUTHMARKS_TOKEN is not set")

Add a secret-scanning rule for the amk_ prefix to your repository (for example a custom pattern amk_[A-Za-z0-9_-]{43} in gitleaks or your code host's scanner), so that a committed token is flagged straight away.

Rotate a token

Rotating creates a new token with the same label and scopes, and revokes the old one at the same instant.

  1. In Settings → Developers → API tokens, select Rotate beside the token.
  2. Copy the new token (it is shown once).
  3. Update the secret in your secrets manager or CI.
  4. Restart or redeploy the service that uses it.
  5. Look at the new token's last used time to confirm the service has picked it up.

The old token stops working straight away, so update the secret in the same change window. To rotate a busy service with no downtime, first create a second token with the same scopes, switch the service across, confirm it under last used, then revoke the old one.

Rotate on whatever schedule your organisation's security policy sets, when someone with access leaves, and any time you're not sure who has seen a token.

Revoke a token

Select Revoke beside the token. Revocation is immediate: the next request with that token answers 401. A revoked token can't be brought back. Revoked tokens remain in the list (and in the audit log) as a record.

If a token leaks

  1. Revoke it straight away in Settings → Developers. That cuts off access at once.
  2. Issue a replacement with the same scopes or fewer, and update the service.
  3. Work out what it could reach: its scopes and its last-used time.
  4. Check your admin audit log and, if you stream it, your SIEM for activity during that window.
  5. Remove the token from wherever it leaked (rewrite git history, delete the message, rotate any other secret kept alongside it).
  6. If you believe Authmarks data was exposed, follow your incident process and contact us as set out on the security page. In Australia, your uni's privacy office will also consider whether the Notifiable Data Breaches scheme under the Privacy Act 1988 applies; that is the institution's call, guided by its advisers and the OAIC's published guidance.

There is more in Security for integrations.

Errors you may see

StatusCause
401 unauthorizedNo Authorization header; an unknown, revoked or expired token; or another organisation's id.
403 forbiddenThe token doesn't hold the scope, or the plan doesn't include the feature the scope depends on.
429 rate_limitedMore than 600 requests a minute for the token, or more than 30 failed authentications a minute from your address. Wait Retry-After seconds.

Sources

Change notes

  • 2026-11-26 — First published for Australian readers.

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