Create Bitlink

bitly.create_bitlink
ActionBusiness appsconnection required

Calls the Bitly API with the connection's credentials.

Create a Bitlink with a title, tags, an expiry or a custom back-half keyword, or add a keyword to a Bitlink that already exists.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Bitly
Secret shape
{"access_token": "…"} — a Bitly generic access token, or {"client_id": "…", "client_secret": "…", "refresh_token": "…"}
Config it needs
group_guid, domain, organization_guid
Resolved by
config.connection_id, else node.connection_id

Configuration

9 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
long_url
The destination URL for a new Bitlink.
stringNo—url format—
existing_bitlink
Instead of a long URL: an existing Bitlink to give a keyword to.
stringNo——bit.ly/2kZDMbT
domain
Short domain to shorten to; overrides the connection's default domain.
stringNo——bit.ly
group_guid
Bitly group to act in; overrides the connection's default group.
stringNo——Ba1bc23dE4F
title
Title shown for the Bitlink in Bitly.
stringNo———
tags
Tags to set, as an array or a comma-separated list.
arrayNo—array of string—
keyword
Custom back-half, the part after the domain (bit.ly/my-launch).
stringNo———
expiration_at
ISO-8601 timestamp at which the Bitlink stops redirecting.
stringNo—iso8601 format—
force_new_link
Mint a brand-new Bitlink even if this URL already has one.
booleanNofalse——
  • At least one of long_url, existing_bitlink must be set.

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "domain": "bit.ly",
  "existing_bitlink": "bit.ly/2kZDMbT",
  "force_new_link": false,
  "group_guid": "Ba1bc23dE4F"
}

Output

One shape.

result

FieldTypeExample
id
The Bitlink id, domain and hash (bit.ly/2kZDMbT).
string—
link
The short URL, with its scheme.
string—
long_url
The destination the Bitlink redirects to.
string—
title
The Bitlink's title, empty when none was set.
string—
tags
The tags on the Bitlink.
array—
archived
True when the Bitlink is archived.
boolean—
created_at
ISO-8601 timestamp of when the Bitlink was created.
string—
custom_bitlinks
Custom back-half links pointing at this Bitlink.
array—
{
  "archived": false,
  "created_at": "",
  "custom_bitlinks": [],
  "id": "",
  "link": "",
  "long_url": "",
  "tags": [],
  "title": ""
}

See Create Bitlink run in a workflow.

In a technical demo we add the Bitly connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.