Skip to main content
Requests are authenticated with two headers:

How to get a key

Keys are issued by MEGA and delivered to you securely — there is no self-serve key portal. To request one, contact your MEGA account manager (or email [email protected]). Each key is:
  • Customer-locked — it only works for the one customer it was issued for. Using it with a different x-customer-id returns 403.
  • Scoped — it carries only the permissions you were granted (see below).
  • Shown once — store it in a secret manager. If it leaks, ask us to rotate it.

Scopes

Endpoints require specific scopes. Your key only carries the scopes you were granted; calling an endpoint your key isn’t scoped for returns 403.

Server-to-server only

These are secret-key endpoints. Call them from your backend only. Never expose the token to a browser, mobile app, or any client the end-user controls.

Errors

All errors use the standard error envelope.