References
Verify API Key
Test your API key and check your current environment, scope, and key details.
The Verify API Key endpoint is the quickest way to confirm your API key is active and authenticated. Use it during integration to check your environment (Sandbox or Live), your key's scope, and remaining usage.
All API requests must be made over HTTPS to: https://kda-turbo-web.vercel.app
Endpoint
Works with both profile and services scoped keys — no scope restriction applies.
Example
curl -X GET https://kda-turbo-web.vercel.app/api/services/test \
-H "Authorization: Bearer kds_test_YOUR_API_KEY"const res = await fetch("https://kda-turbo-web.vercel.app/api/services/test", {
headers: { "Authorization": "Bearer kds_test_YOUR_API_KEY" }
});
const { environment, key } = await res.json();
console.log(`Environment: ${environment}, Scope: ${key.scope}`);import requests
response = requests.get(
"https://kda-turbo-web.vercel.app/api/services/test",
headers={
"Authorization": "Bearer kds_test_YOUR_API_KEY",
},
)
data = response.json()
print(data["environment"], data["key"]["scope"])<?php
$ch = curl_init("https://kda-turbo-web.vercel.app/api/services/test");
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => [
"Authorization: Bearer kds_test_YOUR_API_KEY",
],
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);Response
{
"success": true,
"message": "API Key is valid and authenticated.",
"environment": "TEST",
"user": {
"id": "user_1234abcd",
"email": "dev@example.com"
},
"key": {
"name": "My Sandbox Key",
"prefix": "kds_test_9f2c",
"type": "TEST",
"scope": "profile",
"enabled": true,
"remaining": 9000,
"createdAt": "2026-01-15T10:00:00.000Z"
}
}Prop
Type
Errors
| Status | Code | Reason |
|---|---|---|
401 | UNAUTHORIZED | Invalid, disabled, or expired API key. |
429 | RATE_LIMITED | Too many requests — retry after the Retry-After header. |
Best Practices & Next Steps
Integration Checklist: Call /api/services/test at the start of your integration to confirm your key is valid, check whether you are hitting the Sandbox or Live environment, and verify the key's scope matches the endpoints you plan to call.