Get the caller's API key
curl --request GET \
--url https://web-api.soxai.site/api-key/secret \
--header 'Authorization: Bearer <token>'import requests
url = "https://web-api.soxai.site/api-key/secret"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web-api.soxai.site/api-key/secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"API_Key Info": {
"apikey_key": "<api key>",
"apikey_expires": 30,
"apikey_created_at": "2026-09-08T00:00:00+00:00"
}
}{
"error": "http-error",
"error_msg": "Invalid authentication credentials. <reason>"
}{
"error": "forbidden",
"error_msg": "Not enough permission"
}{
"error": "rate-limited",
"error_msg": "Rate limit exceeded. Retry after <n> seconds."
}{
"error": "internal-server-error",
"error_msg": "Failed to fetch data: <error_message>"
}API Keys
Get the caller's API key
Read back the API key issued to the caller’s own account.
Parameters
- None. This endpoint takes no path, query or body parameter.
Response
200{"API_Key Info": {"apikey_key", "apikey_expires", "apikey_created_at"}}when the caller holds a key.200{"message": "API Key does not exist!"}when they do not.
Errors
- None. A caller with no API key is not a
404: the absence is reported inside the200body, so check forAPI_Key Inforather than the status code. Create a key withPOST /api-key/secret.
Authorization
- Scheme:
Authorization: Bearer <idToken>orsoxai-api-key: <api key>. - Any authenticated caller. The key returned is the caller’s own and nobody else’s, so no role is required.
GET
/
api-key
/
secret
Get the caller's API key
curl --request GET \
--url https://web-api.soxai.site/api-key/secret \
--header 'Authorization: Bearer <token>'import requests
url = "https://web-api.soxai.site/api-key/secret"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web-api.soxai.site/api-key/secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"API_Key Info": {
"apikey_key": "<api key>",
"apikey_expires": 30,
"apikey_created_at": "2026-09-08T00:00:00+00:00"
}
}{
"error": "http-error",
"error_msg": "Invalid authentication credentials. <reason>"
}{
"error": "forbidden",
"error_msg": "Not enough permission"
}{
"error": "rate-limited",
"error_msg": "Rate limit exceeded. Retry after <n> seconds."
}{
"error": "internal-server-error",
"error_msg": "Failed to fetch data: <error_message>"
}