0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Shortened URL → Create Shortened URL

AI-generated

Overview

This node provides a utility to create shortened URLs. It takes a destination URL and optionally a custom identifier, then generates a shortened URL that redirects to the specified destination. This is useful for simplifying long URLs, making links easier to share, track, or embed in communications.

Common scenarios include:

  • Sharing concise links on social media or messaging platforms.
  • Creating branded or memorable short links using custom identifiers.
  • Tracking clicks or usage of specific URLs by generating unique short links.

Example: You want to share a long product page URL but prefer a neat short link like https://short.ly/my-product. Using this node, you provide the full URL and optionally specify "my-product" as the custom ID to generate such a link.

Properties

Name Meaning
Destination URL The full URL that the shortened URL will redirect to. Example: https://example.com
Custom Identifier Optional custom string to use as the short URL's identifier. If omitted, a random ID is generated.

Output

The node outputs JSON data representing the created shortened URL details. Typically, this includes at least the shortened URL itself and possibly metadata such as the original destination and the identifier used.

If binary data were involved (e.g., QR codes), it would be summarized here, but this node focuses on JSON output only.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the endpoint /generate/shortenedurl/add on the base URL https://prod.0codekit.com.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Invalid Destination URL: Ensure the destination URL is a valid, fully qualified URL starting with http:// or https://.
  • Custom Identifier Conflicts: If a custom identifier is already taken, the API might return an error. Try using a different custom ID or leave it blank to auto-generate.
  • Authentication Errors: Verify that the API key credential is correctly configured and has necessary permissions.
  • Network Issues: Check connectivity to https://prod.0codekit.com and ensure no firewall blocks outbound requests.

Links and References

Discussion