---
title: "Runtime configuration"
description: "Dynamically adjust collaboration settings in your app with straightforward API calls. Adjust secrets, webhook URLs, and more."
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/collaboration/operations/configure.md)

# Runtime configuration

Dynamically adjust collaboration settings in your app with straightforward API calls. Adjust secrets, webhook URLs, and more.

Configure runtime settings in Tiptap Collaboration to manage your collaboration environment directly via the REST API.

These settings let you modify secrets, webhook URLs, and more, particularly when adapting to changes in your project requirements or security protocols, without restarting your application.

## Settings overview

Several settings can be adjusted dynamically:

| Key                            | Description                                                                                                                                                                 |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `secret`                       | [JWT token secret](https://tiptap.dev/docs/v2/collaboration/getting-started/authenticate.md), auto-generated on the first launch                                                                                                           |
| `api_secret`                   | API secret to use in the Authorization header, auto-generated on the first launch                                                                               |
| `allowed_origins`              | Validates `Origin` headers against the provided values (comma separated), e.g., `https://test.tiptap.dev,https://prod.tiptap.dev`; If not set, validation is disabled           |
| `authentication_disabled`      | Set to `1` to disable authentication, `0` to enable (default: `0`)                                                                                                          |
| `webhook_url`                  | URL for receiving webhook callbacks                                                                                                                                |
| `webhook_loader_url`           | Optional webhook URL for initially loading documents. See [webhooks](https://tiptap.dev/docs/v2/collaboration/core-concepts/webhooks.md#loader-webhook) for more information. |
| `webhook_version`              | Version of the webhook                                                                                                                                 |
| `webhook_awareness`            | Enable awareness webhooks for user activity, tracking `user.connected` and `user.disconnected` events (`1` for enabled, `0` for disabled)                                    |
| `webhook_log_errors_only`      | Log only webhook errors; successful webhook logs are disabled                                                                                            |
| `default_auto_versioning`      | Set to `1` to enable auto versioning, `0` to disable (default: `0`)                                                                                                    |
| `default_auto_versioning_interval` | Interval for auto versioning in seconds (default: `30` seconds)                                                                                               |
| `auto_versioning_all_fragments` | Set to `1` to make auto versioning listen for changes on any fragment/field of the doc (default is just `default`)                                                                                               |
| `name`                         | Instance name for identification                                                                                                                       |

## Managing settings via API

The collaboration platform offers a straightforward API for managing these settings. Replace `:key` with the setting key you wish to update.

### Create or overwrite settings

Use this call to add or update settings:

```bash
curl --location --request PUT 'https://YOUR_APP_ID.collab.tiptap.cloud/api/admin/settings/:key' \
--header 'Authorization: YOUR_SECRET_FROM_SETTINGS_AREA' --header 'Content-Type: text/plain' \
-d 'your value'
```

### List current settings

Use this call to retrieve a list of all current settings:

```bash
curl --location 'https://YOUR_APP_ID.collab.tiptap.cloud/api/admin/settings' \
--header 'Authorization: YOUR_SECRET_FROM_SETTINGS_AREA'
```

### Retrieve a specific setting

Use this call to retrieve the value of a particular setting:

```bash
curl --location 'https://YOUR_APP_ID.collab.tiptap.cloud/api/admin/settings/:key' \
--header 'Authorization: YOUR_SECRET_FROM_SETTINGS_AREA'
```

### Delete a setting

Use this call to delete a setting:

```bash
curl --location --request DELETE 'https://YOUR_APP_ID.collab.tiptap.cloud/api/admin/settings/:key' \
--header 'Authorization: YOUR_SECRET_FROM_SETTINGS_AREA'
```

## Server performance metrics

Use the `/api/statistics` endpoint to gather server performance data, including total document count, peak concurrent connections, total connections over the last 30 days, and lifetime connection counts.
Review the [metrics](https://tiptap.dev/docs/v2/collaboration/operations/metrics.md) page for additional information.

```bash
curl --location 'https://YOUR_APP_ID.collab.tiptap.cloud/api/statistics' \
--header 'Authorization: YOUR_SECRET_FROM_SETTINGS_AREA'
```
