POST
/
auth
/
totp
curl --request POST \
  --url https://app.masivo.ai/api/storefront/v1/auth/totp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "<string>",
  "metadata": {}
}'
{
  "data": {
    "code": "1234",
    "expired_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
customer_id
string
required

The customer unique identifier

metadata
object

Optional field for additional information

Response

201
application/json
TOTP token created
data
object