---
title: "List Shortened URLs"
method: POST
path: "/tools/url/list"
tags: ["tools > url"]
---

# List Shortened URLs

`POST /tools/url/list`

## Request

- Base URL: `https://api.pinnacle.sh`
- URL: `https://api.pinnacle.sh/tools/url/list`
- Auth: API key in header `PINNACLE-API-KEY`

List all shortened URLs with pagination. Results are sorted by creation date, newest first.

## Request body

- ListLinksRequest
  - `pageIndex` integer
  - `pageSize` integer
  - `endpoint` string: Case-insensitive substring search on the destination URL.

## Response `200`

Returns paginated list of shortened URLs.

- ListLinksResponse
  - `data` LinkSummary[], required
    - `from` string, required: The full shortened URL (e.g. https://pncl.to/abc123).
    - `to` string, required: Destination URL that the shortened link redirects to.
    - `expiresAt` string, nullable: Expiration date in ISO 8601 format, or null if permanent.
    - `createdAt` string, required: ISO 8601 timestamp of when the link was created.
  - `hasMore` boolean, required
  - `count` integer, required

## Other responses

- `400`: Validation failed. The payload has missing required fields and/or invalid types. <br> See https://zod.dev/error-formatting for more information.
- `401`: The request lacks valid authentication credentials or the provided credentials are invalid. <br> Ensure you're including a valid API key in the request headers and that your account has the necessary permissions to access this endpoint.
- `500`: An unexpected error occurred on Pinnacle's servers while processing your request. <br> If this error persists, please contact support with the request details.

---

[API](https://skmtc.dev/pinnacle/apis/pinnacle-2.md) - [All operations](https://skmtc.dev/pinnacle/apis/pinnacle-2/llms.txt) - [OpenAPI document](https://skmtc.dev/pinnacle/apis/pinnacle-2/revisions/45416dadab79?raw)
