Developer Hub
Build with K2V
Powerful API for link shortening, custom domains, and real-time analytics. Built for developers who care about performance and brand.
1Introduction
Welcome to the K2V API. Our API allows you to programmatically shorten URLs, manage custom domains, and retrieve detailed analytics. It is designed with REST principles, ensuring intuitive and predictable interactions.
Base URL
https://api.k2v.pro/api/v1/consoleFormat
JSON only (UTF-8)2Authentication
K2V uses API keys to authenticate requests. You can generate and manage your keys in the developer dashboard. Provide your API key in the X-API-Key header of your requests.
Example Header
X-API-Key: YOUR_API_KEYNeed an API Key?
Log in to your account to generate your credentials.
3API Reference
POST/urls
Create a new shortened URLExample Request
{
"original_url": "https://example.com"
}Example Response
{
"status": "success",
"data": {
"short_url": "https://k2v.pro/xyz123"
}
}4Error Codes
| Code | Meaning |
|---|---|
| 400 | Bad Request - Missing or invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Usage limits reached |
| 429 | Too Many Requests - Rate limiting active |