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-Key
Request
This endpoint expects an object.
url
The URL to be shortened. Must be a valid URL with either http or https protocol.
expiresAt
Optional expiration date for the shortened URL in ISO 8601 format. Default and max expiration is 90 days.
Response
Successfully created shortened URL
shortenedUrl
The shortened URL.
expiresAt
The expiration date of the shortened URL, if provided.