Skip to content

IntegrationsIM

Flock API integration

Put Flock in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

01Proxy API

Call the Flock API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the Flock API. You call us, we call Flock, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APIFlock

GEThttps://api.truto.one/proxy/channels?integrated_account_id=…

  • GET/proxy/contacts
  • GET/proxy/me
  • GET/proxy/messages

Flock’s own response, passed back

02MCP server

Flock tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets Flock tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin Flock
  • Channel membersList, Create, Bulk delete
  • ChannelsList, Get one, Create
  • ContactsList
  • MeList
  • MessagesList, Create
  • UserGet one
Show tool names11 tools, for developers
  • flock_channel_members_bulk_deleteRemove users from a channel; the token user must be allowed to change membership. Returns per-user removal status. (POST channels.removeMembers) Required: channelId, members.
  • create_a_flock_channel_memberAdd users to a channel; the token user must be a member allowed to change membership. Returns per-user add status. (POST channels.addMembers) Required: channelId, members.
  • list_all_flock_channel_membersList members of a channel with their affiliation (member/moderator/owner) and optionally public profiles. (GET channels.listMembers) Required: channel_id.
  • create_a_flock_channelCreate a channel with a name, members and optional purpose/image/type; the token user is added too. Returns the channel id and per-member add status. (POST channels.create) Required: name, members.
  • get_single_flock_channel_by_idGet a channel by id (g:...): name, member count and image. (GET channels.getInfo) Pass the channel id as id.
  • list_all_flock_channelsList the channels (groups) the token user belongs to: id, name, member count. (GET channels.list)
  • list_all_flock_contactsList the token user's contacts as public profiles (id, first/last name, image). (GET roster.listContacts)
  • list_all_flock_meGet the token user (must have installed the app): id, team, email, name, role, timezone, image. (GET users.getInfo)
  • create_a_flock_messageSend a message to a user or channel as the token user or bot: text, FlockML, one attachment, mentions, sendAs. Returns the message uid. (POST chat.sendMessage) Required: to.
  • list_all_flock_messagesFetch specific messages (up to 25 uids) from a user or channel conversation. (GET chat.fetchMessages) Required: chat, uids.
  • get_single_flock_user_by_idGet any Flock user's public profile (name and image). (GET users.getPublicProfile) Pass the user id (u:...) as id.

AMCP serverno code

For any MCP client

One URL per connected Flock account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every Flock tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

One API for Flock and every other Instant Messaging app. One mapping to go.

The Unified Instant Messaging API gives every Instant Messaging app the same call and the same data shape. Flock is not mapped to it yet. Map it yourself, or ask us.

Flockon Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified Instant Messaging APIOne mapping to goTo do

Then: one call for every Instant Messaging app

  • Path 1 Self-serve

    Map it yourself

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Start free

  • Path 2 We do it

    Ask Truto

    • Tell us the Flock data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 a month, in Pro

    • 30-day trial on Free
    • Every unified API and your own unified models: Pro add-on

    See pricing

04Sync and webhooks

Sync Flock data on a schedule. Sent to your webhook.

A sync job reads Flock records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any Flock endpoint. With the Truto CLI.

Need a Flock endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any Flock path through the Custom API.

On every plan, including Free. Truto CLI

Use cases

Why integrate with Flock.

  1. Push real-time alerts into Flock channels

    SaaS companies offering monitoring, incident management, or DevOps tools can send automated notifications—like build failures, P1 alerts, or deployment statuses—directly into designated Flock channels, keeping engineering teams informed without context-switching.

  2. Sync user directories for targeted messaging

    B2B SaaS products need to map their own user records to Flock user IDs so they can route notifications, @mentions, and DMs to the right people. Pulling the Flock roster eliminates manual mapping and keeps recipient lists accurate as teams change.

  3. Send interactive messages that drive action from chat

    CRM, HR, and project management tools can send FlockML-powered messages with inline buttons—approve an expense, acknowledge an incident, rate your week—so end users take action inside Flock and the response syncs back to the originating SaaS platform.

  4. Automate channel creation for structured workflows

    SaaS products that manage projects, deals, or incidents can programmatically create and organize Flock channels—one per deal, one per sprint, one per incident—giving teams a dedicated space that's provisioned automatically when a workflow begins.

  5. Enable conversational commands via slash integrations

    By registering slash commands through FlockOS, a SaaS product lets end users trigger workflows—logging a call note, creating a task, pulling a report—directly from the Flock chat box, reducing the need to switch to a separate dashboard.

What you can build

Ship these with Truto and Flock.

  • Channel-based alert routing

    Let your users select a Flock channel during setup and automatically deliver event-driven notifications—new tickets, deal stage changes, deployment results—into that channel in real time.

  • Actionable incident response messages

    Send rich FlockML messages with Acknowledge, Escalate, or Resolve buttons so on-call engineers can update incident status without leaving the chat.

  • Automated employee pulse DMs

    HR and engagement platforms can send scheduled direct messages to employees with inline rating buttons, capturing sentiment data back via webhook for analytics dashboards.

  • Dynamic incident or deal channels

    Programmatically create a new Flock channel when a critical event occurs—like a P1 alert or a new enterprise deal—and auto-invite the relevant team members.

  • User directory sync for identity mapping

    Pull the full Flock roster so your product can reliably resolve internal user IDs, enabling accurate @mentions, DM routing, and permission-aware notifications.

  • Rich link previews for SaaS records

    Unfurl URLs pasted into Flock conversations into visual cards showing record details—task title, assignee, status, due date—so teammates get context at a glance.

Security

Your customers’ Flock data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Truto managed OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s Flock account

    Use Truto’s frontend SDK to connect your customer’s Flock account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call Flock

    Truto’s Proxy API is a 1-to-1 mapping of the Flock API. You call us, we call Flock, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate Flock’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about Flock on Truto.

What authentication method does Flock use for API access?

FlockOS uses OAuth 2.0. When an end user installs your app in their Flock workspace, an access token is issued that your integration uses to call Flock APIs on behalf of that workspace. Truto handles the OAuth flow, token storage, and refresh so you don't have to manage credentials directly.

Is the Flock integration available as a pre-built Unified API in Truto?

Not yet. Flock is available as a custom integration built on request. Truto will handle auth, pagination, and API abstraction for your specific use case. Contact the Truto team to scope and prioritize the endpoints you need.

What Flock API endpoints are most commonly needed?

The most requested capabilities are chat.sendMessage for posting messages, roster.listContacts for fetching the team directory, groups.list and groups.create for channel management, and webhook event subscriptions for capturing user actions and real-time events.

Does Flock support interactive messages and inline actions?

Yes. Flock supports FlockML, a markup language for rendering buttons, dropdowns, and other interactive elements inside chat messages. User interactions with these elements are delivered to your app via webhooks, enabling two-way workflows without leaving the chat.

Are there rate limits on the Flock API?

FlockOS enforces rate limits on API calls per token. Exact thresholds depend on the endpoint and your app's plan. Truto can implement retry logic and request throttling to help you stay within limits without dropping events.

Can I target both channels and individual users with messages?

Yes. The Flock messaging API supports sending to public channels, private groups, and individual users via direct messages. You can let your customers configure routing rules—for example, alerts go to a channel while personal reminders go as DMs.

Flock

Get Flock integrated into your app

Sign up free, connect a test Flock account and make your first call today. No card and no sales call.