Prerequisites
Before using the REST API, ensure you have:
- A PG:AI account with API access enabled
- An API key generated from Settings
Generating an API Key
Name and scope the key
Give the key a name (e.g. “CRM Sync”, “Data Warehouse”, “Internal Dashboard”). Set permission scope if applicable (read-only, read-write, or specific entity access).
Authentication
All API requests require an API key passed in the request header:Base URL
Exploring the API
Swagger UI
The interactive API explorer is available at:- Browse all available endpoints
- See request/response schemas
- Test endpoints with your API key directly in the browser
- View example payloads
OpenAPI Specification
Download the full OpenAPI 3.0 spec:- JSON:
https://api.getpg.ai/v1/openapi.json - YAML:
https://api.getpg.ai/v1/openapi.yaml
Quick Test
Verify your API key works with a simple request:Rate Limits
API requests are rate-limited per key:| Tier | Requests/Minute | Requests/Day |
|---|---|---|
| Standard | 60 | 10,000 |
| Professional | 120 | 50,000 |
| Enterprise | Custom | Custom |
