Vault API

Secure endpoints for authentication, wallet, and bill-pay.
ENV: local · v1

Quickstart

Base URL
https://api.myvaultapp.co/v1
Auth
Bearer token (Authorization: Bearer <token>)
# 1) Login to get tokens
curl -X POST 'https://api.myvaultapp.co/v1/auth/login' \
  -H 'Content-Type: application/json' \
  -d '{"email":"[email protected]","password":"••••••••"}'

# 2) Fetch current user
curl 'https://api.myvaultapp.co/v1/customer/profile' \
  -H 'Authorization: Bearer <accessToken>'

# 3) Buy airtime
curl -X POST 'https://api.myvaultapp.co/v1/customer/bills/airtime' \
  -H 'Authorization: Bearer <accessToken>' \
  -H 'Content-Type: application/json' \
  -d '{"network":"mtn","recipient":"08123456789","amount":"500","pin":"1234"}'

Response Format

{
  "success": true,
  "message": "OK",
  "status": 200,
  "data": { /* payload */ }
}