Creating Smart Links with the HTTP API¶
Dynamic creation of the Smart Links with the HTTP API is the preferred way for content sharing and driving web to app users. Created links will be visible on the GetSocial Dashboard where you can check click-install performance.
Prerequisite¶
- Get your GetSocial API Key. Check Getting started with HTTP API guide to learn how.
- Integrate GetSocial SDK to the application you want to promote to see the analytics. See the guide for Android, iOS or Unity.
Creating a Smart Link¶
To create a Smart Link with HTTP API make POST request to the smart-links
endpoint, specifying the Smart Link parameters in the body. For example:
POST https://api.getsocial.im/v1/smart-links/
Content-Type: application/json
Accept: application/json
X-GetSocial-API-Key: [your_api_key]
{
"app_id": "[your_app_id]",
"name": "Product 123",
"token": "product-123",
"channel": "website",
"medium": "share-button",
"campaign_name": "API Generated Links"
"custom_data": {
"$redirect_url": "https://my.app.landing"
}
}
Visit the HTTP API reference to try the API in the playground and Smart Links parameters reference to see the list of all available parameters.
Next steps¶
- Setup mobile app to receive Smart Links on Android, iOS and Unity.
- Customize your Smart Link Domain.
- Customize the Landing Page.
- Setup webhooks to receive app install and app open events on your backend.