# Verify your Bearer token & workspace identity
curl -X GET https://klic.in/api/v1/auth/verify \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://klic.in/api/v1/auth/verify', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const user = await response.json();
console.log('Authenticated Workspace:', user.data.workspaceName);
import requests
response = requests.get(
"https://klic.in/api/v1/auth/verify",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
print(response.json())
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var response = await client.GetAsync("https://klic.in/api/v1/auth/verify");
string json = await response.Content.ReadAsStringAsync();
Console.WriteLine(json);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://klic.in/api/v1/auth/verify',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY']
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://klic.in/api/v1/auth/verify", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}