Check API Key Status
GET
/
v1
/
auth
/
key
Check API Key Status
curl --request GET \
--url https://api.neosantara.xyz/v1/auth/key \
--header 'x-api-key: <api-key>'import requests
url = "https://api.neosantara.xyz/v1/auth/key"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.neosantara.xyz/v1/auth/key', 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://api.neosantara.xyz/v1/auth/key",
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-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://api.neosantara.xyz/v1/auth/key"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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://api.neosantara.xyz/v1/auth/key")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neosantara.xyz/v1/auth/key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "<string>",
"id": "<string>",
"authorized": true,
"tier": "<string>",
"permissions": [
{}
],
"usage_info": {
"daily": {
"used": 123,
"limit": 123,
"remaining": 123,
"reset_at": "<string>"
},
"monthly": {
"used": 123,
"limit": 123,
"remaining": 123,
"reset_at": "<string>"
}
},
"organization": "<string>",
"created": 123,
"_metadata": {
"status": true,
"processing_time": 123,
"timestamp": "<string>"
}
}Verify your access
Use this endpoint to validate your API Key, check your current subscription Tier, and monitor your Daily and Monthly token usage limits.
Returns
string
Always āauthorizationā.
string
Unique identifier for this authorization check (format:
auth- + 16 hex chars).boolean
Indicates if the provided API Key is valid and active.
string
The current tier of the API Key (e.g., āFreeā, āDeveloperā, āProductionā).
array
List of capabilities granted to this key (e.g.,
chat.completions, embeddings).object
Detailed breakdown of token usage and limits.
Hide usage_info properties
Hide usage_info properties
object
string
The organization identifier (default:
org-neosantara-ai).integer
Unix timestamp of the check.
object
Return Examples
Response 200
{
"object": "authorization",
"organization": "org-neosantara-ai",
"permissions": [
"chat.completions",
"embeddings",
"moderations"
],
"authorized": true,
"created": 1741477200,
"expires": null,
"id": "auth-a1b2c3d4e5f6g7h8",
"tier": "Developer",
"usage_info": {
"daily": {
"used": 1500,
"limit": 50000,
"remaining": 48500,
"reset_at": "2025-11-16T00:00:00.000Z"
},
"monthly": {
"used": 45000,
"limit": 2000000,
"remaining": 1955000,
"reset_at": "2025-12-01T00:00:00.000Z"
}
},
"_metadata": {
"creator": "neosantara.xyz",
"status": true,
"processing_time": 45,
"timestamp": "2025-11-15T10:20:00.123Z"
}
}
Last modified on November 30, 2025
āI
Check API Key Status
curl --request GET \
--url https://api.neosantara.xyz/v1/auth/key \
--header 'x-api-key: <api-key>'import requests
url = "https://api.neosantara.xyz/v1/auth/key"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.neosantara.xyz/v1/auth/key', 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://api.neosantara.xyz/v1/auth/key",
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-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://api.neosantara.xyz/v1/auth/key"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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://api.neosantara.xyz/v1/auth/key")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neosantara.xyz/v1/auth/key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "<string>",
"id": "<string>",
"authorized": true,
"tier": "<string>",
"permissions": [
{}
],
"usage_info": {
"daily": {
"used": 123,
"limit": 123,
"remaining": 123,
"reset_at": "<string>"
},
"monthly": {
"used": 123,
"limit": 123,
"remaining": 123,
"reset_at": "<string>"
}
},
"organization": "<string>",
"created": 123,
"_metadata": {
"status": true,
"processing_time": 123,
"timestamp": "<string>"
}
}