openapi.yaml. Each group below has a short guide plus a playground page for every route.
Base URLs:
- Sandbox:
https://api.sandbox.swapnice.com - Production:
https://api.swapnice.com
c0, p0, and similar) are internal and are not part of this API.
OAuth
Discover, authorize (JSON PKCE), token, introspect, revoke.
Apps
Register and update the partner OAuth application.
Connection sessions
Start the account-linking session and poll status.
Consent
Grant, list, inspect, and revoke purpose receipts.
Customers
Upsert your user. Use
external_id on create.Events
Ingest consented activity.
Idempotency-Key required.Profiles
Read resolved facts, claims, and intent scores.
Entries and ontologies
Catalog objects of intent and their field maps.
Webhooks
Register receivers for async processing updates.
Authentication
Most routes require a Bearer access token from the OAuth 2.1 authorization-code + PKCE flow. App registration uses a separate registration key.
Tokens are short-lived (~15 minutes). Secrets and tokens are hashed at rest. Redirect URIs must match exactly.
Full narrative: authentication. Ordered calls: request walkthrough.