Developers

Security best practices for Authmarks API integrations at Australian unis and schools

How to run an Authmarks integration safely: least-privilege tokens, the token lifecycle, HTTPS only, polling rather than webhooks, minimal handling of student personal information, incident response and reporting a vulnerability.

Published 2026-11-26 · 6 min read

AuthBearer token (amk_ organisation API token)
AccessREST API v1 and MCP are read-only
TransportHTTPS only
WebhooksNot offered by the API; poll instead
Report a vulnerabilityhttps://www.authmarks.com/security

What you get: a checklist for running an Authmarks integration that stays healthy semester after semester, not just through the first demo. It covers who gets which token, how tokens are created and retired, network rules, why there are no webhooks and what to do instead, how to keep student data to a minimum, what to do when something goes wrong, and how to report a vulnerability to us. It applies to the REST API, the MCP server, SCIM and the audit stream and your LMS connection.

What the platform does for you

ControlDetail
Read-only APIREST API v1 and the MCP server only ever read. No endpoint or tool creates, changes or deletes data.
Scoped tokensEach token carries only the scopes picked when it was created. A missing scope gets a 403.
One organisation per tokenAnother organisation's id gets a 401, so a token cannot be used to discover other organisations.
Hashed at restTokens are stored as SHA-256 hashes and displayed only once.
Rate limits600 requests a minute per token; 30 failed authentications a minute per address.
Instant revocationA revoked token gets a 401 on its very next request.
Audit logEvery token creation, rotation and revocation, and every SCIM write, goes into the admin audit log, which you can stream to a SIEM.
No scores in the APIThe API returns facts about sealed records, never scores, percentages or detector output.
No cachingResponses carry Cache-Control: no-store.

Least privilege

  • One token per integration and per person. A shared token cannot be revoked without breaking everyone who relies on it, and its last-used time tells you nothing useful.
  • Fewest scopes possible. An LMS health check needs only lms_read. A SIEM collector needs only audit_stream. Hand out records_read only to jobs that genuinely need student submissions.
  • Keep directory write access apart. scim_users and scim_groups can change membership, so use them only in your identity provider.
  • Keep admins few. Only owners and admins can create tokens. Keep that group small and review it regularly.

The scope table lives in Authentication and scopes.

Token lifecycle

StageGood practice
CreateLabel it with the tool and the owner. Set an expiry (1 to 730 days), as short as the job allows.
StoreIn a secrets manager or an encrypted CI secret, loaded into an environment variable. Never in code, repositories, client-side apps, service desk tickets, chat or AI prompts.
UseOnly in the Authorization: Bearer header. Never in a URL.
MonitorCheck last used in Settings → Developers each month. Set an alert on token changes in your SIEM.
RotateOn a regular schedule, whenever someone with access leaves, and any time you are unsure.
RetireRevoke tokens that have sat unused for longer than your security policy allows, and tokens for tools you no longer run.

An organisation can hold up to 20 live tokens. If you are getting close to that, you probably have some to retire.

Network

  • HTTPS only. Always call https://www.authmarks.com. Never switch off certificate checks in your HTTP client (curl -k, verify=False, NODE_TLS_REJECT_UNAUTHORIZED=0).
  • Server-side only. Call the API from servers, CI or desktop tools, never from a web page running in a browser. The MCP server refuses browser requests coming from other sites.
  • Egress allowlist. If your campus network restricts outbound traffic, allow www.authmarks.com on port 443.
  • Timeouts. Set a request timeout (30 seconds is ample) so a stuck call cannot hold up a job indefinitely.

Webhooks are not offered: poll instead

The REST API and the MCP server send no webhooks. That spares your integration a public inbound endpoint, which would need authentication and replay protection of its own.

To react to changes:

  • Poll the API on a schedule that suits the job, for example every 15 minutes for an LMS health check. With limit=200, each poll costs only a handful of requests.
  • Pull the audit stream for security events. It is ordered, gap-free and hash-chained, so a cursor never misses an event. See SCIM and audit stream. The audit stream (and only the audit stream) can also be delivered to a SIEM destination you configure in organisation settings; an admin sets that up there, not through the API.

Handle student data with care

Some responses contain personal information: student.name and student.email in submissions, and people in SCIM. In Australia, information like this is generally personal information under the Privacy Act 1988 and the Australian Privacy Principles, and many public universities and schools also have duties under their state's privacy law. In the United States, records like these are often education records under FERPA. Whichever applies, your institution's own policies follow the data wherever you copy it, and its privacy office and advisers decide how the law applies.

  • Ask only for what you need. If a report only needs counts, do not store names.
  • Keep exports small and short-lived. Delete intermediate files when the job finishes. Do not email spreadsheets of student data around.
  • Keep it out of logs. Log ids and counts, not names or email addresses.
  • No real data in tests. Use made-up fixtures.
  • Think before sending data to an AI model. Anything an agent reads through MCP goes to that agent's model provider, which may be located overseas. Give agents that do not need student data tokens without records_read, and follow your institution's rules for AI tools.
  • Treat ids as opaque strings. Do not try to decode them.

The audit stream already uses pseudonyms for people and carries no document content, names or emails.

Incident response

If you suspect a token has leaked or an integration has misbehaved:

  1. Contain. Revoke the token in Settings → Developers. It stops working straight away.
  2. Replace. Issue a new token with the same or fewer scopes and update the service.
  3. Gauge the impact. Note the token's scopes and last-used time; together they limit what it could have read.
  4. Investigate. Review the admin audit log, or your SIEM if you stream it there, for the period in question.
  5. Clean up. Remove the token from wherever it leaked (git history, chat, tickets) and rotate any secret stored alongside it.
  6. Notify. Follow your institution's incident and breach-notification process. Under the Notifiable Data Breaches scheme, organisations covered by the Privacy Act generally have to assess suspected breaches and notify the OAIC and affected people when a breach is likely to cause serious harm; your privacy office makes that call. If you believe Authmarks itself is affected, tell us through the security page.
  7. Learn. Write down how it happened and add a control (secret scanning, a shorter expiry, narrower scopes).

Report a vulnerability

If you find a security problem in Authmarks, please report it privately as set out on our security page. Tell us what you found, how to reproduce it and what an attacker could do with it. Please do not access other people's data, run denial-of-service tests or share the issue publicly before we have fixed it.

Healthy integration checklist

  • One labelled token per integration and per person, with the fewest scopes.
  • An expiry set on every token.
  • Tokens kept in a secrets manager or CI secrets and loaded as environment variables.
  • Secret scanning for amk_[A-Za-z0-9_-]{43} across every repository.
  • Every call made over HTTPS from server-side code, with timeouts.
  • 429 handled with Retry-After; 503 retried with backoff; 401 and 403 raise an alert to a person.
  • Student names and emails kept out of logs, tests and AI prompts unless genuinely required.
  • A monthly review of last-used times, with unused tokens revoked.
  • Token changes and SCIM writes visible in your SIEM.
  • A named owner and a written rotation date for every integration.

Change notes

  • 2026-11-26 — First published.

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