Skip to content
OpenPostDocs
OpenPostDocs
Auth

Confirm TOTP enrollment with a verification code

POST/auth/security/totp/confirm

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/auth/security/totp/confirm" \  -H "Content-Type: application/json" \  -d '{    "challenge_id": "string",    "code": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/RecoveryCodeSetOutputBody.json",  "challenge_id": "string",  "recovery_codes": [    "string"  ]}