> ## Documentation Index
> Fetch the complete documentation index at: https://hyperlocalise.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a native project, optionally from a project template

> Requires `projects:write`, which `files:write` grants to admins, localization managers, and developers. With `templateId`, the project starts from the template: its source and target locales, description, translation context, team, content editor settings, translation memories, and glossaries. Fields in the request override the template's. Without `templateId`, `sourceLocale` and `targetLocales` are required. Without translation memories, the project gets a new one of its own. `customFields` sets custom field values in the same request, as `PUT /v1/projects/{projectId}/custom-fields` does. Counts toward the workspace's project limit.



## OpenAPI

````yaml https://public-api.hyperlocalise.com/openapi.yaml post /v1/projects
openapi: 3.1.0
info:
  title: Hyperlocalise Public API
  version: 1.0.0
  description: >-
    Read projects, Queries, jobs, glossaries, and translation memories from a
    Hyperlocalise workspace; create native projects from project templates and
    manage those templates; define custom project fields and set their values;
    manage the strings, translations, screenshots, and settings of native
    projects; search strings; round-trip bilingual files; update jobs one at a
    time or in bulk; register job-change webhook endpoints; import and export
    glossaries and translation memories; and read the Reports page's reports as
    JSON or CSV.
servers:
  - url: https://public-api.hyperlocalise.com
security:
  - personalAccessToken: []
tags:
  - name: Identity
  - name: Projects
  - name: Project templates
  - name: Custom fields
  - name: Queries
  - name: Jobs
  - name: Strings
  - name: Translations
  - name: Screenshots
  - name: Figma attachments
  - name: Bilingual files
  - name: Glossaries
  - name: Translation memories
  - name: Webhooks
  - name: CDN
  - name: Hyperlab
  - name: Reports
    description: >-
      The Reports page's reports for scripts, BI tools and payment systems.
      Every report needs `reports:read`, which only admins' and localization
      managers' keys hold, and the workspace's Reports feature. Each answer says
      whether recent work is still being counted (`stillUpdating`); figures can
      lag live work by one capture run. A workspace may ask for 30 reports a
      minute, in bursts of 10.
paths:
  /v1/projects:
    post:
      tags:
        - Projects
      summary: Create a native project, optionally from a project template
      description: >-
        Requires `projects:write`, which `files:write` grants to admins,
        localization managers, and developers. With `templateId`, the project
        starts from the template: its source and target locales, description,
        translation context, team, content editor settings, translation
        memories, and glossaries. Fields in the request override the template's.
        Without `templateId`, `sourceLocale` and `targetLocales` are required.
        Without translation memories, the project gets a new one of its own.
        `customFields` sets custom field values in the same request, as `PUT
        /v1/projects/{projectId}/custom-fields` does. Counts toward the
        workspace's project limit.
      operationId: createProject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - name
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                templateId:
                  type: string
                  format: uuid
                description:
                  type: string
                  maxLength: 10000
                translationContext:
                  type: string
                  maxLength: 20000
                sourceLocale:
                  type: string
                  maxLength: 50
                targetLocales:
                  type: array
                  minItems: 1
                  maxItems: 50
                  items:
                    type: string
                    maxLength: 50
                teamId:
                  type: string
                  format: uuid
                  description: >-
                    A team the key owner may use. Defaults to the template's
                    team, then the owner's first team.
                customFields:
                  $ref: '#/components/schemas/CustomFieldValuesInput'
      responses:
        '201':
          description: Created project.
          content:
            application/json:
              schema:
                type: object
                required:
                  - project
                properties:
                  project:
                    $ref: '#/components/schemas/Project'
        '400':
          description: >-
            Invalid body (`invalid_body`), unknown team (`invalid_team`), or a
            template resource that no longer exists or does not fit the project
            (`translation_memory_not_found`, `glossary_not_found`,
            `glossary_source_locale_mismatch`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            Missing `projects:write`, or the workspace reached its project limit
            (`workspace_resource_limit_reached`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    CustomFieldValuesInput:
      type: object
      description: >-
        Values keyed by field key or ID, at most 100. `null` clears a value.
        Text is 1 to 10,000 characters, a URL is http or https, a date is
        `YYYY-MM-DD`, a number is a JSON number, a checkbox is a boolean, a
        single select is one option ID or value, and a multi select is a
        non-empty list of option IDs or values. Option values match ignoring
        case.
      maxProperties: 100
      additionalProperties:
        oneOf:
          - type: 'null'
          - type: string
          - type: number
          - type: boolean
          - type: array
            items:
              type: string
    Project:
      type: object
      required:
        - id
        - name
        - identifier
        - description
        - source
        - targetLocales
        - active
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        name:
          type: string
        identifier:
          type: string
        description:
          type: string
        source:
          type: string
          enum:
            - native
            - external_tms
        externalProviderKind:
          type:
            - string
            - 'null'
          enum:
            - crowdin
            - smartling
            - phrase
            - lokalise
            - null
        externalProjectId:
          type:
            - string
            - 'null'
        sourceLocale:
          type:
            - string
            - 'null'
        targetLocales:
          type: array
          items:
            type: string
        externalProjectUrl:
          type:
            - string
            - 'null'
          format: uri
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
          description: >-
            Structured context, such as the `jobId` that stopped a bulk job
            update.
          additionalProperties: true
  responses:
    Unauthorized:
      description: The personal access token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The resource is missing or inaccessible.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: >-
        The request body exceeds 256 KiB (16 MiB for a strings batch, 25 MiB for
        a bilingual file or a memory or glossary import).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnsupportedMediaType:
      description: The request body has an unsupported media type.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: Authentication or resource storage is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    personalAccessToken:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.