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

# Get System Prompt By Id

> Obtém um system prompt específico pelo ID.

Args:
    prompt_id: ID do system prompt
    db: Sessão do banco de dados

Returns:
    SystemPromptGetResponse: Resposta contendo o system prompt específico



## OpenAPI

````yaml https://services.staging.app.dados.rio/eai-agent/openapi.json get /api/v1/system-prompt/by-id/{prompt_id}
openapi: 3.1.0
info:
  title: Agentic Search API
  description: >-
    API que gerencia os fluxos e ferramentas dos agentes de IA da Prefeitura do
    Rio de Janeiro
  version: 0.1.0
servers:
  - url: https://services.staging.app.dados.rio/eai-agent
    description: Staging
security: []
paths:
  /api/v1/system-prompt/by-id/{prompt_id}:
    get:
      tags:
        - System Prompt
      summary: Get System Prompt By Id
      description: |-
        Obtém um system prompt específico pelo ID.

        Args:
            prompt_id: ID do system prompt
            db: Sessão do banco de dados

        Returns:
            SystemPromptGetResponse: Resposta contendo o system prompt específico
      operationId: get_system_prompt_by_id_api_v1_system_prompt_by_id__prompt_id__get
      parameters:
        - name: prompt_id
          in: path
          required: true
          schema:
            type: string
            title: Prompt Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemPromptGetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SystemPromptGetResponse:
      properties:
        prompt:
          type: string
          title: Prompt
          description: Texto do system prompt atual
        agent_type:
          type: string
          title: Agent Type
          description: Tipo de agente
        version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Version
          description: Versão do prompt
        prompt_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt Id
          description: ID do prompt no banco de dados
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
          description: Data de criação do prompt
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
          description: Metadados do prompt
      type: object
      required:
        - prompt
        - agent_type
      title: SystemPromptGetResponse
      description: Schema para resposta da obtenção do system prompt atual.
      example:
        agent_type: agentic_search
        created_at: '2023-05-16T14:30:15.123456'
        metadata:
          prompt_tokenizer: cl100k_base
          prompt_tokens: 1234
        prompt: Conteúdo atual do system prompt...
        prompt_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
        version: 3
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````