Home / API

Developer API (v1)

A clean, hand-rolled JSON API with bearer-token authentication. Everything the site does, you can automate.

Authentication

Mint a token with your account credentials, then send it as a bearer token on each request. Tokens are stored only as hashes.

curl -X POST AG Unitech Group /api/v1/auth/token \
  -H 'Content-Type: application/json' \
  -d '{"email":"admin@example.com","password":"your-admin-password"}'
Authorization: Bearer agu_your_token_here

Endpoints

GET /api/v1/health

Service health and version. No auth.

GET /api/v1/products

List all products. No auth.

GET /api/v1/products/{slug}

Full detail for one product. No auth.

POST /api/v1/auth/tokencredentials

Exchange email + password for a bearer token.

GET /api/v1/mebearer

The account behind the token.

GET /api/v1/organizationbearer

Your workspace, seats and members.

GET /api/v1/subscriptionbearer

Your current plan and status.

POST /api/v1/leadspublic

Create a lead / enquiry. Rate-limited.

GET /api/v1/leads?page=1admin bearer

List leads (paginated).

GET /api/v1/statsadmin bearer

Aggregate platform stats.

Base path: /api/v1. All responses are JSON with an ok boolean. Signed-in users can create tokens under Account → API keys.