Skip to main content

Verify a TOTP generator for a user

POST 

https://$CUSTOM-DOMAIN/v2/users/:userId/totp/verify

Verify the TOTP registration with a generated code..

Request​

Path Parameters

    userId stringrequired

Body

required

    code stringrequired

    Code generated by TOTP app or device

Responses​

OK

Schema

    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

    changeDate date-time

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

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

    resourceOwner resource_owner is the organization or instance_id an object belongs to (string)
    creationDate date-time
curl -L 'https://$CUSTOM-DOMAIN/v2/users/:userId/totp/verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"code": "123456"
}'
Request Collapse all
Base URL
https://$CUSTOM-DOMAIN
Auth
Parameters
— pathrequired
Body required
{
  "code": "123456"
}
ResponseClear

Click the Send API Request button above and see the response here!