Supercheck LogoSupercheck
Organizations API

Get organization details

Returns organization details, the caller's role, and project/member counts. Requires membership. Requires an interactive browser session. Project-scoped CLI tokens receive 403.

GET
/api/organizations/{id}

Authorization

sessionCookie
cookiebetter-auth.session_token<token>

Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.

Path Parameters

id*string

Organization ID

Response Body

Organization details

application/json
  1. response
success?boolean
organization?
Example Request
curl -X GET 'https://demo.supercheck.dev/api/organizations/string'
Example Response
{  "success": true,  "organization": {    "id": "string",    "name": "string",    "slug": "string",    "logo": "string",    "createdAt": "2019-08-24T14:15:22Z",    "metadata": {},    "role": "string",    "stats": {      "projectCount": 0,      "memberCount": 0    }  }}