FloGPT API reference

The organization REST API configures chat and voice agents, manages CRM records, fires outbound triggers, subscribes to events and reads conversations, calls and analytics for one FloGPT organization. Everything below is generated from the live OpenAPI specification.

Authentication

Every request carries an organization API key, sent as Authorization: Bearer <key> or in the x-api-key header. Keys start with fg_live_ (or fg_test_ outside production).

An organization owner or admin creates keys in the dashboard under Setup → API Keys. The full key is shown once, when it is created. Scopes can be edited later without rotating the key.

curl "https://api.flogpt.in/api/v1/me" \
  -H "Authorization: Bearer $FLOGPT_API_KEY"

Base URL, scopes and limits

Base URL: https://api.flogpt.in/api/v1

Each endpoint requires exactly one scope, shown next to it below. Scopes are not hierarchical: a :write scope does not grant the matching :read. GET /me needs a valid key but no scope, which makes it the right call for checking a key.

Reads default to 600 requests a minute and writes to 120, per key. Watch the X-RateLimit-Remaining header; a 429 carries Retry-After.

Errors share one envelope, { error: { code, message } }. A 401 is a bad or revoked key, a 403 a missing scope, and another organization's resource answers 404.

floGPT Organization API · version 1.0.0

Configure chat and call widgets, manage CRM records, wire up integrations and outbound triggers, and read conversations, call logs, call centre history and analytics for one floGPT organization.

API keys are organization-scoped and can be created by an owner or admin in Settings → Security → API Keys. Send a key as Authorization: Bearer <key> or in the x-api-key header. Keys are shown only once when created.

Every operation requires exactly one scope, published below as x-required-scope. Scopes are not hierarchical — :write does not imply :read.

Read requests default to 600 per minute and writes (POST/PUT/PATCH/DELETE) to 120 per minute, overridable per key. Use the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset response headers to monitor the active limit; a 429 also carries Retry-After.

A resource belonging to another organization returns 404, not 403, so a key cannot probe for identifiers it does not own.

System

GET/healthNo API key

Check API availability

Responses
  • 200The API is available.
GET/openapi.jsonNo API key

Get this specification as JSON

Responses
  • 200The OpenAPI document.
GET/meAny valid key

Identify the calling API key

Returns the organization the key belongs to and the scopes it holds.

Requires authentication but no scope, so a client can verify a key without being granted read access to a resource it does not otherwise need.

Responses
  • 200The calling key's identity.
  • 401The API key is missing, invalid, revoked, or expired.

Chat widgets

GET/chat-widgetswidgets:read

List chat widgets

Parameters
pagequery · integer
limitquery · integer
Responses
  • 200Chat widget page
  • 401The API key is missing, invalid, revoked, or expired.
  • 403The API key does not include the required scope.
  • 429The API key exceeded its read or write rate limit.
POST/chat-widgetswidgets:write

Create a chat widget

Takes a JSON request body.

Responses
  • 201Created chat widget
  • 400The request is invalid.
  • 403The API key does not include the required scope.
GET/chat-widgets/{id}widgets:read

Get a chat widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Chat widget
  • 404The resource does not exist in the API key's organization.
PATCH/chat-widgets/{id}widgets:write

Update a chat widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated chat widget
  • 404The resource does not exist in the API key's organization.
DELETE/chat-widgets/{id}widgets:write

Delete a chat widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 204Chat widget deleted
  • 404The resource does not exist in the API key's organization.
GET/chat-widgets/{id}/embed-codewidgets:read

Get chat widget embed code and test URL

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Embed code
  • 404The resource does not exist in the API key's organization.
POST/chat-widgets/{id}/attach-knowledge-basewidgets:write

Attach a knowledge base to a chat widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated chat widget
  • 404The resource does not exist in the API key's organization.

Call widgets

GET/call-widgetscall_widgets:read

List call widgets

Parameters
pagequery · integer
limitquery · integer
Responses
  • 200Call widget page
POST/call-widgetscall_widgets:write

Create a call widget

Takes a JSON request body.

Responses
  • 201Created call widget
POST/call-widgets/from-blueprintcall_widgets:write

Create a call widget from a blueprint

Takes a JSON request body.

Responses
  • 201Created call widget
GET/call-widgets/{id}call_widgets:read

Get a call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Call widget
  • 404The resource does not exist in the API key's organization.
PATCH/call-widgets/{id}call_widgets:write

Update a call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated call widget
DELETE/call-widgets/{id}call_widgets:write

Delete a call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 204Call widget deleted
POST/call-widgets/{id}/togglecall_widgets:write

Enable or disable a call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated call widget
POST/call-widgets/{id}/attach-pipelinecall_widgets:write

Attach a pipeline to a call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated call widget
POST/call-widgets/{id}/test-callcall_widgets:write

Place a test call from a call widget

Queues one outbound call to to (E.164) on the widget's trigger campaign. Accepted asynchronously — the call is placed by the queue, so a 202 means it was enqueued, not answered.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
JSON body
torequiredbody · stringDestination in E.164 format.
Responses
  • 202Test call queued
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.

Call pipelines

GET/call-pipelinescall_widgets:read

List call pipelines

Responses
  • 200Call pipeline page
POST/call-pipelinescall_widgets:write

Create a call pipeline

Takes a JSON request body.

Responses
  • 201Created call pipeline
GET/call-pipelines/{id}call_widgets:read

Get a call pipeline

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Call pipeline
PATCH/call-pipelines/{id}call_widgets:write

Update a call pipeline

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated call pipeline

Knowledge bases

GET/knowledge-basesknowledge:read

List knowledge bases

Responses
  • 200Knowledge base page
POST/knowledge-basesknowledge:write

Create a knowledge base

Takes a JSON request body.

Responses
  • 201Created knowledge base
GET/knowledge-bases/{id}knowledge:read

Get a knowledge base

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Knowledge base
PATCH/knowledge-bases/{id}knowledge:write

Update a knowledge base

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated knowledge base
POST/knowledge-bases/{id}/documentsknowledge:write

Add a document to a knowledge base

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 201Created knowledge document
POST/knowledge-bases/{id}/syncknowledge:write

Start knowledge base synchronization

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Synchronization result

Phone numbers

GET/phone-numberscall_widgets:read

List organization phone numbers

Responses
  • 200Phone number page
POST/phone-numbers/{id}/linkcall_widgets:write

Link a phone number to a call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Linked phone number
POST/phone-numbers/{id}/unlinkcall_widgets:write

Unlink a phone number from its call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Unlinked phone number
GET/phone-numbers/requestsphone_numbers:read

List phone number provisioning requests

Responses
  • 200Request page
POST/phone-numbers/requestsphone_numbers:write

Request a phone number

Numbers cannot be purchased through this API. Self-serve provisioning covers only a handful of countries; everywhere else needs KYC or carrier paperwork, so this files a request a floGPT admin fulfils by hand.

One open request per country — a second returns 409.

JSON body
countryrequiredbody · stringISO 3166-1 alpha-2.
areaCodePreferencebody · string
useCasebody · customer_support | appointment_booking | lead_generation | sales | survey_feedback | ads_to_call | other
directionbody · inbound | outbound | both
notesbody · string
callWidgetIdbody · string
Responses
  • 201Request filed
  • 409An open request for that country already exists
GET/phone-numbers/requests/{id}phone_numbers:read

Get a phone number request

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Request
  • 404The resource does not exist in the API key's organization.

CRM contacts

GET/contactscrm:read

List or search contacts

Parameters
pagequery · integer
limitquery · integer
searchquery · string
Responses
  • 200Contact page
POST/contactscrm:write

Create or upsert a contact

Takes a JSON request body.

Responses
  • 201Created contact
GET/contacts/{id}crm:read

Get a contact

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Contact
PATCH/contacts/{id}crm:write

Update a contact

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated contact
GET/contacts/{id}/activitycrm:read

Get contact activity

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Contact activity timeline

CRM tickets

GET/ticketscrm:read

List CRM tickets

Parameters
pagequery · integer
limitquery · integer
statusquery · string
Responses
  • 200Ticket page
POST/ticketscrm:write

Create a CRM ticket

Takes a JSON request body.

Responses
  • 201Created ticket
GET/tickets/{id}crm:read

Get a CRM ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Ticket
PATCH/tickets/{id}crm:write

Update a CRM ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated ticket
POST/tickets/{id}/acceptcrm:write

Accept a ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated ticket
POST/tickets/{id}/opencrm:write

Move a ticket to open

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated ticket
POST/tickets/{id}/holdcrm:write

Put a ticket on hold

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated ticket
POST/tickets/{id}/resumecrm:write

Resume a ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated ticket
POST/tickets/{id}/resolvecrm:write

Resolve a ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated ticket
POST/tickets/{id}/closecrm:write

Close a ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated ticket
POST/tickets/{id}/reassigncrm:write

Reassign a ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated ticket
POST/tickets/{id}/archivecrm:write

Archive a ticket

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated ticket
GET/tickets/{id}/notescrm:read

List internal ticket notes

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Ticket notes
POST/tickets/{id}/notescrm:write

Add an internal ticket note

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 201Created note

Conversations

GET/conversationsconversations:read

List chat conversations

Parameters
pagequery · integer
limitquery · integer
fromquery · string (date-time)Inclusive beginning of the reporting period.
toquery · string (date-time)Inclusive end of the reporting period.
Responses
  • 200Conversation page
GET/conversations/{id}conversations:read

Get a conversation

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Conversation
GET/conversations/{id}/messagesconversations:read

List conversation messages

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
pagequery · integer
limitquery · integer
Responses
  • 200Message page

Call logs

GET/call-logscalls:read

List call logs

Parameters
pagequery · integer
limitquery · integer
fromquery · string (date-time)Inclusive beginning of the reporting period.
toquery · string (date-time)Inclusive end of the reporting period.
Responses
  • 200Call log page
GET/call-logs/{id}calls:read

Get a call log with transcript and events

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Detailed call log
  • 404The resource does not exist in the API key's organization.
POST/call-logs/{id}/reinitiatecalls:write

Redial a call that did not reach its target

Only a failed dial, a voicemail, or a call-screening outcome qualifies, and the call must have originated from a campaign contact to redial. Anything else returns 422 with the reason in error.code (not_eligible, not_campaign_originated, contact_not_found).

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Call queued for redial
  • 404The resource does not exist in the API key's organization.
  • 422The call is not eligible for a manual redial.

Call centre

Calls handled by a human rep on the softphone, as opposed to the AI voice agent under Call logs. An API key authenticates as the organization rather than as a member of it, so these reads are always floor-wide — use agentId to narrow to one rep.

GET/call-centre/callscall_centre:read

List rep calls

Human call history with agent, disposition, wrap-up, recording flag and transcription status. Dispositions use the stored spelling (no-answer), not the underscore form the GraphQL API exposes.

Parameters
pagequery · integer
limitquery · integer
fromquery · string (date-time)Inclusive beginning of the reporting period.
toquery · string (date-time)Inclusive end of the reporting period.
agentIdquery · stringRestrict to one rep.
directionquery · incoming | outgoing
dispositionquery · connected | no-answer | busy | unreachable | voicemail | wrong-number | failed
leadIdquery · stringRestrict to calls against one lead row.
ringGroupIdquery · string
needsWrapUpquery · booleanOnly finished calls that still owe a disposition.
searchquery · stringMatches the phone numbers and the rep's wrap-up notes.
sortByquery · startedAt | durationSeconds | disposition
sortOrderquery · asc | desc
Responses
  • 200Rep call page
  • 400The request is invalid.
GET/call-centre/calls/{id}call_centre:read

Get a rep call with transcript and queue history

Accepts either the call identifier or the carrier call sid. A call handled by the AI voice agent is not addressable here — read it from /call-logs/{id} instead.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Detailed rep call

Analytics

GET/analytics/overviewanalytics:read

Get organization analytics overview

Parameters
fromquery · string (date-time)Inclusive beginning of the reporting period.
toquery · string (date-time)Inclusive end of the reporting period.
Responses
  • 200Analytics overview
GET/analytics/chat-widgets/{id}analytics:read

Get conversation and message counts for one chat widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
fromquery · string (date-time)Inclusive beginning of the reporting period.
toquery · string (date-time)Inclusive end of the reporting period.
Responses
  • 200Chat widget analytics
  • 404The resource does not exist in the API key's organization.
GET/analytics/call-widgets/{id}analytics:read

Get call totals and average duration for one call widget

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
fromquery · string (date-time)Inclusive beginning of the reporting period.
toquery · string (date-time)Inclusive end of the reporting period.
Responses
  • 200Call widget analytics
  • 404The resource does not exist in the API key's organization.
GET/analytics/crmanalytics:read

Get CRM analytics

Parameters
fromquery · string (date-time)Inclusive beginning of the reporting period.
toquery · string (date-time)Inclusive end of the reporting period.
includeArchivedquery · boolean
Responses
  • 200CRM analytics

Meta Lead Ads

GET/meta-lead-ads-integrationsmeta_lead_ads:read

List Meta Lead Ads integrations

Parameters
pagequery · integer
limitquery · integer
Responses
  • 200Integration page
POST/meta-lead-ads-integrationsmeta_lead_ads:write

Create a Meta Lead Ads integration

Credentials are write-only. Send userAccessToken, pageAccessToken and appSecret in the body; they are encrypted at rest and read back only as *Configured booleans. Supplying userAccessToken with a pageId also derives the page token and checks permissions. A webhookVerifyToken is generated server-side and cannot be set.

Takes a JSON request body.

Responses
  • 201Created integration
  • 400The request is invalid.
  • 409An integration for that page already exists in this organization.
GET/meta-lead-ads-integrations/{id}meta_lead_ads:read

Get a Meta Lead Ads integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Integration
  • 404The resource does not exist in the API key's organization.
PATCH/meta-lead-ads-integrations/{id}meta_lead_ads:write

Update a Meta Lead Ads integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated integration
  • 404The resource does not exist in the API key's organization.
  • 409An integration for that page already exists in this organization.
DELETE/meta-lead-ads-integrations/{id}meta_lead_ads:write

Delete a Meta Lead Ads integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 204Integration deleted
  • 404The resource does not exist in the API key's organization.
POST/meta-lead-ads-integrations/{id}/subscribemeta_lead_ads:write

Subscribe the page to the leadgen webhook

Requires a configured page access token. On success the integration becomes ACTIVE; on a Graph API failure it becomes ERROR with the reason in lastError, and the call still returns 200.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Integration after the subscribe attempt
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
POST/meta-lead-ads-integrations/{id}/regenerate-verify-tokenmeta_lead_ads:write

Rotate the webhook verify token

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Integration with the new verify token
  • 404The resource does not exist in the API key's organization.
POST/meta-lead-ads-integrations/{id}/generate-page-access-tokenmeta_lead_ads:write

Derive a page access token from the stored user token

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Integration with the derived page token
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
POST/meta-lead-ads-integrations/tools/check-token-permissionsmeta_lead_ads:read

Check which permissions a Meta token grants

Graph API helper. POST rather than GET so a raw token never lands in a query string or an access log.

JSON body
accessTokenrequiredbody · string
Responses
  • 200Permission list
  • 400The request is invalid.
POST/meta-lead-ads-integrations/tools/pagesmeta_lead_ads:read

List the Facebook pages a token can access

JSON body
accessTokenrequiredbody · string
Responses
  • 200Page list
  • 400The request is invalid.
POST/meta-lead-ads-integrations/tools/lead-formsmeta_lead_ads:read

List the lead forms on a page

JSON body
pageIdrequiredbody · string
accessTokenrequiredbody · string
Responses
  • 200Lead form list
  • 400The request is invalid.

Outbound triggers

GET/outbound-triggersoutbound_triggers:read

List outbound triggers

Parameters
pagequery · integer
limitquery · integer
callWidgetIdquery · stringRestrict to triggers on one call widget.
Responses
  • 200Trigger page
  • 404The resource does not exist in the API key's organization.
POST/outbound-triggersoutbound_triggers:write

Create an outbound trigger

callWidgetId, sourceType and name are required. A shopify_event trigger reconciles its Shopify webhooks in the background after the response is sent.

Takes a JSON request body.

Responses
  • 201Created trigger
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
GET/outbound-triggers/templatesoutbound_triggers:read

List the trigger template catalogue

Parameters
useCasequery · stringRestrict the catalogue to one use case.
Responses
  • 200Template list
GET/outbound-triggers/{id}outbound_triggers:read

Get an outbound trigger

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Trigger
  • 404The resource does not exist in the API key's organization.
PATCH/outbound-triggers/{id}outbound_triggers:write

Update an outbound trigger

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated trigger
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
DELETE/outbound-triggers/{id}outbound_triggers:write

Delete an outbound trigger

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 204Trigger deleted
  • 404The resource does not exist in the API key's organization.
POST/outbound-triggers/{id}/enableoutbound_triggers:write

Enable an outbound trigger

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated trigger
  • 404The resource does not exist in the API key's organization.
POST/outbound-triggers/{id}/disableoutbound_triggers:write

Disable an outbound trigger

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Updated trigger
  • 404The resource does not exist in the API key's organization.
POST/outbound-triggers/{id}/fireoutbound_triggers:write

Fire an outbound trigger for one phone number

Dispatches through the same path as a Shopify or webhook-raised event, so the trigger's filters, dedupe window, and rate limit all apply.

202 means the call was queued. A 200 means the request was valid but the trigger chose not to call — data.status is filtered or deduped and data.reason says why. Neither is an error, so a client should not retry on them.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
JSON body
torequiredbody · stringE.164 destination number.
contactNamebody · stringUsed by the agent to greet the person by name.
eventKeybody · stringDeduplication key. Repeat fires with the same key inside the trigger's dedupe window return `deduped`. Omit to skip deduplication.
metadatabody · objectMerged into call metadata and exposed to the call script.
payloadbody · objectEvent body used to evaluate the trigger's filters and templates.
dryRunbody · booleanRecord and evaluate the event without placing a call.
Responses
  • 200Not called — filtered or deduped
  • 202Call queued
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
  • 422Trigger could not be dispatched

Data collections

GET/data-collectionsdata_collections:read

List data collections

Metadata only — row data is never included, and entryCount comes from the collection's own counter.

Parameters
pagequery · integer
limitquery · integer
Responses
  • 200Data collection page
POST/data-collectionsdata_collections:write

Create a data collection

Takes a JSON request body.

Responses
  • 201Created data collection
  • 400The request is invalid.
GET/data-collections/{id}data_collections:read

Get data collection metadata

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Data collection
  • 404The resource does not exist in the API key's organization.
PATCH/data-collections/{id}data_collections:write

Update a data collection

A collection owned by an integration (readOnly: true, e.g. Shopify) cannot be edited and returns 400 read_only_collection.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated data collection
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
GET/data-collections/{id}/leadsdata_collections:read

List leads in a data collection

The rows of the collection, ordered by row number. Use updatedSince to pull only what has changed since a previous sync.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
pagequery · integer
limitquery · integer
statusquery · new | contacted | callback | won | lostRestrict to one pipeline status.
updatedSincequery · string (date-time)Only rows modified at or after this instant.
Responses
  • 200Lead page
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
POST/data-collections/{id}/leadsdata_collections:write

Upsert leads into a data collection

Up to 1000 leads per request, applied through the same importer the CSV upload uses. A row that matches an existing lead updates it rather than inserting a second copy; the match column is the collection's primaryKeyColumn when it declares one, otherwise its phone column. Phone matching compares the last ten digits, so +1 (555) 100-0000 and 5551000000 are the same lead.

Rows are never rejected as a batch — the response tallies what was created, updated and skipped, and explains each skipped or malformed value in warnings. Rows that would take the collection past its plan row limit are refused individually and reported the same way; 409 is returned only when the collection was already over its limit and nothing could be written.

A collection owned by an integration (readOnly: true, e.g. Shopify) cannot be written to and returns 400 read_only_collection.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
JSON body
leadsrequiredbody · object[]
Responses
  • 200Import tally
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
  • 409The request cannot be applied in the resource's current state.

Email integrations

GET/email-integrationsemail_integrations:read

List email integrations

The organization's SMTP send / IMAP poll mailboxes. Other social platforms are not exposed here.

Parameters
pagequery · integer
limitquery · integer
Responses
  • 200Email integration page
POST/email-integrationsemail_integrations:write

Create an email integration

name is required. SMTP/IMAP passwords are encrypted at rest and read back only as smtpPasswordConfigured / imapPasswordConfigured. On a PATCH, a blank password means "unchanged" rather than "clear", so a client can round-trip the redacted object safely.

Takes a JSON request body.

Responses
  • 201Created email integration
  • 400The request is invalid.
GET/email-integrations/{id}email_integrations:read

Get an email integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Email integration
  • 404The resource does not exist in the API key's organization.
PATCH/email-integrations/{id}email_integrations:write

Update an email integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated email integration
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
DELETE/email-integrations/{id}email_integrations:write

Delete an email integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 204Email integration deleted
  • 404The resource does not exist in the API key's organization.

Organization

The organization's own configuration. Scoped tightly on purpose: billing, usage, ownership, membership and the role-permission policy are not reachable at any scope, and stay behind a dashboard session.

GET/organizationorg_settings:read

Get organization configuration

Responses
  • 200Organization configuration
PATCH/organizationorg_settings:write

Update organization configuration

Accepts only the configuration allowlist: logo, ticketPrefix and, under settings, timezone, allowedDomains, maxChatSessions, retentionDays, enableAnalytics, aiModels.model, supportBusinessHours, slaPolicy, emailToTicket, piiRedaction and channelTicketing. Any other field is rejected rather than ignored.

emailToTicket.signingSecret is not writable here and reads back as a boolean, so round-tripping the object cannot blank it.

Takes a JSON request body.

Responses
  • 200Updated configuration
  • 400The request is invalid.
  • 409That ticket prefix belongs to another organization
GET/organization/business-hoursorg_settings:read

Get support business hours

Responses
  • 200Business hours
PUT/organization/business-hoursorg_settings:write

Replace support business hours

Sending days replaces the whole week, so include every open day.

Takes a JSON request body.

Responses
  • 200Updated business hours
  • 400The request is invalid.

Team

GET/teamteam:read

List organization members

Responses
  • 200Member list
POST/team/invitesteam:write

Invite a member

Sends a real invitation email. Roles are limited to admin, supervisor and agent.

JSON body
emailrequiredbody · string (email)
rolerequiredbody · admin | supervisor | agent
Responses
  • 201Invitation sent
  • 400The request is invalid.
PATCH/team/members/{userId}team:write

Change a member's role

The owner's row cannot be changed and owner cannot be assigned — ownership carries billing and lives on a different field.

Parameters
userIdrequiredpath · string
JSON body
rolerequiredbody · admin | supervisor | agent
Responses
  • 200Updated member
  • 400The request is invalid.
  • 404The resource does not exist in the API key's organization.
DELETE/team/members/{userId}team:write

Remove a member

Removes the membership, not the user account.

Parameters
userIdrequiredpath · string
Responses
  • 204Member removed
  • 404The resource does not exist in the API key's organization.

Workflows

GET/workflowsworkflows:read

List workflows

Parameters
pagequery · integer
limitquery · integer
statusquery · DRAFT | ACTIVE | INACTIVE | ARCHIVED
Responses
  • 200Workflow page
POST/workflowsworkflows:write

Create a workflow

Takes a JSON request body.

Responses
  • 201Created workflow
GET/workflows/{id}workflows:read

Get a workflow with its graph

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Workflow
  • 404The resource does not exist in the API key's organization.
PATCH/workflows/{id}workflows:write

Update a workflow

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated workflow
POST/workflows/{id}/publishworkflows:write

Publish a workflow

Snapshots the current graph into the workflow's revision history, bumps the patch version and sets it ACTIVE. Rejected unless the graph has at least one node and both a START and an END node.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Published workflow
  • 400The graph is not publishable

Integrations

Channel integrations across every platform. Credentials are write-only — reads report each one as configured or not, never its value. Email is also served by Email integrations, which is the canonical route for it.

GET/integrationsintegrations:read

List channel integrations

Parameters
pagequery · integer
limitquery · integer
platformquery · WHATSAPP | TELEGRAM | EMAIL | FACEBOOK | INSTAGRAM | SLACK | DISCORD | SMS
Responses
  • 200Integration page
POST/integrationsintegrations:write

Create a channel integration

config accepts only the fields valid for the chosen platform; anything else is rejected. Credentials inside it are write-only.

Takes a JSON request body.

Responses
  • 201Created integration
  • 400The request is invalid.
GET/integrations/{id}integrations:read

Get a channel integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Integration
  • 404The resource does not exist in the API key's organization.
PATCH/integrations/{id}integrations:write

Update a channel integration

platform cannot change. A blank credential value means "leave the stored value alone", so a client round-tripping a read cannot wipe one.

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated integration
  • 400The request is invalid.
DELETE/integrations/{id}integrations:write

Delete a channel integration

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 204Integration deleted

Calendars

GET/calendarscalendars:read

List booking calendars

Responses
  • 200Calendar page
POST/calendarscalendars:write

Create a booking calendar

Backed by a data collection, which holds the bookings. A collection can back only one calendar, so reusing one returns 409.

Takes a JSON request body.

Responses
  • 201Created calendar
  • 409That data collection already backs another calendar
GET/calendars/{id}calendars:read

Get a booking calendar

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 200Calendar
  • 404The resource does not exist in the API key's organization.
PATCH/calendars/{id}calendars:write

Update a booking calendar

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.

Takes a JSON request body.

Responses
  • 200Updated calendar
  • 400The request is invalid.

Billing

Read-only. There is deliberately no billing:write scope: plan and payment-method changes move money and are only possible in the dashboard.

GET/billingbilling:read

Get billing status

Plan, subscription status, whether a payment method exists, and the usage snapshot. There is no write counterpart.

usageCredits is the prepaid credit balance: one credit is one AI voice minute, and other usage burns fractions, so it can carry two decimals. minutesCredits is the same balance rounded down, kept for older clients.

Responses
  • 200Billing status

Setup

GET/setup/checklistsetup:read

Get setup progress

Derived by probing the workspace's resources on every call, not stored — so it cannot drift when a resource is deleted. Each item reports whether it is complete, whether it is required, and a sentence explaining why.

Responses
  • 200Setup checklist

Diagnostics

Read-only self-troubleshooting. Every check probes the workspace and reports findings; none of them can change configuration, which is why there is no diagnostics:write scope. Both routes are GET, including the one that runs a suite — running a diagnostic is a read.

GET/diagnostics/cataloguediagnostics:read

List available diagnostic checks and flows

Every check that can be run, grouped by area, plus the symptom-shaped flows. A flow owns no probes of its own — it is an ordered list of check ids that already exist, so it cannot drift from what it names.

Responses
  • 200Catalogue of checks and flows
GET/diagnostics/rundiagnostics:read

Run diagnostic checks

Runs the selected checks and returns findings with remediation. Naming nothing runs the whole catalogue. Unknown ids are rejected rather than skipped, so a stale selection fails loudly instead of reporting "all clear" over checks that never ran.

status distinguishes fail (a finding about your workspace) from error (our probe broke and knows nothing). healthy is false for either, because an unknown is not a pass.

Parameters
checksquery · stringComma-separated check ids.
areasquery · stringComma-separated areas.
flowquery · stringA single flow id.
Responses
  • 200Diagnostic run results
  • 400Unknown check

OTP

One-time login codes for your own sign-in forms (the floGPT WordPress plugin uses these). floGPT generates or requests the code, delivers it, and is the only party that can approve it: your server sends, the visitor types the code into your form, and your server asks verify whether it matches. A verification approves at most once.

Phone numbers must be E.164. +91 numbers are delivered through a DLT-registered Indian SMS provider; other countries use Twilio Verify. SMS sends are billed as SMS usage on the workspace. Requires the otp:write scope, which only an API key can carry — OAuth connectors are never granted it.

POST/otp/sendotp:write

Send a login code

Delivers a code to to and returns the verificationId your server keeps for the follow-up verify. Sending again to the same destination supersedes any code still outstanding for it.

Limits per destination: one send per 30 seconds, 5 per hour, 10 per day. Pass the visitor's IP as client.ip to also limit each visitor to 10 per hour; without it only the destination and workspace limits apply.

codeLength and ttlSeconds are requests. Managed providers (Twilio Verify, MSG91) fix the length themselves, so read codeLength from the response to size your input.

JSON body
channelrequiredbody · sms | whatsapp | email | voice
torequiredbody · stringE.164 phone number, or an email address for `email`.
codeLengthbody · integer
ttlSecondsbody · integer
localebody · stringBCP 47 tag for providers that localize the message, e.g. `hi`.
clientbody · object
Responses
  • 201Code sent
  • 400The request is invalid.
  • 402`billing_suspended`: SMS is paused for the workspace. `details.availableChannels` lists what still works.
  • 409`channel_unavailable`: nothing can deliver this channel to this destination yet. `details.availableChannels` lists what can.
  • 429The API key exceeded its read or write rate limit.
  • 502`provider_error`: every provider refused or was unreachable.
POST/otp/verifyotp:write

Check a login code

Approves the verification when code matches. Each verification allows 5 attempts and succeeds once; a second verify of the same id answers already_used. The response's to is the full, normalized destination the code was sent to — use it, not the visitor's input, to look up the account.

JSON body
verificationIdrequiredbody · string
coderequiredbody · string
tobody · stringOptional. When given, must match the destination the code was sent to.
Responses
  • 200Code accepted
  • 400`invalid_code` (with `details.attemptsRemaining`) or `invalid_code_format`.
  • 404The resource does not exist in the API key's organization.
  • 409`already_used`, or `destination_mismatch` when `to` differs.
  • 410`expired`, or `superseded` when a newer code was sent.
  • 429`too_many_attempts`: request a new code.
  • 502`provider_error`: the provider could not be asked. The attempt is not counted.
GET/otp/channelsotp:write

List channels that can deliver a code

Which channels can deliver a code right now, for Indian (+91) and all other destinations. Use it to hide options that would fail — SMS to +91 stays unavailable until a DLT-approved template is configured.

Responses
  • 200Deliverable channels per market

Event subscriptions

Push delivery for floGPT events. Subscribe a URL and floGPT POSTs each matching event to it, signed with the subscription's own secret, instead of the client polling for changes.

GET/hooks/eventswebhooks:read

List subscribable events

Responses
  • 200Supported event names
GET/hooks/sampleswebhooks:read

Recent occurrences of an event

Returns the most recent real occurrences of an event in the same { event, occurredAt, organizationId, data } envelope a subscriber receives, so an integration can show sample data without waiting for a live delivery. occurredAt is when the event actually happened.

Each payload is built by the same code that builds the delivered webhook, so a record read here is structurally identical to one delivered later.

Events with no recorded history, and subscribable events that cannot yet be reconstructed, return an empty list rather than an error.

Parameters
eventrequiredquery · stringOne of the names from `GET /hooks/events`.
limitquery · integer
Responses
  • 200Recent event envelopes
  • 400The request is invalid.
GET/hookswebhooks:read

List event subscriptions

Parameters
pagequery · integer
limitquery · integer
eventquery · stringFilter to a single event name.
Responses
  • 200Subscription page
  • 400The request is invalid.
POST/hookswebhooks:write

Subscribe to an event

Registers a URL to receive an event. Deliveries are signed with the returned signingSecret using the X-FloGPT-Signature: t=<unix>,v1=<hex> header, where the signed string is <timestamp>.<raw body>.

Idempotent on (event, targetUrl): re-subscribing reactivates the existing subscription and issues a fresh secret rather than creating a duplicate, so one event is never delivered twice to the same URL.

signingSecret is returned by this endpoint only and cannot be read back afterwards. targetUrl must be HTTPS and publicly routable.

JSON body
eventrequiredbody · stringOne of the names from `GET /hooks/events`.
targetUrlrequiredbody · string (uri)
Responses
  • 201Subscription created
  • 400The request is invalid.
DELETE/hooks/{id}webhooks:write

Unsubscribe

Parameters
idrequiredpath · stringResource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted.
Responses
  • 204Subscription deleted
  • 404The resource does not exist in the API key's organization.