MelonsRun
Api referenceControl

Request an email OTP for self-serve sign-in or registration

POST
/v2/control/auth/otp

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/control/auth/otp" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com"  }'
{  "otp_id": "string",  "expires_in_seconds": 0,  "delivery": {    "channel": "email",    "destination": "string",    "status": "sent"  },  "debug_otp": "string"}