Skip to main content
POST
/
auth
/
login
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
}

Headers

X-API-KEY
string
required

API key required for authentication

Body

application/json
usernameOrEmail
string
required

Username or email address of the user

Response

OTP code successfully sent

message
string

Response message

userId
integer

User ID of the newly created or updated user