API Reference

post
Authorizations
Body
emailstring · emailRequired
passwordstringRequired
Responses
200
Login successful
application/json
post
POST /auth/login HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "email": "[email protected]",
  "password": "text"
}
{
  "idToken": "text",
  "refreshToken": "text"
}
post
Authorizations
Body
refreshTokenstringRequired
Responses
200
ID Token refreshed successfully
application/json
post
POST /auth/login/refresh HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "refreshToken": "text"
}
{
  "idToken": "text"
}
post
Authorizations
Body
phonestring · min: 1Required
countrystring · enumRequiredPossible values:
Responses
200
Number added to the user successfully. A SMS message will be sent to the user, and they will need to validate it to use the phone number as MFA.
application/json
post
POST /auth/otp/methods/sms HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "phone": "text",
  "country": "AC"
}
{
  "email": "[email protected]",
  "hasValidatedEmail": true,
  "emailVerificationDate": "2025-07-24T11:42:31.853Z",
  "hasValidatedSecret": true,
  "secretVerificationDate": "2025-07-24T11:42:31.853Z",
  "phoneNumber": "text",
  "hasValidatedPhone": true,
  "phoneVerificationDate": "2025-07-24T11:42:31.853Z",
  "lastLoggedDate": "2025-07-24T11:42:31.853Z",
  "status": "ACTIVE",
  "lastLoggedDevice": "text",
  "lastPasswordChangeDate": "2025-07-24T11:42:31.853Z"
}
post
Authorizations
Body
objectOptional
Responses
200
Secret created successfully
application/json
post
POST /auth/otp/methods/totp HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{
  "email": "[email protected]",
  "hasValidatedEmail": true,
  "emailVerificationDate": "2025-07-24T11:42:31.853Z",
  "hasValidatedSecret": true,
  "secretVerificationDate": "2025-07-24T11:42:31.853Z",
  "phoneNumber": "text",
  "hasValidatedPhone": true,
  "phoneVerificationDate": "2025-07-24T11:42:31.853Z",
  "lastLoggedDate": "2025-07-24T11:42:31.853Z",
  "status": "ACTIVE",
  "lastLoggedDevice": "text",
  "lastPasswordChangeDate": "2025-07-24T11:42:31.853Z"
}
delete
Authorizations
Header parameters
x-otpstringRequired
Responses
200
User secret deleted successfully
application/json
delete
DELETE /auth/otp/methods/totp HTTP/1.1
Host: 
Authorization: Bearer JWT
x-otp: text
Accept: */*
{
  "email": "[email protected]",
  "hasValidatedEmail": true,
  "emailVerificationDate": "2025-07-24T11:42:31.853Z",
  "hasValidatedSecret": true,
  "secretVerificationDate": "2025-07-24T11:42:31.853Z",
  "phoneNumber": "text",
  "hasValidatedPhone": true,
  "phoneVerificationDate": "2025-07-24T11:42:31.853Z",
  "lastLoggedDate": "2025-07-24T11:42:31.853Z",
  "status": "ACTIVE",
  "lastLoggedDevice": "text",
  "lastPasswordChangeDate": "2025-07-24T11:42:31.853Z"
}
get
Authorizations
Query parameters
methodstring · enumRequiredPossible values:
Responses
201
OTP requested successfully
application/json
get
GET /auth/otp/code?method=EMAIL HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "validUntil": "2025-07-24T11:42:31.853Z",
  "channel": "EMAIL",
  "validated": true
}
post
Authorizations
Header parameters
x-otpany ofRequired
stringOptional
or
stringOptional
Body
channelstring · enumRequired

Channel to verify OTP. If a channel is not configured or is already verified, the response will be an error.

Possible values:
Responses
200
Method correctly verified
application/json
post
POST /auth/otp/code HTTP/1.1
Host: 
Authorization: Bearer JWT
x-otp: text
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "channel": "SMS"
}
{
  "email": "[email protected]",
  "hasValidatedEmail": true,
  "emailVerificationDate": "2025-07-24T11:42:31.853Z",
  "hasValidatedSecret": true,
  "secretVerificationDate": "2025-07-24T11:42:31.853Z",
  "phoneNumber": "text",
  "hasValidatedPhone": true,
  "phoneVerificationDate": "2025-07-24T11:42:31.853Z",
  "lastLoggedDate": "2025-07-24T11:42:31.853Z",
  "status": "ACTIVE",
  "lastLoggedDevice": "text",
  "lastPasswordChangeDate": "2025-07-24T11:42:31.853Z"
}

Last updated