Integrations
viaSocket
Connect iShortn to other apps with viaSocket. Create, update, list and delete short links, read their click stats and start workflows when a link is created.
viaSocket is integration infrastructure for products and AI agents. It manages authentication, actions, triggers and webhooks across 2,300+ apps. Its iShortn app can shorten URLs, manage links and read click stats, and start a workflow whenever a link is created. It uses the iShortn API, so it needs an API key, and API keys need a Pro or Ultra plan.
Create an API key
- Open Settings in the dashboard and scroll to API Keys.
- Click Create API Key and copy the key from the dialog. It's shown once.
The key works in one workspace: your personal workspace for a personal key, or the team for a team key. Links created from viaSocket are added there, and the other actions only find links in it. See Which links the API can reach.
Connect viaSocket
- In viaSocket, open the iShortn app and create a workflow, choosing iShortn for the trigger or one of the steps.
- When viaSocket asks you to connect iShortn, paste the key into the API key field.
- Save the connection. viaSocket can reuse it in your other workflows.
If you delete the key in iShortn, the connection stops working. Create a new key and reconnect iShortn in viaSocket.
Trigger
| Trigger | What it does |
|---|---|
| New Link | Starts the workflow when a new link is created in the key's workspace: in the dashboard, through the API or from another automation. |
Actions
| Action | What it does | API endpoint |
|---|---|---|
| Create Link | Shortens a URL, optionally with an alias, domain, expiry, password and UTM parameters. | POST /api/v1/links |
| Update Link | Changes an existing link's destination, alias, domain or expiry. | PATCH /api/v1/links/{alias} |
| Delete Link | Permanently deletes a link so it stops redirecting. | DELETE /api/v1/links/{alias} |
| Get Link Stats | Gets a link's click totals, a daily series and breakdowns by country, city, device, browser, OS and referrer. | GET /api/v1/analytics/{alias} |
| Get Links | Lists the links in the key's workspace, or gets one link by its alias. | GET /api/v1/links, GET /api/v1/links/{alias} |
A link is identified by its alias and domain. Leave the domain empty to use the default domain from Settings → General. See Domains.
Passwords and UTM parameters need a Pro or Ultra plan and can only be set when a link is created. To change them later, edit the link in the dashboard.
Plan rules are the same as in the dashboard, and links created from viaSocket count toward your monthly link limit. See Plans and limits.
Errors
When a step fails, viaSocket shows the API's message in the workflow's logs. The most common messages:
| Message | What to do |
|---|---|
Invalid or missing API key | The key was mistyped or deleted. Create a new one in Settings and reconnect iShortn. |
API access requires Pro | The key's account isn't on a paid plan. See API access by plan. |
Link not found | No link with that alias on that domain in the key's workspace. Check the domain. |
Rate limit exceeded. Retry in N seconds. | Too many requests in a short time. Space out the workflow. See Rate limits. |
Other errors, such as an alias that's already taken, are listed in Responses and errors.
Something missing or unclear? Email support@ishortn.ink.