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.
- Create a key with a name and the scopes it needs.
- Copy the secret immediately — it is shown once and stored only as a hash.
- Use it in the
X-API-Keyheader. - Rotate it on a schedule or after a leak. Rotation issues a new secret and invalidates the old one.
- 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.
- Add an endpoint URL. It must be public HTTPS; duplicates for the same workspace are rejected.
- Choose the events (for example a quote accepted or a task created).
- Save the signing secret shown at creation. Deliveries are signed with HMAC-SHA256 over
timestamp.body, sent in the headert=<ts>,v1=<sig>. - Verify the signature and the timestamp tolerance on your server before trusting a payload.
- 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)
- An OWNER/ADMIN connects Google Analytics.
- Authorize the Google account and choose the property.
- The Website Analytics page then shows GA4 data.
Requires Google OAuth credentials on the deployment. The connection is organization-level.
Google Calendar
- Connect the Google account.
- Choose calendars to import.
- Events appear in the projects calendar.
Read-only in this release. No outbound sync, no two-way editing.
HubSpot CRM import
- Connect HubSpot through OAuth.
- Choose what to import into CRM.
- 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
| Symptom | Likely cause | What to do |
|---|---|---|
| API key requests return 401 | Wrong header name, revoked key, or key from another workspace | Check the header and key state |
| 429 responses | Hourly limit reached | Back off; raise the limit deliberately |
| Webhook endpoint rejected | URL is not HTTPS or is a duplicate | Use a public HTTPS URL |
| Signature verification fails | Body modified before hashing, or clock skew | Hash the raw body; check the timestamp |
| GA4/Google/HubSpot connect fails | Missing OAuth configuration or wrong redirect URI | Ask an administrator to verify credentials |
| Deliveries stuck | Endpoint unreachable | Fix the endpoint; retry from the delivery log |
Related guides
- Time tracking and calendar
- Reports and dashboards
- API reference
AI settings
The workspace's AI configuration: which provider and model are used, the API key, temperature, and the connection test.
Administration overview
The Control section is where a workspace is configured: identity, people, access, plan, automations, and archived records. It is visible to OWNERs, ADMI…