---
title: "Get the current organization"
---

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

# Get the current organization

Path: CloudRaker Workspace API › Organization Settings

`GET /organization`

Returns the caller's organization as `id`, `name`, and `slug`. Authorization: any authenticated organization member. Returns 404 if the organization cannot be resolved.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The current organization.

#### Example

```json
{
  "organization": {
    "id": "org_01H…",
    "name": "Acme Inc",
    "assistantName": "string",
    "slug": "acme",
    "domains": [
      "acme.com"
    ],
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
```

- `organization` (`getOrganization.response.200.organization`; object, required)
  - `id` (`getOrganization.response.200.organization.id`; string, required)
    - example `"org_01H…"`
  - `name` (`getOrganization.response.200.organization.name`; string, required)
    - example `"Acme Inc"`
  - `assistantName` (`getOrganization.response.200.organization.assistantName`; any of, required)
    - any of: `string`, `null`
  - `slug` (`getOrganization.response.200.organization.slug`; string | null, required) — Tenant key. Immutable — `PATCH /organization` only renames.
    - example `"acme"`
  - `domains` (`getOrganization.response.200.organization.domains`; array<string>, required)
    - example `["acme.com"]`
  - `createdAt` (`getOrganization.response.200.organization.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `updatedAt` (`getOrganization.response.200.organization.updatedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`


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