GET/api/v1/workspace
Get the current workspace
The workspace the API key belongs to, with the caller's role and the workspace settings.
PARAMETERS
- workspace_idquery · string
- Read another workspace by id. Only honored for admin keys; every other key gets its own workspace.e.g. string
REQUEST
curl "https://gateway.kumkuat.ai/api/v1/workspace" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://gateway.kumkuat.ai/api/v1/workspace", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/workspace", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"description": "",
"is_active": true,
"is_owner": true,
"name": "Acme Corp",
"role": "owner",
"settings": {},
"workspace_id": "ws_0512272171984c7fb4b7"
}
