---
title: "Get the authenticated caller"
---

> 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 authenticated caller

Path: CloudRaker Paperwork API › Account

`GET /me`

Returns the current caller as `userId`, `organizationId`, `tenantSlug`, `roles`, and the caller’s own display `name` / `avatarUrl`. Authorization: any authenticated organization member. An `admin` role grants access to organization-administration operations. Use this endpoint to discover the caller’s organization and privileges before calling scoped routes.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The authenticated caller and their organization.

#### Example

```json
{
  "userId": "user_01ABC…",
  "organizationId": "org_01XYZ…",
  "tenantSlug": "acme",
  "roles": [
    "admin"
  ],
  "name": "Ada Lovelace",
  "avatarUrl": "https://…/ada.png"
}
```

- `userId` (`getMe.response.200.userId`; string, required)
  - example `"user_01ABC…"`
- `organizationId` (`getMe.response.200.organizationId`; string, required)
  - example `"org_01XYZ…"`
- `tenantSlug` (`getMe.response.200.tenantSlug`; string, required)
  - example `"acme"`
- `roles` (`getMe.response.200.roles`; array<string>, required)
  - example `["admin"]`
- `name` (`getMe.response.200.name`; string, optional)
  - example `"Ada Lovelace"`
- `avatarUrl` (`getMe.response.200.avatarUrl`; string, optional)
  - example `"https://…/ada.png"`


Source: https://docs.cloudraker.com/paperwork/api/account/get-me/index.md
