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

# Search strings by key name, prefix, text, file, or tag

> Requires `strings:read`. The list endpoint's filters in a JSON body, so one call can look up to 1,000 key names and return up to 1,000 strings. Filters combine with AND. `missingKeys` lists, in request order, the `keys` that name no string in the project, in any file and whether hidden or not.



## OpenAPI

````yaml https://public-api.hyperlocalise.com/openapi.yaml post /v1/projects/{projectId}/strings/search
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/{projectId}/strings/search:
    post:
      tags:
        - Strings
      summary: Search strings by key name, prefix, text, file, or tag
      description: >-
        Requires `strings:read`. The list endpoint's filters in a JSON body, so
        one call can look up to 1,000 key names and return up to 1,000 strings.
        Filters combine with AND. `missingKeys` lists, in request order, the
        `keys` that name no string in the project, in any file and whether
        hidden or not.
      operationId: searchStrings
      parameters:
        - $ref: '#/components/parameters/ProjectId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                keys:
                  type: array
                  maxItems: 1000
                  items:
                    type: string
                    minLength: 1
                    maxLength: 1000
                keyPrefix:
                  type: string
                  maxLength: 1000
                  description: >-
                    Keys starting with this text, matched literally and
                    case-sensitively.
                search:
                  type: string
                  maxLength: 200
                  description: Case-insensitive match on key or source text.
                filePath:
                  type: string
                  maxLength: 2048
                tags:
                  type: array
                  maxItems: 10
                  items:
                    $ref: '#/components/schemas/Tag'
                includeHidden:
                  type: boolean
                  default: false
                limit:
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 100
                offset:
                  type: integer
                  minimum: 0
                  maximum: 1000000
                  default: 0
      responses:
        '200':
          description: Matching strings.
          content:
            application/json:
              schema:
                type: object
                required:
                  - strings
                  - missingKeys
                  - pagination
                properties:
                  strings:
                    type: array
                    items:
                      $ref: '#/components/schemas/String'
                  missingKeys:
                    type: array
                    items:
                      type: string
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        maxLength: 128
  schemas:
    Tag:
      type: string
      pattern: ^[A-Za-z0-9_-]{1,64}$
    String:
      type: object
      required:
        - id
        - key
        - sourceText
        - context
        - type
        - maxLength
        - hidden
        - filePath
        - tags
        - designUrl
        - customMetadata
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          format: uuid
        key:
          type: string
        sourceText:
          type: string
        context:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
        maxLength:
          type:
            - integer
            - 'null'
        hidden:
          type: boolean
        filePath:
          type:
            - string
            - 'null'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        designUrl:
          type:
            - string
            - 'null'
          description: Link to the design where the string appears.
        customMetadata:
          $ref: '#/components/schemas/CustomMetadata'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Pagination:
      type: object
      required:
        - offset
        - limit
        - total
      properties:
        offset:
          type: integer
          minimum: 0
        limit:
          type: integer
          minimum: 1
          maximum: 100
        total:
          type: integer
          minimum: 0
    CustomMetadata:
      type: object
      maxProperties: 50
      propertyNames:
        pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$
      additionalProperties:
        type: string
        maxLength: 2000
      description: >-
        Your own text on the string, by key, such as a ticket or a source
        system's ID. Only the API reads and writes it. Linguists and machine
        translation don't see it, so put guidance for translators in `context`.
    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:
    BadRequest:
      description: Invalid query parameters or request body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: The personal access token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The token lacks the required scope or workspace access.
      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.