When Does the API Make Sense?
If you're creating links manually — a few times a day, just for yourself — the dashboard is perfect. But if you're building links into a product, automating for a large team, or generating thousands of links for a campaign, the API is your friend.
Getting Your API Key
It's straightforward:
- Go to Dashboard > Developer
- Click "Generate API Key"
- Copy it somewhere safe (you won't be able to see it again)
Your First API Call
Creating a link is as simple as a POST request:
POST https://api.k2v.pro/v1/links
{
"original_url": "https://your-site.com/awesome-page",
"alias": "my-custom-alias",
"tags": ["summer", "promo"]
}
What Else Can You Do?
The API covers most things you'd do in the dashboard:
- GET /links — List all your links
- GET /links/:id — Get details on a specific link
- PUT /links/:id — Update a link
- DELETE /links/:id — Delete a link
- GET /links/:id/analytics — Fetch the analytics for a link
Popular Use Cases
We've seen people do some creative stuff:
- Auto-generate links when publishing blog posts
- Create unique links for each subscriber in an email campaign
- Build custom dashboards that pull in K2V data
- Integrate with CRM systems for automatic link generation