Authentication
Meridian authenticates with bearer tokens. There are no API keys and no basic auth; a single token type keeps the audit trail coherent.
Token types
Bootstrap tokens are printed once at first boot and expire after 15 minutes. User tokens inherit the permissions of the user who created them and expire after 90 days by default. Service tokens are not tied to a user, carry an explicit scope list, and do not expire unless you set an expiry.
Scopes
Scopes are write, read, admin, and
billing. They do not nest: an admin token cannot write points unless
it also carries write. This is deliberate — it makes the blast radius of a leaked
admin token smaller.
Rotation
Rotate with POST /v1/auth/token/rotate. The old token stays valid for a grace
period of 60 minutes so a rolling deploy does not have to be atomic. Revoke immediately with
DELETE /v1/auth/token/{id} when a token is known to be compromised.
Single sign-on
SAML SSO is available on Business and Enterprise, added in v3.2.0. SCIM provisioning is Enterprise only. When SSO is enforced, existing user tokens keep working until they expire; service tokens are unaffected.