---
title: "Access Token Device Information · RUAL Documentation"
description: "The access-token .device property: detailed device, browser and application info for requests to your RUAL application."
canonical: https://docs.rual.nl/cluster/user-token-info
language: en
---

# Access Token Device Information

Access tokens now include detailed device information through the new `.device` property, providing better insights into how users access your application.

### Migration from .agent

The `.agent` property has been deprecated and replaced with `.device`.

### Device Properties

The `.device` object contains detailed information about the user's device, browser, and application:

| Property | Type | Description |
| --- | --- | --- |
| `device_type` | `string\|null` | Type of device: `"mobile"`, `"desktop"`, `"tablet"`, `"server"`, or `null` |
| `device_os` | `string\|null` | Operating system: `"mac"`, `"windows"`, `"linux"`, `"android"`, `"ios"`, `"chromeos"`, `"other"`, or `null` |
| `application` | `string\|null` | Application name (e.g., `"chrome-mac"`, `"safari-ios"`) or `null` |
| `browser` | `string\|null` | Browser engine: `"chrome"`, `"firefox"`, `"safari"`, `"edge"`, `"electron"`, or `null` |
| `browser_version` | `string\|null` | Version of the browser engine (e.g., `"120.0.0.0"`) or `null` |
| `device_version` | `string\|null` | Operating system version (e.g., `"10.15.7"`, `"18.3.2"`) or `null` |
| `is_mobile` | `boolean` | `true` if the device is a mobile phone |
| `is_tablet` | `boolean` | `true` if the device is a tablet |
| `is_desktop` | `boolean` | `true` if the device is a desktop or laptop |
| `is_bot` | `boolean` | `true` if the request comes from a bot or crawler |
| `is_ai` | `boolean` | `true` if the bot is an AI assistant or training bot |
| `ai_type` | `string\|null` | Type of AI bot: `"crawl"` (training/research) or `"user"` (user-initiated), or `null` |

### Desktop Browser Examples

Here are examples of device information for common desktop browsers:

#### Chrome on macOS

```
{
  "ai_type": null,
  "application": "chrome-mac",
  "browser": "chrome",
  "browser_version": "140.0.0.0",
  "device_os": "mac",
  "device_type": "desktop",
  "device_version": "10.15.7",
  "is_ai": false,
  "is_bot": false,
  "is_desktop": true,
  "is_mobile": false,
  "is_tablet": false
}
```

#### Safari on macOS

```
{
  "ai_type": null,
  "application": "safari-mac",
  "browser": "safari",
  "browser_version": "17.0",
  "device_os": "mac",
  "device_type": "desktop",
  "device_version": "10.15.7",
  "is_ai": false,
  "is_bot": false,
  "is_desktop": true,
  "is_mobile": false,
  "is_tablet": false
}
```

### Mobile Device Examples

Device information for mobile devices provides detailed insights into the user's mobile experience:

#### iPhone Safari

```
{
  "ai_type": null,
  "application": "safari-ios",
  "browser": "safari",
  "device_os": "ios",
  "device_type": "mobile",
  "device_version": "18.3.2",
  "is_ai": false,
  "is_bot": false,
  "is_desktop": false,
  "is_mobile": true,
  "is_tablet": false
}
```

#### Android Chrome

```
{
  "ai_type": null,
  "application": "chrome-android",
  "browser": "chrome",
  "browser_version": "114.0.0.0",
  "device_os": "android",
  "device_type": "mobile",
  "device_version": "10",
  "is_ai": false,
  "is_bot": false,
  "is_desktop": false,
  "is_mobile": true,
  "is_tablet": false
}
```

### Tablet Examples

#### iPad

```
{
  "ai_type": null,
  "application": "safari-ios",
  "browser": "safari",
  "browser_version": "17.0",
  "device_os": "ios",
  "device_type": "tablet",
  "device_version": "17.0",
  "is_ai": false,
  "is_bot": false,
  "is_desktop": false,
  "is_mobile": false,
  "is_tablet": true
}
```

### Bot and AI Examples

The device information can also identify various types of bots and AI assistants accessing your application:

#### Search Engine Bot

```
{
  "ai_type": null,
  "application": "googlebot",
  "browser": "googlebot",
  "device_os": null,
  "device_type": "server",
  "is_ai": false,
  "is_bot": true,
  "is_desktop": false,
  "is_mobile": false,
  "is_tablet": false
}
```

#### AI Assistant (User-Initiated)

```
{
  "ai_type": "user",
  "application": "chatgpt-user",
  "browser": "chatgpt-user",
  "browser_version": "1.0",
  "device_os": null,
  "device_type": "server",
  "is_ai": true,
  "is_bot": true,
  "is_desktop": false,
  "is_mobile": false,
  "is_tablet": false
}
```
