Skip to the content

Build on HeyServo

Connect your own software to your assistants: send them messages and events, hear back with webhooks, read your data, embed the chat on your site, and let AI apps work in your workspace.

Where
Workspace menuDeployDevelopers
Permission
Needs Manage keys and webhooks
Time
5 min read
Markdown
01 / 05Talk to the assistant. Your server sends a customer's message to the Chat API and gets the assistant's reply, in OpenAI's format.
  1. Talk to the assistant. Your server sends a customer's message to the Chat API and gets the assistant's reply, in OpenAI's format.
  2. Tell it something happened. The Events API hands the assistant an order, a sign-up or a missed payment to act on.
  3. Hear back. Webhooks post to your URL when a conversation starts, a lead is captured or a ticket moves.
  4. Read the dashboard's data. A console key reads conversations, leads, tickets and usage from your own systems.
  5. Let AI apps work for you. Claude, ChatGPT and Cursor connect to the MCP server and work in your workspace as you.

The pieces

Everything a developer needs sits on one workspace page, Developers, with three tabs: API keys, Webhooks and MCP & OAuth. The website widget and setup files live elsewhere in the dashboard, and are covered here too.

Which one to use

You want toUseCredential
Answer customers from your own app, a voice platform or a custom front endChat APIChat key
Add the chat bubble to your websiteThe widgetThe widget's public key, in the snippet
Have the assistant act when an order ships or a customer signs upEvents APIEvents key
Update your CRM when a lead is captured or a ticket movesWebhooksA signing secret per endpoint
Pull conversations, leads, tickets or usage into a reportRead APIConsole key with read scopes
Reply to a conversation or open a ticket from your systemRead API with write scopesConsole key with write scopes
Ask Claude or ChatGPT to set up an assistant or triage ticketsMCP serverYou sign in; the app gets a token
Let a server of yours use the MCP tools with no person signed inService clientClient id and secret
Copy an assistant, a board or a catalog to another workspaceSetup filesNone: a file from the dashboard

The base address

Every example in these pages uses https://app.heyservo.ai. The base is your dashboard's address. The exact chat endpoint is in the Endpoint box on DevelopersAPI keys, the events endpoint on an assistant's Connect your app tab, and the MCP server's address on DevelopersMCP & OAuth. Copy them from there.

SurfacePath
Chat API/v1/agents/{agent_id}/chat/completions, or /v1/chat/completions
Events API/v1/events
Read API/api/agents/{agent_id}/… and a few workspace routes
Widgetwidget.js, loaded by the snippet
MCP serverThe Server URL on the MCP & OAuth tab, ending in /mcp

Keys and secrets

  • API keys start with sk-agent-. Each belongs to one assistant and has one purpose: chat, console or events. A key for one purpose is refused everywhere else.
  • Keys and secrets are shown once, when you create them. HeyServo keeps only a fingerprint, so a lost key cannot be shown again: revoke it and make a new one.
  • Keep chat, console and events keys on your server. Never put them in a browser or a mobile app. The website widget has its own public key for that.
  • Webhook signing secrets start with whsec_. Each endpoint has its own.
  • AI apps never get a key. They sign in as a person through OAuth and never get more than that person's role.

Who can use the Developers page

PermissionWhat it allows
See webhooksOpen Developers, see webhooks and their deliveries, and see how to connect AI apps.
Manage keys and webhooksThe API keys tab, service clients and OAuth apps, and every change: creating and revoking keys, adding, testing and rotating webhooks.
Owners and admins hold both. The built-in member role holds neither, so members do not see the page. Set these on Roles and permissions.

Filter by agent at the top narrows keys and webhooks to one assistant.

Questions people ask

Keep going
Build on HeyServo · HeyServo Docs