---
title: "Add link"
method: POST
path: "/links"
tags: ["Link"]
---

# Add link

`POST /links`

Add a new short link.

## Request body

- AddLink
  - `url` string, uri, required — The URL of the link.
  - `describe` string — Description of the link.

## Response `201`

Link created successfully.

- Link
  - `url` string, uri, required — The URL of the link.
  - `hash` string, required — Unique hash, used as the short link.
  - `describe` string, required — Description of the link.
  - `created_at` string, date-time, required — Timestamp when the link was created.
  - `updated_at` string, date-time, required — Timestamp when the link was last updated.

## Other responses

- `400` — Bad request.

---

[API](https://skmtc.dev/shortlink-org/apis/shortlink-link-bff.md) · [All operations](https://skmtc.dev/shortlink-org/apis/shortlink-link-bff/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shortlink-org/shortlink-link-bff/revisions/a5800129f25f/schema)
