---
title: "List my memberships"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List my memberships

Path: CloudRaker Workspace API › Organization Settings

`GET /memberships`

Lists the CALLER's own active organization memberships (shaped for the sidebar org switcher), not the org's member list. Authorization: any authenticated member of the tenant. Not paginated.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/memberships \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/memberships';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/memberships"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The caller's active memberships.

#### Example

```json
{
  "memberships": [
    {
      "id": "string",
      "organization_id": "org_01H…",
      "organization_name": "string",
      "role": {
        "slug": "admin"
      },
      "status": "active",
      "logoUrl": "string"
    }
  ]
}
```

- `memberships` (`listMemberships.response.200.memberships`; array<object>, required)
  - `id` (`listMemberships.response.200.memberships.id`; string, required)
  - `organization_id` (`listMemberships.response.200.memberships.organization_id`; string, required)
    - example `"org_01H…"`
  - `organization_name` (`listMemberships.response.200.memberships.organization_name`; string, required)
  - `role` (`listMemberships.response.200.memberships.role`; object, required)
    - `slug` (`listMemberships.response.200.memberships.role.slug`; string, required)
      - example `"admin"`
  - `status` (`listMemberships.response.200.memberships.status`; string, required)
    - example `"active"`
  - `logoUrl` (`listMemberships.response.200.memberships.logoUrl`; string | null, required) — URL of the org's logo content (`/organization-logos/{orgId}/content`), or null when the org has no logo.


Source: https://docs.cloudraker.com/workspace/api/organization-settings/list-memberships/index.md
