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

# Get Translation File

> Retrieves the JSON translation file for a specific repository, language, and bundle

<Card title="This action is also available via CLI" icon="terminal" href="/tech/cli/prismy-hosted#prismy-pull" arrow="true">
  Download translation files from the command line or CI with **`prismy pull`**
  <p>See the [Prismy Hosted CLI guide](/tech/cli/prismy-hosted).</p>
</Card>


## OpenAPI

````yaml GET /api/public/prismy-hosted/{repo_id}/{language}/{bundleName}
openapi: 3.0.0
info:
  title: Prismy API
  description: API for managing translations with Prismy
  version: 1.0.0
servers:
  - url: https://app.prismy.io
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/public/prismy-hosted/{repo_id}/{language}/{bundleName}:
    get:
      tags:
        - Prismy Hosted
      summary: Get translation file
      description: >-
        Retrieves the JSON translation file for a specific repository, language,
        and bundle
      operationId: getTranslationFile
      parameters:
        - name: repo_id
          in: path
          required: true
          schema:
            type: string
          description: Repository identifier
          example: 25060c5dfa
        - name: language
          in: path
          required: true
          schema:
            type: string
          description: Language code (e.g., en-US, fr-FR, es-ES)
          example: en-US
        - name: bundleName
          in: path
          required: true
          schema:
            type: string
          description: Bundle name or ID
          example: common
        - name: branch
          in: query
          required: false
          schema:
            type: string
          description: Target branch name. Defaults to the repository's main branch
        - name: tags
          in: query
          required: false
          schema:
            type: string
          description: >-
            Comma-separated list of tag names. When provided, only keys that
            have any of these tags are returned. Requires Tags feature enabled.
          example: urgent,review-needed
      responses:
        '200':
          description: >-
            Translation file retrieved successfully. Returns an empty object {}
            if the file doesn't exist. When the tags query parameter is
            provided, only keys that have any of the given tags are included.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranslationObject'
        '401':
          description: Unauthorized - Invalid or missing API token
components:
  schemas:
    TranslationObject:
      type: object
      additionalProperties:
        type: string
      example:
        welcome: Welcome
        goodbye: Goodbye
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API token from your organization settings

````