Développeurs

Security best practices for Authmarks API integrations

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

Publié le 2026-11-26 · 5 min de lecture

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 for years, not just through the first demo. It covers who gets which token, how tokens live and die, 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 read. There are no endpoints or tools that create, change or delete data.
Scoped tokensEach token holds only the scopes chosen when it was made. A missing scope answers 403.
One organisation per tokenAnother organisation's id answers 401, so a token cannot discover other organisations.
Hashed at restTokens are stored as SHA-256 hashes and shown once.
Rate limits600 requests a minute per token; 30 failed authentications a minute per address.
Instant revocationA revoked token answers 401 on the next request.
Audit logEvery token create, rotate and revoke, and every SCIM write, is in the admin audit log, which you can stream to a SIEM.
No scores in the APIThe API returns sealed-record facts, 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, and its last-used time tells you nothing.
  • Fewest scopes. An LMS health check needs only lms_read. A SIEM collector needs only audit_stream. Only give records_read to jobs that need student submissions.
  • Keep directory write access separate. scim_users and scim_groups can change membership. Use them only in your identity provider.
  • Few admins. Only owners and admins can make tokens. Keep that group small and review it.

The scope table is in Authentication and scopes.

Token lifecycle

StagePractice
CreateLabel with the tool and owner. Set an expiry (1 to 730 days), as short as the job allows.
StoreA secrets manager or encrypted CI secret, loaded into an environment variable. Never in code, repositories, client-side apps, tickets, chat or AI prompts.
UseAuthorization: Bearer header only. Never in a URL.
MonitorCheck last used in Settings → Developers monthly. Alert on token changes in your SIEM.
RotateOn a schedule, when someone with access leaves, and whenever in doubt.
RetireRevoke tokens that have gone 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 near that limit, you probably have tokens to retire.

Network

  • HTTPS only. Always call https://www.authmarks.com. Do not disable 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 network restricts outbound traffic, allow www.authmarks.com on port 443.
  • Timeouts. Set a request timeout (30 seconds is plenty) so a stuck call does not hold a job forever.

Webhooks are not offered: poll instead

The REST API and the MCP server do not send webhooks. That keeps your integration free of a public inbound endpoint that would need its own authentication and replay protection.

To react to changes:

  • Poll the API on a schedule that fits the job, for example every 15 minutes for an LMS health check. With limit=200, a poll costs only a few 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 (only) can also be delivered to a SIEM destination you configure in organisation settings; that is set up by an admin, not through 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 United States, records like these are often education records under FERPA, and your institution's policies apply wherever you copy them.

  • Ask only for what you need. If a report needs counts, do not store names.
  • Keep exports minimal and short-lived. Delete intermediate files when the job ends. Do not email spreadsheets of student data.
  • Keep it out of logs. Log ids and counts, not names or emails.
  • No real data in tests. Use made-up fixtures.
  • Think before you send data to an AI model. Anything an agent reads through MCP goes to that agent's model provider. Use tokens without records_read for agents that do not need student data, and follow your institution's rules for AI tools.
  • Use 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 leaked or an integration misbehaved:

  1. Contain. Revoke the token in Settings → Developers. It stops working immediately.
  2. Replace. Issue a new token with the same or fewer scopes and update the service.
  3. Scope the impact. Note the token's scopes and last-used time; those bound what it could read.
  4. Investigate. Review the admin audit log, or your SIEM if you stream it, for the window in question.
  5. Clean up. Remove the token from wherever it leaked (git history, chat, tickets) and rotate any secret stored next to it.
  6. Notify. Follow your institution's incident and breach-notification process. 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, shorter expiry, narrower scopes).

Report a vulnerability

If you find a security problem in Authmarks, please report it privately as described on our security page. Include what you found, how to reproduce it and what an attacker could do. 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 labeled token per integration and person, with the fewest scopes.
  • An expiry on every token.
  • Tokens in a secrets manager or CI secrets, loaded as environment variables.
  • Secret scanning for amk_[A-Za-z0-9_-]{43} in every repository.
  • All calls over HTTPS from server-side code, with timeouts.
  • 429 handled with Retry-After; 503 retried with backoff; 401 and 403 alert a person.
  • Student names and emails kept out of logs, tests and AI prompts unless required.
  • Monthly review of last-used times; unused tokens revoked.
  • Token changes and SCIM writes visible in your SIEM.
  • A named owner and a written rotation date for each integration.

Notes de modification

  • 2026-11-26 — First published.

Vous avez repéré une erreur ? Écrivez à sales@authmarks.com et nous corrigerons la page en datant la correction.