API Documentation
The AgentWorks API allows you to programmatically manage agents, conversations, contacts, and more. Available on Pro, Business, and Enterprise plans.
Base URL
https://api.agentworksstudio.com/v1Auth
Bearer token (API key)
Format
JSON request/response
Authentication
All API requests require a Bearer token. Generate your API key from the Settings → API Keys section of your dashboard.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.agentworksstudio.com/v1/agentsAPI Key Scopes
agents:readList and view agentsagents:writeCreate, update, and delete agentsconversations:readView conversation historyconversations:writeSend messages to conversationscontacts:readList and view contactscontacts:writeCreate and update contactswebhooks:manageConfigure webhook endpointsadminFull access to all resourcesAgents API
Manage your AI agents — list, create, update configuration, and monitor status.
Conversations API
Access conversation history and send messages to active conversations.
Webhooks
Receive real-time notifications when events happen in your AgentWorks workspace.
Available Events
conversation.startedNew conversation createdconversation.messageNew message in conversationconversation.endedConversation closedagent.escalationAgent escalated to humancontact.createdNew contact added to CRMcontact.updatedContact information updatedtask.completedAgent completed a taskagent.errorAgent encountered an error{
"event": "conversation.message",
"timestamp": "2026-02-18T16:30:00Z",
"data": {
"conversation_id": "conv_xyz789",
"agent_id": "agt_abc123",
"message": {
"id": "msg_456",
"content": "I'd be happy to schedule a showing for you!",
"sender": "agent",
"channel": "sms"
},
"contact": {
"id": "cnt_789",
"name": "John Smith",
"email": "john@example.com"
}
},
"signature": "sha256=..."
}X-AgentWorks-Signature header. Verify this signature using your webhook secret to ensure payload authenticity.Company Discovery
Your industry ambassador does the onboarding for your prospect. A visitor chats with the ambassador (e.g. Jackie for construction) and gives just a name and website URL. The agent then crawls the site, drills the menu, and extracts a complete company & contact profile — name, phone, address, hours, social links, company history, and products/services — to auto-fill the CRM without asking a single onboarding question. That discovery becomes a formal Assessment (PDF, emailed to confirm), and the prospect gets a ready-made “taste” workspace they can log into and start training their own agent before they ever pay.
The pipeline
The whole journey runs on the Deal Pipeline — each stage automatically triggers the next, and agents advance the deal toward closed/won.
What gets captured
Code Examples
Quick-start examples in cURL, Node.js, and Python.
List Agents
curl -X GET "https://api.agentworksstudio.com/v1/agents" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"const response = await fetch(
'https://api.agentworksstudio.com/v1/agents',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
}
);
const { agents } = await response.json();
console.log(`Found ${agents.length} agents`);import requests
response = requests.get(
'https://api.agentworksstudio.com/v1/agents',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
}
)
agents = response.json()['agents']
print(f"Found {len(agents)} agents")Send a Message
const response = await fetch(
'https://api.agentworksstudio.com/v1/conversations/conv_xyz789/messages',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'Hi! I noticed you were looking at properties in Downtown.',
sender: 'human',
}),
}
);
const message = await response.json();
console.log('Message sent:', message.id);Webhook Handler
import express from 'express';
import crypto from 'crypto';
const app = express();
app.use(express.json());
app.post('/webhooks/agentworks', (req, res) => {
// Verify signature
const signature = req.headers['x-agentworks-signature'];
const expected = 'sha256=' + crypto
.createHmac('sha256', process.env.WEBHOOK_SECRET)
.update(JSON.stringify(req.body))
.digest('hex');
if (signature !== expected) {
return res.status(401).json({ error: 'Invalid signature' });
}
// Handle event
const { event, data } = req.body;
switch (event) {
case 'conversation.message':
console.log('New message:', data.message.content);
break;
case 'agent.escalation':
console.log('Escalation needed:', data.reason);
// Notify team via Slack, email, etc.
break;
}
res.status(200).json({ received: true });
});
app.listen(3000);Ready to integrate?
API access is available on every AI Front Desk plan (from $397/mo, no setup fee) and Enterprise.
