Skip to main content
GET
/
organizations
/
{id}
Get organization
curl --request GET \
  --url https://app.usechar.ai/api/organizations/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "avatar_url": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "role": "<string>"
}

Authorizations

Authorization
string
header
required

WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.

Path Parameters

id
string
required

WorkOS organization ID (e.g., 'org_01ABC...')

Minimum string length: 1

Response

OK

Organization with the requesting user's role

id
string
required

WorkOS organization ID (e.g., org_01ABC...)

name
string
required

Organization name displayed in the dashboard.

slug
string
required

URL-friendly slug for routing and sharing.

avatar_url
string | null
required

URL to the organization logo or avatar, if set.

created_at
string<date-time>
required

Timestamp when the organization was created.

updated_at
string<date-time>
required

Timestamp when the organization was last updated.

role
string
required

User's role in this organization (e.g., 'admin', 'member')