Skip to content

API reference ​

Every operation, generated from the OpenAPI document, which you can also download. Platform operations live on https://microauth.com and authenticate with a workspace API key. SDK operations live on https://api.microauth.com and use the SDK secret key. Guides for both are in Platform API and Any language (HTTP).

Each operation shows its authentication:

  • Workspace API key or dashboard session: callable from scripts.
  • Dashboard session: only from the signed in dashboard, for actions that need a person.
  • SDK secret key: your API's server, through the SDK or your own code.
  • None: public, mostly sign up and sign in.

Customers ​

Customers of an API, with their keys, limits, credit, ledger and usage.

GET List customers ​

/api/v1/services/{id}/customers

Auth Workspace API key or dashboard sessionServer https://microauth.com

Parameters

idrequiredstring (uuid)Service ID.
query statusstringOne of active, pending, suspended.
query qstringUp to 100 characters.
query plan_idstring
query cursorstringnext_cursor from the previous page.
query limitinteger1 to 200. Defaults to 50.

Response 200

customersarray of objects or null
customers[].balance_microinteger
customers[].created_atstring (date-time)
customers[].custom_limitsboolean
customers[].emailstring
customers[].idstring
customers[].is_testboolean
customers[].last_used_atstring (date-time)
customers[].month_requestsinteger
customers[].namestring
customers[].plan_idstring
customers[].plan_namestring
customers[].statusstringOne of active, pending, suspended.
next_cursorstring
Example request
curl "https://microauth.com/api/v1/services/{id}/customers" \
  -H "Authorization: Bearer mak_..."
Example response
{
  "customers": [
    {
      "balance_micro": 0,
      "created_at": "2026-10-11T12:00:00Z",
      "custom_limits": true,
      "email": "string",
      "id": "string",
      "is_test": true,
      "last_used_at": "2026-10-11T12:00:00Z",
      "month_requests": 0,
      "name": "string",
      "plan_id": "string",
      "plan_name": "string",
      "status": "active"
    }
  ],
  "next_cursor": "string"
}

POST Invite a customer to the portal