AI Glot websiteOpen AI Glot
REST APIRequests, pagination and limits

Requests, pagination and limits

Build predictable AI Glot API clients using response envelopes, strict parameters, cursor pagination, request IDs, rate limits and retries.

JSON envelopes

Successful single-resource responses use:

JSON
{ "data": {}, "request_id": "req_example" }

Lists add pagination fields:

JSON
{
  "data": [],
  "has_more": true,
  "next_cursor": "opaque-cursor",
  "request_id": "req_example"
}

Unknown query fields and JSON properties are rejected. This catches typos instead of silently ignoring a filter or write.

Defaults

Defaults are chosen for safe interactive use. For example, usage defaults to the last 30 days and translations default to 25 recent, non-archived records. A requested list limit above 100 is clamped to 100.

Dates and timestamps use ISO 8601. JSON field names are snake_case. Fields that are not yet applicable are usually null so resource shapes stay stable across a translation lifecycle.

Cursor pagination

Pass next_cursor from one response into the next request unchanged. Stop when it is null or has_more is false.

List every translation
let cursor;
do {
  const url = new URL('https://api.ai-glot.com/v1/batches');
  url.searchParams.set('limit', '100');
  if (cursor) url.searchParams.set('cursor', cursor);

  const page = await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.AIGLOT_API_KEY}` },
  }).then(response => response.json());

  for (const translation of page.data) console.log(translation.id);
  cursor = page.next_cursor;
} while (cursor);

Do not construct or modify cursors. Cursor pagination prevents a newly created translation from shifting rows between pages.

Rate limits

Each credential has a sustained limit of 240 requests per minute and a burst ceiling of 40 requests per 10 seconds. A 429 response includes Retry-After; wait for it before retrying.

Request IDs and retries

Every response carries a request ID in both the payload and Request-Id header. Include it when asking for support.

Retry 429, 500, 502, 503 and 504 with exponential backoff and jitter. Do not retry validation, authentication, permission or not-found errors without changing the request.

Trailing slashes are tolerated. The REST API intentionally sends no browser CORS permission because workspace credentials belong in trusted server-side code.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search AI Glot Docs documentation and read it in full, instead of answering from memory.

https://ai-glot.com/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://ai-glot.com/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.