Getting Started: Talkroute API

The Talkroute API gives developers programmatic access to your Talkroute account data so you can build custom integrations, automate workflows, and connect Talkroute with the tools your business already uses. This guide walks you through what the API can do, how to request access, how to authenticate, and how to make your first request.

 

What Is the Talkroute API?


The Talkroute API is a RESTful API that returns JSON. It lets your application read and manage Talkroute resources such as contacts, text conversations and messages, voicemail, call history, users, extensions, virtual numbers, menus, ring groups, forwarding, and business hours.

The API is designed for developers, SaaS companies, agencies, and businesses that want to sync Talkroute communications data with CRMs, help desks, dashboards, reporting systems, and internal tools.

Note: The public API does not provide direct access to voice calling. It is focused on your account's non-voice resources, including contacts, messaging, voicemail, call activity, and account configuration.

 

 

What You Can Do With the API


The API is organized around the same resources you already manage inside Talkroute. Common use cases include:

  • Sync contacts with your CRM, including creating, updating, and importing records.
  • Access text conversations and messages to log communication history or send a reply into an existing conversation.
  • Retrieve voicemail details and audio, and mark messages as read or unread.
  • Pull call history into reporting dashboards, with filtering by direction, number, date range, duration, and result.
  • Manage account configuration such as users, extensions, menus, ring groups, forwarding numbers, forwarding schedules, and business hours.
  • Trigger webhook notifications by creating subscriptions for the events your integration needs.
Note: Reading text conversations and messages is available with API access. Sending text messages requires a bulk texting plan. To add bulk texting to your account, contact our team.

 

 

Step 1: Request API Access


API access is granted on a per-account basis and is reviewed by our team before it is enabled.

  1. Go to the Request API Access page.
  2. Complete the form with your name, email, phone, and Talkroute account number.
  3. In the use case field, briefly describe what you plan to build so our team can review your request.
  4. Submit the form. Our team will review your request and follow up with next steps.
Tip: Including your Talkroute account number and a clear description of your integration helps us review and approve your request faster.

 

 

Step 2: API Key


Once your access has been approved, an API key will be provided for your Talkroute account. Your API key is a Bearer token in the format tr_live_ followed by a string of characters.

Important: Treat your API key like a password. It grants access to your account data. Never share it publicly, commit it to source control, or expose it in client-side code. If you believe a key has been exposed, please reach out to our support team so we can revoke it and generate a new one.

 

 

Step 3: Authenticate Your Requests


The API uses Bearer token authentication. Include your API key in the Authorization header on every request, and send your data as JSON.

The base URL for all API requests is:

https://api.talkroute.com/api

A complete request to retrieve your contacts looks like this:

curl https://api.talkroute.com/api/v2/contacts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

If your key is missing or invalid, the API returns a 401 Unauthorized response.


 

 

Understanding Responses, Pagination, and Errors


All responses are returned in JSON. List endpoints return collections of records, and many support filtering through query parameters so you can request only the data you need.

For endpoints that can return large result sets, such as call history, results are paginated. Use the page and pageSize query parameters to move through results:

https://api.talkroute.com/api/v2/call-history?page=1&pageSize=50

The API uses standard HTTP status codes to indicate the result of a request:

Status Code Meaning
200 The request succeeded.
201 The resource was created successfully.
204 Resource deleted successfully.
401 Authentication failed. Check that your API key is present and valid.
402 A payment must be made.
403 User cannot perform this action
404 The requested resource was not found.
422 The request was understood but contained invalid data. Check the response body for details.

 

 

Webhooks


The API supports webhook subscriptions, which let Talkroute notify your application when a specific event occurs rather than requiring your integration to poll for changes. You create a subscription with the URL you want Talkroute to call and the event you want to listen for.

Because available events and functionality can change between releases, always refer to the API documentation for the current list of supported webhook events.


 

 

Full API Reference


This guide covers the essentials to get you started. For the complete list of endpoints, request and response formats, query parameters, and field-level details, see the full reference.

View the Talkroute API Documentation


 

 

Next Steps


To start building with the Talkroute API:

  1. Submit the API access request form and wait for approval.
  2. Once approved, an API key will be provided.
  3. Review the API documentation to find the endpoints you need.
  4. Make your first authenticated request and start building your integration.

 


Need Help or Ready to Get Started?

Whether you're already using Talkroute or just exploring, we're here to help.

Was this article helpful?
0 out of 0 found this helpful