Nurama Developers
Membership

Get logged-in user's memberships

Returns every membership record of the caller with `resource` (workspace or project) and public `user` populated. Ordered workspaces first, newest first.

GET
/memberships

Returns every membership record of the caller with resource (workspace or project) and public user populated. Ordered workspaces first, newest first.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/memberships"
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",    "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",    "resourceType": "workspace",    "roles": [      "workspaceOwner"    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "resource": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "slug": "string",      "description": "string",      "logo": "3c06f846-1ab1-40a9-8645-a19a9fdeae85",      "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0",      "color": "string",      "settings": {},      "roles": [        "string"      ],      "status": "active",      "createdAt": 1678886400000,      "updatedAt": 1678886400000    },    "user": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "firstName": "string",      "lastName": "string",      "displayName": "string",      "avatar": "01d8bd6c-6014-46aa-b5b1-14d337c9c779",      "color": "string",      "awards": [        "staff"      ],      "accountType": "standard"    }  }]