Generate a Link
Create links programmatically using the Grovs REST API
https://sdk.sqd.link/api/v1/sdk/generate_linkCreate a new link with custom metadata, platform-specific redirects, and tracking parameters.
Headers
PROJECT-KEYstringrequiredYour SDK project key. Found in Dashboard → Developer → API Key.
ENVIRONMENTstringrequiredTarget environment. Use production or development.
Content-TypestringrequiredMust be application/json.
Body Parameters
titlestringoptionalTitle displayed in the link preview.
subtitlestringoptionalSubtitle text for additional context in previews.
datastringoptionalStringified JSON containing metadata delivered to the app via SDK. Example: "{\"screen\": \"promo\"}".
tagsstringoptionalStringified JSON array for categorization. Example: "[\"campaign\", \"summer\"]".
ios_custom_redirectobjectoptionaliOS-specific redirect. Contains url (string) and open_app_if_installed (boolean).
android_custom_redirectobjectoptionalAndroid-specific redirect. Contains url (string) and open_app_if_installed (boolean).
desktop_custom_redirectobjectoptionalDesktop browser fallback. Contains url (string).
show_preview_iosbooleanoptionalShow a preview page on iOS. Improves UX by skipping native confirmation popups.
show_preview_androidbooleanoptionalShow a preview page on Android. Improves UX by skipping native confirmation popups.
tracking_campaignstringoptionalCampaign name for attribution. Example: "BlackFriday2025".
tracking_sourcestringoptionalTraffic source. Example: "instagram", "newsletter".
tracking_mediumstringoptionalCampaign medium. Example: "cpc", "email", "social".
Request Example
curl -X POST https://sdk.sqd.link/api/v1/sdk/generate_link \
-H "PROJECT-KEY: testpr_86a440d502ee6805ea4f0fabf4dc12afxxxxxxxx" \
-H "ENVIRONMENT: production" \
-H "Content-Type: application/json" \
-d '{
"title": "Summer Sale",
"subtitle": "50% off all items",
"data": "{\"screen\": \"promo\", \"promo_id\": \"123\"}",
"tags": "[\"campaign\", \"summer\"]",
"ios_custom_redirect": {
"url": "https://example.com/ios",
"open_app_if_installed": true
},
"android_custom_redirect": {
"url": "https://example.com/android",
"open_app_if_installed": true
},
"desktop_custom_redirect": {
"url": "https://example.com/desktop"
},
"show_preview_ios": true,
"show_preview_android": false,
"tracking_campaign": "summer_2025",
"tracking_source": "instagram",
"tracking_medium": "social"
}'Response
{
"link": "https://grov3cf9.sqd.link/2c1e79"
}linkstringThe generated URL, ready to share or embed.
Notes
Generated links are for server-side use and will not appear in the dashboard. They are designed to be created and shared dynamically.
Keep your PROJECT-KEY secure. If you need to regenerate it, contact us at [email protected].