Administration

Integrations

Connect Kraftter to Google and Microsoft for email and calendar sync, configure Twilio for SMS, set up signed outbound webhooks, and create API clients for custom integrations.

Overview

Kraftter integrations fall into four categories: email and calendar sync (per-user OAuth connections), SMS providers (workspace-level Twilio accounts), outbound webhooks (event-driven HTTP calls), and API clients (programmatic access for custom integrations).

Email and calendar integration

Each user connects their own mailbox under their User Settings → Connect Email & Calendar Account. Admin provider settings are configured under Setup () → Google and Microsoft (under Integrations). See Email and SMS for the complete setup guide, sync behavior, and configuration options.

SMS integration

SMS uses Twilio. Configure provider accounts and sender profiles under Setup () → Twilio. See Email and SMS for the full setup guide including provider accounts, sender profiles, and consent management.

AI providers

Setup → Integrations → AI Providers connects your own AI account, so Kraftter features that use AI (the first: summaries and suggestions after a call) send their requests to it. Your provider bills you directly, and what a feature sends goes only to your provider.

  • New Connection — the provider: Anthropic, OpenAI, or OpenAI-compatible (any provider or server with OpenAI's API; it asks for its address, which must start with https:// and can't be on a private network); a Label; the API Key, kept encrypted and shown only as its last 4 characters (leave it empty when editing to keep it); the Default Model, required, which shows once the provider, the API key and (for OpenAI-compatible) the address are given: Kraftter asks the provider for its models and lists them to choose from, or, for an OpenAI-compatible server that doesn't list its models, you type the model's name; a key the provider refuses shows its reason instead; and The Workspace's Default Connection: the connection features use when they don't choose one of their own, like scorecards, trackers, Deal Risk, and AI After Calls without a connection chosen in Setup → Phone. Only one connection is the default. The first connection is always the default, and the default shows this box checked and grayed out; to move the default, check it on another connection.
  • Check Connection (in Edit) — asks the provider for its models: Active, or Failing with the provider's reason. Its models are then offered as the Default Model. An OpenAI-compatible server that doesn't list its models is still Active. When the provider says so, it also shows a newer version of the Default Model (Anthropic: the newest model of the same family, like a newer Sonnet) and the date the Default Model retires (Anthropic) or shuts down (OpenAI). These are notices only: nothing changes until you choose another Default Model and save.
  • A retired model — when the provider stops offering a model, AI requests naming it fail. Kraftter then reads the provider's list of models. For Anthropic, it switches to the newest model of the same family (for example, from an older Sonnet to the newest Sonnet), both the connection's Default Model and the Model in Setup → Phone → AI After Calls when they name it, asks the request again, writes the switch in the audit log and sends an in-app notification. The new model's price and answers may differ. For OpenAI and OpenAI-compatible providers, nothing is switched: an in-app notification says the model is no longer available, once per model, and AI features using it stop working until you choose another model. Notifications go to whoever added the connection, or to the workspace owner when that person is no longer active. Other failures, like a refused key or a busy provider, don't change anything.
  • This Month's Use — requests and tokens by connection, feature and model.

AI Providers: Read opens the page and AI Providers: Edit changes it (at first: the Administrator and Manager Permissions). Changes are in the audit log, never the key. A sandbox never gets the workspace's connections: connect one there yourself.

Outbound webhooks

Outbound webhooks send an HTTP POST to an external endpoint when an event happens in Kraftter.

Create an outbound webhook

Go to Setup () → Outbound Webhooks and create one. Configure:

  • Target URL — the endpoint that receives the POST.
  • Events — which events to send: record events for the objects you keep records in, standard or custom, sent whenever a record is created, changed or deleted — from a record page, the API, an import, a flow, Kraftter AI or CPQ (for example account.created, opportunity.updated, contact.deleted; the payload is the record's fields plus Id). A record Kraftter creates by itself sends its created event too: the activity logged for an email, a text or a meeting, the lead, contact or account a booking page creates, a campaign participant, the products copied onto a new quote. A meeting synced from your calendar also sends its updated or deleted event when it changes or is removed there. Reports, dashboards, forms, document templates, signing packets, files, record variants and the workspace itself have no record events. You can also choose campaign events (campaign.participant.enrolled, campaign.participant.completed, campaign.email.opened, …), SMS events (sms.message_sent, sms.message_received, …), call events (call.started, call.answered, call.ended with its outcome, talk time and Call Result, call.missed, call.voicemail_left, call.recording_ready, and call.held when a sandbox's Call Deliverability holds a call — never the audio itself), and scheduling events for every booking (scheduling.booking_confirmed, …). Every event you choose is sent whenever it happens.
  • Active — inactive webhooks are not called.

Kraftter generates the webhook's signing secret when you create it; you don't choose one.

A test delivery can be sent through the API (POST /webhooks/{webhook_id}/send-test).

Payload and signature

Each delivery is a JSON POST: {"eventType": …, "timestamp": …, "payload": {…}}. Every delivery is signed following the Standard Webhooks spec, the same way as form webhooks, with three headers:

  • webhook-id — the delivery's unique ID. It stays the same on every retry, so you can ignore deliveries you've already processed.
  • webhook-timestamp — when the delivery was sent, in Unix seconds.
  • webhook-signature — v1, followed by the base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{body}. The key is the signing secret without its whsec_ prefix, base64-decoded.

Verify the signature before trusting the payload; the Standard Webhooks libraries do this for you. To see the signing secret, open the webhook and reveal it with a verification code (sent to your authenticator app, or by email).

Delivery

Deliveries are sent in the background, shortly after the event. Kraftter waits up to 15 seconds for a 2xx response. If the endpoint doesn't answer with a 2xx, the delivery is retried for about 3 days, 11 tries in total: after 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours, 10 hours, 14 hours, 14 hours and 16 hours. Every try (status code, response, or error) is recorded with the webhook so you can review it.

If the last try also fails, the delivery stops and the user who created the webhook gets an in-app notification. If that user is no longer active, the workspace owner gets it.

The webhook's page lists its Deliveries: the event, whether it was delivered, is still being retried or has failed, how many tries it took, and the last answer. Once you've fixed the receiving end, choose Re-send on a failed delivery to send it again. It carries the same content and the same webhook-id, so your endpoint can recognise a repeat, and it is retried like any other delivery. A delivery that was received, or is still being retried automatically, can't be re-sent. (API: GET /webhooks/{webhook_id}/deliveries and POST /webhooks/{webhook_id}/deliveries/{delivery_id}/resend.)

Inbound webhooks

Inbound webhooks let an external system send data into Kraftter to start a flow. Create one under Setup () → Inbound Webhooks: it gets its own URL (from its Endpoint Key), a Payload Format (JSON or Form URL-Encoded), optional signing (Authentication Enabled with a Signing Secret and Signature Header Name), and an Expected Payload Sample that tells the flow builder which fields to offer. Then pick it as the trigger of a flow (see Flows).

With HMAC signing, every request must carry the header with the hex HMAC-SHA256 of the raw body (bare or as sha256=…); requests with a missing or wrong signature are refused. Request bodies can be up to 256 KB.

API clients

API clients are long-lived credentials for programmatic access to the Kraftter REST API — for custom integrations, internal tools, or third-party systems connecting to your workspace.

Create an API client

Go to Setup () → API Clients and create a new client. Configure:

  • Label and API Name — a name identifying what this client is used for. API Name is derived from the label automatically if you don't set one.
  • App Type — required. Server app keeps its Client Secret on a server. Phone or desktop app and Browser app can't keep a secret, so they get none and must use PKCE (see below).
  • Redirect URIs — only for apps that sign people in with Kraftter's Allow page: where Kraftter sends the person back, one per line, matched exactly. Each must be an https:// address without a # part; phone or desktop apps may also use http://127.0.0.1, http://[::1], or their own app scheme, like com.example.app:/callback.
  • Mode — who can authenticate through this client: Open (any active user) or Allowlist (only the users on the client's Allowed Users list).
  • Run As User — optional. When set, every request made through this client executes under that fixed identity, regardless of which user actually authenticated. It is required for the client credentials method. Setting a Run As User, or later widening the client's Mode or Allowed Users while one is already set, requires you to already hold every permission that user holds — otherwise the change is rejected. This keeps a client from being used to grant broader access than the person configuring it actually has.
  • Scopes — caps what this client can do, regardless of the authenticating (or Run As) user's own permissions. Choose one or more predefined scopes:
    • full_access — read, create, edit, and delete all records.
    • full_read — read-only access to all records.
    • full_create — read and create records.
    • full_edit — read and edit records.
    • full_delete — read and delete records.
    Or choose Custom to restrict the client to specific actions on specific objects instead (for example, read and create on Opportunity only). Regardless of scope, an API client can never perform account- or tenant-level actions such as managing permissions, access permissions, billing, sandboxes, or other users.

Client credentials

After creating the client, the Client ID is shown, and for a Server app the Client Secret. Copy the secret immediately — it is displayed only once and hashed for storage. Kraftter does not store the plaintext secret; if lost, rotate to generate a new one.

Viewing the client secret again from the detail page requires a verification code — sent to your authenticator app if you have one set up, or to your email otherwise — to protect against shoulder-surfing and session hijacking.

The buttons beside the client's name on its page (Edit, Reveal Secret, Rotate Secret, Delete; while editing Save and Cancel) stay on one line, in their order. When the window is too narrow for all of them, the ones that don't fit move, in the same order, into a ⋮ button at the end of the line. On a phone the buttons sit on their own line under the name.

Authentication

An API client gets a short-lived Bearer token from Kraftter's token endpoint in one of these ways:

  • Client credentials — a Server app's Client ID and Client Secret alone. The token acts as the client's Run As User.
  • Authorization code — for an app that acts for a person. The app sends the person to Kraftter's Allow page; they sign in as usual (SSO, MFA and passkeys apply) and see Allow … to use Kraftter as you? with Allow and Deny. With the client's Mode on Allowlist, only its Allowed Users can allow it. After Allow, Kraftter sends them back to the app with a one-time code, valid for 5 minutes, which the app exchanges for a token acting as that person and a refresh token. Kraftter remembers the approval: next time the person goes straight back to the app. Phone, desktop and browser apps must use PKCE (S256).
  • A user's password — the client ID and secret plus a workspace member's username and password. Off by default: it works only while Setup → Security → Allow API Clients to Sign In With a User's Password is on. MFA and SSO don't apply to it, which is why it's safer off.

Include the token in the Authorization: Bearer <token> header, along with your X-Workspace-Id header, on all API requests. See the API Reference for the token endpoint and example requests.

Tokens last 60 minutes, then request a new one. They are independent of the user's app sessions: signing out of the app does not end an integration's token. A refresh token is replaced every time it's used and lasts 90 days from each use (a Browser app's ends 24 hours after the person allowed it); a replaced refresh token used again ends all the tokens from that approval.

A person sees the apps they allowed in User Settings → Allowed Apps and can revoke one there; an administrator with Users: Manage can do the same on their user page. Revoking ends that app's refresh tokens for them.

AI assistants such as Claude and ChatGPT don't use API clients: they connect through the workspace's MCP server (see MCP Server).

The IP Allowlist of the token's user applies to the API too: a token isn't given, and requests are refused, from an address their Permission doesn't allow (see Permissions).

Saving several changes at once

POST /batch saves up to 200 steps all or nothing: every step runs through its own endpoint, with all of its checks, and either every step is saved or none is. A step can use an earlier step’s answer, for example {{steps.account.Id}}. The answer streams one line per event: progress, then Saved with each step’s answer, Failed with the step and its reason, or DuplicateWarning listing every step that matched a duplicate rule set to warn (send the same steps again with DuplicateWarningConfirmed to save anyway). Each step must be an endpoint your client may call. See the API reference for the details.

The Run As user

While a user is an API client's Run As User, they can't be deactivated or blacklisted: Kraftter answers that they are the Run As user of that client, and to replace them on the client (or delete the client) first. The client's detail page shows the Run As user's name.

Rotate or revoke

Rotate the client secret at any time from the client's detail page — useful after a secret is exposed or as part of a regular rotation policy. Rotation immediately invalidates the old secret and all tokens issued with it; active integrations using the old secret will fail until updated with the new one. Delete the client entirely to permanently revoke all access.

This guide is part of the Kraftter documentation V1. Visual walkthroughs and examples are coming in a future update.