Authentication

The Authentication API handles client registration, login, token management, multi-factor authentication (MFA), and team account management. All endpoints use the /api/v1/auth base path.

Login & Registration

MethodEndpointDescription
POST/api/v1/auth/registerRegister a new client account
POST/api/v1/auth/register/verify-emailVerify client email address during registration
POST/api/v1/auth/register/resend-verificationResend the email verification code
POST/api/v1/auth/loginLog in with client credentials
POST/api/v1/auth/login/verify-otpVerify OTP code during login
POST/api/v1/auth/login/challenge/send-email-codeSend an email code for login challenge verification
POST/api/v1/auth/logoutLog out and invalidate the current session

Token Management

MethodEndpointDescription
POST/api/v1/auth/api-tokenObtain an API token for server-to-server authentication
POST/api/v1/auth/refreshRefresh an expired access token using a refresh token
POST/api/v1/auth/refresh-api-keyRegenerate the API key for the client
POST/api/v1/auth/security/request-codeRequest a security verification code for sensitive operations

Client Settings

MethodEndpointDescription
GET/api/v1/auth/client/meRetrieve the current client's profile information
PUT/api/v1/auth/client/settingsUpdate client account settings

Multi-Factor Authentication (MFA)

MethodEndpointDescription
GET/api/v1/auth/mfa/client-defaultsGet the default MFA configuration for the client
PUT/api/v1/auth/mfa/client-defaultsUpdate the default MFA configuration
GET/api/v1/auth/mfa/meGet MFA settings for the current user
PUT/api/v1/auth/mfa/meUpdate MFA settings for the current user
POST/api/v1/auth/mfa/totp/enroll/startStart TOTP authenticator enrollment and receive a QR code
POST/api/v1/auth/mfa/totp/enroll/confirmConfirm TOTP enrollment with a verification code
POST/api/v1/auth/mfa/totp/disableDisable TOTP authenticator for the current user

Team Management

MethodEndpointDescription
GET/api/v1/auth/team/accountsList all team member accounts
POST/api/v1/auth/team/accountsCreate a new team member account
GET/api/v1/auth/team/accounts/meGet the current user's team account details
PATCH/api/v1/auth/team/accounts/{account_id}Update a team member's account
DELETE/api/v1/auth/team/accounts/{account_id}Delete a team member account
POST/api/v1/auth/team/accounts/me/change-passwordChange the current user's password

Related guides