Auth
Login
When code is omitted: validate credentials, then either issue an OTP challenge (LoginMFA on, response type "challenge") or issue tokens (LoginMFA off, response type "jwt"). When code is populated: validate credentials, verify the OTP, and issue tokens (response type "jwt").
post/v1/auth
Request
- Base URLhttps://identity-api.paymongo.com
- URLhttps://identity-api.paymongo.com/v1/auth
- Authnone required
Request body
Example request
{
"data": {
"attributes": {
"code": "123456",
"email": "user@example.com",
"factor": "totp",
"password": "Str0ng!Password"
}
}
}Response
Created
Example response
{
"data": {
"attributes": {
"expiry_timer": 600,
"login_mfa": true,
"login_notification": true,
"organization_id": "org_abc123",
"user_contact_number": "+639171234567",
"user_first_name": "Jane",
"user_last_name": "Dela Cruz"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.