ProspectConnect Public API
Whitelabel-neutral public REST API for the platform. This is an additive facade over the internal services — the product frontend keeps using the internal API unchanged.
Conventions (apply to every endpoint):
- Auth: OAuth 2.0 Bearer (
Authorization: Bearer <token>). Per-tenant Personal Access Tokens (PAT) in v1; full auth-code + PKCE for marketplace apps. The token carries the tenant (business_id) and the user's role/permissions — the gateway enforces scope ∩ role. - Versioning: path
/v1(major) + a requiredVersion: <YYYY-MM-DD>header (dated behavior contract). - IDs: opaque, type-prefixed strings (
con_…,cmp_…,deal_…,task_…,note_…,act_…). - Pagination: cursor-based; one uniform envelope
{ data, meta: { cursor: { next, has_more }, total? } }. Search isPOST /{resource}/searchwith{ filters, search_text, order_by, sort_direction, limit, cursor }. - Errors: RFC 9457
application/problem+jsonwithtrace_id. - Dates: ISO-8601 / RFC 3339 UTC (
2026-06-17T14:30:00Z); date-only fieldsYYYY-MM-DD. - Casing:
snake_caseJSON (matches internal storage; reduces mapping). - Methods: POST create, GET read, PATCH partial update, DELETE;
Idempotency-Keyhonored on creates. - Rate limits: per-token;
X-RateLimit-*response headers.
Wave 1 ships Contacts, Companies, Deals (+Pipelines), Tasks, Notes, and Activities — all detailed in this spec on the identical pattern. Later waves (engagement & scheduling, commerce, content/automation, reporting) extend the same conventions; once you've integrated Wave 1, the rest of the surface looks identical.
Authentication
- OAuth 2.0: oauth2
- HTTP: Bearer Auth
Authorization-code + PKCE for marketplace apps.
Security Scheme Type: | oauth2 |
|---|---|
OAuth Flow (authorizationCode): | Token URL: https://auth.prospectconnect.ai/token Authorization URL: https://auth.prospectconnect.ai/authorize Scopes:
|
Per-tenant Personal Access Token (client-credentials) for server-to-server use.
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |