API Documentation

Complete reference for the abc-io REST API. Build autonomous M2M commerce, manage accounts, and integrate with our platform.

Authentication

Our API uses OTP-based authentication. No passwords are stored. Send a login request to receive a one-time code via email.

M2M Commerce API

Enable autonomous machine-to-machine commerce. Full lifecycle: register, browse, deposit, purchase, track.

GET /api/m2m/health

Check API health and product count.

curl https://abc-io.net/api/m2m/health
GET /api/m2m/catalog

Retrieve full product catalog as JSON.

curl https://abc-io.net/api/m2m/catalog
POST /api/m2m/register

Register a new M2M buyer account.

curl -X POST https://abc-io.net/api/m2m/register \
  -H "Content-Type: application/json" \
  -d '{"name":"Machine Buyer","email":"m2m@example.com","key":"optional"}'
Parameters: name (required), email (required), key (optional)
POST /api/m2m/deposit

Deposit funds to a buyer account.

curl -X POST https://abc-io.net/api/m2m/deposit \
  -H "Content-Type: application/json" \
  -d '{"buyer_id":1,"amount":100.00,"payment_ref":"TXN-123"}'
POST /api/m2m/purchase

Purchase a product using deposited funds.

curl -X POST https://abc-io.net/api/m2m/purchase \
  -H "Content-Type: application/json" \
  -d '{"buyer_id":1,"product_id":"api_basic","amount":29.99}'
GET /api/m2m/status?buyer_id=1

Get buyer account status and balance.

GET /api/m2m/transactions?buyer_id=1

Get buyer transaction history.

Customer API

POST /api/customer/register

Create a customer account.

curl -X POST https://abc-io.net/api/customer/register \
  -H "Content-Type: application/json" \
  -d '{"name":"John Doe","email":"john@example.com","company":"Acme Corp"}'
POST /api/customer/login

Request a login OTP code.

curl -X POST https://abc-io.net/api/customer/login \
  -H "Content-Type: application/json" \
  -d '{"email":"john@example.com"}'
POST /api/customer/dashboard

Retrieve customer dashboard data.

curl -X POST https://abc-io.net/api/customer/dashboard \
  -H "Content-Type: application/json" \
  -d '{"email":"john@example.com"}'

CRM API

POST /api/crm/lead

Submit a new CRM lead.

curl -X POST https://abc-io.net/api/crm/lead \
  -H "Content-Type: application/json" \
  -d '{"name":"Prospect","email":"lead@example.com","message":"Interested"}'

Monitoring API

GET /api/monitor/health

System health check.

GET /api/monitor/audit

View audit log and system activity.

Response Codes

Rate Limiting

100 requests per minute per IP. Contact us for higher limits.

Support

For API support, contact abc-ai@abc-io.net