Skip to content
Docs

People and invitations

GET
/api/workspaces/{ws}/members

Everyone in the workspace with their role (owner, admin or member), and invitations still waiting to be accepted. Agents use this rather than better-auth's routes, which need a session.

Authorization

session
cookiebetter-auth.session_token<token>

Set by POST /api/auth/sign-in/email.

Path Parameters

ws*string

The workspace id (from GET /api/me).

Response Body

People and invitations.

application/json
Example Request
curl -X GET 'https://app.useroster.work/api/workspaces/string/members'
Example Response
{  "members": [    {      "userId": "u_1",      "name": "Ada",      "email": "ada@acme.com",      "role": "owner",      "joinedAt": "2026-11-03T09:00:00.000Z"    }  ],  "invitations": [    {      "id": "inv_1",      "email": "sam@acme.com",      "role": "member",      "status": "pending",      "expiresAt": "2026-11-05T09:00:00.000Z"    }  ]}