Skip to main content

Admin Login

POST/admin/loginOpen in the API playground →
Info

The login endpoint authenticates admin users and processors, returning JWT tokens for session-based access.

Endpoint

POST /api/v1/admin/login

Request Body

emailstringbodyrequired

User email address

passwordstringbodyrequired

User password


User Types

Admin Users

Dashboard users with roles like system_admin, compliance_user, super_agent

Processors

Merchant accounts for POS terminal management


Example

curl -X POST "https://demo.api.vultlocal.com/api/v1/admin/login" \
-H "Content-Type: application/json" \
-d '{
"email": "admin@smartpay.sl",
"password": "SecureP@ss123"
}'

Token Management

Login

Receive access token (15 min) and refresh token (7 days)

Use Token

Include in Authorization: Bearer <token> header

Refresh

When expired, use refresh endpoint to get new tokens

Logout

Revoke refresh token when logging out


User Roles

RoleAccess Level
system_adminFull system access
compliance_userCompliance monitoring
support_userCustomer support
sales_userSales operations
audit_userRead-only audit access
super_agentAgent network management
sub_agentField agent operations
processorPOS merchant dashboard

Errors

CodeErrorDescription
400INVALID_REQUESTMissing email or password
401INVALID_CREDENTIALSWrong email or password
401ACCOUNT_INACTIVEUser account is not active
500INTERNAL_ERRORServer error

Security Notes

Warning
  • Login attempts are logged for audit
  • Failed attempts may trigger account lockout
  • Access tokens expire after 15 minutes
  • Always use HTTPS in production