Palbase Auth API
Palbase's authentication module: one shared, multi-tenant service; every project is isolated by row security in its database.
Clients reach it at their project's address, https://<ref>.<domain>,
through the Palbase edge. The edge resolves the project from the host,
checks the API key (apikey header: the publishable key is role anon,
the secret key is role service_role), verifies a user's access token
when one is sent, and forwards a signed edge identity the service
trusts. A client never sends that identity itself.
Security schemes
ApiKeyAuth— the project's publishable or secret key. Every route except/.well-known/*, the OAuth provider callbacks and the browser steps of/oauth/authorizerequires one.AdminAuth— the secret key; required on every/admin/*route.userJWT— the user's access token, sent asAuthorization: Bearer …alongside the API key, on/auth/*routes that act on the signed-in user.
The contract itself: /openapi/auth.openapi.json
WellKnown
GET
/.well-known/apple-app-site-associationApple app association for passkeysGET/.well-known/assetlinks.jsonAndroid app association for passkeysGET/.well-known/jwks.jsonJSON Web Key SetGET/.well-known/openid-configurationOIDC discoveryGET/.well-known/webauthnWeb origins allowed to use this host's passkeysAdminAttest
AdminAudit
AdminSettings
GET
/admin/auth-settingsRead the auth settingsPUT/admin/auth-settingsUpdate the auth settingsGET/admin/providersList first-party sign-in methodsGET/admin/providers/phone/settingsRead phone sign-in settingsPUT/admin/providers/phone/settingsReplace phone sign-in settingsPOST/admin/providers/{name}Enable or disable phone sign-inAdminIntegrations
AdminHooks
AdminOAuthClients
AdminRoles
AdminServiceAccounts
AdminSessions
AdminSigningKeys
AdminSocialAuth
AdminUsers
GET
/admin/statsRead the user and sign-in statsPOST/admin/token/customMint a custom sign-in tokenGET/admin/usersList usersPOST/admin/usersCreate a userPOST/admin/users/importImport usersGET/admin/users/{uid}Get a userPATCH/admin/users/{uid}Update a userDELETE/admin/users/{uid}Delete a userPOST/admin/users/{uid}/banBan a userGET/admin/users/{uid}/consentsGet a user's consentsPOST/admin/users/{uid}/credentials/revoke-allRevoke all of a user's credentialsGET/admin/users/{uid}/exportExport a user's dataGET/admin/users/{uid}/mfaList a user's MFA factorsDELETE/admin/users/{uid}/mfaReset a user's MFAPOST/admin/users/{uid}/reset-passwordIssue a password reset tokenGET/admin/users/{uid}/rolesList a user's rolesPUT/admin/users/{uid}/roles/{role}Give a user a roleDELETE/admin/users/{uid}/roles/{role}Take a role from a userPOST/admin/users/{uid}/sessions/revoke-allSign a user out everywherePOST/admin/users/{uid}/unbanUnban a userGET/admin/installations/{installation_id}/consentsGet a device's consentsPOST/admin/consents/refuseRecord a refusalPOST/admin/users/inviteInvite a userAdminTemplates
AdminTestUsers
Auth
POST
/auth/anonymousSign in as a guestPOST/auth/anonymous/convertAsk for the signed-in guest to become an account with an e-mail and a passwordPOST/auth/anonymous/convert/verifyConfirm the signed-in guest's conversion with its codePOST/auth/loginPassword loginPOST/auth/password/changeChange password (authenticated)POST/auth/password/resetRequest password reset emailPOST/auth/password/reset/confirmComplete password resetPOST/auth/password/setAdd a first password to the signed-in accountPOST/auth/pow/challengeIssue proof-of-work challengePOST/auth/resend-verificationRe-send verification emailPOST/auth/signupCreate accountPOST/auth/verify-emailVerify email addressPOST/auth/invitations/openRead an invitation's linkPOST/auth/invitations/acceptTake an invitation upOAuth
GET
/auth/device/requests/{user_code}Read a pending device requestGET/auth/device/verifyDevice Authorization verification pagePOST/auth/device/verifyApprove or deny a device authorization requestGET/oauth/authorizeOpenID Connect authorization endpointPOST/oauth/authorizeOpenID Connect authorization endpointGET/oauth/authorize/callbackAuthorization code callbackGET/oauth/authorize/emailMagic link for an authorization requestPOST/oauth/deviceRFC 8628 Device Authorization RequestPOST/oauth/introspectRFC 7662 token introspectionGET/oauth/logoutRP-initiated logoutPOST/oauth/logoutRP-initiated logout (form post)POST/oauth/parRFC 9126 Pushed Authorization RequestPOST/oauth/revokeRFC 7009 token revocationPOST/oauth/tokenOAuth 2.0 token endpointGET/oauth/userinfoOpenID Connect UserInfoPOST/oauth/userinfoOpenID Connect UserInfoPOST/auth/cli/owner-codeHand the owner's sign-in to the CLIDevices
GET
/auth/devicesList the user's devicesPOST/auth/devices/attest/androidEnrol an Android device with Key AttestationPOST/auth/devices/attest/iosEnrol an iOS device with App AttestPOST/auth/devices/bindBind a public key to a devicePOST/auth/devices/challengeGet a single-use enrolment challengePOST/auth/devices/verify/androidVerify a request-bound Play Integrity tokenDELETE/auth/devices/{id}Delete a devicePOST/auth/devices/{id}/verifyVerify a request signed by a device keyIdentities
Installations
POST
/auth/installationsCreate an installationPOST/auth/installations/{id}/bindBind an installation to the signed-in userPOST/auth/installations/{id}/refreshMark an installation as seenPOST/auth/installations/{id}/revokeRevoke an installationPOST/auth/installations/{id}/unbindUnbind the signed-in user from an installationSession
MagicLink
Profile
MFA
POST
/auth/mfa/challengeComplete MFA challenge during loginPOST/auth/mfa/email/challengeSend email OTP for MFA challengePOST/auth/mfa/email/enrollEnroll email OTPPOST/auth/mfa/email/verifyVerify email OTP during MFA challengePOST/auth/mfa/enrollBegin MFA enrollmentGET/auth/mfa/factorsList enrolled MFA factorsDELETE/auth/mfa/factors/{id}Remove an MFA factorPOST/auth/mfa/recoveryUse recovery code to bypass MFAPOST/auth/mfa/recovery-codes/regenerateRegenerate recovery codesPOST/auth/mfa/sms/challengeSMS OTP challenge during loginPOST/auth/mfa/sms/enrollEnroll SMS OTPPOST/auth/mfa/sms/verifyVerify SMS enrollmentPOST/auth/mfa/verifyVerify TOTP enrollmentSocialAuth
GET
/auth/oauth/callback/appleApple callback (wrong method)POST/auth/oauth/callback/appleApple sign-in callbackGET/auth/oauth/callback/githubGitHub sign-in callbackPOST/auth/oauth/callback/githubGitHub callback (wrong method)GET/auth/oauth/callback/googleGoogle sign-in callbackPOST/auth/oauth/callback/googleGoogle callback (wrong method)GET/auth/oauth/callback/microsoftMicrosoft sign-in callbackPOST/auth/oauth/callback/microsoftMicrosoft callback (wrong method)GET/auth/oauth/configRead the social sign-in clients for an appPOST/auth/oauth/transactionsBegin a social sign-inPOST/auth/oauth/transactions/{id}/cancelCancel a social sign-inPOST/auth/oauth/transactions/{id}/completeComplete a social sign-inPhoneAuth
HostedPages
GET
/auth/pages/recovery-approvalShow the recovery pagePOST/auth/pages/recovery-approvalApprove or deny a recoveryGET/auth/pages/recovery-contactShow the trusted-contact pagePOST/auth/pages/recovery-contactConfirm being a trusted contactGET/auth/pages/reset-passwordShow the new-password pagePOST/auth/pages/reset-passwordSet a new password from the pageGET/auth/pages/verify-emailShow the confirm-email pagePOST/auth/pages/verify-emailConfirm an email from the pageGET/auth/pages/accept-invitationShow the invitation pagePOST/auth/pages/accept-invitationSet the account's password from the invitation pageGET/auth/pages/not-meShow the not-me pagePOST/auth/pages/not-meDelete an unconfirmed account from the not-me pageRecovery
POST
/auth/recovery/approveSubmit a recovery approvalGET/auth/recovery/contactsList trusted recovery contactsPOST/auth/recovery/contactsAdd a trusted recovery contactDELETE/auth/recovery/contacts/{id}Remove a trusted recovery contactPOST/auth/recovery/contacts/{id}/verifyVerify a trusted recovery contactPOST/auth/recovery/denyDeny a recoveryPOST/auth/recovery/initiateInitiate trusted-contact recoveryGET/auth/recovery/statusGet pending recovery statusStepUp
Token
Transactions
TrustedDevices
WebAuthn
GET
/auth/webauthn/credentialsList registered WebAuthn credentialsPUT/auth/webauthn/credentials/{id}Rename a WebAuthn credentialDELETE/auth/webauthn/credentials/{id}Delete a WebAuthn credentialPOST/auth/webauthn/login/beginBegin WebAuthn authenticationPOST/auth/webauthn/login/finishComplete WebAuthn authenticationPOST/auth/webauthn/recovery/beginBegin recovery passkey authenticationPOST/auth/webauthn/recovery/finishComplete recovery passkey authenticationPOST/auth/webauthn/recovery/register/beginBegin registering a recovery passkeyPOST/auth/webauthn/recovery/register/finishComplete recovery passkey registrationPOST/auth/webauthn/register/beginBegin registering an additional passkeyPOST/auth/webauthn/register/finishComplete passkey registrationPOST/auth/webauthn/signup/beginBegin passkey-first signupPOST/auth/webauthn/signup/finishComplete passkey-first signup