Skip to main content

Add One-Time-Password (OTP)

Add a new One-Time-Password (OTP) factor to the authenticated user. OTP is an authenticator app like Google/Microsoft Authenticator, Authy, etc. Only one OTP per user is allowed. After adding a new OTP it has to be verified.

Request Body required
  • object
Responses

A successful response.


Schema
  • url string
  • secret string
  • details object
  • sequence uint64

    on read: the sequence of the last event reduced by the projection

    on manipulation: the timestamp of the event(s) added by the manipulation

  • creationDate date-time

    on read: the timestamp of the first event of the object

    on create: the timestamp of the event(s) added by the manipulation

  • changeDate date-time

    on read: the timestamp of the last event reduced by the projection

    on manipulation: the

  • resourceOwner resource_owner is the organization an object belongs to
POST /users/me/auth_factors/otp

Authorization

type: oauth2flow: authorizationCodescopes: openid

Request

Base URL
https://$ZITADEL_DOMAIN/auth/v1
Bearer Token
Content-Type
Body required
{}
Accept
curl -L -X POST 'https://$ZITADEL_DOMAIN/auth/v1/users/me/auth_factors/otp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{}'