> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molesignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RUM client token

> Get or create the application-bound token that browser and mobile code embeds.

```http theme={null}
GET /api/v1/auth/tokens/rum?application_id=<id>
```

Returns the RUM client token of a [RUM application](https://docs.molesignal.com/en-US/rum/applications.md) and creates it on the first call. The application must exist: create it first. The token has the form `msrum_<prefix>_<secret>`, holds only `rum.write` for that application, and never expires. Embed it in browser or mobile code, where end users can read it. The call requires `api_tokens.manage`.

**Query parameters**

| Param | Type | Required | Notes |
| - | - | - | - |
| `application_id` | string | Yes | The identifier of an application of the workspace. |

```bash cURL theme={null}
curl "http://localhost:5080/api/v1/auth/tokens/rum?application_id=checkout-web" \
  -H "authorization: Bearer $MS_JWT"
```

```json 200 theme={null}
{
  "id": "3KDZpGNwn5vO9dhXyE3am4qhihX",
  "prefix": "dYrZbAh2UcL2HL7g",
  "token": "msrum_dYrZbAh2UcL2HL7g_<secret>",
  "role_id": "<rum-client-role-id>",
  "role_key": "rum_client",
  "role_name": "RUM client",
  "token_kind": "rum_client",
  "application_id": "checkout-web",
  "service_account_id": null,
  "expires_at_micros": null,
  "created_at_micros": 1790000000000000
}
```

An `application_id` that is not an identifier answers `400`, and one that no application has answers `404`. Use the same identifier as `applicationId` in the SDK. See [RUM applications](https://docs.molesignal.com/en-US/rum/applications.md#client-token).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.