Developers
TroiaChat, wired into your systems.
An API to bring in leads and send messages. An MCP server so Claude and other AI apps can work in your account. And automations that tell your system when something happens.
The TroiaChat app and its API documentation are in Portuguese. Screen names appear here exactly as they show in the app.
Public API
Your website and systems talk to your pipeline.
Your website form, landing page or ERP creates the lead right in the right stage. The salesperson gets it with its source and campaign.
Leads
Create a lead in a pipeline stage, with source, campaign and ad. List them, look one up and see its activities.
Pipelines
List pipelines and stages to know where each lead will land.
WhatsApp
Send text and media through a connected channel. Each send uses 1 credit and stays out of the CRM.
Email
Send email through one of your company’s email channels, up to 60 a minute.
Visits
Send visitor counts: up to 500 per request and 60 requests a minute. The website counter needs no key.
Authentication
One key. One header.
Create the key on the “Chaves de API” (API keys) screen and send it in the token header. Keep it on your server, never in browser code.
- Keys start with sk_live_ and work across your company’s API.
- The docs live at api.troiachat.com/docs, with an OpenAPI 3.1 file you can import into your tools.
- Any language that can make an HTTPS request with JSON will do.
# Example: create a lead in a pipeline stage.
# The key below is fake. Use your own, created under “Chaves de API”.
curl -X POST "https://api.troiachat.com/leads/STAGE_ID" \
-H "token: sk_live_EXAMPLE_DO_NOT_USE" \
-H "Content-Type: application/json" \
-d '{
"name": "Mariana Souza",
"phones": ["+5547999990000"],
"emails": ["mariana@example.com"],
"origin": "Website",
"campaignName": "Launch"
}'MCP
Claude, working in your account.
Connect Claude, ChatGPT and other AI apps to TroiaChat. They read and change what you allow — never more than your access level already permits.
Sign in as yourself
Add mcp.troiachat.com to your AI app and sign in with your TroiaChat login. No key to copy.
Module by module
For each module, you choose: nothing, read or change.
More than 480 tools
In 8 groups: your account, service, sales and contacts, marketing, AI and automation, team and operations, reports, company and settings.
Ready-made shortcuts
Claude opens with the connector filled in — just confirm. ChatGPT (Business and Enterprise plans) and Grok get step-by-step instructions.
Rate-limited
Up to 60 calls a minute. Calls may use credits from your plan.
Automations
When something happens, your system knows.
An automation starts on an event — lead created, deal won, conversation closed, form submitted, among about 30 — and calls any API with the “HTTP request” step.
HTTP request
GET, POST, PUT, PATCH or DELETE, with headers, a JSON body and up to 5 retries.
Wait for the reply
The flow can wait for your system to say it’s done before moving on.
Incoming webhook
Your system calls the automation’s address with your API key, and the flow starts with the data it sent.
Just once
If your system resends the same request, the automation can run only once per identifier.
Optional secret
A secret in the header confirms the request came from you.
AI agents
Your agents check your systems.
Mid-conversation, an agent can call one of your APIs — look up an order, check a balance — and use tools from other systems over MCP.

Custom actions
Describe the call once. The agent uses it when the conversation calls for it.
MCP connections
Connect the agent to other systems’ MCP servers, with sign-in, and pick the tools it may use.
Questions
Frequently asked questions
Which language do I integrate with?
Any. The API takes and returns JSON over HTTPS, and the docs include ready-to-copy examples.
Can I work with contacts, tickets and conversations?
Not through the public API: it covers leads, pipelines, sending by WhatsApp and email, and visits. Contacts, tickets and conversations are available through MCP.
Does the API cost extra?
There’s no separate fee. Requests use credits from your plan, just like the same actions inside the app.
Can the AI app see everything in my company?
No. It sees only the modules you allowed and, inside them, only what your access level already permits.
Start with the docs.
Everything the API does, with examples, at api.troiachat.com/docs.
