Integrations
Are client integrations supposed to save the link ID to be able to get/edit/delete the link afterward?
Not necessarily. By properly using filters of List of links endpoint, you can uniquely fetch a specific link when you know in advance in which workspace it was created, and when you know at least the short URL itself.
Double check example in Getting link details, you can exploit it to build a clean integration which does not need to store anything on your model about Rebrandly IDs.
Is it possible to fetch a link if you only know its destination URL?
No. In Rebrandly you can rebrand a given destination URL many times with many different branded domains and slashtags, this is the reason why you cannot fetch links by destination URL.
If your system is in need to fetch by destination URL (e.g. blog posts sharing), we recommend you to use hashing techniques to choose your slashtag when you create the link: if you can correspond every destination URL to a specific hash code, you can always easily fetch the right link by means of calculating the hash of the destination URL.
Can I integrate Salesforce Marketing Cloud or their other products with Rebrandly's API?
Salesforce has many APIs. To integrate Salesforce and Rebrandly, we recommend that you contact a Salesforce integration consultant.
Which protocol should I prepend to branded links returned by the API?
By default, Rebrandly has the https:// protocol enabled. The Link entity comes with a .shortUrl property which doesn't hardcode any of http:// or https:// protocols. This can be disabled in your Rebrandly settings, but we don't recommend disabling the more secure, encoded protocol.
Rebrandly recommends all API clients to start honoring the User's preference for protocol, which can be read in the Link entity in property [link.]domain.sharing.protocol.default and can be any of: http, https. The final short URL, ready to be shared on the web, would then be composed as follows
let link = fetch(`https://api.rebrandly.com/v1/links`, options) // the Link entity
let shareMe = `${link.domain.sharing.protocol.default}://${link.shortUrl}`Updated 8 days ago
