/healthNo API keyCheck API availability
200The API is available.
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.
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: 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.
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.
/healthNo API key200The API is available./openapi.jsonNo API key200The OpenAPI document./meAny valid keyReturns 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.
200The calling key's identity.401The API key is missing, invalid, revoked, or expired./chat-widgetswidgets:readpage | query · integer | |
limit | query · integer |
200Chat widget page401The 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./chat-widgetswidgets:writeTakes a JSON request body.
201Created chat widget400The request is invalid.403The API key does not include the required scope./chat-widgets/{id}widgets:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Chat widget404The resource does not exist in the API key's organization./chat-widgets/{id}widgets:writeidrequired | path · string | Resource 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.
200Updated chat widget404The resource does not exist in the API key's organization./chat-widgets/{id}widgets:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
204Chat widget deleted404The resource does not exist in the API key's organization./chat-widgets/{id}/embed-codewidgets:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Embed code404The resource does not exist in the API key's organization./chat-widgets/{id}/attach-knowledge-basewidgets:writeidrequired | path · string | Resource 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.
200Updated chat widget404The resource does not exist in the API key's organization./call-widgetscall_widgets:readpage | query · integer | |
limit | query · integer |
200Call widget page/call-widgetscall_widgets:writeTakes a JSON request body.
201Created call widget/call-widgets/from-blueprintcall_widgets:writeTakes a JSON request body.
201Created call widget/call-widgets/{id}call_widgets:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Call widget404The resource does not exist in the API key's organization./call-widgets/{id}call_widgets:writeidrequired | path · string | Resource 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.
200Updated call widget/call-widgets/{id}call_widgets:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
204Call widget deleted/call-widgets/{id}/togglecall_widgets:writeidrequired | path · string | Resource 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.
200Updated call widget/call-widgets/{id}/attach-pipelinecall_widgets:writeidrequired | path · string | Resource 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.
200Updated call widget/call-widgets/{id}/test-callcall_widgets:writeQueues 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.
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
torequired | body · string | Destination in E.164 format. |
202Test call queued400The request is invalid.404The resource does not exist in the API key's organization./call-pipelinescall_widgets:read200Call pipeline page/call-pipelinescall_widgets:writeTakes a JSON request body.
201Created call pipeline/call-pipelines/{id}call_widgets:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Call pipeline/call-pipelines/{id}call_widgets:writeidrequired | path · string | Resource 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.
200Updated call pipeline/knowledge-basesknowledge:read200Knowledge base page/knowledge-basesknowledge:writeTakes a JSON request body.
201Created knowledge base/knowledge-bases/{id}knowledge:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Knowledge base/knowledge-bases/{id}knowledge:writeidrequired | path · string | Resource 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.
200Updated knowledge base/knowledge-bases/{id}/documentsknowledge:writeidrequired | path · string | Resource 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.
201Created knowledge document/knowledge-bases/{id}/syncknowledge:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Synchronization result/phone-numberscall_widgets:read200Phone number page/phone-numbers/{id}/linkcall_widgets:writeidrequired | path · string | Resource 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.
200Linked phone number/phone-numbers/{id}/unlinkcall_widgets:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Unlinked phone number/phone-numbers/requestsphone_numbers:read200Request page/phone-numbers/requestsphone_numbers:writeNumbers 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.
countryrequired | body · string | ISO 3166-1 alpha-2. |
areaCodePreference | body · string | |
useCase | body · customer_support | appointment_booking | lead_generation | sales | survey_feedback | ads_to_call | other | |
direction | body · inbound | outbound | both | |
notes | body · string | |
callWidgetId | body · string |
201Request filed409An open request for that country already exists/phone-numbers/requests/{id}phone_numbers:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Request404The resource does not exist in the API key's organization./contactscrm:readpage | query · integer | |
limit | query · integer | |
search | query · string |
200Contact page/contactscrm:writeTakes a JSON request body.
201Created contact/contacts/{id}crm:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Contact/contacts/{id}crm:writeidrequired | path · string | Resource 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.
200Updated contact/contacts/{id}/activitycrm:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Contact activity timeline/ticketscrm:readpage | query · integer | |
limit | query · integer | |
status | query · string |
200Ticket page/ticketscrm:writeTakes a JSON request body.
201Created ticket/tickets/{id}crm:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Ticket/tickets/{id}crm:writeidrequired | path · string | Resource 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.
200Updated ticket/tickets/{id}/acceptcrm:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated ticket/tickets/{id}/opencrm:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated ticket/tickets/{id}/holdcrm:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated ticket/tickets/{id}/resumecrm:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated ticket/tickets/{id}/resolvecrm:writeidrequired | path · string | Resource 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.
200Updated ticket/tickets/{id}/closecrm:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated ticket/tickets/{id}/reassigncrm:writeidrequired | path · string | Resource 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.
200Updated ticket/tickets/{id}/archivecrm:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated ticket/tickets/{id}/notescrm:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Ticket notes/tickets/{id}/notescrm:writeidrequired | path · string | Resource 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.
201Created note/conversationsconversations:readpage | query · integer | |
limit | query · integer | |
from | query · string (date-time) | Inclusive beginning of the reporting period. |
to | query · string (date-time) | Inclusive end of the reporting period. |
200Conversation page/conversations/{id}conversations:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Conversation/conversations/{id}/messagesconversations:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
page | query · integer | |
limit | query · integer |
200Message page/call-logscalls:readpage | query · integer | |
limit | query · integer | |
from | query · string (date-time) | Inclusive beginning of the reporting period. |
to | query · string (date-time) | Inclusive end of the reporting period. |
200Call log page/call-logs/{id}calls:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Detailed call log404The resource does not exist in the API key's organization./call-logs/{id}/reinitiatecalls:writeOnly 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).
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Call queued for redial404The resource does not exist in the API key's organization.422The call is not eligible for a manual redial.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.
/call-centre/callscall_centre:readHuman 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.
page | query · integer | |
limit | query · integer | |
from | query · string (date-time) | Inclusive beginning of the reporting period. |
to | query · string (date-time) | Inclusive end of the reporting period. |
agentId | query · string | Restrict to one rep. |
direction | query · incoming | outgoing | |
disposition | query · connected | no-answer | busy | unreachable | voicemail | wrong-number | failed | |
leadId | query · string | Restrict to calls against one lead row. |
ringGroupId | query · string | |
needsWrapUp | query · boolean | Only finished calls that still owe a disposition. |
search | query · string | Matches the phone numbers and the rep's wrap-up notes. |
sortBy | query · startedAt | durationSeconds | disposition | |
sortOrder | query · asc | desc |
200Rep call page400The request is invalid./call-centre/calls/{id}call_centre:readAccepts 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.
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Detailed rep call/analytics/overviewanalytics:readfrom | query · string (date-time) | Inclusive beginning of the reporting period. |
to | query · string (date-time) | Inclusive end of the reporting period. |
200Analytics overview/analytics/chat-widgets/{id}analytics:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
from | query · string (date-time) | Inclusive beginning of the reporting period. |
to | query · string (date-time) | Inclusive end of the reporting period. |
200Chat widget analytics404The resource does not exist in the API key's organization./analytics/call-widgets/{id}analytics:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
from | query · string (date-time) | Inclusive beginning of the reporting period. |
to | query · string (date-time) | Inclusive end of the reporting period. |
200Call widget analytics404The resource does not exist in the API key's organization./analytics/crmanalytics:readfrom | query · string (date-time) | Inclusive beginning of the reporting period. |
to | query · string (date-time) | Inclusive end of the reporting period. |
includeArchived | query · boolean |
200CRM analytics/meta-lead-ads-integrationsmeta_lead_ads:readpage | query · integer | |
limit | query · integer |
200Integration page/meta-lead-ads-integrationsmeta_lead_ads:writeCredentials 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.
201Created integration400The request is invalid.409An integration for that page already exists in this organization./meta-lead-ads-integrations/{id}meta_lead_ads:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Integration404The resource does not exist in the API key's organization./meta-lead-ads-integrations/{id}meta_lead_ads:writeidrequired | path · string | Resource 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.
200Updated integration404The resource does not exist in the API key's organization.409An integration for that page already exists in this organization./meta-lead-ads-integrations/{id}meta_lead_ads:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
204Integration deleted404The resource does not exist in the API key's organization./meta-lead-ads-integrations/{id}/subscribemeta_lead_ads:writeRequires 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.
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Integration after the subscribe attempt400The request is invalid.404The resource does not exist in the API key's organization./meta-lead-ads-integrations/{id}/regenerate-verify-tokenmeta_lead_ads:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Integration with the new verify token404The resource does not exist in the API key's organization./meta-lead-ads-integrations/{id}/generate-page-access-tokenmeta_lead_ads:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Integration with the derived page token400The request is invalid.404The resource does not exist in the API key's organization./meta-lead-ads-integrations/tools/check-token-permissionsmeta_lead_ads:readGraph API helper. POST rather than GET so a raw token never lands in a query string or an access log.
accessTokenrequired | body · string |
200Permission list400The request is invalid./meta-lead-ads-integrations/tools/pagesmeta_lead_ads:readaccessTokenrequired | body · string |
200Page list400The request is invalid./meta-lead-ads-integrations/tools/lead-formsmeta_lead_ads:readpageIdrequired | body · string | |
accessTokenrequired | body · string |
200Lead form list400The request is invalid./outbound-triggersoutbound_triggers:readpage | query · integer | |
limit | query · integer | |
callWidgetId | query · string | Restrict to triggers on one call widget. |
200Trigger page404The resource does not exist in the API key's organization./outbound-triggersoutbound_triggers:writecallWidgetId, 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.
201Created trigger400The request is invalid.404The resource does not exist in the API key's organization./outbound-triggers/templatesoutbound_triggers:readuseCase | query · string | Restrict the catalogue to one use case. |
200Template list/outbound-triggers/{id}outbound_triggers:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Trigger404The resource does not exist in the API key's organization./outbound-triggers/{id}outbound_triggers:writeidrequired | path · string | Resource 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.
200Updated trigger400The request is invalid.404The resource does not exist in the API key's organization./outbound-triggers/{id}outbound_triggers:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
204Trigger deleted404The resource does not exist in the API key's organization./outbound-triggers/{id}/enableoutbound_triggers:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated trigger404The resource does not exist in the API key's organization./outbound-triggers/{id}/disableoutbound_triggers:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Updated trigger404The resource does not exist in the API key's organization./outbound-triggers/{id}/fireoutbound_triggers:writeDispatches 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.
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
torequired | body · string | E.164 destination number. |
contactName | body · string | Used by the agent to greet the person by name. |
eventKey | body · string | Deduplication key. Repeat fires with the same key inside the trigger's dedupe window return `deduped`. Omit to skip deduplication. |
metadata | body · object | Merged into call metadata and exposed to the call script. |
payload | body · object | Event body used to evaluate the trigger's filters and templates. |
dryRun | body · boolean | Record and evaluate the event without placing a call. |
200Not called — filtered or deduped202Call queued400The request is invalid.404The resource does not exist in the API key's organization.422Trigger could not be dispatched/data-collectionsdata_collections:readMetadata only — row data is never included, and entryCount comes from
the collection's own counter.
page | query · integer | |
limit | query · integer |
200Data collection page/data-collectionsdata_collections:writeTakes a JSON request body.
201Created data collection400The request is invalid./data-collections/{id}data_collections:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Data collection404The resource does not exist in the API key's organization./data-collections/{id}data_collections:writeA collection owned by an integration (readOnly: true, e.g. Shopify)
cannot be edited and returns 400 read_only_collection.
idrequired | path · string | Resource 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.
200Updated data collection400The request is invalid.404The resource does not exist in the API key's organization./data-collections/{id}/leadsdata_collections:readThe rows of the collection, ordered by row number. Use updatedSince to
pull only what has changed since a previous sync.
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
page | query · integer | |
limit | query · integer | |
status | query · new | contacted | callback | won | lost | Restrict to one pipeline status. |
updatedSince | query · string (date-time) | Only rows modified at or after this instant. |
200Lead page400The request is invalid.404The resource does not exist in the API key's organization./data-collections/{id}/leadsdata_collections:writeUp 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.
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
leadsrequired | body · object[] |
200Import tally400The 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-integrationsemail_integrations:readThe organization's SMTP send / IMAP poll mailboxes. Other social platforms are not exposed here.
page | query · integer | |
limit | query · integer |
200Email integration page/email-integrationsemail_integrations:writename 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.
201Created email integration400The request is invalid./email-integrations/{id}email_integrations:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Email integration404The resource does not exist in the API key's organization./email-integrations/{id}email_integrations:writeidrequired | path · string | Resource 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.
200Updated email integration400The request is invalid.404The resource does not exist in the API key's organization./email-integrations/{id}email_integrations:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
204Email integration deleted404The resource does not exist in the API key's 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.
/organizationorg_settings:read200Organization configuration/organizationorg_settings:writeAccepts 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.
200Updated configuration400The request is invalid.409That ticket prefix belongs to another organization/organization/business-hoursorg_settings:read200Business hours/organization/business-hoursorg_settings:writeSending days replaces the whole week, so include every open day.
Takes a JSON request body.
200Updated business hours400The request is invalid./teamteam:read200Member list/team/invitesteam:writeSends a real invitation email. Roles are limited to admin, supervisor and agent.
emailrequired | body · string (email) | |
rolerequired | body · admin | supervisor | agent |
201Invitation sent400The request is invalid./team/members/{userId}team:writeThe owner's row cannot be changed and owner cannot be assigned —
ownership carries billing and lives on a different field.
userIdrequired | path · string |
rolerequired | body · admin | supervisor | agent |
200Updated member400The request is invalid.404The resource does not exist in the API key's organization./team/members/{userId}team:writeRemoves the membership, not the user account.
userIdrequired | path · string |
204Member removed404The resource does not exist in the API key's organization./workflowsworkflows:readpage | query · integer | |
limit | query · integer | |
status | query · DRAFT | ACTIVE | INACTIVE | ARCHIVED |
200Workflow page/workflowsworkflows:writeTakes a JSON request body.
201Created workflow/workflows/{id}workflows:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Workflow404The resource does not exist in the API key's organization./workflows/{id}workflows:writeidrequired | path · string | Resource 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.
200Updated workflow/workflows/{id}/publishworkflows:writeSnapshots 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.
idrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Published workflow400The graph is not publishableChannel 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.
/integrationsintegrations:readpage | query · integer | |
limit | query · integer | |
platform | query · WHATSAPP | TELEGRAM | EMAIL | FACEBOOK | INSTAGRAM | SLACK | DISCORD | SMS |
200Integration page/integrationsintegrations:writeconfig accepts only the fields valid for the chosen platform;
anything else is rejected. Credentials inside it are write-only.
Takes a JSON request body.
201Created integration400The request is invalid./integrations/{id}integrations:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Integration404The resource does not exist in the API key's organization./integrations/{id}integrations:writeplatform cannot change. A blank credential value means "leave the
stored value alone", so a client round-tripping a read cannot wipe one.
idrequired | path · string | Resource 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.
200Updated integration400The request is invalid./integrations/{id}integrations:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
204Integration deleted/calendarscalendars:read200Calendar page/calendarscalendars:writeBacked 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.
201Created calendar409That data collection already backs another calendar/calendars/{id}calendars:readidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
200Calendar404The resource does not exist in the API key's organization./calendars/{id}calendars:writeidrequired | path · string | Resource 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.
200Updated calendar400The request is invalid.Read-only. There is deliberately no billing:write scope: plan and
payment-method changes move money and are only possible in the dashboard.
/billingbilling:readPlan, 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.
200Billing status/setup/checklistsetup:readDerived 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.
200Setup checklistRead-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.
/diagnostics/cataloguediagnostics:readEvery 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.
200Catalogue of checks and flows/diagnostics/rundiagnostics:readRuns 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.
checks | query · string | Comma-separated check ids. |
areas | query · string | Comma-separated areas. |
flow | query · string | A single flow id. |
200Diagnostic run results400Unknown checkOne-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.
/otp/sendotp:writeDelivers 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.
channelrequired | body · sms | whatsapp | email | voice | |
torequired | body · string | E.164 phone number, or an email address for `email`. |
codeLength | body · integer | |
ttlSeconds | body · integer | |
locale | body · string | BCP 47 tag for providers that localize the message, e.g. `hi`. |
client | body · object |
201Code sent400The 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./otp/verifyotp:writeApproves 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.
verificationIdrequired | body · string | |
coderequired | body · string | |
to | body · string | Optional. When given, must match the destination the code was sent to. |
200Code accepted400`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./otp/channelsotp:writeWhich 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.
200Deliverable channels per marketPush 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.
/hooks/eventswebhooks:read200Supported event names/hooks/sampleswebhooks:readReturns 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.
eventrequired | query · string | One of the names from `GET /hooks/events`. |
limit | query · integer |
200Recent event envelopes400The request is invalid./hookswebhooks:readpage | query · integer | |
limit | query · integer | |
event | query · string | Filter to a single event name. |
200Subscription page400The request is invalid./hookswebhooks:writeRegisters 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.
eventrequired | body · string | One of the names from `GET /hooks/events`. |
targetUrlrequired | body · string (uri) |
201Subscription created400The request is invalid./hooks/{id}webhooks:writeidrequired | path · string | Resource identifier. Where a resource also has a public identifier — `widgetId`, `callWidgetId`, or a carrier call sid — either form is accepted. |
204Subscription deleted404The resource does not exist in the API key's organization.