Zi.Ink

App · 11 actions

Shorten links on zi.ink or your own domain, change or delete them, and see how often they're clicked.

Actions

ActionWhat it does
Delete linkDelete a short link.
Delete links in bulkDelete several short links on one domain at once.
Get accountGet the signed-in account's name, email and plan.
Get bulk shorten jobCheck how far a bulk shorten job has got, and get its short links once it's done.
Get linkGet one short link, with how many times it was clicked.
Get link clicksGet a short link's clicks over recent days, by country, referrer, browser and device.
List custom domainsList your custom domains, with the IDs used to make links on them.
List linksList your short links, one page at a time.
Shorten linkMake a short link to a web address, optionally with your own short code or custom domain.
Shorten links in bulkShorten up to 100 web addresses at once.
Update linkChange where a short link goes, when it expires, or its password.

Delete a short link.

Inputs

Short codeslugtextRequired
The link's short code, the part after the slash, such as abc1234.
Custom domaindomain_idtext
The custom domain the link is on. Leave empty for a zi.ink link.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "message": "Link deleted successfully",
    "success": true
  }
}

Delete several short links on one domain at once.

Inputs

Short codesslugslistRequired
The short codes of the links to delete.
Custom domaindomain_idtext
The custom domain the links are on. Leave empty for zi.ink links.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "deleted": 2,
    "failed": 0,
    "failedSlugs": [
      "xyz5678"
    ],
    "success": true
  }
}

Get account

Get the signed-in account's name, email and plan.

Inputs

None.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "user": {
      "created_at": "2026-01-01T00:00:00.000Z",
      "email": "user@example.com",
      "name": "John Doe",
      "picture": "https://example.com/avatar.jpg",
      "plan_tier": "enterprise"
    }
  }
}

Get bulk shorten job

Check how far a bulk shorten job has got, and get its short links once it's done.

Inputs

Job IDjobIdtextRequired
The job ID from Shorten links in bulk.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "failed": 0,
    "jobId": "bulk-1769661366024-abc123",
    "processed": 3,
    "progress": 100,
    "results": [
      {
        "original_url": "https://example.com/page1",
        "short_url": "https://zi.ink/abc123",
        "slug": "abc123",
        "success": true
      }
    ],
    "status": "completed",
    "successful": 3,
    "total": 3
  }
}

Get one short link, with how many times it was clicked.

Inputs

Short codeslugtextRequired
The link's short code, the part after the slash, such as abc1234.
Custom domaindomain_idtext
The custom domain the link is on. Leave empty for a zi.ink link.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "link": {
      "clicks": 42,
      "created_at": "2026-01-27T10:00:00.000Z",
      "id": 746,
      "long_url": "https://example.com",
      "password_protected": false,
      "short_url": "https://zi.ink/abc1234",
      "slug": "abc1234",
      "user_id": 1
    }
  }
}

Get a short link's clicks over recent days, by country, referrer, browser and device.

Inputs

Short codeslugtextRequired
The link's short code, the part after the slash, such as abc1234.
Daysdaysnumber
How many days back to count, up to 365. Zi.Ink uses 7 when empty.From 1 to 365.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "by_browser": [
      {
        "browser": "Chrome",
        "clicks": 400
      }
    ],
    "by_country": [
      {
        "clicks": 300,
        "country": "US"
      }
    ],
    "by_device": [
      {
        "clicks": 350,
        "device": "desktop"
      }
    ],
    "by_referrer": [
      {
        "clicks": 200,
        "referrer": "direct"
      }
    ],
    "created_at": "2026-01-27T10:00:00.000Z",
    "long_url": "https://example.com",
    "slug": "abc1234",
    "total_clicks": 533
  }
}

List custom domains

List your custom domains, with the IDs used to make links on them.

Inputs

None.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "domains": [
      {
        "domain": "yourdomain.com",
        "id": "72fa7279-65ca-4fa6-9407-63f1d711fb68",
        "status": "active",
        "subscription_status": "active"
      }
    ]
  }
}

List your short links, one page at a time.

Inputs

Pagepagenumber
Which page to read, starting at 1.At least 1.
Page sizelimitnumber
How many links a page holds, up to 100. Zi.Ink uses 20 when empty.From 1 to 100.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "limit": 20,
    "links": [
      {
        "created_at": "2026-01-27T10:00:00.000Z",
        "domain_expired": false,
        "domain_name": "zi.ink",
        "id": 1,
        "long_url": "https://example.com",
        "password_protected": false,
        "short_url": "https://zi.ink/abc1234",
        "slug": "abc1234",
        "user_id": 1
      }
    ],
    "page": 1,
    "total": 150,
    "totalPages": 8
  }
}

Make a short link to a web address, optionally with your own short code or custom domain.

Inputs

Web addresslong_urltextRequired
The address to shorten, such as https://example.com/page.
Short codecustom_slugtext
Your own short code: 3 to 50 letters, numbers, hyphens or underscores. Leave empty for a random one.
Custom domaindomain_idtext
Make the link on one of your custom domains. Leave empty for zi.ink.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "domain": "yourdomain.com",
    "short_url": "https://zi.ink/abc1234",
    "slug": "abc1234",
    "success": true
  }
}

Shorten up to 100 web addresses at once. Ten or fewer come back straight away; more are shortened in the background.

Inputs

Web addressesurlslistRequired
The addresses to shorten, up to 100.
Custom domaindomain_idtext
Make every link on one of your custom domains. Leave empty for zi.ink.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "failed": 0,
    "jobId": "bulk-1770004251559-ous1bln",
    "message": "Bulk processing completed in sync mode",
    "processed": 3,
    "results": [
      {
        "original_url": "https://example.com/page1",
        "short_url": "https://zi.ink/abc123",
        "slug": "abc123",
        "success": true
      }
    ],
    "status": "completed",
    "success": true,
    "successful": 3,
    "total": 3
  }
}

Change where a short link goes, when it expires, or its password. Needs the Enterprise plan.

Inputs

Short codeslugtextRequired
The link's short code, the part after the slash, such as abc1234.
Custom domaindomain_idtext
The custom domain the link is on. Leave empty for a zi.ink link.
New web addresslong_urltext
The address the link should send people to now.
Expiresexpires_atdate and time
When the link stops working.
Password protectedpassword_enabledtrue/false
Turn on to ask for a password, off to remove it.
Passwordpasswordtext
The password people must enter. Needed when turning protection on.

Outputs

dataobject
The response from Zi.Ink.
Example output
{
  "data": {
    "link": {
      "expires_at": "2026-12-31T23:59:59.000Z",
      "long_url": "https://new-destination.com",
      "password_protected": true,
      "slug": "abc1234"
    },
    "message": "Link updated successfully",
    "success": true
  }
}

On this page