You generate the key pair, not us
StableMint never holds your private key. You generate an RSA key pair, upload the public half when you create the service account, and keep the private half on your own infrastructure.stablemint-public.pem when creating the service account. Store
stablemint-private.pem in your secret manager — if you lose it, you cannot sign requests and must
create a new service account with a fresh key.
Limits
Five per partner
You may hold up to five active service accounts at a time.
Empty by default
A new service account has no permissions. Grant only what it needs.
Permissions
Permissions are granted per service account from the dashboard, and they are what separates a service account that can read from one that can move money. A call made without the permission it needs returns403 — a valid signature is not enough on its own.
A service account cannot widen its own access. Reading and changing permissions requires a
signed-in dashboard user; those endpoints reject signed service-account requests. This is what
stops a leaked credential from escalating itself.
Rotating without downtime
Because you can hold five service accounts at once, rotation does not require a maintenance window:1
Create a second service account
Generate a new key pair and register the new public key. Grant it the same permissions as the
one you are replacing.
2
Deploy the new credentials
Roll the new API key, API secret and private key out to your services. Both accounts are valid
at once, so there is no cutover moment.
3
Confirm traffic has moved
Check that calls are arriving under the new API key before going further.
4
Revoke the old account
Delete the previous service account from the Developer Hub. Signatures made with its key stop
verifying immediately.
Sandbox and production are separate
Sandbox and production credentials are issued independently and are not interchangeable. A sandbox service account cannot call production, and vice versa.Next
Authentication
How to sign a request with these credentials.
Sandbox
Exercise the full flow without moving real money.