Usertour Localizations API
The Localizations API from Usertour, for localizations.
The Localizations API from Usertour, for localizations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/usertour-io:usertour-io-localizations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Usertour API v2 Localizations API
description: 'Project-scoped v2 API. Authenticate with a personal API token — an opaque `utp_...` string (NOT a JWT: do not try to decode it), created in the Usertour app under Settings → API, sent as `Authorization: Bearer utp_...`.'
version: '2.0'
contact: {}
servers:
- url: https://api.usertour.io
tags:
- name: Localizations
paths:
/v2/locales:
get:
operationId: ApiLocalesController_list
summary: List locales
description: 'The locale catalog the dashboard offers when adding a localization: a BCP-47 tag with the language name to file it under. Copy a pair from here into `create localization` — `name` is what machine translation is asked to translate into, so a real language name translates better than an improvised one. The catalog is a suggestion, not a vocabulary: `locale` accepts any well-formed tag, and `code` is free-form (custom codes like `fr-enterprise` let one language carry several variants).'
parameters: []
responses:
'200':
description: Locale catalog
content:
application/json:
schema:
$ref: '#/components/schemas/ListLocalesResponseDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Localizations
security:
- bearer: []
/v2/projects/{projectId}/localizations:
get:
operationId: ApiLocalizationsController_list
summary: List localizations
description: The locales this project translates content into. The `isDefault` one is the source language; every other `code` can carry a translation on each content version — read and write those with the version's translation endpoints under Content versions. `deleted=true` lists the soft-deleted ones instead.
parameters:
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
- name: deleted
required: false
in: query
description: List soft-deleted localizations instead of live ones — the recovery pool for restore.
schema:
enum:
- 'true'
- 'false'
type: string
responses:
'200':
description: List of localizations
content:
application/json:
schema:
$ref: '#/components/schemas/ListLocalizationsResponseDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Localizations
security:
- bearer: []
post:
operationId: ApiLocalizationsController_create
summary: Create a localization
description: 'Add a locale content can be translated into. A `code` stays reserved while its localization is soft-deleted: creating that code again RESTORES the deleted one — same id, with every translation it held (each with the enabled state it had) — and the response says so with `restored: true`.'
parameters:
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateLocalizationBodyDto'
responses:
'201':
description: Created localization
content:
application/json:
schema:
$ref: '#/components/schemas/CreatedLocalizationDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'409':
description: E1023 a live localization already uses this code
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Localizations
security:
- bearer: []
/v2/projects/{projectId}/localizations/{id}:
patch:
operationId: ApiLocalizationsController_update
summary: Update a localization
description: 'Rename a locale or change its locale tag / code. Changing `code` takes effect on live content at once: delivery picks a translation by matching it against the end user''s `locale_code` attribute, so users carrying the old code fall back to the source language until their attribute matches the new one.'
parameters:
- name: id
required: true
in: path
description: Localization ID
schema:
type: string
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateLocalizationBodyDto'
responses:
'200':
description: Updated localization
content:
application/json:
schema:
$ref: '#/components/schemas/LocalizationDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'404':
description: Localization not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'409':
description: E1023 another localization already uses this code (a soft-deleted one keeps its code reserved until it is restored)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Localizations
security:
- bearer: []
delete:
operationId: ApiLocalizationsController_delete
summary: Delete a localization
description: Soft delete. The locale stops being offered and delivered at once — its users see the source language — but the translations it holds on every version are kept, so restoring it brings them all back. The default localization cannot be deleted.
parameters:
- name: id
required: true
in: path
description: Localization ID
schema:
type: string
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
responses:
'204':
description: Localization deleted
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'404':
description: Localization not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'409':
description: E1041 the default localization cannot be deleted
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Localizations
security:
- bearer: []
/v2/projects/{projectId}/localizations/{id}/restore:
post:
operationId: ApiLocalizationsController_restore
summary: Restore a deleted localization
description: 'Bring a soft-deleted locale back exactly as it was: every version translation it held returns with the enabled state it had, so enabled translations on published versions are delivered again at once.'
parameters:
- name: id
required: true
in: path
description: Localization ID (of a deleted localization)
schema:
type: string
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
responses:
'200':
description: Restored localization
content:
application/json:
schema:
$ref: '#/components/schemas/LocalizationDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'404':
description: No deleted localization with this id
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Localizations
security:
- bearer: []
components:
schemas:
LocalizationDto:
type: object
properties:
id:
type: string
object:
type: string
enum:
- localization
code:
type: string
description: The locale's code — how version translations are addressed, and the value matched against the end user's `locale_code` attribute to pick a translation at delivery.
name:
type: string
description: The language this locale stands for, e.g. "French (France)" — also what machine translation is asked to translate into.
locale:
type: string
description: The locale tag this entry was created from, e.g. `fr-FR`.
isDefault:
type: boolean
description: The source language content is authored in. It has no translation of its own — version translations exist only for the non-default locales.
deleted:
type: boolean
description: 'Soft-deleted: no longer offered or delivered, but the translations it holds on every version are kept, so restoring it brings them all back.'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
required:
- id
- object
- code
- name
- locale
- isDefault
- deleted
- createdAt
- updatedAt
ErrorResponseDto:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable machine-readable code (e.g. E1017). Match on this, never on `message`.
message:
type: string
description: Human-readable summary. Wording may change between releases.
issues:
description: Validation errors (E1017) may carry one entry per problem so every field can be fixed in a single round-trip. Absent on other errors.
type: array
items:
type: object
properties:
rule:
type: string
description: 'Which validation layer rejected it: schema | reactive_condition | action_not_allowed | step_shape | reference_target | auto_start | media_url | destination_url. New values may be added; treat an unknown value as a generic validation failure.'
message:
type: string
path:
description: Path into the request body (e.g. `steps[0].triggers[0].when[1]`).
type: string
required:
- rule
- message
doc_url:
type: string
description: Base URL of the API documentation.
required:
- error
UpdateLocalizationBodyDto:
type: object
properties:
code:
type: string
minLength: 2
maxLength: 35
description: 'The value matched against an end user''s `locale_code` attribute to pick their translation, and how a version translation is addressed in the URL path. Letters, digits, `-` and `_` only. Unique within the project, case-insensitively (delivery ignores case). Usually the locale tag, but free-form: `fr-enterprise` next to `fr` gives one language two variants.'
name:
type: string
minLength: 2
maxLength: 64
description: The language this locale stands for, e.g. "French (France)". Machine translation is asked to translate INTO this name, so a real language name (copied from `GET /v2/locales`) translates better than an improvised label.
locale:
type: string
minLength: 2
maxLength: 35
description: The locale tag this entry stands for, e.g. `fr-FR`. `GET /v2/locales` lists the common tags with the language name to file each one under.
additionalProperties: false
ListLocalizationsResponseDto:
type: object
properties:
results:
type: array
items:
type: object
properties:
id:
type: string
object:
type: string
enum:
- localization
code:
type: string
description: The locale's code — how version translations are addressed, and the value matched against the end user's `locale_code` attribute to pick a translation at delivery.
name:
type: string
description: The language this locale stands for, e.g. "French (France)" — also what machine translation is asked to translate into.
locale:
type: string
description: The locale tag this entry was created from, e.g. `fr-FR`.
isDefault:
type: boolean
description: The source language content is authored in. It has no translation of its own — version translations exist only for the non-default locales.
deleted:
type: boolean
description: 'Soft-deleted: no longer offered or delivered, but the translations it holds on every version are kept, so restoring it brings them all back.'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
required:
- id
- object
- code
- name
- locale
- isDefault
- deleted
- createdAt
- updatedAt
next:
type:
- string
- 'null'
description: Full URL of the next page — request it as-is (it already carries `cursor=` and your query parameters). null = no further pages.
previous:
type:
- string
- 'null'
description: Full URL of the previous page — request it as-is. null = already at the first page.
required:
- results
- next
- previous
CreatedLocalizationDto:
type: object
properties:
id:
type: string
object:
type: string
enum:
- localization
code:
type: string
description: The locale's code — how version translations are addressed, and the value matched against the end user's `locale_code` attribute to pick a translation at delivery.
name:
type: string
description: The language this locale stands for, e.g. "French (France)" — also what machine translation is asked to translate into.
locale:
type: string
description: The locale tag this entry was created from, e.g. `fr-FR`.
isDefault:
type: boolean
description: The source language content is authored in. It has no translation of its own — version translations exist only for the non-default locales.
deleted:
type: boolean
description: 'Soft-deleted: no longer offered or delivered, but the translations it holds on every version are kept, so restoring it brings them all back.'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
restored:
type: boolean
description: 'true when this `code` belonged to a soft-deleted localization: that one was RESTORED (same id, with every translation it held) instead of a new one being created.'
required:
- id
- object
- code
- name
- locale
- isDefault
- deleted
- createdAt
- updatedAt
- restored
ListLocalesResponseDto:
type: object
properties:
results:
type: array
items:
type: object
properties:
object:
type: string
enum:
- locale
locale:
type: string
description: BCP-47 tag, e.g. `fr-FR`. Region-less entries (e.g. `ar`) are languages usually translated once.
name:
type: string
description: The language name to file it under, e.g. `French (France)`.
required:
- object
- locale
- name
next:
type:
- string
- 'null'
description: Full URL of the next page — request it as-is (it already carries `cursor=` and your query parameters). null = no further pages.
previous:
type:
- string
- 'null'
description: Full URL of the previous page — request it as-is. null = already at the first page.
required:
- results
- next
- previous
CreateLocalizationBodyDto:
type: object
properties:
code:
type: string
minLength: 2
maxLength: 35
description: 'The value matched against an end user''s `locale_code` attribute to pick their translation, and how a version translation is addressed in the URL path. Letters, digits, `-` and `_` only. Unique within the project, case-insensitively (delivery ignores case). Usually the locale tag, but free-form: `fr-enterprise` next to `fr` gives one language two variants.'
name:
type: string
minLength: 2
maxLength: 64
description: The language this locale stands for, e.g. "French (France)". Machine translation is asked to translate INTO this name, so a real language name (copied from `GET /v2/locales`) translates better than an improvised label.
locale:
type: string
minLength: 2
maxLength: 35
description: The locale tag this entry stands for, e.g. `fr-FR`. `GET /v2/locales` lists the common tags with the language name to file each one under.
required:
- code
- name
- locale
additionalProperties: false
securitySchemes:
bearer:
scheme: bearer
bearerFormat: utp_... personal API token (opaque)
type: http