x-api-key header. The key authenticates as your organization with ORG_ADMIN
rights on its own resources.
Getting your API key
The plaintext key is shown exactly twice: when the organization is created, and each time you rotate it. Treat the value as opaque — the prefix differs by how the organization was created (org_live_… or mc_…) and is not part of the contract.
1
At signup
POST /api/auth/register-organization returns 201 with the key at
data.organization.apiKey. Store it then.2
From the dashboard
Log in to the dashboard and read it there.
3
By rotating
POST /api/organizations/me/api-key/rotate returns { apiKey, apiSecret } in
plaintext once, and the previous key stops working immediately.Managing the key
A revoked key is rejected by
x-api-key auth with 401 UNAUTHORIZED even though the
organization still exists. Revocation is reversible by rotating.
Auth errors
Notes
- Bearer JWT tokens also exist, but they’re for the MicroCrop dashboard
(short-lived, per-user, with per-role capabilities). For server-to-server
integration, always use the
x-api-keyheader. - Authentication identifies which organization you are; it does not bypass KYB gating or the tier gate.
- Requests are rate limited — see Rate limits.