Create a 2FA confirmation code

Certain requests require a 2FA confirmation code to be provided. This endpoint is used to generate a single-use code that will be emailed to the authenticated user.

This endpoint can only be accessed by users (via a user session token or via a user API token). Application API tokens cannot access this endpoint.

This action triggers an email notification.

Security protection

Only one 2FA confirmation code can be active at a time. If a new 2FA confirmation code is generated, the previous code will be invalidated. This means that only one action that requires a 2FA confirmation code can be performed at a time.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Headers
integer
Responses
200

2FA confirmation code created successfully and emailed to the authenticated user

401

Unauthorized

Language
Credentials
Bearer
token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json