Get full details for one API key
curl --request GET \
--url https://socdefenders.ai/api/v1/keys/{keyId} \
--cookie sb-access-token=import requests
url = "https://socdefenders.ai/api/v1/keys/{keyId}"
headers = {"cookie": "sb-access-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-access-token='}};
fetch('https://socdefenders.ai/api/v1/keys/{keyId}', 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://socdefenders.ai/api/v1/keys/{keyId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "sb-access-token=",
]);
$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://socdefenders.ai/api/v1/keys/{keyId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "sb-access-token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://socdefenders.ai/api/v1/keys/{keyId}")
.header("cookie", "sb-access-token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://socdefenders.ai/api/v1/keys/{keyId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sb-access-token='
response = http.request(request)
puts response.read_body{
"data": {
"id": "00000000-0000-4000-8000-000000000123",
"key_prefix": "sk_live_zIc8",
"name": "Production SIEM",
"tier": "pro",
"scopes": [
"read:iocs",
"read:articles",
"read:articles:export",
"read:stix"
],
"rate_limit_per_minute": 1000,
"rate_limit_per_day": 1000000,
"total_requests": 142587,
"last_used_at": "2026-05-17T09:42:11Z",
"created_at": "2026-01-15T10:00:00Z",
"expires_at": null,
"revoked_at": null,
"allowed_ips": null
}
}{
"error": {
"code": "missing_api_key",
"message": "API key is required. Include it in the Authorization header as \"Bearer sk_live_...\"",
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found",
"request_id": "req_abc123"
}
}API Keys
Get full details for one API key
Returns the full metadata + lightweight usage summary for one API key. For deep analytics (latency percentiles, status-code breakdown, time series), use the usage endpoint.
GET
/
api
/
v1
/
keys
/
{keyId}
Get full details for one API key
curl --request GET \
--url https://socdefenders.ai/api/v1/keys/{keyId} \
--cookie sb-access-token=import requests
url = "https://socdefenders.ai/api/v1/keys/{keyId}"
headers = {"cookie": "sb-access-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-access-token='}};
fetch('https://socdefenders.ai/api/v1/keys/{keyId}', 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://socdefenders.ai/api/v1/keys/{keyId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "sb-access-token=",
]);
$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://socdefenders.ai/api/v1/keys/{keyId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "sb-access-token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://socdefenders.ai/api/v1/keys/{keyId}")
.header("cookie", "sb-access-token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://socdefenders.ai/api/v1/keys/{keyId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sb-access-token='
response = http.request(request)
puts response.read_body{
"data": {
"id": "00000000-0000-4000-8000-000000000123",
"key_prefix": "sk_live_zIc8",
"name": "Production SIEM",
"tier": "pro",
"scopes": [
"read:iocs",
"read:articles",
"read:articles:export",
"read:stix"
],
"rate_limit_per_minute": 1000,
"rate_limit_per_day": 1000000,
"total_requests": 142587,
"last_used_at": "2026-05-17T09:42:11Z",
"created_at": "2026-01-15T10:00:00Z",
"expires_at": null,
"revoked_at": null,
"allowed_ips": null
}
}{
"error": {
"code": "missing_api_key",
"message": "API key is required. Include it in the Authorization header as \"Bearer sk_live_...\"",
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found",
"request_id": "req_abc123"
}
}Authorizations
Session cookie (for API key management endpoints)
Path Parameters
API key ID (UUID)
Example:
"00000000-0000-4000-8000-000000000123"
Response
API key details. Full secret is never returned (only the prefix).
Show child attributes
Show child attributes
⌘I