POST links
Create a short link for the given long URL.
Synopsis
POST https://once.to/api/public/v1/link
Payload
Property | Type | Description |
---|---|---|
slug | string | The desired link slug. If not specified, a random one will be generated |
domain | string | Domain this link will redirect at. If empty, will redirect on the service’s own domains |
targetUrl | string | URL to redirect to |
Response
JSON object of type ShortLink.