POST links

Create a short link for the given long URL.

Synopsis

POST https://once.to/api/public/v1/link

Payload

PropertyTypeDescription
slugstringThe desired link slug. If not specified, a random one will be generated
domainstringDomain this link will redirect at. If empty, will redirect on the service’s own domains
targetUrlstringURL to redirect to

Response

JSON object of type ShortLink.