Viso.li

Get All Links

GEThttps://viso.li/api/link

Returns a paginated list of short links you own. Each item has the same shape as GET link: slug, hostname, alias, createdAt, and destination URL.

Filter by hostname and by an optional createdAt window so you can pull links created in a date range.

Send Authorization: Bearer sk_api_your_api_key on every request. See authentication.

Query parameters

All filters are optional. Omit the createdAt window to include every link you own (still paginated).

FieldTypeDescription
domainstringHostname to filter on. Use viso.li for default-domain links, or a verified custom hostname.
createdFromstringISO 8601 inclusive start of the createdAt window.
createdTostringISO 8601 inclusive end of the createdAt window. Must be on or after createdFrom.
pagenumberPage number, starting at 1. Defaults to 1.
pageSizenumberItems per page, max 100. Defaults to 20.

Example request

This lists branded-domain links created between 1 January and 23 August 2026.

1curl "https://viso.li/api/link?domain=go.example.com&createdFrom=2026-01-01T00:00:00.000Z&createdTo=2026-08-23T23:59:59.000Z&page=1&pageSize=20" \
2 -H "Authorization: Bearer sk_api_your_api_key"

Success response

Returns 200 OK. Newest links first.

response.json
1{
2 "links": [
3 {
4 "slug": "abc123",
5 "domain": "go.example.com",
6 "alias": "launch",
7 "createdAt": "2026-08-22T14:00:00.000Z",
8 "url": "https://example.com/bio"
9 }
10 ],
11 "page": 1,
12 "pageSize": 20,
13 "total": 1,
14 "totalPages": 1
15}

Response fields

FieldTypeDescription
linksobject[]Page of links. Same fields as GET /api/link/:slug.
pagenumberCurrent page.
pageSizenumberRequested page size.
totalnumberTotal matching links.
totalPagesnumberTotal pages at this page size.

Errors

StatusErrorDescription
400Bad RequestInvalid page, pageSize, or createdAt window.
401UnauthorizedMissing, malformed, or invalid Bearer token.
429Too Many RequestsMore than 10 requests per minute or 50 requests per day.
500Internal Server ErrorUnexpected server error. Retry the request.