cURL
curl --request POST \ --url https://our-secret-api-url.com/auth/login \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <x-api-key>' \ --data ' { "usernameOrEmail": "<string>" } '
{ "message": "<string>", "userId": 123 }
Request OTP for a user
API key required for authentication
Username or email address of the user
OTP code successfully sent
Response message
User ID of the newly created or updated user