POST
/v1/mgmt/tests/generate/otp

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

loginId?string
deliveryMethod?string
loginOptions?object

Generate an OTP verification code for a test user.

This endpoint is used to generate an OTP verification code for a test user. You can define whether this is sent via email or sms.

Once you generate the OTP code, you must verify the OTP code via verify OTP email or verify OTP sms

See Also

curl -X POST "https://api.descope.com/v1/mgmt/tests/generate/otp" \  -H "Content-Type: application/json" \  -d '{}'
{  "loginId": "string",  "code": "string"}
export interface Response {loginId?: stringcode?: string}
Was this helpful?