tools

Shorten URL

Create a shortened URL with an optional expiration date (default and max expiration is 90 days). The shortened URL will redirect to the original URL and will have the following format https://urls.p1n.io/ABCD5678.

post/tools/urls/shorten

Request

  • Base URL: https://www.trypinnacle.dev/api
  • URL: https://www.trypinnacle.dev/api/tools/urls/shorten
  • Auth: API key in header PINNACLE-API-Key

Request body

urlstring required

The URL to be shortened. Must be a valid URL with either http or https protocol.

expiresAtstring date-time

Optional expiration date for the shortened URL in ISO 8601 format. Default and max expiration is 90 days.

Response

Successfully created shortened URL

shortenedUrlstring

The shortened URL.

expiresAtstring date-time

The expiration date of the shortened URL, if provided.

Changes

No recorded changes to this operation across all 1 revision of this API.