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

# Get a saved prompt

> 

<Note>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.</Note>

Returns one of your account's saved prompts.



## OpenAPI

````yaml api-reference/specs/llm-gateway.yaml GET /prompts/{name}
openapi: 3.1.0
info:
  title: AAI Chat Completions API
  description: API for generating text with various language models.
  version: 1.0.0
servers:
  - url: https://llm-gateway.assemblyai.com/v1
    description: Production Server
    x-fern-server-name: Production
security:
  - ApiKey: []
paths:
  /prompts/{name}:
    get:
      summary: Get a saved prompt
      description: >-


        <Note>To use our EU server for LLM Gateway, replace
        `llm-gateway.assemblyai.com` with
        `llm-gateway.eu.assemblyai.com`.</Note>


        Returns one of your account's saved prompts.
      operationId: getSavedPrompt
      parameters:
        - name: name
          in: path
          required: true
          description: The name of the saved prompt.
          schema:
            type: string
            maxLength: 128
            pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
          example: call-summary
      responses:
        '200':
          description: The saved prompt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavedPrompt'
        '404':
          description: Your account has no prompt with this name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        default:
          description: An unexpected error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SavedPrompt:
      type: object
      properties:
        name:
          type: string
          description: The name of the prompt.
        prompt:
          type: string
          description: The prompt, as a JSON string of a chat completions request body.
        created_at:
          type: string
          format: date-time
          description: When the prompt was created.
        updated_at:
          type: string
          format: date-time
          description: When the prompt was last updated.
      required:
        - name
        - prompt
        - created_at
        - updated_at
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          format: int32
          description: HTTP status code for the error.
        message:
          type: string
          description: A human-readable description of the error.
        request_id:
          type: string
          format: uuid
          description: Unique identifier for the request.
        metadata:
          type: object
          description: >-
            Optional. Present on 400 responses with per-field validation
            details.
          properties:
            errors:
              type: array
              items:
                type: string
              description: List of specific validation failure messages.
      required:
        - code
        - message
        - request_id
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: Authorization

````