Automate link creation
Automate link creation with the Weespin API
If you manage multiple marketing campaigns or want to generate dynamic links directly from your application or backend, manual link creation quickly becomes limiting.
With the Weespin API, you can create and manage your links automatically, while integrating personalized parameters
like UTM or deeplinks.
Get your API keys
- Log into your Weespin dashboard.
- Go to your application.
- Go to the Configuration section.
- In Integration:
- Generate the API key that will be used to identify your application.
Store your keys in a secure file or environment variable.
Understand the API documentation
Before coding, it's essential to know:
- API base URL:API_BASE_URL
- Main endpoint:
POST /create-link
→ create a new link - Required parameters:destination URL of the link.target_urlstringcustom domain if necessarydomainstringinternal name of the linktitlestringlink descriptiondescriptionstringe.g:segmentsstring[]
["tech", "mobile"]
UTM, expiration, password, deeplink, etc. (e.g:customParamsstring[]["utm","name"]
)
Practical example of link creation
Replace YOUR_API_KEY
with your actual API key from the dashboard.
Conclusion
You now have the tools to automate your link creation!
Integrate the Weespin API into your applications to generate personalized and tracked links programmatically.
Next step
Explore advanced features like bulk link creation and webhook integration for real-time notifications.