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
1
Navigate to API Keys
Navigate to Settings → API Keys in PG:AI.
2
Generate a new key
Click Generate New Key.
3
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).
4
Copy and store the key
Copy the key immediately - it won’t be shown again.
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:
Rate limit headers are included in every response:
