Documentation Index
Fetch the complete documentation index at: https://api-docs.ollang.com/llms.txt
Use this file to discover all available pages before exploring further.
Best Practices
Recommended patterns for shipping reliable, secure, and consistent localization workflows on Ollang.API Key Hygiene
- Store keys in environment variables or a secrets manager. Never
commit
<your-api-key>values to source control or paste them in shared chats. - Use a separate key per environment. Development, staging, and production should each have their own API key. Rotate when team members leave or a key is suspected leaked.
- Pass keys via
X-Api-Key, not in the URL or request body. The header name is case-sensitive on some HTTP clients. - Scope by Folder, not by key. Folders are how you isolate workflows and content (legal vs. marketing vs. internal training). All keys on an account can see all folders.
Folder Structure
Folders are the primary organizational unit. Use them to group projects that share a workflow. Recommended folder layout for an enterprise account:- Folder-level workflows override Global workflows, so each team gets its preferred provider/review-gate setup without touching account defaults.
- Folder-level Custom Instructions / Guidelines apply automatically to every order created in that folder.
- Folder-level Memory keeps terminology consistent across multiple campaigns or product lines.
Callbacks vs. Polling
Always prefer callbacks for production workflows. Fall back to polling for short-lived scripts or as a safety net.Callback handler checklist
- Idempotent. Use
orderId(and optionallycompletedAt) as the deduplication key. The same callback may fire more than once on retry. - Fast acknowledgment. Return
2xxwithin 10 seconds. Process asynchronously (queue, background job) if your handler does any real work. - Confirm before acting. Don’t trust callback bodies alone. Pair
with
GET /integration/orders/<order-id>using your API key before performing irreversible actions (publishing content, billing customers). - Public URLs only. Callback URLs must be reachable from the public internet. Internal hostnames and IPv6 destinations are blocked at the SSRF guard.
Polling pattern
Retries and Backoff
The Integration API is generally available 99.9%. Network blips happen.- Retry on
408,429,500,502,503,504. - Use exponential backoff with jitter (e.g. 500ms → 1s → 2s → 4s → 8s, cap ~30s).
- Treat
429(rate limit) seriously — slow your overall request rate, don’t just retry harder. - Do not retry
400,401,403,404without changing the request — they indicate a client-side bug, not a transient failure. - File uploads can have multi-minute response times. Set HTTP client read/write timeouts to 5–10 minutes for upload requests.
Choosing level: 0 vs level: 1
Use level: 0 (AI only) when… | Use level: 1 (Human Review) when… |
|---|---|
| Internal previews, QA, sample reviews | External / paid distribution |
| Volume is high and SLAs are tight | Brand-sensitive or legal content |
| You’re iterating on prompts, guidelines, or Memory | First time localizing into a new language |
| Multiple subsequent reruns expected | Accessibility / compliance deliverables |
Memory and Custom Instructions
Memory and Custom Instructions are the strongest levers you have for quality and consistency:- Memory — approved translations for recurring terms (product names, trademarks, legal jargon). Reuse across projects.
- Custom Instructions — natural-language guidance to the AI (“Always use formal register in French,” “Translate ‘cookie’ as ‘cookie’ in cybersecurity contexts, not as the food”).
- Folder Guidelines override account-wide Custom Instructions for specific workflows.
- Run a small Level 1 pilot batch.
- Capture linguist edits into Memory.
- Run subsequent Level 0 orders with the populated Memory — quality tends to converge quickly.
QC and Review Gates
- Enable
autoQc: trueon order creation to score every order immediately on completion. See Run QC Evaluation. - Configure Review Gates in your Folder workflow to auto-route low-scoring orders to human review (Assignment mode) or to a review tag (Comment mode). See Workflows and Provider Architecture and the Review Gate entry in the glossary.
- Track QC progression in the Analytics dashboard — declining scores are usually a sign of a content/domain shift that needs Memory or Custom Instructions updates. See Analytics and QC Monitoring.
Bulk and Concurrent Operations
- Each
targetLanguageConfigsentry creates one order. Issue them in a singlecreateOrderrequest rather than looping, so you get consistent timestamps and a single response array. - Parallelize uploads moderately (start at 3–5 concurrent). Watch
for
429and back off. - Reuse projects across orders. One source video can drive multiple
cc+subtitle+aiDubbingorders without re-uploading.
Error Handling
The REST API returns standard HTTP status codes with a JSON body:2xx→ success4xx→ log and surface to the user; do not retry without changing the request429→ backoff and retry5xx→ backoff and retry (up to N times)
code and the original request when escalating to
support — see Troubleshooting.
Pagination
List endpoints use one of two query-string styles depending on the endpoint:takeis the page size (default10, max50); the API returns ametaobject withpage,take,itemCount,pageCount,hasPreviousPage, andhasNextPage.- Iterate until
hasNextPageisfalse. - Combine with
filter[name],filter[type], orfilter[createdAtRange]for more targeted queries.
Security
- Never log API keys, callback bodies containing tokens, or signed URLs.
- Treat
vttUrlandorderDocs[].urlas short-lived, sensitive URLs. Re-fetch via Get Order by ID before downloading rather than persisting them indefinitely. - Restrict who has access to your API keys to the smallest team possible.
- If you suspect a key leak, rotate immediately in the Olabs Dashboard and update all consumers.
Versioning and Deprecations
The Integration API is currently stable and non-versioned at the URL level. Breaking changes (parameter removals, response shape changes) are announced in the Changelog ahead of rollout. Additive changes (new optional fields, new endpoints) ship without notice.When to Reach for Each Surface
A quick mental model:- REST API — anything programmatic. Default choice.
- SDK — Node.js / TypeScript projects, plus when you want the Asset Management UI for i18n strings or CMS capture.
- MCP — non-developer team members operating Ollang through an AI assistant; ad-hoc / exploratory work; automated agents.
- Skills — coding agents (Cursor, Claude Code, Codex, Windsurf, Cline) when you want zero infra — just a file-based skill bundle.
See Also
- Use Cases — end-to-end workflow walkthroughs.
- API Conventions — pagination, errors, auth in one reference page.
- Troubleshooting — diagnostics for common issues.