Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io

    Auth API Reference

    Thirty-two operations

    Generated from openapi.yaml, which is the source of truth for every BillDog SDK. If a page here and the spec disagree, the spec is right.

    Base URL and authentication

    Code
    POST https://api.billdog.io/v1/<endpoint>
    Content-Type: application/json
    X-BillDog-API-Key: bd_public_live_...

    The key is read from X-BillDog-API-Key only — never from Authorization: Bearer or the query string. The prefix selects the environment before any lookup.

    CredentialUsed by
    Public key bd_public_*Everything under Auth. Safe to ship in an app
    Secret key bd_secret_*manage-jwt-templates. Server-side only
    Operator sessionDashboard admin endpoints, owner or admin role
    SCIM token bd_scim_*SCIM only. Bound to one connection
    NoneJWKS, and the SAML ACS — whose credential is the signed assertion

    The envelope

    {
      "success": true,
      "data": { },
      "meta": {
        "request_id": "req_...",
        "api_version": "1.0.0",
        "timestamp": "2026-08-30T12:00:00.000Z"
      }
    }

    Keep the request_id from a failed response. It is what lets an operator find the matching server-side log.

    Auth — the client surface

    Public key. Every endpoint answers 403 ACCESS_DENIED until auth is enabled on the project.

    MethodPathSummaryAuth
    POST/auth-configWhat this project requires before a sign-up is acceptedPublic key
    POST/auth-sign-upBegin a sign-upPublic key
    POST/auth-prepareSend a one-time codePublic key
    POST/auth-attemptSubmit a factor. identifier is required for a first factor and optional for totp / backup_code, where mfa_token names the accountPublic key
    POST/auth-tokenRefresh a sessionPublic key
    POST/auth-revokeSign outPublic key
    POST/auth-sessionsList a user's sessionsPublic key
    POST/auth-introspectIs this token live right now?Public key
    GET/auth-jwksPublic keys for offline verificationNone
    POST/auth-set-passwordSet a password — by reset code, or as a signed-in changePublic key
    POST/auth-accountThe signed-in user's own account viewPublic key
    POST/auth-user-factorsManage second factorsPublic key
    POST/auth-passkeyWebAuthn registration and sign-inPublic key
    POST/auth-orgOrganizations, members, invitations and domainsPublic key
    POST/auth-oauth-verifyExchange a provider ID token for a sessionPublic key
    POST/auth-oauth-startBegin a redirect sign-in (PKCE)Public key
    POST/auth-oauth-callbackComplete a redirect sign-in. Answers mfa_required + mfa_token with no session for an MFA-enrolled account, exactly like auth-attemptPublic key
    GET / POST/auth-oauth-bounceWhere a provider returns to — Apple's form POST, and every native flow — before being forwarded to where the flow began. Registered with the provider once; not called by your codeNone
    POST/auth-sso-startRoute a work email to its enterprise connectionPublic key
    POST/auth-sso-callbackComplete an OIDC enterprise sign-inPublic key
    POST/auth-sso-acs/{connection_id}SAML assertion consumer serviceNone
    GET/auth-sso-acs/{connection_id}/metadataSP metadata for the IdPNone

    auth-set-password — the two modes

    One endpoint, two proofs, named by mode. The schema is a discriminated union: a reset body has no refresh_token field at all, so a proxy that injects one (the hosted Worker does, for change mode) cannot turn a reset into a change. A body with no mode is still accepted for now — a code means reset, a refresh_token means change, both or neither is a 400 — but name the mode; that fallback exists for the in-flight hosted card and will go.

    {
      "mode": "reset",
      "identifier": "ada@example.com",
      "identifier_kind": "email",
      "code": "123456",
      "new_password": "a-new-long-passphrase"
    }
    • The new password is checked against the project policy (length, composition, breach) before anything is written; a refusal is a 400 naming the rule.
    • A wrong code, an unknown identifier, an expired code and a wrong current password are all the same opaque 401. A wrong code also burns one of that code's attempts.
    • Only a reset_password code is accepted here, and auth-attempt refuses that purpose — neither endpoint takes the other's proof.
    • Limits: 3 per 10 seconds, keyed on the normalised identifier for a reset and on the user for a change, scoped to the project and environment; past that a 429 with Retry-After.
    • A reset also clears any lockout on the account, so the brand-new password is not refused for fifteen minutes by a lock the person set off themselves.

    Operator surface

    MethodPathSummaryAuth
    POST/manage-auth-settingsProject auth settings, SSO connections, SCIM tokens and signing keysOperator session
    POST/manage-jwt-templatesJWT templates, programmaticallySecret key
    POST/auth-provision-keysProvision or rotate signing keysOperator session
    POST/auth-importImport users from Clerk, Auth0 or FirebaseOperator session
    POST/auth-impersonateAct as a user, for supportOperator session

    SCIM 2.0

    Called by an identity provider, not by your app. Base https://api.billdog.io/v1/scim-v2.

    MethodPathSummaryAuth
    GET/scim-v2/UsersList or filter provisioned usersSCIM token
    POST/scim-v2/UsersProvision a userSCIM token
    PATCH/scim-v2/Users/{id}Update or deactivate a userSCIM token
    DELETE/scim-v2/Users/{id}Deprovision a userSCIM token
    GET/scim-v2/GroupsList directory groupsSCIM token
    GET/scim-v2/ServiceProviderConfigAdvertised SCIM capabilitiesSCIM token

    Was this page helpful?

    Or rate this page:

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.