Viso.li

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_api_your_api_key on every request. See authentication.

Example request

1curl https://www.viso.li/api/domain \
2 -H "Authorization: Bearer sk_api_your_api_key"

Success response

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

response.json
1{
2 "domains": [
3 {
4 "name": "go.example.com"
5 }
6 ]
7}

Response fields

FieldTypeDescription
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.