POST
/v1/auth/recovery-codes

Authorization

Descope Project ID:Refresh JWT
AuthorizationBearer <token>

Project ID:Refresh JWT as bearer token.

In: header

Request Body

application/json

loginId?string

Generate recovery codes for a user

curl -X POST "https://api.descope.com/v1/auth/recovery-codes" \  -H "Content-Type: application/json" \  -d '{}'
{  "codes": [    {      "code": "string"    }  ]}
export interface Response {codes?: RecoveryCode[]}export interface RecoveryCode {code?: string}
Was this helpful?