/api/v1/linksCreate a link
Creates a branded short link in the workspace bound to your API key.
Requires API key · 201
Request body
destination_urlrequired | string (uri) URL the short link redirects to. |
slug | string Custom path. Auto-generated if omitted. Requires custom_slug on your plan. |
custom_domain_id | uuid Verified custom domain. Omit to use the default short domain. |
title | string Human-readable title shown in the app. |
description | string Internal note. Requires link_notes on your plan. |
status | draft | active Drafts are saved but not publicly redirectable. Default: active. |
enabled | boolean Active links with enabled=false show the unavailable page. |
redirect_status | integer HTTP redirect status. Default 302. Other values require link_redirect_type. |
password | string Visitor password. Write-only. Requires password_protection. |
expires_at | date-time When the link stops redirecting. Requires link_expiration. |
url_cloak | boolean Hide the destination in the browser. Requires url_cloak. |
advanced_cloak | boolean Requires url_cloak and a custom domain. |
qr_created | boolean Mark the link as having a QR code. Requires qr_tracking. |
metadata | object Optional utm, social_preview, split_test, interstitial, drop, and routing rules. |
- Returns 409 when the slug is already taken on that domain.
- The response does not include short_url. Build it as {domain}/{slug}.
Request
curl -X POST 'https://api.linkchime.com/api/v1/links' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"destination_url":"https://example.com/summer-sale","slug":"summer","title":"Summer sale","metadata":{"utm":{"source":"newsletter","medium":"email","campaign":"summer-sale"}}}'Response
json
{
"data": {
"id": "8f3c1a2e-4b7d-4e91-9c2a-1d6b8e0f4a21",
"workspace_id": "e7d2b4a1-9c80-4f3e-b6a2-0d15c8e4a973",
"slug": "summer",
"destination_url": "https://example.com/summer-sale",
"title": "Summer sale",
"redirect_status": 302,
"url_cloak": false,
"advanced_cloak": false,
"status": "active",
"enabled": true,
"starred": false,
"qr_created": false,
"password_protected": false,
"click_count": 0,
"metadata": {
"utm": {
"source": "newsletter",
"medium": "email",
"campaign": "summer-sale"
}
},
"created_at": "2026-08-12T16:04:11Z",
"updated_at": "2026-08-12T16:04:11Z"
}
}