---
title: "Create Short Link"
method: POST
path: "/admin/engagement-internal/short-links"
tags: ["admin", "engagement-internal"]
---

# Create Short Link

`POST /admin/engagement-internal/short-links`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/engagement-internal/short-links`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- CreateShortLinkRequest
  - `destination_url` string, required: The long URL to be shortened
  - `short_code` string, nullable: Optional custom short code
  - `organization_id` string, nullable: Optional organization ID
  - `engagement_id` string, nullable: Optional engagement ID
  - `metadata_json` object, nullable: Optional metadata

## Response `200`

Successful Response

- ShortLinkPublic
  - `id` string, required
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `deleted_at` string, date-time, nullable
  - `short_code` string, required
  - `engagement_id` string, nullable
  - `metadata_json` object, nullable
  - `organization_id` string, nullable
  - `destination_url` string, required
  - `short_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/upsmith/apis/upsmith-api.md) - [All operations](https://skmtc.dev/upsmith/apis/upsmith-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsmith/apis/upsmith-api/revisions/86e2c2bd93af?raw)
