0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Generate → Shortened URL

AI-generated

Overview

This node provides utilities for generating and managing shortened URLs within the 'Generate' resource. It supports operations to add new shortened URLs, delete existing ones, update the destination of a shortened URL, and list all shortened URLs associated with the user. This is useful for workflows that require URL shortening services, such as marketing campaigns, link tracking, or simplifying long URLs for sharing.

Use Case Examples

  1. Add a new shortened URL with an optional custom identifier to create a branded or memorable link.
  2. Delete a shortened URL by specifying its identifier to manage or clean up unused links.
  3. Update the destination URL of an existing shortened URL to redirect traffic to a new location without changing the short link.
  4. List all shortened URLs to retrieve and display all links created by the user for monitoring or reporting.

Properties

Name Meaning
Code Variables Allows setting code variables defined in the code editor for the selected function, useful for dynamic input values.
Operation Specifies the action to perform on shortened URLs: add, delete, update, or list.
Optional Custom Identifier Custom identifier for the new shortened URL when adding a new one, allowing personalized or branded short links.
Delete a Shortened Url Identifier of the shortened URL to delete, required for delete and update operations.
Identifier Identifier of the shortened URL to edit or delete, required for update operation.

Output

JSON

  • destination - The destination URL that the shortened URL points to.
  • custom - Custom identifier used for the shortened URL, if provided.
  • identifier - Unique identifier of the shortened URL.
  • list - List of all shortened URLs when listing operation is performed.

Dependencies

  • An API key credential for authentication with the 0CodeKit service.

Troubleshooting

  • Ensure the API key credential is correctly configured and has the necessary permissions to manage shortened URLs.
  • Verify that the identifier provided for delete or update operations exists and is correct to avoid errors.
  • When adding a new shortened URL with a custom identifier, ensure the identifier is unique to prevent conflicts.
  • If the node throws errors related to network or API access, check the connectivity and service status of the 0CodeKit API.

Links

Discussion