Link API
What is this API for?
Link API is an endpoint that generates an Aklamio referral short link for your user to share with their follower - your call can be in client to server mode or server to server mode. Primary information such as your user's - the recommender - email address and your Promotion ID are required in your API call in order get a referral link generated.
API Details
Endpoint URL:
https://api.aklamio.com/api/v1/link
Method:
POST
Header:
Api-Secret
Authentication
This endpoint needs an additional header with the request: Api-Secret. This header key is used to validate the brand and promotion used in payload. Ask your Aklmaio Customer Success Manager or Integration Manager for your brand's API Secret Key.
Request Parameters
:mittlr
, :shared
, :follower
Sample Responses
Response sample: Success (default)
{
"short_link": "http://aklam.io/bVGvXp",
"channels": {
"email": "http://aklam.io/d3OJet",
"facebook": "http://shortener.aklamio.com/tOcsFY",
"whatsapp": "http://aklam.io/ceQ8Go",
"link": "http://aklam.io/uiCzAU"
},
"coupon": null,
}
Response sample: Success (Reward Codes use case)
{
"short_link": "http://aklam.io/bVGvXp",
"channels": {
"email": "http://aklam.io/d3OJet",
"facebook": "http://shortener.aklamio.com/tOcsFY",
"whatsapp": "http://aklam.io/ceQ8Go",
"link": "http://aklam.io/uiCzAU"
},
"coupon": "OZEPPVSJ",
}
Response sample: Error
Status Code: 401
{
"error": "unauthorized"
}
Status Code: 404
{
"error": "unknown"
}