7
747 Docs

API Reference

Complete endpoint reference for the 747 platform. The platform exposes two API surfaces: the Webapp API on port 3000 and the Agent API on port 3747.

Authentication Methods

Session — Bearer token obtained from /wapi/auth/login. Sent as Authorization: Bearer <token>.

API key — Key pair in pk_:sk_ format. Public key identifies the merchant; secret key authenticates requests via HMAC signature.

Cron secret — Shared secret passed as a query parameter to protect scheduled background tasks.

Gateway — DirectPay webhook callbacks verified by signature.

Webapp API

Port 3000 — serves the tenant-facing web application and merchant integrations.

Authentication

MethodEndpointAuthDescription
POST/wapi/auth/loginPublicTenant login
POST/wapi/auth/registerPublicTenant registration
POST/wapi/auth/resetPublicPassword reset
POST/wapi/auth/verifyPublicEmail/phone verification

Requests

MethodEndpointAuthDescription
POST/wapi/requests/createPublicSubmit deposit/withdrawal
GET/wapi/requests/statusPublicCheck request status
GET/wapi/requests/listSessionList tenant's requests
POST/wapi/requests/processSessionApprove/reject/cancel
GET/wapi/requests/statsSessionTransaction statistics

Payments

MethodEndpointAuthDescription
POST/wapi/payment/createRate-limitedCreate NexusPay payin
POST/wapi/payment/finalizePublicVerify & complete payment
POST/wapi/payment/webhookGatewayDirectPay callback
GET/wapi/payment/checkoutPublicProxy redirect to gateway
POST/wapi/payment/retryCron secretRetry failed transfers

Proxy

MethodEndpointAuthDescription
POST/wapi/proxySessionSingle-bridge 747 API call
POST/wapi/proxy/multiSessionMulti-bridge parallel call

NexusPay

MethodEndpointAuthDescription
GET/wapi/nexuspay/meSessionTenant NexusPay status
POST/wapi/nexuspay/activate-paymentSessionPay activation fee

Merchant API

MethodEndpointAuthDescription
POST/api/v1/paymentsAPI keyCreate payment
GET/api/v1/paymentsAPI keyCheck status (query)
GET/api/v1/payments/:idAPI keyCheck status (path)

Background Tasks

MethodEndpointAuthDescription
GET/wapi/cron?task=auto-cancelCron secretCancel stale payments
GET/wapi/cron?task=retry-transfersCron secretRetry failed transfers
GET/wapi/cron?task=panel-syncCron secretSync panel transactions

Agent API

Port 3747 — proxies requests to the Agent Ledger panel. All endpoints accept POST and return JSON.

MethodEndpointDescription
POST/auth/login747 panel authentication
POST/balanceAgent balance query
POST/transferPlayer deposit/withdrawal
POST/agent/depositAgent-to-agent deposit
POST/agent/withdrawAgent-to-agent withdrawal
POST/transactionsTransaction history
POST/playersPlayer list
POST/players/countPlayer count
POST/agent/direct-childrenDownline agents
POST/agents/countAgent count
POST/commission/assignAssign commission plan
POST/commission/assignable-plansList available plans

Base URLs

# Webapp API

https://agentledgerhub.com

# Agent API

http://localhost:3747

The Agent API is not publicly exposed. All agent operations are proxied through the Webapp API via the /wapi/proxy endpoints.