API Documentation
Create Campaign API
Documentation for Linkrunner Create Campaign API
Base URL
Authentication
Generate your server key from https://www.linkrunner.io/settings?s=data-apis
In the request header add the below attribute:
Create Campaign
Request Body
Parameter | Type | Description |
---|---|---|
name | string | Required. Name of the campaign |
deeplink | string | Optional. Deep link URL for the campaign |
link_for_desktop_users | string | Optional. For desktop visitors |
custom_display_id | string | Optional. Custom identifier for display purposes |
Responses
- 201 Campaign created successfully
- 400 Missing required parameters or invalid input
- 401 Invalid server key
Sample Response
Upon successful campaign creation, the API returns:
Rate Limiting
To ensure service stability and fair usage, the API has rate limits in place:
- 10 requests per second
Exceeding these limits will result in a 429 status code response. If you need higher limits for your use case, please contact support.
Best Practices
- Campaign naming: Use descriptive names that identify the purpose of the campaign
- Deep links: Ensure your deep links are properly formatted and lead to valid destinations
- Custom IDs: Use meaningful custom display IDs that are easy to recognize and remember. Duplicate ids are not allowed!
- Desktop links: Provide a
link_for_desktop_users
URL to ensure desktop visitors are redirected to a relevant webpage instead of app stores.
Example
Creating a New Campaign
Error Handling
The API will return appropriate HTTP status codes along with error messages when issues occur:
- 400 Bad Request: Campaign name is required or invalid deeplink provided
- 401 Unauthorized: API key is required or invalid
- 429 Too Many Requests: You’ve exceeded the rate limit, please try again later
- 500 Internal Server Error: Contact support if this persists
For any help please reach out to darshil@linkrunner.io