Links
Create or update a link
Changed onCreate 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
- Base URLhttps://api.linklyhq.com
- AuthAPI key in query parameter api_key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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": false,
"expiry_datetime": null,
"expiry_destination": null,
"rules": [],
"twitter_pixel_id": null,
"cloaking": false,
"linkify_words": null,
"full_url": "https://l.linklyhq.com/l/1uXyz",
"sticky_rotator": false,
"og_description": null,
"skip_social_crawler_tracking": false,
"body_tags": null,
"og_title": null,
"note": null,
"name": "Summer sale — newsletter",
"id": 41657524,
"gtm_id": null,
"og_image": null,
"block_bots": false,
"snapchat_pixel_id": null,
"utm_content": null,
"enabled": true,
"privacy_mode": false,
"url": "https://www.example.com/summer-sale?ref=newsletter",
"replacements": null,
"deleted": false,
"qr_styles": null,
"webhooks": [],
"created_by_user_id": 7,
"expiry_clicks": null,
"notify_slack": false,
"notify_user_ids": [],
"workspace_id": 42,
"public_analytics": false,
"pinterest_tag_id": null,
"password": null,
"utm_source": "newsletter",
"slug": null,
"domain": null,
"forward_params": false,
"utm_medium": "email",
"head_tags": null,
"ga4_tag_id": null,
"utm_term": null,
"utm_campaign": "summer_sale"
}Changes
- info
added the optional property
to the response with the status
- info
- info
added the optional property
to the response with the status
- info