---
title: "POST /affiliate/shortener/url"
method: POST
path: "/affiliate/shortener/url"
---

# POST /affiliate/shortener/url

`POST /affiliate/shortener/url`

Shorten a URL

## Request body

- object
  - `organizationId` string, required — ID of the organization to generate the URL for
  - `type` 'Coupon' | 'BrandPage' | 'Offer' | 'Custom' | 'Home', required — Link type. `Coupon` and `Offer` require `featureId`. `Custom` requires `url` (HTTPS).
  - `featureId` string — Campaign operation ID. Required when type is Coupon or Offer.
  - `url` string — HTTPS URL. Required only when type is Custom.
  - `mdasc` string — Optional tracking identifier appended as ?mdasc= on generated links.

## Response `200`

Shorten URL response

- ShortenUrlChannelResult[]
  - `id` string
  - `name` string
  - `availableChannel` object
    - `id` string
    - `name` string
  - `shortUrls` string[]
  - `message` string

## Other responses

- `401` — API key missing or invalid
- `403` — Valid key without required scope
- `429` — Rate limit exceeded (60 req/60s per key + IP)

---

[API](https://skmtc.net/lomadee/apis/lomadee-public-api.md) · [All operations](https://skmtc.net/lomadee/apis/lomadee-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lomadee/lomadee-public-api/revisions/e9ae83c68dbe/schema)
