Using TIXAE Agents API for Scalable Data Access & Pagination
Programming

Using TIXAE Agents API for Scalable Data Access & Pagination

Learn how to efficiently interact with the TIXAE Agents API to fetch clients, agents, analytics, and more. This guide covers how authentication works, how to paginate through large datasets using limit and offset, and provides real-world examples in HTTP and Python to get you started.

Muhannad SalkiniJun 22, 20253 min read

πŸ”Œ Using TIXAE Agents API for Scalable Data Access & Pagination

Learn how to interact with the TIXAE Agents API to fetch clients, analytics, and more β€” with proper authentication and efficient pagination techniques.


🧠 Introduction

TIXAE Agents offers a robust and developer-friendly API for managing AI-powered agents, clients, conversations, analytics, and channel integrations.

The API supports:

  • πŸš€ Real-time and batch access to agents, clients, conversations
  • πŸ“ˆ Analytics across time ranges for performance monitoring
  • 🌐 Multi-region support (EU, NA)
  • πŸ”’ Bearer token–based authentication
  • πŸ“¦ Efficient pagination for large datasets

In this guide, you'll learn:

  • How to authenticate and access TIXAE APIs
  • How pagination works and why it matters
  • Practical examples to fetch clients and analytics

βš™οΈ 1. API Basics

🧭 Base URLs by Region

Regionv2 (legacy)v3 (current/latest)
EUhttps://eu-vg-edge.moeaymandev.workers.dev/v2https://eu-runtime.tixaeagents.org/v3
NAhttps://na-vg-edge.moeaymandev.workers.dev/v2https://na-runtime.tixaeagents.org/v3

πŸ” Authentication

All API requests require a Bearer token in the headers:

Authorization: Bearer <your_token>

Tokens can be:

  • Workspace tokens (access to all clients/agents)
  • Agent tokens (access limited to a specific agent)

πŸ” 2. Understanding Pagination

TIXAE APIs support offset-based pagination, which is crucial when retrieving large lists of resources.

Supported Query Params:

  • limit: Number of results per request
  • offset: Starting index (0 for first page, then increase)

πŸ”„ Pagination Flow:

  1. Fetch the first page: limit=100&offset=0
  2. If 100 results are returned, fetch the next: offset=100
  3. Stop when fewer results than limit are returned

πŸ“Š 3. Example: Fetching Clients with Pagination

GET /clients?limit=100&offset=0
Host: na-vg-edge.moeaymandev.workers.dev
Authorization: Bearer <workspace_token>

➑️ For the next page:

GET /clients?limit=100&offset=100

πŸ“ˆ 4. Example: Fetching Analytics for an Agent

GET /agents/{agent_id}/analytics?start_ts=1680000000&stop_ts=1690000000&limit=50&offset=0
Authorization: Bearer <agent_token>
  • start_ts and stop_ts are Unix timestamps
  • Useful for aggregating usage within specific time windows

🐍 5. Python Example: Paginate Through Clients

import requests

BASE = "https://na-vg-edge.moeaymandev.workers.dev/v2"
TOKEN = "Bearer YOUR_WORKSPACE_TOKEN"

def get_all_clients():
    offset, limit = 0, 100
    all_clients = []

    while True:
        res = requests.get(
            f"{BASE}/clients?limit={limit}&offset={offset}",
            headers={"Authorization": TOKEN}
        )
        clients = res.json().get("clients", [])
        all_clients.extend(clients)
        if len(clients) < limit:
            break
        offset += limit

    return all_clients

πŸ’‘ 6. Best Practices

TipWhy it Matters
βœ… Use limit and offset for all list queriesEnsures scalability
βœ… Filter by start_ts and stop_ts for analyticsReduces unnecessary data
βœ… Handle empty results gracefullyAvoids infinite loops
βœ… Keep requests under 200 results/pagePrevents timeouts or overload
βœ… Use exponential backoff for rate limitingKeeps your integration robust

πŸ§ͺ 7. Bonus: Useful Endpoints with Pagination

Here are commonly paginated endpoints:

  • /clients
  • /agents
  • /agents/{agent_id}/analytics
  • /conversations
  • /kb (Knowledge Base Items)

Each supports limit and offset parameters.


πŸ“¦ 8. Common Use Cases

  • βœ… Dashboard Reporting β€” Pull analytics and usage metrics
  • βœ… Client Management Tools β€” List, search, and filter clients
  • βœ… Data Pipelines β€” Automate syncing TIXAE data to external DBs
  • βœ… Auditing β€” Fetch historical conversations and agent activity
  • βœ… Voiceflow Agent Syncing β€” Fetch data from multiple agents with batching

βœ… 9. Conclusion

The TIXAE Agents API is a powerful interface to build custom dashboards, sync data, or automate workflows across your AI ecosystem. With reliable token-based authentication and standardized pagination, you can confidently scale your integrations and applications.

Make sure to:

  • Use correct region and API version
  • Apply pagination (limit, offset)
  • Combine pagination with filtering for best performance

πŸ“š 10. Additional Resources

tixae-apipaginationrest-apidata-fetchingagentsclientsanalyticsoffset-limitdeveloper-guideapi-integration
Share

Start your own AI agency

  • Chat and voice agents under your brand
  • Your domain, dashboard and prices
  • We run the platform for you
Start your AI agency
White label AI platform

Start your AI agency today

Sell AI chat and voice agents under your own brand, on your own domain, at your own prices. We run the platform; you own the clients.

Start your AI agency