Skip to Content
SahajFlowHelp Center
Settings

Integrations

What Is It?

The connections between SahajFlow and the outside world: API keys for your own systems, outbound webhooks, the integration registry, website analytics (GA4), Google Calendar, and HubSpot CRM import.

Why Would I Use It?

So your website, warehouse system, or marketing tool can read and react to SahajFlow data without a person copying it.

Who Can Use It?

integration.* grants. OWNER/ADMIN manage keys, webhooks, and connections; USER can view webhooks and logs. Requires the integrations plan feature (Premium).

Where Can I Find It?

Control → Integrations (/dashboard/administration/integrations).

API keys

API keys let a server call the SahajFlow API as your workspace.

  1. Create a key with a name and the scopes it needs.
  2. Copy the secret immediately — it is shown once and stored only as a hash.
  3. Use it in the X-API-Key header.
  4. Rotate it on a schedule or after a leak. Rotation issues a new secret and invalidates the old one.
  5. Revoke a key you no longer trust; revocation is permanent.

Limits. Each key has an hourly request limit and every request is logged. Exceeding the limit returns HTTP 429.

Webhooks

Webhooks push events to your own HTTPS endpoint.

  1. Add an endpoint URL. It must be public HTTPS; duplicates for the same workspace are rejected.
  2. Choose the events (for example a quote accepted or a task created).
  3. Save the signing secret shown at creation. Deliveries are signed with HMAC-SHA256 over timestamp.body, sent in the header t=<ts>,v1=<sig>.
  4. Verify the signature and the timestamp tolerance on your server before trusting a payload.
  5. Use the delivery log to inspect responses and retry failures. Deliveries retry with exponential backoff and become DEAD after five attempts.

Enable/disable an endpoint without deleting it. Archiving keeps the history.

Integration registry

The registry lists tenant-level integration metadata (provider, configuration, active state). It is the bookkeeping record behind a connection; it does not itself move data.

Website analytics (GA4)

  1. An OWNER/ADMIN connects Google Analytics.
  2. Authorize the Google account and choose the property.
  3. The Website Analytics page then shows GA4 data.

Requires Google OAuth credentials on the deployment. The connection is organization-level.

Google Calendar

  1. Connect the Google account.
  2. Choose calendars to import.
  3. Events appear in the projects calendar.

Read-only in this release. No outbound sync, no two-way editing.

HubSpot CRM import

  1. Connect HubSpot through OAuth.
  2. Choose what to import into CRM.
  3. Review the import run and its errors.

This is an import, not a two-way sync. Re-running may duplicate records unless you review the run report.

Important things to know

  • Secrets are shown once. API keys, webhook signing secrets, and OAuth tokens are not retrievable later. Store them in your own secret manager.
  • Scopes are least-privilege. Grant only the scopes the integration needs.
  • All deliveries are logged with response snippets, successes, and failures, and produce activities.
  • Credentials belong to the workspace, so a connection made by one admin is available to the whole workspace but never to another tenant.
  • OAuth-based connections (GA4, Google Calendar, HubSpot) need deployment-level Google/ HubSpot app credentials. Without them, the connect step cannot complete.

Common problems

SymptomLikely causeWhat to do
API key requests return 401Wrong header name, revoked key, or key from another workspaceCheck the header and key state
429 responsesHourly limit reachedBack off; raise the limit deliberately
Webhook endpoint rejectedURL is not HTTPS or is a duplicateUse a public HTTPS URL
Signature verification failsBody modified before hashing, or clock skewHash the raw body; check the timestamp
GA4/Google/HubSpot connect failsMissing OAuth configuration or wrong redirect URIAsk an administrator to verify credentials
Deliveries stuckEndpoint unreachableFix the endpoint; retry from the delivery log

On this page