Developer API

API Documentation

Integrate G4 Connect into your own applications with our simple, powerful REST API.

Base URL
https://connect.g4.business/api

All endpoints are relative to this base URL. Use HTTPS for all requests.

Authentication

Authenticate your requests by including a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

You can generate and manage API tokens from your dashboard under Settings → API Keys. Keep your tokens secure and never expose them in client-side code.

Available Endpoints

GET
/brand/config

Retrieve brand configuration including name, logo, colors, and theme settings.

curl https://connect.g4.business/api/brand/config \
  -H "Authorization: Bearer YOUR_API_TOKEN"
GET
/ai/models

List available AI models and their capabilities for your tenant.

curl https://connect.g4.business/api/ai/models \
  -H "Authorization: Bearer YOUR_API_TOKEN"
POST
/ai/chat/completions

Generate AI-powered chat completions using your configured models.

curl -X POST https://connect.g4.business/api/ai/chat/completions \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \\
  -d '{"messages": [{"role": "user", "content": "Hello"}]}'
Need more details?

Explore our full API reference with request/response examples, error codes, and SDKs.

Questions? Contact us at [email protected]