Back to Blog
Guide8 min readJune 19, 2026

How to Use the LeeBuddy Translation API

A step-by-step guide to integrating LeeBuddy's translation API into your application - from generating your API key to submitting segments, polling job status, and fetching results.

LeeBuddy Translation API - developer guide
LeeBuddy Translation API - developer guide

Where to Find the API Settings

All API-related settings in LeeBuddy are located under Settings → API. This section is divided into three tabs: API Key, Documentation / Examples, and API Requests. Everything you need to integrate LeeBuddy into your own application - from key generation to request monitoring - is right there.

Generating and Managing Your API Key

Open the API Key tab. If you have not generated a key yet, click Generate key. LeeBuddy assigns one API key per company - all users within the same organisation share it. Only one key can be active at a time. If you regenerate the key, the old one is immediately revoked, so make sure to update it everywhere it is in use.

Alongside the key itself, this tab shows you the Base URL for all API calls, the date and time the key was created, and when it was last used - useful for auditing and security reviews.

Understanding the Documentation and Examples

The Documentation / Examples tab contains the full API reference and ready-to-use code snippets in cURL, PHP, and Python. It is the fastest way to get oriented before you write a single line of integration code.

LeeBuddy Documentation / Examples tab showing the API workflow description and cURL code samples
LeeBuddy Documentation / Examples tab showing the API workflow description and cURL code samples

Note: the API key shown in all screenshots and code examples throughout this article is a fake key used for demonstration purposes only. Never share or publish your real API key.

How the API Works: Submit → Poll → Fetch

The LeeBuddy translation API is asynchronous. Translation runs through a multi-step AI pipeline - glossary lookup, translation memory matching, machine translation, and a proofreading pass - so a single request can take anywhere from a few seconds to several minutes depending on the number of segments. Rather than blocking the HTTP connection, the API uses a three-step pattern:

  1. Submit - send your segments to POST /api-translate-submit. The endpoint returns immediately with a request_id and queues the job. No translations yet.

  2. Poll status - call GET /api-translate-status?id={request_id} every 1–3 seconds while the job is queued or processing. Status transitions: queued → processing → completed (or failed / cancelled).

  3. Fetch translations - once status is completed, call GET /api-get-translations?id={request_id} to retrieve the finished translations. Each translation's target field contains the proofread text - if proofreading was unavailable for a segment, target falls back to the raw machine translation. Results are cached for 30 days, so you can re-fetch them anytime within that window without being charged again.

Always store the request_id on your side until you have successfully retrieved and saved the translations.

Step 1 - Submit Segments for Translation

POST /api-translate-submit queues a new translation job. The request body must include a target_lang (ISO 639-1 code) and a segments array of plain strings. source_lang is optional - omit it and the source language is auto-detected. The total word count of all segments is reserved from your company's monthly quota at submit time. If your remaining quota is insufficient, the request is rejected with HTTP 402 and no words are consumed.

POST /api-translate-submit
POST /api-translate-submit

Save the request_id - you will need it for the next two calls.

Step 2 - Poll Job Status

GET /api-translate-status?id={request_id} returns the current state of the job and a live snapshot of your company's word quota. Because quota data is embedded here, integrations that already poll status do not need a separate call to /api-quota.

GET /api-translate-status
GET /api-translate-status

Keep polling while status is queued or processing. Once it changes to completed, move to step 3. Note that used_words is committed only after the job finishes and may differ slightly from requested_words if translation memory hits reduced the cost.

Step 3 - Fetch the Translations

GET /api-get-translations?id={request_id} returns the proofread (lectored) translations for a completed request. Only call this once status is completed. Results stay cached for 30 days against the request_id, so you can re-fetch them anytime within that window without being charged again.

GET /api-get-translations
GET /api-get-translations
  • translations[].target - the proofread translation. If proofreading was unavailable for a segment, it falls back to the raw machine translation - so you always get a usable result.

  • translations[].index - matches the order of segments submitted in the original request, so you can reliably map translations back to your source content.

  • used_words - words actually committed for this job once processing completes. May differ slightly from requested_words if translation memory hits reduced the cost.

  • completed_at - ISO 8601 timestamp of when the job finished.

Checking Your Quota

GET /api-quota is a lightweight endpoint that returns your current subscription plan and word usage for the active billing period. Call it before submitting a large batch to confirm you have enough capacity. No request_id is needed.

GET /api-quota
GET /api-quota

Monitoring API Requests

The API Requests tab gives you a complete audit log of every call your organisation has made. For each request you can see the ID, status, language pair, number of segments, word count, creation timestamp, and execution duration.

LeeBuddy API Requests tab showing a list of completed translation requests with ID, status, language pair, segments, words, date, and duration
LeeBuddy API Requests tab showing a list of completed translation requests with ID, status, language pair, segments, words, date, and duration

You can filter by status and by date range, making it straightforward to investigate specific batches or spot any failed requests quickly.

Viewing Segment Details

Clicking View on any request opens the segment detail panel. It lists every segment by index, showing both the original source text and the finished translation side by side - a quick way to verify quality or debug unexpected output without leaving the dashboard.

LeeBuddy segment detail panel showing source and translated text for each segment in a completed translation request
LeeBuddy segment detail panel showing source and translated text for each segment in a completed translation request

Getting Started

API access is available on all LeeBuddy plans. To get started, log in to your LeeBuddy account, navigate to Settings → API → API Key, generate your key, and make your first request. The documentation and ready-made code examples are right there alongside your key - no separate developer portal required.

If you have questions about integrating LeeBuddy into your workflow, our support team is available by email and phone.

Ready to try LeeBuddy Ai?

Upload your first file for free — no credit card required.

Get Started Free