GridBase
    Console

    Search the API reference

    Find an endpoint by name or path

    Auth

    What this credential is and what allowance is left on it.

    GET/auth/introspect
    GET/auth/limits
    How auth behaves

    Everything here is scoped to the caller

    GET /api/v2/auth/introspect describes the credential you presented, and nothing else. GET /api/v2/auth/limits reports the allowance on that same credential. Neither takes a user id, a token string or any other way to name a subject, so neither can be used to ask about somebody else.

    Minting and revoking live in the Account folder and are scoped the same way:

    to do thiscall
    mint a key for yourselfPOST /api/v2/account/tokens
    revoke a key you ownPOST /api/v2/account/tokens/{id}/revoke
    see what the presented key isGET /api/v2/auth/introspect
    see the allowance left on itGET /api/v2/auth/limits
    create a userPOST /api/v2/admin/users, behind the admin role

    There is no endpoint that takes a token string and reports whether it is valid: that is a credential-checking oracle, and introspection of the presented key answers the legitimate form of the question.

    Creating a user is an administrative act and sits behind the admin role — not behind a shared registration code, which is a secret with no owner, no expiry and no revocation.

    Introspect

    GET/api/v2/auth/introspect

    Describe the credential on this request.

    Modelled on RFC 7662 token introspection, with one difference that is the whole point: it describes the credential presented and takes no token as input. An endpoint that accepts a token string and reports whether it is valid is an oracle for testing credentials that are not yours.

    The secret is never echoed; the credential is named by token_id.

    api_versions and access are derived the same way v2mw.Capability derives them, by calling the same function -- a description that can disagree with the gate is worse than no description, because a client will believe it.

    active is always true in a successful response: an inactive credential does not get past the auth middleware. The field is present anyway because RFC 7662 clients branch on it, and a response shape that depends on the answer is worse than a constant.

    Errors

    401unauthorizedthe credential no longer exists
    Cache
    not cached.
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/auth/introspect" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": { "source": "auth_token" },
      "item": {
        "active": true,
        "token_id": "0ad163c0-...",
        "user_id": "8a16b84e-...",
        "scope": "api",
        "api_versions": ["v2"],
        "access": "read",
        "description": "Bruno docs v2",
        "expires_at": "2027-11-09T21:32:28.339576Z",
        "created_at": "2026-11-09T21:32:28.339576Z",
        "rate_limit": 10000,
        "allowed_cidrs": []
      }
    }
    Try it in the Explorer

    Limits

    GET/api/v2/auth/limits

    The rate allowance left on the calling credential.

    Worth knowing

    remaining and window_seconds are stated. A bare limit: 500 could be per second, minute or day; the window says which. It is per minute.

    used, not current -- which does not say current what. It is a count of calls used, not a limit.

    These figures are the token's allowance, not your account's. On v2 a second, account-wide per-minute bucket applies as well, shared by every token you own, and it is usually the smaller of the two. So remaining here can read comfortably while the next call is refused 429 rate_limited with detail.scope: "account". Your account allowance is reported by GET /account/profile under quotas.v2_account, and the RateLimit-* headers on every v2 response report whichever limit binds.

    The credential is read by its id, from token_id in the request context, rather than by re-reading the raw Authorization header and looking the secret up again.

    A failure is a 500, not a 400. The auth middleware has already accepted the request, so a failure here is the server's — answering 400 "invalid or expired token" would report a database blip as a bad credential.

    caller's allowance to the next.

    Errors

    401unauthorizedthe credential no longer exists
    Cache
    not cached. A cache keyed on path and query would replay one
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/auth/limits" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": { "source": "rate_limiter", "class": "measured",
                 "notes": ["the window is a rolling 60 seconds counted per token"] },
      "item": { "used": 1, "limit": 10000, "remaining": 9999, "window_seconds": 60 }
    }
    Try it in the Explorer