Security best practice for Authmarks API integrations (UK)
How to run an Authmarks integration safely at a UK university or college: least-privilege tokens, token lifecycle, HTTPS only, polling rather than webhooks, minimal handling of student data, incident response and reporting a vulnerability.
Published 2026-11-26 · 5 min read
| Auth | Bearer token (amk_ organisation API token) |
|---|---|
| Access | REST API v1 and MCP are read-only |
| Transport | HTTPS only |
| Webhooks | Not offered by the API; poll instead |
| Report a vulnerability | https://www.authmarks.com/security |
What you get: a checklist for running an Authmarks integration that stays sound for years, not only through the first demo. It covers who receives 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 is written for university IT services, information security teams and VLE developers, and it applies to the REST API, the MCP server, SCIM and the audit stream and your LMS connection.
What the platform does for you
| Control | Detail |
|---|---|
| Read-only API | REST API v1 and the MCP server only read. No endpoint or tool creates, changes or deletes data. |
| Scoped tokens | Every token holds only the scopes chosen when it was created. A missing scope replies 403. |
| One organisation per token | Another organisation's id replies 401, so a token cannot discover other organisations. |
| Hashed at rest | Tokens are stored as SHA-256 hashes and shown just once. |
| Rate limits | 600 requests a minute per token; 30 failed authentications a minute per address. |
| Instant revocation | A revoked token replies 401 on the very next request. |
| Audit log | Every token creation, rotation and revocation, and every SCIM write, is recorded in the admin audit log, which you can stream to a SIEM. |
| No scores in the API | The API returns facts about sealed records, never scores, percentages or detector output. |
| No caching | Responses carry Cache-Control: no-store. |
Least privilege
- One token per integration and per person. A shared token cannot be revoked without breaking everything that uses it, and its last-used time tells you nothing.
- Fewest scopes. An LMS health check needs
lms_readalone. A SIEM collector needsaudit_streamalone. Grantrecords_readonly to jobs that genuinely need student submissions. - Keep directory write access apart.
scim_usersandscim_groupscan change membership, so use them only in your identity provider. - Few admins. Only owners and admins can create tokens. Keep that group small and review it regularly.
The scope table is in Authentication and scopes.
Token lifecycle
| Stage | Practice |
|---|---|
| Create | Label it with the tool and its owner. Set an expiry (1 to 730 days), as short as the job permits. |
| Store | A secrets manager or encrypted CI secret, loaded into an environment variable. Never in code, repositories, client-side apps, service desk tickets, chat or AI prompts. |
| Use | The Authorization: Bearer header only. Never in a URL. |
| Monitor | Check last used in Settings → Developers every month. Alert on token changes in your SIEM. |
| Rotate | On a schedule, whenever someone with access leaves, and whenever in doubt. |
| Retire | Revoke tokens left unused for longer than your information security policy allows, and tokens for tools you no longer run. |
An organisation can hold up to 20 live tokens. If you are close to that limit, you almost certainly have tokens to retire.
Network
- HTTPS only. Always call
https://www.authmarks.com. Do not 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 in a browser. The MCP server refuses browser requests from other sites.
- Egress allowlist. If your campus network restricts outbound traffic, allow
www.authmarks.comon port 443. - Timeouts. Set a request timeout (30 seconds is ample) so a stuck call never holds a job indefinitely.
Webhooks are not offered: poll instead
The REST API and the MCP server do not send webhooks. That spares your integration a public inbound endpoint needing its own authentication and replay protection, and one less hole in your firewall.
To respond 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, a 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 skips an event. See SCIM and audit stream. The audit stream (and only the audit stream) can also be delivered to a SIEM destination you set up in organisation settings; an admin configures that, not the API.
Handle student data with care
Some responses contain personal data: student.name and student.email in submissions, and people in SCIM. In the UK, data of this kind falls within UK GDPR and the Data Protection Act 2018, which give institutions duties around purpose, minimisation and security; your data protection officer decides how those apply to each integration. In the United States, records like these are often education records under FERPA. Wherever you copy the data, your institution's own policies apply.
- Request only what you need. If a report needs counts, do not store names.
- Keep exports minimal and short-lived. Delete intermediate files once the job ends. Do not email spreadsheets of student data.
- Keep it out of logs. Log ids and counts, not names or email addresses.
- No real data in tests. Use invented fixtures.
- Think before sending data to an AI model. Anything an agent reads through MCP goes to that agent's model provider. Use tokens without
records_readfor agents that do not need student data, and follow your institution's rules on AI tools. - Treat ids as opaque strings. Do not attempt to decode them.
The audit stream already uses pseudonyms for people and carries no document content, names or email addresses.
Incident response
If you suspect a token has leaked or an integration has misbehaved:
- Contain. Revoke the token in Settings → Developers. It stops working at once.
- Replace. Issue a new token with the same or fewer scopes and update the service.
- Assess the impact. Note the token's scopes and last-used time; together they limit what it could have read.
- Investigate. Review the admin audit log, or your SIEM if you stream it, for the period in question.
- Clean up. Remove the token from wherever it leaked (git history, chat, tickets) and rotate any secret stored beside it.
- Notify. Follow your institution's incident and breach-notification process; under UK GDPR, whether a matter is reported to the ICO is for your data protection officer to decide. If you believe Authmarks itself is affected, tell us through the security page.
- Learn. Write down how it happened and add a control (secret scanning, 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. Include 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 disclose the issue publicly before we have fixed it.
Healthy integration checklist
- One labelled token per integration and person, carrying the fewest scopes.
- Every token has an expiry.
- 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 set.
-
429handled withRetry-After;503retried with backoff;401and403alert a person. - Student names and email addresses kept out of logs, tests and AI prompts unless needed.
- 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 recorded rotation date for every integration.
Related pages
Sources
- U.S. Department of Education, FERPA — as of 2026-11-26
- OWASP API Security Top 10 (2023) — as of 2026-11-26
- NIST SP 800-61 Rev. 3, Incident Response Recommendations — as of 2026-11-26
Change notes
- 2026-11-26 — First published.
Spotted an error? Email sales@authmarks.com and we will correct the page and date the correction.