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 URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/auth
  • Auth
    none required

Request body

Example request

{
  "data": {
    "attributes": {
      "code": "123456",
      "email": "user@example.com",
      "factor": "totp",
      "password": "Str0ng!Password"
    }
  }
}

Response

Created

has_moreboolean

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.