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
/api/v1/healthService health and version. No auth.
/api/v1/productsList all products. No auth.
/api/v1/products/{slug}Full detail for one product. No auth.
/api/v1/auth/tokencredentialsExchange email + password for a bearer token.
/api/v1/mebearerThe account behind the token.
/api/v1/organizationbearerYour workspace, seats and members.
/api/v1/subscriptionbearerYour current plan and status.
/api/v1/leadspublicCreate a lead / enquiry. Rate-limited.
/api/v1/leads?page=1admin bearerList leads (paginated).
/api/v1/statsadmin bearerAggregate platform stats.
Base path: /api/v1. All responses are JSON with an ok boolean. Signed-in users can create tokens under Account → API keys.