MultiLocale Phrases API

The Phrases API from MultiLocale — 3 operation(s) for phrases.

GitHub OpenAPI

Operations 6

GET /api/v1/phrases/{phraseId} Read one phrase in the authenticated organization #
PUT /api/v1/phrases/{phraseId} Update a phrase #
GET /api/v1/phrases List phrases #
POST /api/v1/phrases Create or update phrases #
DELETE /api/v1/phrases Delete phrases #
POST /api/v1/phrases/batch Create or update a batch of phrases #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/multilocale-com:multilocale-com-phrases-api"
All apis
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.

Get an API 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 Specification

multilocale-com-phrases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MultiLocale Phrases API
  version: 1.0.0
  description: Version 1 uses the /api/v1 path prefix. Breaking changes receive a new major prefix; additive changes remain in v1. The unversioned /api prefix remains a compatibility alias. The deprecation policy documents how Deprecation and Sunset response headers announce an endpoint lifecycle.
servers:
- url: https://api.multilocale.com
tags:
- name: Phrases
paths:
  /api/v1/phrases/{phraseId}:
    get:
      tags:
      - Phrases
      summary: Read one phrase in the authenticated organization
      description: Requires the `phrases:read` scope.
      security:
      - apiKey: []
      - accessToken: []
      - oauth2:
        - phrases:read
      parameters:
      - in: path
        name: phraseId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The owned phrase and its current version
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Phrase'
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
        '404':
          description: No phrase in this organization
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getPhrasesByPhraseId
    put:
      tags:
      - Phrases
      summary: Update a phrase
      description: Replaces a phrase you own and emits `phrase.updated`. Answers 404 — not 403 — for a phrase belonging to another organization, so ids cannot be probed. Requires the `phrases:write` scope. Send `Idempotency-Key` to make retries safe for 24 hours.
      security:
      - apiKey: []
      - accessToken: []
      - oauth2:
        - phrases:write
      parameters:
      - in: path
        name: phraseId
        required: true
        schema:
          type: string
      - in: header
        name: Idempotency-Key
        required: false
        description: Unique retry key retained for 24 hours (maximum 255 characters)
        schema:
          type: string
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Phrase'
      responses:
        '200':
          description: The updated phrase
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Phrase'
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key is missing the `phrases:write` scope
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such phrase in your organization
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Idempotency key is in flight or was reused with different input
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: API key rate limit exceeded
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
            Retry-After:
              description: Seconds until the request may be retried.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: putPhrasesByPhraseId
  /api/v1/phrases:
    get:
      tags:
      - Phrases
      summary: List phrases
      description: Lists the phrases of your organization. A phrase is one `{key, value, language}` triple belonging to one or more projects. Filter with `project`, `key` and `language`. Requires the `phrases:read` scope. A key scoped to a project only ever sees that project's phrases. For stable traversal, set `pagination=cursor`; the response becomes `{items, nextCursor}` and is ordered by `_id`. Pass `nextCursor` back as `cursor` until it is null. Existing array responses and offset pagination remain available when cursor pagination is not requested.
      security:
      - apiKey: []
      - accessToken: []
      - oauth2:
        - phrases:read
      parameters:
      - in: query
        name: project
        description: Project name
        schema:
          type: string
      - in: query
        name: key
        description: Phrase key (URL-encoded)
        schema:
          type: string
      - in: query
        name: language
        schema:
          type: string
          example: fr
      - in: query
        name: fields
        description: Comma-separated projection of fields to return
        schema:
          type: string
      - in: query
        name: pagination
        description: Set to `cursor` for a stable page envelope
        schema:
          type: string
          enum:
          - cursor
      - in: query
        name: cursor
        description: Opaque `nextCursor` from the preceding cursor page
        schema:
          type: string
      - in: query
        name: limit
        description: Optional bounded page size (maximum 2001; defaults to 100 in cursor mode)
        schema:
          type: integer
          minimum: 1
          maximum: 2001
      - in: query
        name: skip
        description: Optional page offset (maximum 10000)
        schema:
          type: integer
          minimum: 0
          maximum: 10000
      - in: query
        name: sortField
        schema:
          type: string
          enum:
          - _id
          - key
          - language
      - in: query
        name: sortDirection
        schema:
          type: string
          enum:
          - ASC
          - DESC
      responses:
        '200':
          description: Array of phrases, or `{items, nextCursor}` in cursor mode
          content:
            application/json:
              schema:
                oneOf:
                - type: array
                  items:
                    $ref: '#/components/schemas/Phrase'
                - $ref: '#/components/schemas/PhrasePage'
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key is missing the `phrases:read` scope
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: API key rate limit exceeded
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
            Retry-After:
              description: Seconds until the request may be retried.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getPhrases
    post:
      tags:
      - Phrases
      summary: Create or update phrases
      description: Upserts one phrase or an array of phrases. Emits `phrase.created` for rows that did not exist and `phrase.updated` for rows that did — one event per row, not per request. Requires the `phrases:write` scope. Send `Idempotency-Key` to make retries safe for 24 hours.
      security:
      - apiKey: []
      - accessToken: []
      - oauth2:
        - phrases:write
      parameters:
      - in: header
        name: Idempotency-Key
        required: false
        description: Unique retry key retained for 24 hours (maximum 255 characters)
        schema:
          type: string
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/Phrase'
              - type: array
                items:
                  $ref: '#/components/schemas/Phrase'
      responses:
        '200':
          description: The upserted phrase, or the array of upserted phrases
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Phrase'
                - type: array
                  items:
                    $ref: '#/components/schemas/Phrase'
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key is missing the `phrases:write` scope
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Idempotency key is in flight or was reused with different input
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: API key rate limit exceeded
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
            Retry-After:
              description: Seconds until the request may be retried.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postPhrases
    delete:
      tags:
      - Phrases
      summary: Delete phrases
      description: Deletes every translation of one `key` in one `project` — all languages at once — and emits one `phrase.deleted` per deleted row. Requires the `phrases:write` scope. Send `Idempotency-Key` to make retries safe for 24 hours.
      security:
      - apiKey: []
      - accessToken: []
      - oauth2:
        - phrases:write
      parameters:
      - in: query
        name: key
        required: true
        description: Phrase key (URL-encoded)
        schema:
          type: string
      - in: header
        name: Idempotency-Key
        required: false
        description: Unique retry key retained for 24 hours (maximum 255 characters)
        schema:
          type: string
          maxLength: 255
      - in: query
        name: project
        required: true
        description: Project name
        schema:
          type: string
      responses:
        '200':
          description: The deleted phrases
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Phrase'
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key is missing the `phrases:write` scope
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Nothing matched
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Idempotency key is in flight or was reused with different input
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: API key rate limit exceeded
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
            Retry-After:
              description: Seconds until the request may be retried.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: deletePhrases
  /api/v1/phrases/batch:
    post:
      tags:
      - Phrases
      operationId: batchUpsertPhrases
      summary: Create or update a batch of phrases
      description: Upserts an array of phrases in one authenticated request and returns the resulting array in input order. Each row emits its own created or updated webhook event. Requires the `phrases:write` scope. Send `Idempotency-Key` to make retries safe for 24 hours.
      security:
      - apiKey: []
      - accessToken: []
      - oauth2:
        - phrases:write
      parameters:
      - in: header
        name: Idempotency-Key
        required: false
        description: Unique retry key retained for 24 hours (maximum 255 characters)
        schema:
          type: string
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/Phrase'
      responses:
        '200':
          description: The upserted phrases in input order
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Phrase'
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key is missing the `phrases:write` scope
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Idempotency key is in flight or was reused with different input
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: API key rate limit exceeded
          headers:
            RateLimit:
              description: Current quota, remaining requests, and reset time.
              schema:
                type: string
            RateLimit-Policy:
              description: Quota policy and window applied to the API key.
              schema:
                type: string
            Retry-After:
              description: Seconds until the request may be retried.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Phrase:
      type: object
      properties:
        key:
          type: string
          example: welcome_message
        value:
          type: string
          example: Welcome
        language:
          type: string
          example: en
        projects:
          type: array
          description: Project names this phrase belongs to
          items:
            type: string
    Error:
      type: object
      description: Uniform JSON envelope returned for API errors.
      required:
      - name
      - message
      - status
      properties:
        name:
          type: string
          description: Machine-readable error class.
          example: ForbiddenError
        message:
          type: string
          description: Human-readable explanation.
        status:
          type: integer
          description: HTTP status code.
        details:
          type: object
          additionalProperties: true
          description: Optional structured context for the error.
    PhrasePage:
      type: object
      required:
      - items
      - nextCursor
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Phrase'
        nextCursor:
          type:
          - string
          - 'null'
          description: Opaque cursor for the next page, or null after the final page
  securitySchemes:
    apiKey:
      type: http
      scheme: basic
      description: 'HTTP Basic auth carrying only the API key secret: Authorization: Basic base64(<key secret>).'
    accessToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Operator session token issued by the MultiLocale dashboard: Authorization: Token <access token>.'
    oauth2:
      type: oauth2
      description: Authrice authorization-code flow with PKCE for delegated access.
      flows:
        authorizationCode:
          authorizationUrl: https://app.multilocale.com/oauth/authorize
          tokenUrl: https://api.authrice.com/api/oauth/token
          scopes:
            projects:read: Read projects and their locales.
            projects:write: Create, rename, and delete projects.
            phrases:read: Read phrases and translations.
            phrases:write: Create, update, and delete phrases.
            translations:write: Machine-translate phrases using organization credits.
externalDocs:
  description: API versioning and deprecation policy
  url: https://www.multilocale.com/docs/api/versioning/