GET /v1/admin/orgs

Tags: admin_orgs

Parameters

NameInTypeRequiredDescription
qquerystring,nullFree-text search across slug and name (case-insensitive
substring match). Empty string ≡ omitted ≡ "all orgs".
cursorquerystring,nullOpaque cursor from a prior next_cursor. Omitted on the first
page.
limitqueryinteger,nullPage size. Clamped to [1, 100]. Default 30.

Responses

200

JSON
{
  "$ref": "#/components/schemas/ListOrgsResponse"
}

400 — INVALID_REQUEST — malformed cursor

403 — FORBIDDEN — platform admin required

Code samples

TypeScript

TypeScript
import { firecase } from "@firecase/sdk";

const result = await firecase.get("/admin/orgs");
console.log(result);

Python

Python
import firecase

result = firecase.get("/admin/orgs")
print(result)

curl

Bash
curl -X GET https://api.firecase.ai/v1/admin/orgs \
  -H "Authorization: Bearer $FIRECASE_API_KEY" \
  -H "Content-Type: application/json"