---
title: "Resolve short URL"
method: GET
path: "/api/{org_id}/short/{short_id}"
tags: ["Short Url"]
---

# Resolve short URL

`GET /api/{org_id}/short/{short_id}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/short/{short_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/short/:short_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Resolves a shortened URL back to its original destination. By default, this endpoint redirects the user to the original URL. When the 'type=ui' query parameter is provided, it returns the original URL as JSON instead of performing a redirect. This is useful for applications that need to inspect or validate URLs before navigation.

## Path parameters

- `short_id` string, required
- `org_id` string, required

## Query parameters

- `type` string

## Response `200`

JSON response when type=ui

- string

## Other responses

- `302`: Redirect to original URL (if < 1024 chars) or /web/short_url/{short_id}
- `404`: Short URL not found

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
