Developers

Security best practices for Authmarks API integrations (India)

For university IT cells and developers in India: running an Authmarks integration safely with least-privilege tokens, a clear token lifecycle, HTTPS only, polling in place of webhooks, minimal handling of student data, incident response and vulnerability reporting.

Published 2026-11-26 · 5 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 operating an Authmarks integration that remains sound for years, not merely 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, how to respond 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 data. No endpoint or tool creates, changes or deletes anything.
Scoped tokensA token carries only the scopes selected when it was created. A missing scope returns 403.
One organisation per tokenAnother organisation's id returns 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 for each token; 30 failed authentications a minute from each address.
Instant revocationA revoked token returns 401 on its very next request.
Audit logEvery 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 APIThe API returns facts about sealed records, never scores, percentages or detector output.
No cachingResponses carry Cache-Control: no-store.

Least privilege

  • One token for each integration and each person. A shared token cannot be revoked without breaking everything that uses it, and its last-used time tells you nothing useful.
  • As few scopes as possible. An LMS health check needs only lms_read; a SIEM collector needs only audit_stream. Grant records_read solely to jobs that need student submissions.
  • Keep directory write access apart. scim_users and scim_groups can change membership, so use them only within your identity provider.
  • A small group of admins. Only owners and admins can create tokens. Keep that group small and review it regularly.

The table of scopes is in Authentication and scopes.

Token lifecycle

StageGood practice
CreateLabel the token with the tool and its owner. Set an expiry (1 to 730 days), as short as the job permits.
StoreKeep it in a secrets manager or an encrypted CI secret and load it into an environment variable. Never place it in code, repositories, client-side apps, tickets, chat or AI prompts.
UseSend it only in the Authorization: Bearer header, never in a URL.
MonitorCheck last used under Settings → Developers every month, and set SIEM alerts for token changes.
RotateOn a fixed schedule, whenever someone with access leaves, and whenever you are unsure.
RetireRevoke tokens left unused for longer than your security policy permits, and tokens for tools you no longer operate.

An organisation may hold up to 20 live tokens. If you are close to that limit, some tokens are probably ready to be retired.

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, and never from a web page running in a browser. The MCP server refuses browser requests that come 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 that a stalled call cannot hold up a job indefinitely.

Webhooks are not offered: poll instead

Neither the REST API nor the MCP server sends webhooks. This spares your integration a public inbound endpoint that would need its own authentication and replay protection.

To respond to changes:

  • Poll the API on a schedule suited to the job, for instance 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 configured in organisation settings; an admin sets that up there, not through the API.

Handle student data with care

Some responses include personal data: student.name and student.email in submissions, and people in SCIM. In India, the Digital Personal Data Protection Act, 2023 governs the processing of digital personal data such as this, and your institution's policies apply wherever you copy it; how the Act applies is for your institution's advisers to decide. (In the United States, records like these are often education records under FERPA.)

  • Request only what you need. If a report needs counts, do not keep names.
  • Keep exports minimal and short-lived. Delete intermediate files once the job finishes, and do not email spreadsheets of student data.
  • Keep it out of logs. Log ids and counts rather than names or email addresses.
  • No real data in tests. Use invented fixtures.
  • Think before sending data to an AI model. Whatever an agent reads through MCP goes to that agent's model provider. Give agents that do not need student data tokens without records_read, 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 contains no document content, names or email addresses.

Incident response

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

  1. Contain. Revoke the token under Settings → Developers. It stops working at once.
  2. Replace. Issue a new token with the same or fewer scopes and update the service.
  3. Assess 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 to one, for the period concerned.
  5. Clean up. Remove the token from wherever it leaked (git history, chat, tickets) and rotate any secret kept alongside it.
  6. Notify. Follow your institution's incident and breach-notification process, which may involve CERT-In or the Data Protection Board of India as your institution's advisers decide. If you believe Authmarks itself is affected, inform us through the security page.
  7. Learn. Record how it happened and add a control (secret scanning, a shorter expiry, narrower scopes).

Report a vulnerability

If you discover a security problem in Authmarks, please report it privately as set out on our security page. Describe what you found, how to reproduce it and what an attacker could achieve. 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

  • A labelled token for each integration and person, with the fewest scopes.
  • An expiry set on every token.
  • Tokens held in a secrets manager or CI secrets and loaded as environment variables.
  • Secret scanning for amk_[A-Za-z0-9_-]{43} in 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 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 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.