n8n integration

n8n URL shortener: create and track links from any workflow.

Connect LinkTwin to your n8n workflows with the built-in HTTP Request node. Send each new URL to LinkTwin and get back a short link that opens in the right app, and let LinkTwin call your Webhook node each time you create a link or someone clicks one.

See the setup
  1. TriggerNew row in Google Sheets
    Column
    Product URL
  2. NodeHTTP Request: POST
    URL
    https://linktw.in/api/url/add
    Body
    url = {{ $json.url }}
    Authentication
    Header Auth
  3. NodeUpdate the row with the short link
    Short link
    {{ $json.shorturl }}

Works both ways

Send URLs to LinkTwin, and let LinkTwin call n8n back.

n8n can create links through the LinkTwin API, and LinkTwin can send n8n a JSON event when something happens in your account.

Create links from a workflow

Add an HTTP Request node that sends a POST request to the LinkTwin API. The next node can use the short link it returns.

200Response
{
  "error": 0,
  "id": "1221",
  "shorturl": "https://linktw.in/desk-tour",
  "title": "My $200 desk setup (full tour)",
  "description": "A full tour of my $200 desk setup."
}
  • Check the error field in the response: 0 means the link was created.
  • Paste a YouTube, Amazon or Spotify URL and the short link opens that app on a phone.

Get a webhook for every new link and click

Start a workflow with a Webhook node set to POST and paste its production URL on the Zapier integration page in your dashboard, which accepts any webhook URL. LinkTwin posts a JSON event each time you create a short link and each time someone clicks one.

New link
{
  "type": "url",
  "longurl": "https://www.youtube.com/watch?v=x7K2pQ9mW4s",
  "shorturl": "https://linktw.in/desk-tour",
  "date": "04-10-2026 09:41:12"
}
New click
{
  "type": "view",
  "shorturl": "https://linktw.in/desk-tour",
  "country": "United States",
  "city": "Austin",
  "referer": "https://l.instagram.com",
  "os": "iOS",
  "browser": "Safari",
  "date": "2026-10-04 09:41:12"
}

Example payloads with the real field names.

Setup

Create your first short link from n8n

One request to the LinkTwin API, with your API key in the Authorization header and the URL in the body.

  1. Get your API key

    Copy your API key from Settings in your LinkTwin dashboard. API access comes on every plan.

  2. Save it as a Header Auth credential

    In n8n, create a Header Auth credential with the name Authorization and the value Bearer followed by your key.

  3. Add an HTTP Request node

    POST the URL to the LinkTwin API with the settings below. The next node gets shorturl from the response.

The HTTP Request node

Use these settings. The expression reads the url field of each incoming item.

FieldValue
NodeHTTP Request
MethodPOST
URLhttps://linktw.in/api/url/add
AuthenticationGeneric Credential Type, Header Auth
Header Auth credentialAuthorization: Bearer YOUR_API_KEY
BodyJSON, url = {{ $json.url }}

Node parameters

HTTP Request node, with a Header Auth credential for Authorization.

HTTP Request
{
  "method": "POST",
  "url": "https://linktw.in/api/url/add",
  "authentication": "genericCredentialType",
  "genericAuthType": "httpHeaderAuth",
  "sendBody": true,
  "bodyParameters": {
    "parameters": [
      { "name": "url", "value": "={{ $json.url }}" }
    ]
  }
}

Workflows you can build in minutes

Each one is a trigger, the LinkTwin step and one action. Swap the apps for the ones you use.

A short link for every new row

A new row in Google Sheets or Airtable gets a short link in the next column.
  • Steps
  • Google Sheets
  • HTTP Request
  • Update row

Share new products as app links

Each new product in your store gets a short link that opens the right app, ready for your posts.
  • Steps
  • Shopify
  • HTTP Request
  • Slack

Turn a feed into short links

New videos or posts from an RSS feed become short links, posted to your channel.
  • Steps
  • RSS
  • HTTP Request
  • Telegram

Log new links to a sheet

LinkTwin sends a webhook for each link you create, and the workflow adds it to a sheet.
  • Steps
  • LinkTwin webhook
  • Google Sheets

Get told about clicks

LinkTwin sends a webhook when someone clicks your link, with the country, referrer and device.
  • Steps
  • LinkTwin webhook
  • Slack

Route links by campaign

Add a collection or a custom alias in the same request, so every link lands in the right place.
  • Steps
  • Form entry
  • HTTP Request
  • Email

n8n integration questions

Still have questions? Contact us.

Does LinkTwin work with n8n?

Yes, in both directions. An HTTP Request node creates links through the LinkTwin API, and a Webhook node can receive an event from LinkTwin each time you create a link or someone clicks one.

Is there a LinkTwin node for n8n?

No, and you do not need one. The built-in HTTP Request node calls the LinkTwin API with a Header Auth credential, and it works the same on n8n Cloud and on a self-hosted n8n.

Do I need a paid LinkTwin plan?

Creating links from n8n uses the LinkTwin API, and API access comes on every plan. You can create a free account first and upgrade when you are ready to connect n8n.

Do links created by n8n open in apps?

Yes. A link made from n8n is the same as one made in the dashboard: YouTube, Amazon, Spotify and other supported links open in the app on a phone, and fall back to the web page when the app is not installed.

Can I create many links at once?

Yes. n8n runs the HTTP Request node once for each item, so a list of URLs becomes a list of short links. For big batches, stay under the rate limit.

One API key, three ways to build

The REST API, the MCP server and the CLI all use the same API key and manage the same links.

Put LinkTwin in your n8n workflows

Create an account, copy your API key and send your first URL.

API access comes on every plan. See plans