Documentation

API reference

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

Command Palette

Search for a command to run...

Pages

Account

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

Returns the plan this API key is entitled to, how many links were created this calendar month, and whether the next create will be rejected for hitting the limit.

plan.type is the entitled plan. A lapsed paid subscription is reported as FREE.

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

Success response

Returns 200 OK.

Response fields

plan.typestringrequired
FREE, STARTER, PRO, or ENTERPRISE. A lapsed paid subscription is reported as FREE.
plan.periodstringrequired
MONTHLY or YEARLY.
links.usednumberrequired
Links created during the current calendar month.
links.limitnumberrequired
Monthly link allowance for the entitled plan.
links.limitReachedbooleanrequired
True when used is at or above the monthly limit.

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/account \
2 -H "Authorization: Bearer sk_user_api_your_api_key"
Response
1{
2 "plan": {
3 "type": "PRO",
4 "period": "MONTHLY"
5 },
6 "links": {
7 "used": 12,
8 "limit": 500,
9 "limitReached": false
10 }
11}