Organizations
Get organization with members
Get organization details including members and pending invitations.
GET
/api/orgs/{orgId}better-auth.session_token<token>
Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Path Parameters
orgId*string
curl -X GET "https://loading/api/orgs/string"{
"id": "string",
"name": "string",
"slug": "string",
"createdAt": "2019-08-24T14:15:22Z",
"members": [
{
"userId": "string",
"displayName": "string",
"email": "string",
"role": "owner",
"joinedAt": "2019-08-24T14:15:22Z"
}
],
"invitations": [
{
"id": "string",
"email": "string",
"role": "owner",
"token": "string",
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"requestId": "req_abc123"
}