REST API endpoints reference
All endpoints are relative to your VoiceCraft instance base URL. Session-authenticated routes require a valid login. Webhook routes called by the voice agent require the x-api-key header set to your VOICECRAFT_API_KEY value.
Agents
Method | Endpoint | Description |
|---|---|---|
GET |
| List all agents. Add |
POST |
| Create a new agent. Requires Owner or Admin role. |
GET |
| Get agent details. |
PUT |
| Update agent configuration. Requires Owner or Admin role. |
DELETE |
| Soft-delete an agent. Requires Owner or Admin role. |
POST |
| Deploy agent (set it live). Requires Owner or Admin role. |
POST |
| Provision a phone number for the agent. Requires Owner or Admin role. |
DELETE |
| Release the agent's provisioned phone number. Requires Owner or Admin role. |
POST |
| Duplicate an agent. Requires Owner or Admin role. |
POST |
| Restore a soft-deleted agent. Requires Owner or Admin role. |
POST |
| Permanently delete a soft-deleted agent. Requires Owner role only. |
PATCH |
| Update agent capability flags. Requires Owner or Admin role. |
GET |
| Get per-agent tool configuration overrides. |
GET |
| Get voice-commerce order settings for the agent. |
PUT |
| Update voice-commerce order settings. Requires Owner or Admin role. |
POST |
| Generate a voice preview sample for the agent's TTS settings. |
GET |
| List follow-up message sequences for the agent. |
PUT |
| Update follow-up message sequences. Requires Owner or Admin role. |
GET |
| List knowledge chunks attached to the agent. |
POST |
| Attach a knowledge chunk to the agent. Requires Owner or Admin role. |
GET |
| List knowledge documents for the agent. |
POST |
| Upload a new knowledge document. Requires Owner or Admin role. |
GET |
| List unanswered questions the agent encountered during calls. |
POST |
| Add a WhatsApp number to the agent. Requires Owner or Admin role. |
DELETE |
| Remove the WhatsApp number from the agent. Requires Owner or Admin role. |
POST |
| Initiate WhatsApp embedded signup connection. Requires Owner or Admin role. |
POST |
| Disconnect the WhatsApp integration. Requires Owner or Admin role. |
Calls
Method | Endpoint | Description |
|---|---|---|
GET |
| List calls. Filterable by agent, outcome, and date. |
POST |
| Log a call record (called by the agent worker). Uses |
GET |
| Call detail with transcript. |
PATCH |
| Update call metadata (e.g. outcome notes). |
GET |
| Stream or download the call recording audio. |
DELETE |
| Delete the call recording. |
GET |
| Get voicemail transcription for the call. |
GET |
| List knowledge base chunks cited during the call. |
GET |
| List tool calls made by the agent during the call. |
POST |
| Submit unanswered questions identified during the call. |
Contacts
Method | Endpoint | Description |
|---|---|---|
GET |
| List all contacts. |
POST |
| Create a contact. |
GET |
| Get contact details. |
PATCH |
| Update a contact. |
POST |
| Record or update a contact's messaging consent. |
GET |
| Get the synthesized contact story. |
POST |
| Trigger story regeneration for a contact. |
POST |
| Bulk import contacts from CSV. |
Appointments
Method | Endpoint | Description |
|---|---|---|
GET |
| List appointments. |
POST |
| Create an appointment. |
PATCH |
| Update an appointment. |
Messages
Method | Endpoint | Description |
|---|---|---|
GET |
| List conversation threads. |
POST |
| Send a message. |
GET |
| Get thread detail. |
PATCH |
| Update thread state (e.g. mark handled). |
Orders
Method | Endpoint | Description |
|---|---|---|
GET |
| List voice-commerce orders. |
GET |
| Get order detail. |
PATCH |
| Update order status. |
POST |
| Cancel an order. |
POST |
| Send a message to the customer for this order. |
POST |
| Mark a flagged order issue as resolved. |
Catalog (voice commerce)
Method | Endpoint | Description |
|---|---|---|
GET |
| Get the full catalog for an agent. |
POST |
| Create a catalog item. |
GET |
| Get a catalog item. |
PATCH |
| Update a catalog item. |
DELETE |
| Delete a catalog item. |
PATCH |
| Toggle a catalog item's availability. |
POST |
| Create a catalog category. |
PATCH |
| Update a category. |
DELETE |
| Delete a category. |
POST |
| Create a modifier group. |
POST |
| Create a modifier within a group. |
POST |
| Preview a CSV import diff for the agent's catalog. |
POST |
| Apply a previewed CSV import to the catalog. |
Forms
Method | Endpoint | Description |
|---|---|---|
GET |
| List form templates. |
POST |
| Create a form template. |
GET |
| Get a form template. |
PUT |
| Update a form template. |
DELETE |
| Delete a form template. |
POST |
| Activate a form template. |
POST |
| Archive a form template. |
POST |
| Assign the template to an agent. |
DELETE |
| Remove the template from an agent. |
GET |
| List form submissions. |
GET |
| Get a submission. |
POST |
| Edit a submitted form. |
POST |
| Export a submission as PDF. |
POST |
| Redact PII from a submission (HIPAA). |
GET |
| Export all submissions as CSV. |
Knowledge
Method | Endpoint | Description |
|---|---|---|
GET |
| List knowledge entries in the workspace. |
GET |
| Get a knowledge entry. |
PATCH |
| Update a knowledge entry. |
DELETE |
| Delete a knowledge entry. |
POST |
| Attach a knowledge entry to an agent. |
DELETE |
| Detach a knowledge entry from an agent. |
POST |
| Upload a file to the knowledge base. |
POST |
| Scrape a URL and add it to the knowledge base. |
POST |
| Add a FAQ entry to the knowledge base. |
Analytics
Method | Endpoint | Description |
|---|---|---|
GET |
| Aggregated workspace metrics. |
Exports
Method | Endpoint | Description |
|---|---|---|
GET |
| Export call records. |
GET |
| Export analytics data. |
Notifications
Method | Endpoint | Description |
|---|---|---|
GET |
| Get the notification feed. |
POST |
| Mark a notification as read. |
POST |
| Mark all notifications as read. |
GET |
| Get notification preferences. |
PATCH |
| Update notification preferences. |
Team
Method | Endpoint | Description |
|---|---|---|
GET |
| List team members. |
PATCH |
| Update team-level settings. |
PATCH |
| Update a member's role. |
DELETE |
| Remove a member from the workspace. |
POST |
| Transfer workspace ownership to this member. |
POST |
| Send a team invitation. |
DELETE |
| Cancel a pending invitation. |
POST |
| Resend a pending invitation. |
Organization
Method | Endpoint | Description |
|---|---|---|
DELETE |
| Delete the organization. |
GET |
| Get data retention settings. |
PUT |
| Update data retention settings. |
GET |
| Get the daily spend cap. |
PATCH |
| Update the daily spend cap. |
Billing
Method | Endpoint | Description |
|---|---|---|
GET |
| Get current plan and billing status. |
GET |
| Get usage for the current billing period. |
POST |
| Start a Stripe checkout session. |
POST |
| Open the Stripe billing portal. |
POST |
| Switch to a different plan. |
Campaigns (voice outreach)
Method | Endpoint | Description |
|---|---|---|
GET |
| List voice campaigns. |
POST |
| Create a voice campaign. |
GET |
| Get campaign detail. |
DELETE |
| Delete a campaign. |
SMS campaigns
Method | Endpoint | Description |
|---|---|---|
GET |
| List SMS campaigns. |
POST |
| Create an SMS campaign. |
GET |
| Get SMS campaign detail. |
PATCH |
| Update an SMS campaign. |
DELETE |
| Delete an SMS campaign. |
POST |
| Launch an SMS campaign. |
POST |
| Cancel an SMS campaign. |
Phone numbers
Method | Endpoint | Description |
|---|---|---|
GET |
| List phone numbers in the workspace. |
GET |
| Search available numbers to provision. |
Integrations
Method | Endpoint | Description |
|---|---|---|
GET |
| Start Google Calendar OAuth flow. |
DELETE |
| Disconnect Google Calendar. |
GET |
| Start Square POS OAuth flow. |
DELETE |
| Disconnect Square. |
GET |
| Start Clover POS OAuth flow. |
DELETE |
| Disconnect Clover. |
GET |
| Start HubSpot OAuth flow. |
DELETE |
| Disconnect HubSpot. |
GET |
| Start Microsoft Calendar OAuth flow. |
DELETE |
| Disconnect Microsoft Calendar. |
User
Method | Endpoint | Description |
|---|---|---|
PATCH |
| Update the current user's profile. |
PATCH |
| Change the current user's password. |
DELETE |
| Delete the current user account. |
Search and inbox
Method | Endpoint | Description |
|---|---|---|
GET |
| Global search across agents, contacts, calls, and more. |
GET |
| Unified inbox of unhandled conversations. |
LiveKit
Method | Endpoint | Description |
|---|---|---|
POST |
| Generate a LiveKit room token (for browser-based test calls). |
Webhooks (voice agent)
These endpoints are called by the voice agent worker, not by the dashboard. All require the x-api-key header.
Telephony
Method | Endpoint | Description |
|---|---|---|
POST |
| Inbound call routing — Twilio calls this and receives TwiML in response. |
POST |
| Inbound call routing — Plivo calls this and receives XML in response. |
POST |
| Inbound SMS from Twilio. |
POST |
| Inbound SMS from Plivo. |
POST |
| Delivery status updates from Plivo. |
POST |
| Inbound WhatsApp messages from Twilio. |
POST |
| WhatsApp delivery status updates from Twilio. |
POST |
| LiveKit room event webhooks. |
POST |
| Stripe billing event webhooks. |
Scheduling
Method | Endpoint | Description |
|---|---|---|
POST |
| Check appointment availability. |
POST |
| Book an appointment. |
POST |
| Cancel an appointment. |
POST |
| Reschedule an appointment. |
POST |
| Look up an existing appointment. |
POST |
| Get calendar events for a given date. |
Messaging and contacts
Method | Endpoint | Description |
|---|---|---|
POST |
| Send an SMS during or after a call. |
POST |
| Record a message from the caller. |
POST |
| Log a callback request. |
POST |
| Look up or create a contact by phone number. |
POST |
| Add a caller to a waitlist. |
Voice commerce orders
Method | Endpoint | Description |
|---|---|---|
POST |
| Start a new order session. |
POST |
| Add a line item to an in-progress order. |
POST |
| Remove a line item from an in-progress order. |
POST |
| Submit a completed order. |
POST |
| Mark an order session as abandoned. |
POST |
| Cancel a submitted order. |
POS sync
Method | Endpoint | Description |
|---|---|---|
POST |
| Square POS webhook events. |
POST |
| Clover POS webhook events. |
Forms
Method | Endpoint | Description |
|---|---|---|
POST |
| Signal that the agent began collecting a form. |
POST |
| Submit a single form field value. |
POST |
| Submit a completed form. |
POST |
| Mark a form session as abandoned. |
All list endpoints support cursor-based pagination where applicable.
क्या यह लेख उपयोगी था?
संबंधित लेख
और मदद चाहिए?
जो खोज रहे हैं वह नहीं मिल रहा?