Discover your workspace
What one workspace has and what one key can do, read with the key.
These docs describe the core capabilities every Flito has. A workspace can have more: its own capabilities, custom fields, pipelines and settings. These calls read them, for the key's workspace and for what that key may do.
One call: /api/discover
curl -s "$FLITO_URL/api/discover" -H "Authorization: Bearer $FLITO_API_KEY"{
"workspace": { "id": "ws_…", "name": "Acme", "currency": "USD", "timezone": "America/New_York" },
"you": {
"userId": "…",
"role": "admin",
"signedInWith": "api_key",
"access": "read and write",
"scopes": ["companies:read", "companies:write", "…"]
},
"customFields": [
{ "id": "…", "objectType": "contact", "key": "preferred_channel", "label": "Preferred channel", "kind": "select" }
],
"pipelines": [{ "id": "pipe_…", "name": "Sales", "stages": [{ "stageKey": "qualified", "probability": 0.2 }] }],
"brands": [],
"tags": [],
"capabilities": {
"count": 341,
"ids": ["activity.list", "…"],
"details": "https://crm.yourcompany.com/api/capabilities",
"openapi": "https://crm.yourcompany.com/api/openapi.json",
"call": "POST https://crm.yourcompany.com/api/cap/{id}"
},
"mcp": "https://crm.yourcompany.com/mcp",
"docs": "https://flito.ai/docs"
}workspace: its name, currency and time zone.you: who the key acts as, their role, whether the key is read only, and its scopes.customFields,pipelines(with stages in order),brandsandtags: each is left out when the key may not read it.capabilities.ids: every capability this key can run. A read only key sees no writes.
Every capability the key can run
GET $FLITO_URL/api/capabilitieslists each capability with its input JSON Schema, scopes and whether it needs approval, the workspace's own ones included.GET $FLITO_URL/api/openapi.jsonis the same as OpenAPI 3.1, for code generators and API tools. Add?preset=assistantfor the everyday ones,?group=for one area, or?ids=a,bfor a few.
Over MCP, each area's tool (quote_actions and the like) lists and runs what the connection can do there, and list_capabilities finds an action by words.
Custom fields
A workspace's own fields are set through the properties object on create and update, or with custom_field.set_values:
curl -s "$FLITO_URL/api/cap/custom_field.set_values" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"objectType": "contact", "recordId": "con_…", "values": {"preferred_channel": "phone"}}}'null or an empty string clears a value. The keys are the keys from customFields above.
Was this page useful?