Skip to content
id0n

Endpoints

Core Legation HTTP endpoints.

Core endpoints, relative to the base path of your Legation endpoint. The Legation client calls these for you; use them directly only when you cannot use the client.

Base path

The client builds request URLs from the baseURL you pass it:

  • If baseURL has no path, for example https://dev-<environment-id>.<region>.<your-id0n-domain>, the client adds the default base path /api/auth.
  • If baseURL already includes a path, the client uses it unchanged.

Paths in the table below are relative to that resolved base. Use your environment endpoint exactly as id0n gives it to you; the base path for hosted environments is confirmed with your endpoint. See Environments.

Core endpoints

MethodPathPurpose
POST/sign-up/emailSign up with email and password
POST/sign-in/emailSign in with email and password
POST/sign-in/socialStart social sign-in, or sign in with an ID token
POST/sign-outSign out
GET, POST/get-sessionRead the current session
GET/list-sessionsList the user's sessions
POST/revoke-sessionRevoke one session
POST/revoke-sessionsRevoke all sessions
POST/revoke-other-sessionsRevoke all other sessions
POST/update-sessionUpdate the session
POST/send-verification-emailSend a verification email
GET/verify-emailVerify an email from a link
POST/request-password-resetRequest a password reset email
GET/reset-password/{token}Open a reset link
POST/reset-passwordSet a new password
POST/change-passwordChange password
POST/change-emailChange email
POST/update-userUpdate the user
POST/verify-passwordCheck the current password
POST/delete-userDelete the user
GET/delete-user/callbackConfirm deletion
POST/link-socialLink a social account
POST/unlink-accountUnlink an account
GET/list-accountsList linked accounts
GET/account-infoRead linked account details
POST/get-access-tokenGet a provider access token
POST/refresh-tokenRefresh a provider token
GET, POST/callback/{id}Provider callback
GET/errorError page
GET/okHealth check

Endpoints for optional features, such as organizations or two-factor, are available only when the feature is enabled for your environment.

On this page

Ask AI

Answers come from the published id0n docs, with links to their sources.