latestOpenAPI 3.0.02026-08-202629123.8 KB
351c1f004617
Links
Create or update a link
Create a new shortened link or update an existing one. To create: provide url and workspace_id. To update: provide id and any fields to change. Supports custom slugs, UTM parameters, retargeting pixels, Open Graph metadata, and redirect rules.
post/api/v1/link
Request body
Example request
{
"url": "www.somelink.com",
"workspace_id": 33
}Response
Link
Example response
{
"fb_pixel_id": null,
"linkedin_partner_id": null,
"microsoft_uet_tag_id": null,
"reddit_pixel_id": null,
"tiktok_pixel_id": null,
"hide_referrer": null,
"expiry_datetime": null,
"expiry_destination": null,
"rules": [],
"twitter_pixel_id": null,
"cloaking": null,
"linkify_words": null,
"full_url": "http://localhost:4000U",
"og_description": null,
"body_tags": null,
"og_title": null,
"note": null,
"name": null,
"id": 30,
"gtm_id": null,
"og_image": null,
"block_bots": null,
"snapchat_pixel_id": null,
"utm_content": null,
"enabled": null,
"url": "https://www.somelink.com",
"replacements": null,
"deleted": null,
"created_by_user_id": 7,
"expiry_clicks": null,
"workspace_id": 42,
"public_analytics": null,
"pinterest_tag_id": null,
"utm_source": null,
"slug": null,
"domain": null,
"forward_params": null,
"utm_medium": null,
"head_tags": null,
"ga4_tag_id": null,
"utm_term": null,
"utm_campaign": null
}