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.

Headers

PINNACLE-API-KeystringRequired

Request

This endpoint expects an object.
urlstringRequired
The URL to be shortened. Must be a valid URL with either http or https protocol.
expiresAtdatetimeOptional
Optional expiration date for the shortened URL in ISO 8601 format. Default and max expiration is 90 days.

Response

Successfully created shortened URL
shortenedUrlstring or null
The shortened URL.
expiresAtdatetime or null
The expiration date of the shortened URL, if provided.

Errors