API settings
Settings has three tabs: General, MicroAuth plan and Activity. General holds the SDK connection, your test key, which responses are billed and the switch to pause the API. Only the workspace owner sees MicroAuth plan. Activity lists every change to the API, its customers and your team, and exports it as CSV or JSON.
SDK connection
Your API uses its SDK secret key (mas_...) to sync keys, limits and usage with MicroAuth. The card shows whether the SDK is connected, the start of the current key, which SDK your API runs with its version, and the last sync:
| Status | Meaning |
|---|---|
| Not connected yet | The SDK has never synced. Setup steps takes you to the Overview, where the steps are |
| Online | The SDK synced in the last three minutes |
| Idle | The SDK has synced before, but not in the last three minutes. Normal when your app is stopped or scaled to zero |
Rotate the SDK secret key
Rotate key creates a new key and shows it once. Use Copy key or Copy as .env line, then deploy it wherever your API runs.
Plan the switch
The old key stops working right away. At its next sync, within about 30 seconds, an app still using it answers every request with 503 until you deploy the new key. Have the new value ready to roll out before you rotate.
Usage your app already recorded with the old key is still accepted, so no billing is lost during the switch.
Test key
The Test key card manages the key you call your own API with. It belongs to a built-in test customer that is never charged and never counts as a customer. Create a new test key replaces the current one, and Revoke turns it off. See Send a test request.
Billable status codes
Open Advanced to choose which responses charge your customers. Only responses with these status codes are billed. The default is 200 OK alone, so errors never cost them anything.
Add any code from 100 to 599, for example 201 Created for an API that creates resources. At least one code is required, and Reset to default goes back to 200.
Every authenticated response still counts toward usage and quotas, whatever its status. Only billing depends on this list. The SDK picks up a change on its next snapshot.
Suspend this API
Suspend API, at the bottom of the page, pauses everything: the portal stops working for customers, sign-ins and sign-ups are blocked, and SDK sync is paused, so your API stops accepting customer keys. You confirm by typing the API's name. Nothing is deleted, and Unsuspend API brings it all back.
Moved elsewhere
- The details for the portal's welcome request are now on the Quickstart page tab under Portal.
- Who can sign up is now at the top of Customers.