> ## 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.

# Public service typeahead

> Returns deterministic, accent-insensitive suggestions from the authoritative active catalog.



## OpenAPI

````yaml https://raw.githubusercontent.com/prefeitura-rio/app-catalogo/refs/heads/main/docs/openapi-v3.json post /api/public/suggest
openapi: 3.0.0
info:
  contact:
    name: Prefeitura do Rio de Janeiro
    url: https://github.com/prefeitura-rio/app-catalogo
  description: >-
    Discovery layer unificada da Prefeitura do Rio de Janeiro. Indexa serviços
    públicos, cursos, vagas e oportunidades MEI com busca full-text e
    recomendação personalizada por perfil de cidadão.
  title: app-catalogo
  version: '1.0'
servers:
  - url: https://services.staging.app.dados.rio/catalogo
    description: Staging
  - url: https://services.pref.rio/catalogo
    description: Produção
security: []
paths:
  /api/public/suggest:
    post:
      tags:
        - catálogo
      summary: Public service typeahead
      description: >-
        Returns deterministic, accent-insensitive suggestions from the
        authoritative active catalog.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/models.PublicSuggestionRequest'
        description: Suggestion query
        required: true
        x-max-body-bytes: 4096
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.PublicSuggestionResponse'
          description: OK
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
        '400':
          content:
            application/json:
              schema:
                additionalProperties:
                  type: string
                type: object
          description: Bad Request
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
        '413':
          content:
            application/json:
              schema:
                additionalProperties:
                  type: string
                type: object
          description: Request Entity Too Large
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
        '415':
          description: Unsupported Media Type
          content:
            application/json:
              schema:
                additionalProperties:
                  type: string
                type: object
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                additionalProperties:
                  type: string
                type: object
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
components:
  schemas:
    models.PublicSuggestionRequest:
      properties:
        query:
          type: string
          maxLength: 256
      required:
        - query
      type: object
      additionalProperties: false
    models.PublicSuggestionResponse:
      properties:
        suggestions:
          items:
            $ref: '#/components/schemas/models.PublicServiceSuggestion'
          maxItems: 8
          type: array
      required:
        - suggestions
      type: object
      additionalProperties: false
    models.PublicServiceSuggestion:
      properties:
        slug:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[a-z0-9][a-z0-9-]*$
        title:
          type: string
          minLength: 1
          maxLength: 500
          pattern: \S
        url:
          format: uri
          type: string
          minLength: 1
          maxLength: 2048
          pattern: ^/servicos/categoria/[^?#]+/[^/?#]+$
      required:
        - slug
        - title
        - url
      type: object
      additionalProperties: false
  headers:
    X-Request-ID:
      description: Canonical UUID used to correlate the response with application logs.
      schema:
        format: uuid
        type: string

````