Documentation

API reference

Create links, read click statistics and manage campaigns from your own systems.

Command Palette

Search for a command to run...

Pages

Domains

GEThttps://www.viso.li/api/domain

Returns custom domains that are active and can be passed as domain when creating a link.

Domains that are still waiting on DNS, SSL, or a failed check are omitted. Adding and removing domains stays in the dashboard.

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

Success response

Returns 200 OK. An account with no active domains returns an empty array.

Response fields

domainsobject[]required
Active custom domains on this account.
domains[].namestringrequired
Hostname, such as go.example.com.

Errors

StatusErrorDescription
401UnauthorizedMissing, malformed, or invalid Bearer token.
429Too Many RequestsMore than 10 requests per minute and 50 requests per day. Some responses include a Retry-After header.
500Internal Server ErrorUnexpected server error. Retry the request.
1curl https://www.viso.li/api/domain \
2 -H "Authorization: Bearer sk_user_api_your_api_key"
Response
1{
2 "domains": [
3 {
4 "name": "go.example.com"
5 }
6 ]
7}