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

# List a project's source files and their import settings

> Requires `strings:read`. Lists the files tracked at a path in the project, with the settings their uploads are parsed with. `path` and `branch` filter by exact match, so you can look up the settings for a file before uploading it.



## OpenAPI

````yaml https://public-api.hyperlocalise.com/openapi.yaml get /v1/projects/{projectId}/source-files
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}/source-files:
    parameters:
      - $ref: '#/components/parameters/ProjectId'
    get:
      tags:
        - Projects
      summary: List a project's source files and their import settings
      description: >-
        Requires `strings:read`. Lists the files tracked at a path in the
        project, with the settings their uploads are parsed with. `path` and
        `branch` filter by exact match, so you can look up the settings for a
        file before uploading it.
      operationId: listProjectSourceFiles
      parameters:
        - name: path
          in: query
          schema:
            type: string
            maxLength: 1024
        - name: branch
          in: query
          schema:
            type: string
            maxLength: 256
        - $ref: '#/components/parameters/Limit50'
        - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          description: Source files, ordered by path then branch.
          content:
            application/json:
              schema:
                type: object
                required:
                  - sourceFiles
                  - pagination
                properties:
                  sourceFiles:
                    type: array
                    items:
                      $ref: '#/components/schemas/SourceFile'
                  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'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        maxLength: 128
    Limit50:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        maximum: 1000000
        default: 0
  schemas:
    SourceFile:
      type: object
      required:
        - id
        - path
        - branch
        - messageFormat
        - placeholderPatterns
        - segmentation
        - importSettings
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          format: uuid
        path:
          type: string
        branch:
          type: string
          description: The project version branch the file belongs to.
        messageFormat:
          type: string
          enum:
            - auto
            - icu
            - i18next
          description: The placeholder syntax validation uses.
        placeholderPatterns:
          type: array
          description: Custom placeholder regular expressions.
          items:
            type: string
        segmentation:
          type: object
          additionalProperties: true
          description: Sentence segmentation settings, as the app stores them.
        importSettings:
          type: object
          additionalProperties: true
          description: >-
            Format-specific import filters applied on upload (HTML, JSON,
            Excel), as the app stores them.
        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
    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'
    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.