List API Keys
curl --request GET \
--url https://otel.logclaw.ai/api/admin/api-keys \
--header 'x-logclaw-api-key: <api-key>'import requests
url = "https://otel.logclaw.ai/api/admin/api-keys"
headers = {"x-logclaw-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-logclaw-api-key': '<api-key>'}};
fetch('https://otel.logclaw.ai/api/admin/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://otel.logclaw.ai/api/admin/api-keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-logclaw-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://otel.logclaw.ai/api/admin/api-keys"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-logclaw-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://otel.logclaw.ai/api/admin/api-keys")
.header("x-logclaw-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://otel.logclaw.ai/api/admin/api-keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-logclaw-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "key_abc123",
"name": "production-backend",
"prefix": "lc_proj_5a33...c717",
"createdAt": "2024-03-01T10:00:00Z",
"lastUsedAt": "2024-03-01T15:30:00Z"
},
{
"id": "key_def456",
"name": "staging-worker",
"prefix": "lc_proj_8b21...a4f2",
"createdAt": "2024-02-15T08:00:00Z",
"lastUsedAt": null
}
]API Keys
List API Keys
Returns all API keys for the authenticated project. Key values are masked — only the prefix is returned.
GET
/
api
/
admin
/
api-keys
List API Keys
curl --request GET \
--url https://otel.logclaw.ai/api/admin/api-keys \
--header 'x-logclaw-api-key: <api-key>'import requests
url = "https://otel.logclaw.ai/api/admin/api-keys"
headers = {"x-logclaw-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-logclaw-api-key': '<api-key>'}};
fetch('https://otel.logclaw.ai/api/admin/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://otel.logclaw.ai/api/admin/api-keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-logclaw-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://otel.logclaw.ai/api/admin/api-keys"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-logclaw-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://otel.logclaw.ai/api/admin/api-keys")
.header("x-logclaw-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://otel.logclaw.ai/api/admin/api-keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-logclaw-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "key_abc123",
"name": "production-backend",
"prefix": "lc_proj_5a33...c717",
"createdAt": "2024-03-01T10:00:00Z",
"lastUsedAt": "2024-03-01T15:30:00Z"
},
{
"id": "key_def456",
"name": "staging-worker",
"prefix": "lc_proj_8b21...a4f2",
"createdAt": "2024-02-15T08:00:00Z",
"lastUsedAt": null
}
]Authorizations
Your project API key (starts with lc_proj_)
⌘I