Authentication (Allauth Headless)

The code should be provided from the consuming TOTP authenticator application which was generated using the TOTP authenticator secret retrieved from the TOTP authenticator status endpoint.

post/api/v2/allauth/app/v1/account/authenticators/totp

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

client'app' | 'browser' required

The type of client accessing the API.

Headers

X-Session-Tokenstring

Session token. Only needed when client is equal to app.

Request body

codestring required

An authenticator code.

Example request

{
  "code": "314159"
}

Response

Information on the TOTP authenticator.

status200 required

Example response

{
  "data": {
    "last_used_at": 1711555057.065702,
    "created_at": 1711555057.065702
  }
}

Changes

    • info

      added the required property // to the response with the status