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
| Status | Error | Description |
|---|---|---|
| 401 | Unauthorized | Missing, malformed, or invalid Bearer token. |
| 429 | Too Many Requests | More than 10 requests per minute and 50 requests per day. Some responses include a Retry-After header. |
| 500 | Internal Server Error | Unexpected 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}