API overview
Prego exposes APIs for tenant management, authentication, billing, My AI, and related operations.
Who should read this — Use this page for base URLs and authentication before calling any REST API. Product-only users rarely need it; start from Get started or Guides overview. For My AI paths and payloads, see My AI API.
Base URLs
Your organization receives base URLs from Prego (or from your administrator) for:
- Platform API — Tenant configuration, health checks, and related operations.
- Auth — Sign-in, sign-up, and tokens.
- Billing — Plans and subscriptions (sometimes exposed via a billing integration).
Do not hard-code production URLs in client-side code without your security team’s approval.
Authentication
Most API calls require a valid JWT or session token. Send the token in the Authorization header (or as your integration guide specifies).
Main API areas
| Area | Purpose |
|---|---|
| Platform API | Tenant provisioning, configuration, health. |
| Auth | Login, signup, token refresh. |
| Billing | Plans and subscriptions. |
| My AI | Knowledge (RAG), Autopilot, Chat — under /{companyId}/api/my-ai/*. See My AI API. |
Next steps
- Quick start — Roles and integration order.
- My AI API — Knowledge, Autopilot, and chat endpoints.
- Guides — Auth and product guides.