Regenerate Recovery Codes
POST /auth/mfa/recovery-codesRequest body — MfaCodeRequest
Section titled “Request body — MfaCodeRequest”| Field | Type | Notes | |
|---|---|---|---|
code | string | required | min length 6 max length 32 |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | Successful Response | RecoveryCodes |
422 | Validation Error | HTTPValidationError |
Example
Section titled “Example”The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.
curl -X POST https://your-deployment.example.com/auth/mfa/recovery-codes \ -H "Authorization: Bearer $COBRE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'Response — RecoveryCodes
Section titled “Response — RecoveryCodes”| Field | Type | Notes | |
|---|---|---|---|
codes | string[] | required | — |