---
title: "The caller's preferences"
---

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

Path: CloudRaker Workspace API › Me

`GET /me/preferences`

Returns the caller's own preferences — `language` (or null if never set), `developer` (developer-mode flag, defaults to false), `notifications`, and `files` (the sort of the file list). Authorization: any authenticated member of the organization (no administrator role required).

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The caller's preferences.

#### Example

```json
{
  "language": "en",
  "developer": false,
  "notifications": {
    "approvalRequested": true,
    "humanTask": true,
    "runState": true,
    "signingProgress": true
  },
  "files": {
    "sortKey": "name",
    "sortDirection": "asc"
  }
}
```

- `language` (`getMyPreferences.response.200.language`; any of, required) — The user's chosen language, or null if never set.
  - example `"en"`
  - any of:
    - `string`: one of `"en"`, `"fr-ca"`
    - `null`
- `developer` (`getMyPreferences.response.200.developer`; boolean, required) — Whether developer mode is enabled. Defaults to false.
  - example `false`
- `notifications` (`getMyPreferences.response.200.notifications`; object, required) — Notification preferences, always fully populated (missing keys read true).
  - `approvalRequested` (`getMyPreferences.response.200.notifications.approvalRequested`; boolean, required) — Email when something needs the user to approve or review it. Defaults to true.
  - `humanTask` (`getMyPreferences.response.200.notifications.humanTask`; boolean, required) — Email when a task is ready for (or assigned to) the user. Defaults to true.
  - `runState` (`getMyPreferences.response.200.notifications.runState`; boolean, required) — Email when something the user started pauses or fails. Defaults to true.
  - `signingProgress` (`getMyPreferences.response.200.notifications.signingProgress`; boolean, required) — Email when a recipient signs or declines a document the user sent, or when it completes. Defaults to true.
- `files` (`getMyPreferences.response.200.files`; object, required) — File list sort preferences, always fully populated (missing keys read their default).
  - `sortKey` (`getMyPreferences.response.200.files.sortKey`; string, required) — Field the file list is ordered by. Defaults to name.
    - one of `"createdAt"`, `"kind"`, `"name"`, `"size"`, `"updatedAt"`; example `"name"`
  - `sortDirection` (`getMyPreferences.response.200.files.sortDirection`; string, required) — Direction of that ordering. Defaults to asc.
    - one of `"asc"`, `"desc"`; example `"asc"`


Source: https://docs.cloudraker.com/workspace/api/me/get-my-preferences/index.md
