View as Markdown
UrlBae icon

UrlBae ACTION

Shorten URL

Creates a shorten URL. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's UrlBae account once, then configure and run Shorten URL from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "urlbae-shorten-url",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    urlbae: { authProvisionId: "apn_xxxxxxx" },
    url: "URL",
    password: "Password",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Shorten URL inputs
Property Type Description
url URL string
URL to be shortened
Required
password Password string
Password to access the URL
Optional
custom Custom string
Custom alias for the shortened URL
Optional
expiry Expiry string
Expiration for the URL, i.e. 2023-12-31 23:59:59
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
urlbae-shorten-url
Version
0.0.2
App
UrlBae
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes