---
title: "The caller's existing organization, if any"
---

> 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.

# The caller's existing organization, if any

Path: CloudRaker Workspace API › Onboarding

`GET /onboarding/memberships`

Answers whether a signed-in caller whose session carries no organization already belongs to one — the state left behind when a membership is created after the session was issued, since session claims are only set at authentication. Returns the organization the session should be re-scoped into, or null when the caller has none and creating one is the right next step. Read-only: it never creates or changes anything, and pending invitations do not count as an organization.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/onboarding/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/onboarding/memberships"

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

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

print(response.text)
```

## Responses

### 200

The caller's organization, or null when they have none.

#### Example

```json
{
  "organizationId": "org_01J…"
}
```

- `organizationId` (`getOnboardingMembership.response.200.organizationId`; string | null, required)
  - example `"org_01J…"`


Source: https://docs.cloudraker.com/workspace/api/onboarding/get-onboarding-membership/index.md
