TL;DR, Quick Answer
6 min readAdaptlyPost connects to a self-hosted Shlink server and shortens the links in your posts as they publish. A workspace admin enters the server's public HTTPS address and an API key from shlink api-key:generate on the Integrations page (Link shortener tab), then picks one of the server's domains. Choose shorten all links, shorten the main link only, or don't shorten, as a default, per platform or per account. AdaptlyPost calls Shlink's REST API v3, reuses the existing short URL for a link it has shortened before, shortens up to 25 links per post, skips TikTok, and publishes the original links if the server doesn't answer. Included in every plan.
A self-hosted Shlink URL shortener can shorten every link in your social posts once it's connected to AdaptlyPost: at publish time, AdaptlyPost sends each URL to your Shlink server and posts the short link it gets back. The links, the click data and the domain all stay on a server you run.
Shlink is the open-source shortener people pick when they don't want click data on someone else's servers, or when they already run it for email and print. What it never had was a way to reach scheduled social posts without a person pasting links into it. That's the gap this integration closes.
The short version: run shlink api-key:generate on your server, open Integrations in AdaptlyPost, choose the Link shortener tab and Shlink, enter the server address and key, pick a domain, then choose which links to shorten.
What does the Shlink integration do?
The Shlink integration turns the links in your posts into short URLs on your Shlink server at the moment each post publishes. It works on every network AdaptlyPost posts to except TikTok, for posts made in the composer, the API, Zapier, n8n or an AI agent.
You write the full URL in the post. The composer preview and the calendar keep showing it, and the short link only exists on the published post. If you edit the URL up to the last minute, Shlink gets whatever is in the post at publish time.
What do you need before connecting Shlink?
You need a Shlink server reachable from the internet over HTTPS, an API key from that server, at least one domain set on it, and the Admin role in your AdaptlyPost workspace. AdaptlyPost talks to Shlink's REST API v3, which Shlink 3.0 and later serve.
- A public HTTPS address, such as
https://s.example.com. AdaptlyPost's servers make the calls, so a server reachable only on your office network or over a VPN won't connect. - An API key. Run
shlink api-key:generateon the server, or in its Docker container, and copy the key it prints. - A domain. Shlink lists its default domain and any extra domains you added. A server with no domain set refuses the connection.

How do you connect Shlink to AdaptlyPost?
You connect Shlink from AdaptlyPost's Integrations page: open the Link shortener tab, choose Shlink, enter the server address and the API key, check the connection, and pick the domain your short links use.
- Open the Link shortener tab under Integrations and choose Shlink.
- Enter the Shlink server address, for example
https://s.example.com. The address of the REST API, ending in/rest/v3, works too. - Paste the Shlink API key and click Check connection. AdaptlyPost asks your server for its domains with that key.
- Pick a short link domain from the list your server returns.
- Click Connect Shlink and choose the default for which links get shortened.
The error messages say which part failed. "Your Shlink server did not accept this API key" means a new key is needed. "No Shlink server answered at this address" means the address is wrong or the server isn't reachable over HTTPS from outside. A workspace connects one shortener, so switching from Switchy to Shlink means disconnecting Switchy first.
Which links get shortened?
AdaptlyPost shortens every link or only the main link, depending on the mode. Shorten all links covers every URL in the text and the first comment, plus Pinterest destination links and Google Business Profile button and offer links. Shorten the main link only covers the first URL in the text, or the destination link on Pinterest and Google Business Profile.
| Setting | Where you change it | Who it applies to |
|---|---|---|
| Default for all platforms | Link shortener tab | Every account, including ones connected later |
| By platform | Link shortener tab | All accounts on one network |
| Per account | Link icon next to the account on Connectors | One account |
The most specific setting wins. Links already on your Shlink domain stay as they are, and so does anything that isn't a public http or https URL. A post with more than 25 links shortens the first 25.
Does AdaptlyPost create duplicate short links?
AdaptlyPost doesn't create duplicates: it asks Shlink to return the existing short URL when one already exists for the same long URL and domain, and it remembers every link it shortened for your workspace. A product URL posted every week keeps one short link and one click count.
That matters more with Shlink than with hosted shorteners, because every new short URL is a row in your own database. A recurring weekly post through AdaptlyPost's content calendar or an RSS feed reusing the same homepage link adds nothing new to Shlink after the first time.

What happens if your Shlink server is down?
The post publishes on time with its original links. AdaptlyPost waits 10 seconds for each answer from your server, retries a failed link twice, and then skips shortening for that post rather than delaying it.
So a Shlink upgrade at 9:00 on a Monday doesn't hold back the posts scheduled for 9:00. They go out with full URLs, and the next posts after the server is back get short links again. If you track clicks with UTM tags in the long URL, those still work in that case; the social media traffic guide shows how to set them up.
- AdaptlyPost sends each URL to Shlink at publish time
- Shlink returns the short link
- The published post carries the short link
- AdaptlyPost waits 10 seconds for each answer
- It retries a failed link twice
- The post publishes on time with its original links
Should you use Shlink or Switchy?
Use Shlink when you want the short links and click data on your own server and someone on the team can run it; use Switchy when you want a hosted service with nothing to maintain. Both connect in the same Link shortener tab and shorten links the same way.
| Shlink | Switchy | |
|---|---|---|
| Hosting | Your own server | Switchy's servers |
| Connection | Server address and API key | API key |
| Domains | Any domain set on your server | Custom domains in your Switchy workspace and Switchy's shared domains |
| Click data | In your Shlink server | In Switchy |
The Switchy link guide covers the hosted option. For bios rather than posts, the link in bio guide covers the other place short links usually end up.
What can't the Shlink integration do?
The Shlink integration can't shorten links on TikTok, change links on posts that already published, set custom slugs or tags in Shlink, or show Shlink's visit counts inside AdaptlyPost. Visits stay in Shlink, readable in its web client or API.
Disconnecting Shlink stops shortening for new posts. Short URLs already on your server keep redirecting, because AdaptlyPost never deletes them.
Frequently Asked Questions
What is Shlink?
Shlink is an open-source, self-hosted URL shortener with a REST API and visit tracking. AdaptlyPost connects to it through that REST API to shorten the links in social posts.
How do I get a Shlink API key?
Run shlink api-key:generate on the Shlink server, or inside its Docker container, and copy the key it prints. Paste it into the Shlink API key field on AdaptlyPost's Link shortener tab.
Does my Shlink server need to be public?
Your Shlink server needs a public HTTPS address, because AdaptlyPost's servers call its REST API when a post publishes. A server reachable only on a private network or VPN can't connect.
Which Shlink versions work with AdaptlyPost?
AdaptlyPost uses Shlink's REST API v3, which Shlink 3.0 and later serve. You can enter either the server address or the full REST address ending in /rest/v3.
Can I use a custom domain with Shlink in AdaptlyPost?
AdaptlyPost lists every domain on your Shlink server, the default one and any extra domains you added, and you pick one when you connect. You can change the domain later on the same tab.
Is the Shlink integration free?
The Shlink integration comes with every AdaptlyPost plan, starting at $19 a month for Creator with a 7-day free trial. Shlink itself is free and open source; you pay only for the server it runs on.
Does Shlink shorten links in TikTok posts?
AdaptlyPost skips TikTok when it shortens links. The integration works on every other network AdaptlyPost posts to, including for posts made through the API, Zapier, n8n or an AI agent.
Where can I see click stats for my Shlink links?
Visit counts stay in your Shlink server, where you can read them in its web client or API. AdaptlyPost doesn't show them.
What happens to my short links if I disconnect Shlink?
Short URLs already on your server keep redirecting, because AdaptlyPost never deletes them. Disconnecting only stops shortening for new posts.
Can I turn off link shortening for one social account?
Use the link icon next to the account to set it to don't shorten. You can also set the rule for a whole platform or as a default for all platforms, and the most specific setting wins.
Was This Article Helpful?
Let us know what you think!
See us more often in Google
One click marks AdaptlyPost as a preferred source, so our articles sit higher in your Top Stories, AI Mode, and AI Overviews.
Related Articles


Turn Every Post URL Into a Switchy Link on Your Own Domain, Automatically
Make each URL in your social posts a Switchy link on your own domain as it publishes: connect Switchy in AdaptlyPost, pick a domain, choose the links.


Run Your Airtable Social Media Calendar on Autopilot With AdaptlyPost
Turn an Airtable social media calendar into scheduled posts: AdaptlyPost adds the fields, reads Ready rows every 5 minutes and writes the status and link back.


Use Your Own OpenAI, Anthropic or Google Key: BYOK AI for Social Media Captions and Images
Set up BYOK AI in AdaptlyPost: write captions and make images with your own OpenAI, Anthropic, Google or OpenRouter key, or any OpenAI-compatible endpoint.

