Makeswift locale API

The locale API from Makeswift — 3 operation(s) for locale.

Operations 6

POST /v2/locales Create Locale #
GET /v2/locales List Locales #
GET /v2/locales/{localeIdOrCode} Get Locale #
PATCH /v2/locales/{localeIdOrCode} Update Locale #
DELETE /v2/locales/{localeIdOrCode} Delete Locale #
POST /v2/locales/{localeIdOrCode}/restore Restore Locale #

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/makeswift-locale-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

makeswift-locale-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: REST Locale API
  version: 1.0.0
servers:
- url: https://api.makeswift.com
  description: Production server
tags:
- name: locale
paths:
  /v2/locales:
    post:
      operationId: SiteLocaleController_createV2_v2
      summary: Create Locale
      description: Creates a new locale for a site.
      tags:
      - locale
      parameters:
      - name: x-api-key
        in: header
        description: 'API key authentication. Accepts either:

          - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

          - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)'
        required: true
        schema:
          type: string
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSiteLocaleV2ResponseBodyDto'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponseDto'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponseDto'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponseDto'
        '409':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictResponseDto'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSiteLocaleV2RequestBodyDto'
    get:
      operationId: SiteLocaleController_listV2_v2
      summary: List Locales
      description: Returns a list of locales for a site.
      tags:
      - locale
      parameters:
      - name: siteId
        in: query
        description: The site ID to list locales from.
        required: true
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        description: The maximum number of locales to return.
        required: false
        schema:
          type: number
          format: double
          default: 20
      - name: startingAfter
        in: query
        description: The pagination cursor. This is used to indicate what ID to list from.
        required: false
        schema:
          type: string
          format: uuid
      - name: x-api-key
        in: header
        description: 'API key authentication. Accepts either:

          - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

          - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSiteLocaleV2ResponseBodyDto'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponseDto'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponseDto'
  /v2/locales/{localeIdOrCode}:
    get:
      operationId: SiteLocaleController_getV2_v2
      summary: Get Locale
      description: Returns a locale by its ID or locale code.
      tags:
      - locale
      parameters:
      - name: localeIdOrCode
        in: path
        description: The locale ID or locale code.
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        description: The site ID required when using a locale code instead of a locale ID.
        required: false
        schema:
          type: string
          format: uuid
      - name: x-api-key
        in: header
        description: 'API key authentication. Accepts either:

          - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

          - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReadSiteLocaleV2ResponseBodyDto'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponseDto'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponseDto'
    patch:
      operationId: SiteLocaleController_updateV2_v2
      summary: Update Locale
      description: Updates an existing locale.
      tags:
      - locale
      parameters:
      - name: localeIdOrCode
        in: path
        description: The locale ID or locale code.
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        description: The site ID required when using a locale code instead of a locale ID.
        required: false
        schema:
          type: string
          format: uuid
      - name: x-api-key
        in: header
        description: 'API key authentication. Accepts either:

          - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

          - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateSiteLocaleV2ResponseBodyDto'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponseDto'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponseDto'
        '409':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictResponseDto'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSiteLocaleV2RequestBodyDto'
    delete:
      operationId: SiteLocaleController_deleteV2_v2
      summary: Delete Locale
      description: Deletes a locale.
      tags:
      - locale
      parameters:
      - name: localeIdOrCode
        in: path
        description: The locale ID or locale code.
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        description: The site ID required when using a locale code instead of a locale ID.
        required: false
        schema:
          type: string
          format: uuid
      - name: x-api-key
        in: header
        description: 'API key authentication. Accepts either:

          - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

          - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)'
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Locale successfully deleted.
          content:
            application/json:
              schema:
                type: object
                properties: {}
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponseDto'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponseDto'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponseDto'
  /v2/locales/{localeIdOrCode}/restore:
    post:
      operationId: SiteLocaleController_restoreV2_v2
      summary: Restore Locale
      description: Restores a previously deleted locale.
      tags:
      - locale
      parameters:
      - name: localeIdOrCode
        in: path
        description: The locale ID or locale code.
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        description: The site ID required when using a locale code instead of a locale ID.
        required: false
        schema:
          type: string
          format: uuid
      - name: x-api-key
        in: header
        description: 'API key authentication. Accepts either:

          - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

          - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Locale successfully restored.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestoreSiteLocaleV2ResponseBodyDto'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponseDto'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponseDto'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponseDto'
        '409':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictResponseDto'
components:
  schemas:
    UpdateSiteLocaleV2RequestBodyDto:
      type: object
      properties:
        locale:
          type: string
          description: Locale of the site locale.
        domain:
          type:
          - string
          - 'null'
          format: uri
          description: The domain URL for domain-based localization. This URL must include the protocol.
      title: UpdateSiteLocaleV2RequestBodyDto
    ConflictResponseDtoCode:
      type: string
      enum:
      - conflict
      title: ConflictResponseDtoCode
    CreateSiteLocaleV2ResponseBodyDtoObject:
      type: string
      enum:
      - locale
      title: CreateSiteLocaleV2ResponseBodyDtoObject
    BadRequestResponseDtoCode:
      type: string
      enum:
      - bad_request
      title: BadRequestResponseDtoCode
    ListSiteLocaleV2ResponseBodyDtoDataItemsObject:
      type: string
      enum:
      - locale
      title: ListSiteLocaleV2ResponseBodyDtoDataItemsObject
    ForbiddenResponseDtoCode:
      type: string
      enum:
      - forbidden
      title: ForbiddenResponseDtoCode
    CreateSiteLocaleV2ResponseBodyDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/CreateSiteLocaleV2ResponseBodyDtoObject'
        id:
          type: string
          format: uuid
          description: The ID of the created locale.
        locale:
          type: string
          description: We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
        domain:
          type:
          - string
          - 'null'
          format: uri
          description: The domain URL for domain-based localization.
        pathPrefix:
          type:
          - string
          - 'null'
          description: Custom URL path prefix. Null means the locale code is used as the default prefix.
        isDefault:
          type: boolean
          description: The flag that indicates whether this locale is the default locale for the site.
      required:
      - object
      - id
      - locale
      - domain
      - pathPrefix
      - isDefault
      title: CreateSiteLocaleV2ResponseBodyDto
    ConflictResponseDtoObject:
      type: string
      enum:
      - error
      title: ConflictResponseDtoObject
    ForbiddenResponseDtoObject:
      type: string
      enum:
      - error
      title: ForbiddenResponseDtoObject
    NotFoundResponseDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/NotFoundResponseDtoObject'
        code:
          $ref: '#/components/schemas/NotFoundResponseDtoCode'
        message:
          type: string
      required:
      - object
      - code
      - message
      title: NotFoundResponseDto
    UpdateSiteLocaleV2ResponseBodyDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/UpdateSiteLocaleV2ResponseBodyDtoObject'
        id:
          type: string
          format: uuid
          description: The ID of the updated locale.
        locale:
          type: string
          description: We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
        domain:
          type:
          - string
          - 'null'
          format: uri
          description: The domain URL for domain-based localization.
        pathPrefix:
          type:
          - string
          - 'null'
          description: Custom URL path prefix. Null means the locale code is used as the default prefix.
        isDefault:
          type: boolean
          description: The flag that indicates whether this locale is the default locale for the site.
      required:
      - object
      - id
      - locale
      - domain
      - pathPrefix
      - isDefault
      title: UpdateSiteLocaleV2ResponseBodyDto
    BadRequestResponseDtoObject:
      type: string
      enum:
      - error
      title: BadRequestResponseDtoObject
    ListSiteLocaleV2ResponseBodyDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/ListSiteLocaleV2ResponseBodyDtoObject'
        data:
          type: array
          items:
            $ref: '#/components/schemas/ListSiteLocaleV2ResponseBodyDtoDataItems'
        hasMore:
          type: boolean
          description: The flag that indicates whether there are more locales available.
      required:
      - object
      - data
      - hasMore
      title: ListSiteLocaleV2ResponseBodyDto
    UpdateSiteLocaleV2ResponseBodyDtoObject:
      type: string
      enum:
      - locale
      title: UpdateSiteLocaleV2ResponseBodyDtoObject
    BadRequestResponseDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/BadRequestResponseDtoObject'
        code:
          $ref: '#/components/schemas/BadRequestResponseDtoCode'
        message:
          type: string
      required:
      - object
      - code
      - message
      title: BadRequestResponseDto
    ListSiteLocaleV2ResponseBodyDtoObject:
      type: string
      enum:
      - list
      title: ListSiteLocaleV2ResponseBodyDtoObject
    NotFoundResponseDtoObject:
      type: string
      enum:
      - error
      title: NotFoundResponseDtoObject
    ReadSiteLocaleV2ResponseBodyDtoObject:
      type: string
      enum:
      - locale
      title: ReadSiteLocaleV2ResponseBodyDtoObject
    RestoreSiteLocaleV2ResponseBodyDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/RestoreSiteLocaleV2ResponseBodyDtoObject'
        id:
          type: string
          format: uuid
          description: The ID of the restored locale.
        locale:
          type: string
          description: We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
        domain:
          type:
          - string
          - 'null'
          format: uri
          description: The domain URL for domain-based localization.
        pathPrefix:
          type:
          - string
          - 'null'
          description: Custom URL path prefix. Null means the locale code is used as the default prefix.
        isDefault:
          type: boolean
          description: The flag that indicates whether this locale is the default locale for the site.
      required:
      - object
      - id
      - locale
      - domain
      - pathPrefix
      - isDefault
      title: RestoreSiteLocaleV2ResponseBodyDto
    NotFoundResponseDtoCode:
      type: string
      enum:
      - not_found
      title: NotFoundResponseDtoCode
    ReadSiteLocaleV2ResponseBodyDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/ReadSiteLocaleV2ResponseBodyDtoObject'
        id:
          type:
          - string
          - 'null'
          format: uuid
          description: The ID of the locale you are getting.
        locale:
          type: string
          description: We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
        domain:
          type:
          - string
          - 'null'
          format: uri
          description: The domain URL for domain-based localization.
        pathPrefix:
          type:
          - string
          - 'null'
          description: Custom URL path prefix. Null means the locale code is used as the default prefix.
        isDefault:
          type: boolean
          description: The flag that indicates whether this locale is the default locale for the site.
      required:
      - object
      - id
      - locale
      - domain
      - pathPrefix
      - isDefault
      title: ReadSiteLocaleV2ResponseBodyDto
    ConflictResponseDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/ConflictResponseDtoObject'
        code:
          $ref: '#/components/schemas/ConflictResponseDtoCode'
        message:
          type: string
      required:
      - object
      - code
      - message
      title: ConflictResponseDto
    ForbiddenResponseDto:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/ForbiddenResponseDtoObject'
        code:
          $ref: '#/components/schemas/ForbiddenResponseDtoCode'
        message:
          type: string
      required:
      - object
      - code
      - message
      title: ForbiddenResponseDto
    ListSiteLocaleV2ResponseBodyDtoDataItems:
      type: object
      properties:
        object:
          $ref: '#/components/schemas/ListSiteLocaleV2ResponseBodyDtoDataItemsObject'
        id:
          type:
          - string
          - 'null'
          format: uuid
          description: The ID of the locale you are getting.
        locale:
          type: string
          description: We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
        domain:
          type:
          - string
          - 'null'
          format: uri
          description: The domain URL for domain-based localization.
        pathPrefix:
          type:
          - string
          - 'null'
          description: Custom URL path prefix. Null means the locale code is used as the default prefix.
        isDefault:
          type: boolean
          description: The flag that indicates whether this locale is the default locale for the site.
      required:
      - object
      - id
      - locale
      - domain
      - pathPrefix
      - isDefault
      title: ListSiteLocaleV2ResponseBodyDtoDataItems
    CreateSiteLocaleV2RequestBodyDto:
      type: object
      properties:
        siteId:
          type: string
          format: uuid
          description: The site ID to create the locale for.
        locale:
          type: string
          description: Locale of the site locale.
        domain:
          type: string
          format: uri
          description: The domain URL for domain-based localization. This URL must include the protocol.
      required:
      - siteId
      - locale
      title: CreateSiteLocaleV2RequestBodyDto
    RestoreSiteLocaleV2ResponseBodyDtoObject:
      type: string
      enum:
      - locale
      title: RestoreSiteLocaleV2ResponseBodyDtoObject
  securitySchemes:
    Authentication:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API key authentication. Accepts either:

        - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

        - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)'