cURL
curl --request GET \ --url https://api.example.com/api/v1/workspace-memberships \ --header 'Authorization: Bearer <token>'
{ "data": [ { "privileges": [ "ROLE_WORKSPACE_OWNER" ], "userId": "<string>", "workspaceId": "<string>", "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "user": { "id": "<string>", "email": "[email protected]", "name": "<string>", "picture": "<string>", "updatedAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "emailVerified": true }, "workspace": { "name": "<string>", "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
user
workspace
Successful Response
Show child attributes
ROLE_WORKSPACE_OWNER
ROLE_WORKSPACE_ADMIN
ROLE_WORKSPACE_MEMBER
1
Was this page helpful?