API keys
The API lets a program do what you do by hand: create links, read click numbers, and manage campaigns. An API key is the password for that program. It tells Viso.li which team the program works for.
The API is part of the Pro and Enterprise plans. Admins and managers can create keys.
1. Create a key
Open Settings in the menu on the left, choose the API tab, and create a new key. Give it a name that says where you use it, for example "Website backend". Later this helps you know which key is which.
2. Try it
Send the key with every request. This first request asks for your plan and how many links you have created this month:
If you get your plan back, the key works. All requests are listed in the API reference.
Keep it safe
- Treat a key like a password. Do not post it, and do not put it into a web page or an app that others can open.
- Use one key per place, so you can switch off one without touching the others. A team can have up to 10 keys.
- Is a key no longer needed, or has someone seen it? Click Revoke next to it. It stops working at once.
Limits
Each key can send 10 requests per minute and 50 requests per day. If you send more, the API answers with the error 429 Too Many Requests. Wait a moment and try again.