Skip to main content
Use this API to upload source files, create translation jobs, check progress, and retrieve translated files. It is also the API used by Platform CLI sync. For identity, project discovery, and Queries, use the separate Projects and Queries API. See Choose an API for base URLs and authentication. The Public API reference does not describe these file and job routes.

Base URL

The CLI hyperlocalise.api_base_url default is https://hyperlocalise.com/api. Paths below are relative to that host, including /v1, except job reads. Read jobs from https://public-api.hyperlocalise.com/v1. See Read jobs.

Authentication

Create a key under Settings → API Keys. Send it on every request:
Missing, invalid, or revoked keys return 401 with error: "unauthorized". An archived workspace returns 403 with error: "workspace_archived".

Permissions

Omitting permissions grants every scope the key owner can hold. Admins and localization managers receive all seven. Job contributors receive every scope except memories:write and reports:read. Members receive jobs:read, files:read, and memories:read. A key only sees projects the key’s creator can access.

Errors

JSON errors use this envelope:
Branch on error. message is for debugging and may change. File downloads return the raw body instead of JSON.

Files

Upload a source file

POST /v1/files Permission: files:write multipart/form-data. Maximum body size is 25 MiB. 201 response for a native project (resource-keyed):
TMS-backed projects return destination: "external_tms" plus provider fields instead of the stored-file metadata. This is the same upload hyperlocalise sync push performs. It does not create a job.

Download a stored file

GET /v1/files/{fileId}/download Permission: files:read Returns the file bytes with Content-Type and Content-Disposition.

Use a translation as another project’s source

POST /v1/projects/{projectId}/files/translation-source Permission: files:write, and a role that can manage projects (admin, localization manager or developer) with access to both projects The same action as Use translation as source… on the Files page. It builds a Word or Excel file of project projectId from its approved translations in the other project’s source language, and uploads it to the other project as a source file under the same path. An .xls file arrives as .xlsx. The other project’s source language must be one of this project’s target languages. See Translate through another language first for how the two projects work together.
201 response, with the file’s path in the other project:
A send reads the file from this project’s default branch, main, and uploads it to the other project’s main branch; there is no branch parameter. Files at the same path on other branches are left alone. Sending the file again updates the same strings in the other project. A send replaces the other project’s file at that path without asking only when that file came from this file’s last send. Anything else there, such as a file uploaded by hand or added by a repository sync, is refused with destination_file_replaced; details.destinationFile says what it is:
To replace it, send again with its versionId as replaceVersionId. If another file arrives there in the meantime, the send is refused again with the new version. addedBy is the person who uploaded the file, or the owner of the API key that did, when addedThroughApi is true. It is null when that is not known, for example for a removed member. destinationFile is null when the file there changed again while the refusal was made; send again as before. sentFrom names the project and path a file sent from elsewhere came from; projectId and projectName are null when the key’s owner cannot open that project. A file from a repository sync may be stored again by the sync’s next run. Refusals: To send a file once its translation is finished, listen for the job-change webhook on its review job (job.status_changed to succeeded), then send the file under the path it was uploaded with. A finished review job does not mean every string is approved: if some are not, the send is refused with translations_not_approved, and can be sent again once they are.

Jobs

Create a job

POST /v1/jobs Permission: jobs:write JSON body. Discriminate on type. String job
File job
sourceFileId must already exist in the project (upload first). Locales must match the project. 201 response:
Key job A task for people on a chosen set of strings, picked one way only: stringIds, keys (key names, in any file), or tags (strings carrying every tag when the job is created). Up to 5,000 strings; hidden strings and strings in no file are left out. A key job runs no AI translation and is never queued: it starts as waiting_for_review for people to translate and review in the Content Editor.
A key job’s 201 response has "type": "keys" and "status": "waiting_for_review". File task for a person Add step to a file job’s fileInput to make a task for a person on that file instead of AI work: post_edit or proofread. It runs no AI translation and uses no AI credit. Set who does it and by when with ownerEmail and dueAt. Left without a title, the task is named after its step and file, for example “Post-edit: guide.docx”. Add after with the ID of an earlier job in the same project to make the task wait for it. A waiting task has status queued, can’t be completed, and opens (waiting_for_review) when the earlier job is marked done or cancelled, usually within a minute. That sends a job.status_changed webhook for the task. If the earlier job is already done or cancelled, the task starts open. What a task comes after is set when it is created and can’t be changed. To set up a file’s steps in one go, create the post-edit task, then the proofread task with after set to the first task’s ID:
The 201 response has "status": "waiting_for_review", or "queued" for a task that waits. Finish each task with Complete a task for people. Tasks for people, on files or on chosen strings, do not count towards the workspace’s limit of 50 open jobs, and that limit never refuses one. The limit of 120 jobs created an hour applies to them (429 organization_job_budget_exceeded).

Title, deadline and owner

Every job type takes these optional top-level fields:
Get a job and latest job return title, description, dueAt and ownerEmail, null when unset.

Retries with Idempotency-Key

Send an Idempotency-Key header to make retries safe. The key is 1–255 printable ASCII characters with no spaces, unique within the workspace. Prefix it with your integration name, for example orders:1042.
  • A retry with the same key and the same request creates nothing. It returns 200 with the job the first request created, its current status, and the header Idempotent-Replayed: true.
  • Owner email is matched without regard to case. dueAt values that name the same instant, and metadata objects that differ only in key order, count as the same request.
  • If the first request created the job but could not enqueue it (503 job_queue_unavailable), a retry with the same key tries to enqueue that job again.
  • The same key with a different body returns 422 idempotency_key_reused.
  • Requests sent at the same time with one key create one job.

Complete a task for people

POST /v1/jobs/{jobId}/complete Permission: jobs:write Finishes an open task for people, such as a key job, a proofread task or a post-edit task, the same way Mark done does in the app. Reviewers, localization managers, and admins can complete any such task; anyone else only a task assigned to them. A completed task can’t be reopened.
The CLI does not call these endpoints during sync push. Platform automations and the UI create jobs after upload. After you create a key job, list its strings, add or remove keys, read per-locale progress, and change target languages on https://public-api.hyperlocalise.com/v1. See Strings and key jobs.

Read jobs

Job reads use a different host from the rest of this API:
Send the same x-api-key. https://hyperlocalise.com/api/v1 no longer serves these routes.

Latest job for a source path

GET https://public-api.hyperlocalise.com/v1/jobs/latest?projectId={projectId}&sourcePath={sourcePath} Permission: jobs:read Returns the most recent succeeded file job for that source path, including outputFiles.

Get a job

GET https://public-api.hyperlocalise.com/v1/jobs/{jobId} Permission: jobs:read
step is the job’s step as a task for people: translate, post_edit or proofread, and null for AI jobs and jobs synced from another TMS. A post-edit task and a proofread task both have kind proofread, so read step to tell them apart. after is the ID of the job a task comes after, or null; while that job is unfinished the task’s status is queued. sourceFile is the stored file the job translates or reviews: fileId is its id for Download a stored file, path is its path in the project, and branch is the project version branch it is on (both null if it has no path). It is null for jobs not made from a stored file, such as key jobs. sourceLocale and targetLocales are the languages the job was created with; they are null for jobs synced from another TMS. To act when a review task finishes, listen for the job-change webhook, then read the job here to find its file and languages.

Job status

GET https://public-api.hyperlocalise.com/v1/jobs/{jobId}/status Permission: jobs:read Smaller payload with id, projectId, kind, type, status, timestamps, and lastError.

Match-band analysis

GET https://public-api.hyperlocalise.com/v1/jobs/{jobId}/analysis Permission: jobs:read Returns the job’s units by target locale, step, and translation memory match band. These are the same counts as the job’s Report tab in Reports. Optional query: unit is words (default), strings, characters, or characters_with_spaces.
  • bands lists every band in order. Each locale row includes all of them, 0 when empty.
  • steps[].status is pending, done, or failed. An analysis that stays pending for more than an hour reads as failed.
  • incomplete: true, or words in unavailable, means the translation memory could not be read for some strings, so those strings have no match band.
  • steps and locales are empty until the job has been analysed.
  • Money, rate cards, and cost estimates are not included.

Translation memories

TMX import and export use the same host as job reads:
Send the same x-api-key. These routes wrap the native workspace memory the owner can already see. They do not create memories or list them.

Export entries

GET https://public-api.hyperlocalise.com/v1/translation-memories/{memoryId}/entries/export?format=tmx Permission: memories:read Returns TMX 1.4 bytes (application/x-tmx+xml). Pass format=csv for the Hyperlocalise row layout. Optional sourceLocale and targetLocale filter to one language pair.

Import entries

POST https://public-api.hyperlocalise.com/v1/translation-memories/{memoryId}/entries/import Permission: memories:write JSON body. Inline TMX (or CSV) is applied immediately.
201 includes imported, skipped, and the import report. Units with a stable tuid upsert. Large files can use POST .../entries/import/uploads to receive a signed upload URL, then POST .../entries/import with attemptId to apply. GET .../import-attempts/{attemptId} and GET .../import-attempts/{attemptId}/download read the attempt and its source file (memories:read).

Copy from a connected TMS

Requires an active Crowdin, Phrase Strings, or Smartling connection (the credential updated most recently in the workspace). List provider translation memories: GET https://public-api.hyperlocalise.com/v1/orgs/{organizationSlug}/tms/translation-memories Import into a native memory (background TMX export + interchange queue): POST https://public-api.hyperlocalise.com/v1/orgs/{organizationSlug}/translation-memories/{memoryId}/entries/import/from-tms Body: { "credentialId": "<uuid>", "externalId": "<provider id>" }. Response 202 includes attemptId. Glossary listing and POST .../glossaries/{glossaryId}/concepts/import/from-tms follow the same pattern; see Glossary import and export.

Reports

Read the same reports as the Reports page, to load into a spreadsheet, BI tool or vendor payment system. Reports use the job-read host:
Permission: reports:read. Only keys created by admins and localization managers hold it.

Read a report

GET https://public-api.hyperlocalise.com/v1/reports/{report} Query: the same as the page’s tab. Every report takes from and to (YYYY-MM-DD, UTC, inclusive; the last 28 days by default), projectId, jobId and targetLocale; most take step (translation or review) and unit (words, strings, characters or characters_with_spaces). Give each parameter once. Add format=csv, or send Accept: text/csv, for the CSV the page downloads. word-series has no CSV.
  • stillUpdating: true means recent work is still being counted. Figures can lag live work by one capture run (a few minutes); ask again for final numbers.
  • Money is in USD, as decimal strings.
  • 429 rate_limited: a workspace may ask for 30 reports a minute, in bursts of 10. Wait for Retry-After seconds.
  • 503 reports_busy or 503 report_timed_out: try again after Retry-After, or ask for fewer days.

A task’s report

GET https://public-api.hyperlocalise.com/v1/jobs/{jobId}/report The task’s words and match bands per language and step, its post-edit bands, cost estimate, time logged and pricing, as its Report tab shows them. Optional query: step, unit, rateCard, and format=csv for the step’s words by language.

Translations and images

These reconstruct current project state. They do not require a job id. That is what sync pull uses.

Download a reconstructed translation

GET /v1/projects/{projectId}/translations/download?sourcePath={sourcePath}&locale={locale} Permission: files:read Returns the translated file bytes for that source path and target locale. To export only the segments that match Content Editor filters (CSV, TMX, XLIFF, XLSX), use Download in the Content Editor queue—not this endpoint.

Download an image variant

GET /v1/projects/{projectId}/images/download?sourcePath={sourcePath}&locale={locale} Permission: files:read Returns the localized image variant when one exists for that path and locale.

Example

Upload a source file with curl:
Send a Word file’s approved English to the English project:
Download the French reconstruction:

Next