Documentation for Linkrunner Campaign APIs
YOUR_API_KEY
with your actual API key.
linkrunner-key
header for all API requests"Server key missing!"
"Server key invalid!"
"Rate limit exceeded. Please try again later."
is_shortlink: true
parameter.
Parameter | Type | Required | Description |
---|---|---|---|
name | string | Yes | The display name of your campaign. This helps you identify the campaign in your dashboard. |
deeplink | string | No | The URL that mobile app users will be directed to when they click your campaign link. Should be a valid deep link URL for your mobile application. |
link_for_desktop_users | string | No | The fallback URL for desktop users who click your campaign link. Typically points to your website or web application. |
android_web_redirect | string | No | Provide this only if you want the user to be explicitly redirected to a specific web URL on Android. |
ios_web_redirect | string | No | Provide this only if you want the user to be explicitly redirected to a specific web URL on iOS. |
custom_display_id | string | No | A custom identifier for your campaign. Must be unique across your account. If not provided, a random ID will be generated. |
is_shortlink | boolean | No | Set to true to create a shortened campaign link. When enabled, creates a compact URL format suitable for sharing. |
android_web_redirect
or ios_web_redirect
is provided, it will override the default store listing link for that platform within the campaign and redirect users to the specified URL instead.Property | Type | Description |
---|---|---|
id | number | Unique numerical identifier for the campaign in the system. |
name | string | The campaign name as provided in the request. |
link | string | The generated shareable campaign URL. For short links, this will be in format https://app.domain.com/?c={display_id} . |
website | string|null | The desktop fallback URL. Will be null for short link campaigns. |
display_id | string | The campaign’s display identifier (custom or auto-generated). |
created_at | string | ISO 8601 timestamp of when the campaign was created. |
Parameter | Type | Description |
---|---|---|
name | string | Optional. Name of the campaign |
active | boolean | Optional. Campaign status |
HTTP Status | Message | When/Why |
---|---|---|
400 | ”Campaign display ID is required!” | If the display_id param is missing |
400 | ”At least one field (name or active) is required for update!” | If both name and active are missing in the request body |
400 | ”Campaign name cannot be empty!” | If name is provided but is empty or only whitespace |
400 | ”Active field must be a boolean!” | If active is provided but is not a boolean |
404 | ”Campaign not found!” | If the campaign with the given display_id does not exist |
500 | ”Internal server error” |
HTTP Status | Message | When/Why |
---|---|---|
400 | ”Campaign display ID is required!” | If the display_id param is missing |
404 | ”Campaign not found!” | If the campaign with the given display_id does not exist |
500 | ”Internal server error” |
link_for_desktop_users
URL to ensure desktop visitors are redirected to a relevant webpage instead of app stores.