SupaKnock
Menu
Browse topics Connected apps
← Developer reference

Connect your app

Connected apps

Expose read-only account details for your support team.

Open your app's summaries, users, profiles and activity while answering a customer. SupaKnock reads them when an administrator opens the view. Your app keeps its accounts and events.

  1. Have your app implement the small read-only protocol in docs/protocol/v1/. Give it a permanent app-instance ID and a dedicated read-only token.
  2. Open Project settings → App connection. Save the public HTTPS endpoint and its token, then choose Test saved connection.
  3. Review the app identity and approved link origins. Confirm the support identity namespace only if its user IDs exactly match this project's feedback/chat external IDs.
  4. Enable the connection and open its app data. Recent signups, filters and activity depend on the capabilities and history your app supplies.

These views are administrator-only and read-only. They do not sync accounts, ingest events, send signup alerts or perform marketing actions. Remote responses are not persistently cached or added to AI knowledge. The app-issued outbound token is separate from your SupaKnock project key.

For a custom administrator client

Connection setup uses /api/v1/projects/{project}/app-data/connection and its test/enable/disable/remove actions. Summary, users, profile and activity reads use POST at /app-data/{view}/query with the saved connection version and typed query. Users/activity pages return an opaque continuation; related local support records use offset pages.

Cookie clients need CSRF even for these read-only POSTs. Project and chat credentials cannot access them. Refresh after the connection changes or a continuation expires. The installation library/timezone preferences live under /api/v1/admin/connected-apps.

Which endpoints does my app implement?

Every route authenticates Authorization: Bearer <app-read-token>. Start with discovery and a user directory; add only capabilities your app supports.

  • GET /v1/manifest — app instance, protocol version, capabilities and supported filters.
  • POST /v1/users/query — current accounts ordered by signup time, newest first.
  • POST /v1/users/lookup — an exact user profile when profiles are supported.
  • POST /v1/summary/query — account totals/counting basis for a requested period.
  • POST /v1/activity/query — retained events when activity is supported.

Configure the base address, such as https://app.example.com/support; SupaKnock appends those paths. Each successful JSON response includes protocol, app_instance_id and observed_at. Discovery can advertise a directory-only integration:

{
  "protocol": {"major": 1, "minor": 0},
  "app_instance_id": "your-app-production",
  "observed_at": "2026-10-12T12:00:00Z",
  "capabilities": {"users": true},
  "user_filters": [],
  "link_origins": []
}

An initial users query can be {"limit":50}. User pages use exact IDs, UTC signup times and opaque cursors; summaries distinguish current accounts from retained signup events. Responses use Cache-Control: no-store, are bounded to 1 MiB and must not redirect. The repository's protocol schemas define all required page fields, ordering and cursor rules; the manifest alone is not a complete adapter.

Give your app's developer docs/connected-apps-agent-brief.md to implement the remote side. The installation specification describes the administrator side; these are two separate APIs.

These docs describe the current source. Check your server’s /api/v1/openapi.json for the version you run.