Viso.li

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

Example request

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

Success response

Returns 200 OK.

response.json
1{
2 "plan": {
3 "type": "PRO",
4 "period": "MONTHLY"
5 },
6 "links": {
7 "used": 12,
8 "limit": 500,
9 "limitReached": false
10 }
11}

Response fields

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