---
title: "Returns a shortlink based on any URL provided."
method: POST
path: "/api/v1/links/shortlink"
tags: ["Links"]
---

# Returns a shortlink based on any URL provided.

`POST /api/v1/links/shortlink`

## Request

- Base URL: `https://api.approval.studio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.approval.studio/api/v1/links/shortlink`
- Auth: API key in header `Authorization`

## Request body

- CreateShortLinkRequest
  - `url` string, nullable

## Response `200`

OK

- CreateShortLinkResponseApiResponse
  - `version` string, nullable
  - `statusCode` integer
  - `message` string, nullable
  - `isError` boolean, nullable
  - `responseException` unknown
  - `result` CreateShortLinkResponse
    - `shortURL` string, nullable

## Other responses

- `400`: Bad Request
- `412`: Precondition Failed
- `500`: Internal Server Error

---

[API](https://skmtc.dev/approval/apis/public-api.md) · [All operations](https://skmtc.dev/approval/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/approval/apis/public-api/revisions/acf217b75f2a?raw)
