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

# Redirect to destination URL

> Redirect to the destination URL with metadata HTML page



## OpenAPI

````yaml https://raw.githubusercontent.com/prefeitura-rio/url_shortener/refs/heads/main/docs/openapi-v3.json get /{shortPath}
openapi: 3.0.0
info:
  description: A high-performance URL shortener service with metadata support and caching.
  title: URL Shortener API
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://pref.rio/link/api
    description: Production
  - url: https://staging.app.dados.rio/link/api
    description: Staging
security: []
paths:
  /{shortPath}:
    get:
      tags:
        - redirect
      summary: Redirect to destination URL
      description: Redirect to the destination URL with metadata HTML page
      parameters:
        - description: Short path
          name: shortPath
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: HTML page with redirect
          content:
            text/html:
              schema:
                type: string
        '404':
          description: Not Found
          content:
            text/html:
              schema:
                type: object
                additionalProperties:
                  type: string
        '500':
          description: Internal Server Error
          content:
            text/html:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````