Skip to main content

Getting an API key

API keys are managed in your ClassQuill organisation settings:
  1. Log in to ClassQuill as an org owner or admin
  2. Go to Settings → Developers
  3. Click Create new key, give it a name (e.g. “Xero integration”), and optionally set an expiry date
  4. Copy the key — it is shown only once and cannot be retrieved again
Store your API key securely (e.g. as an environment variable or in a secrets manager). Never commit it to source control or expose it in client-side code.

Using your API key

Include the key in the Authorization header of every request:

Example request

Example response

Key format

All ClassQuill API keys start with ei_live_ followed by 64 hex characters:

Scopes & permissions

Every key is granted one or more scopes when you create it, which control what it can do: New keys are read-only by default — grant a write scope only when an integration needs to change data. A request to a write endpoint with a read-only key returns 403.

Key security

  • Keys are stored as SHA-256 hashes — even ClassQuill cannot retrieve the raw key after creation
  • Keys are scoped to your organisation — they cannot access another org’s data
  • If a key is compromised, revoke it immediately in Settings → Developers

Key rotation

To rotate a key without downtime:
  1. Create a new key in settings
  2. Update your integration to use the new key
  3. Verify the integration is working with the new key
  4. Revoke the old key

Expiry

Keys can optionally have an expiry date. Requests made after the expiry date return:

Error responses