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

# Download Style Guide version file

> Returns the raw Markdown file for a Style Guide version, with caching headers set.



## OpenAPI

````yaml /openapi/phrase-style-guides.json get /api/v1/styleguides/{id}/versions/{versionId}/file
openapi: 3.1.0
info:
  version: 2.1.0
  title: Style Guide API
  description: REST API for managing Style Guides on the Phrase Platform
  contact:
    name: Linguistic Assets
    email: engineering@phrase.com
servers:
  - url: https://eu.phrase.com/styleguide
    description: Production EU
  - url: https://us.phrase.com/styleguide
    description: Production US
security:
  - bearerAuth: []
tags:
  - name: Style Guide
    description: Public API for managing Style Guides
  - name: Rule
    description: Public API for managing Rules
paths:
  /api/v1/styleguides/{id}/versions/{versionId}/file:
    get:
      tags:
        - Style Guide
      summary: Download Style Guide version file
      description: >-
        Returns the raw Markdown file for a Style Guide version, with caching
        headers set.
      operationId: getStyleGuideVersionFile
      parameters:
        - name: id
          in: path
          description: Style Guide ID
          required: true
          schema:
            type: string
            format: uuid
        - name: versionId
          in: path
          description: Version ID
          required: true
          schema:
            type: string
            format: uuid
        - name: tenant
          in: query
          description: >-
            Tenant identifier (e.g. TMS, Strings). Used for tracking product
            area.
          required: false
          schema:
            type: string
        - name: event
          in: query
          description: Event type. Pass 'download' to track a user-initiated file download.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: File content retrieved successfully
          content:
            text/markdown: {}
            text/x-markdown: {}
            application/x-markdown: {}
            application/octet-stream: {}
        '400':
          description: >-
            Invalid request parameters (e.g., invalid UUID format). Error codes:
            INVALID_ARGUMENT.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - Invalid or missing authentication token
        '403':
          description: >-
            Forbidden - Insufficient permissions or accessing Style Guide from
            another organization. Error codes: ACCESS_DENIED.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: >-
            Style Guide, version, or file content not found. Error codes:
            STYLEGUIDE_NOT_FOUND.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: >-
            Internal server error or file storage service error. Error codes:
            FILE_STORAGE_ERROR.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: >-
            An upstream service rejected the request. Error codes:
            UPSTREAM_ERROR.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        detail:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      description: 'JWT from IDM (Authorization: Bearer <token>)'
      scheme: bearer
      bearerFormat: JWT

````

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