A usage-level reference for the main HeyMello API endpoints, grouped by domain. All paths are relative to the base URL and require a bearer token unless noted.
Base URL: https://<your-heymello-api-host>/api/v1
Auth: Authorization: Bearer <access_token>
Admin-only and internal service endpoints are omitted from this reference.
Agents
Method & Path
Purpose
GET /agents/
List active agents in your organization.
POST /agents/
Create a new agent.
GET /agents/{agent_id}
Get an agent’s configuration.
PUT /agents/{agent_id}
Update agent fields.
DELETE /agents/{agent_id}
Delete an agent (and release its number).
PATCH /agents/{agent_id}/prompt
Update only the agent’s instructions.
GET /agents/{agent_id}/versions
List the agent’s change history.
GET /agents/{agent_id}/versions/{version}
View a historical version.
POST /agents/{agent_id}/versions/{version}/restore
Roll back to a prior version.
GET /agents/meta/industries
List selectable industries.
GET /agents/meta/use-cases
List selectable use cases (optionally by industry).
Voices
Method & Path
Purpose
GET /voices/
List the voice catalog (id, name, gender, preview audio).
Knowledge base
Method & Path
Purpose
POST /knowledge-base/upload
Upload a document.
GET /knowledge-base/documents
List uploaded documents.
GET /knowledge-base/document/{kb_id}
Get a document’s details.
PUT /knowledge-base/document/{kb_id}
Rename a document.
DELETE /knowledge-base/document/{kb_id}
Delete a document.
GET /agents/{agent_id}/knowledge-base
List documents attached to an agent.
POST /agents/{agent_id}/knowledge-base/assign
Attach documents to an agent.
POST /agents/{agent_id}/knowledge-base/unassign
Detach documents from an agent.
Tools & custom functions
Built-in tools
Method & Path
Purpose
GET /builtin-tools/
List available built-in tools.
GET /builtin-tools/agent/{agent_id}
List an agent’s built-in tool states.
PUT /builtin-tools/agent/{agent_id}/{tool_id}
Enable/disable and configure a built-in tool for an agent.
DELETE /builtin-tools/agent/{agent_id}/{tool_id}
Remove a built-in tool from an agent.
Custom functions (your own webhook integrations)
Method & Path
Purpose
POST /agents/{agent_id}/custom-functions/
Create a custom function for an agent.
GET /agents/{agent_id}/custom-functions/
List an agent’s custom functions.
GET /agents/{agent_id}/custom-functions/{id}
Get a custom function.
PUT /agents/{agent_id}/custom-functions/{id}
Update a custom function.
DELETE /agents/{agent_id}/custom-functions/{id}
Delete a custom function.
Calls
Method & Path
Purpose
POST /calls/make-call
Place a single outbound call (needs positive credit balance).
GET /calls
List call history (filter by call id / from / to).
GET /calls/{call_id}
Get full call detail (transcript + analysis).
GET /calls/session/{session_id}
Get call detail by session id.
GET /calls/decrypt-transcript/{session_id}
Retrieve a call transcript.
GET /calls/recording/{session_id}
Stream/download a call recording.
POST /calls/make-call body:agent_id, to_number, optional first_name/last_name, optional variables (custom placeholders for the prompt).
Phone numbers
Method & Path
Purpose
GET /phone-numbers
List phone numbers (filter by status/agent).
GET /phone-numbers/org-numbers
List all numbers your org owns.
GET /phone-numbers/org-unassigned
List org numbers ready to assign.
GET /phone-numbers/pricing
Current credit pricing per country/currency.
POST /phone-numbers/purchase
Buy a number and assign it to an agent.
POST /phone-numbers/buy
Buy a number into your org pool.
POST /phone-numbers/{id}/assign
Assign an owned number to an agent.
POST /phone-numbers/{id}/unlink
Detach a number from its agent.
GET /phone-numbers/subscriptions
List number subscriptions.
POST /phone-numbers/subscriptions/{id}/cancel
Cancel a number subscription.
POST /phone-numbers/subscriptions/{id}/resume
Resume a cancelled subscription.
Campaigns
Method & Path
Purpose
GET /campaigns/
List campaigns.
POST /campaigns/
Create a campaign from a JSON contact list.
POST /campaigns/upload
Create a campaign from an uploaded file (XLSX/CSV).