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

# Message posted in a request

> The payload Qobra sends with the request_message_created trigger: the posted message and the request it belongs to.

Qobra sends this call each time a message is posted in a request, when the webhook subscribes to the `request_message_created` trigger. For the headers, the envelope and the delivery rules, see the [webhooks overview](https://docs.qobra.co/integration_documentation/webhook/webhook.md).

With the `request_message_created` trigger, `data` holds the posted `message`
and the `request` it belongs to. Use it, for instance, to notify a team in
another tool when an employee asks a question about their commissions.

Users are always given as an object with `id`, `email` and `name`.

`message` contains:

| Field | Description |
| - | - |
| `id` | Message ID |
| `content` | Message content as plain text, with HTML entities (`&amp;`, `&lt;`…) unescaped |
| `created_at` | Date the message was posted |
| `author` | User who posted the message |
| `mentioned_users` | Users mentioned in the message |
| `files` | Files attached to the message, each with `id` and `name` |

`request` contains:

| Field | Description |
| - | - |
| `id` | Request ID |
| `name` | Request name |
| `status` | Request status: `open` or `closed` |
| `url` | Link to the request in Qobra |
| `created_at` | Date the request was created |
| `creator` | User who created the request |
| `assignee` | User assigned to the request, or `null` |
| `members` | Users who are members of the request |
| `topic` | Request topic with `id` and `name`, or `null` |
| `statements` | Statements linked to the request, each with its `user`, `year` and `month` |

```json theme={null}
{
  "event": "request_message_created",
  "data": {
    "message": {
      "id": "6729f1c2a1b2c3d4e5f60718",
      "content": "Could you check my commission on this statement?",
      "created_at": "2026-11-05T09:30:00Z",
      "author": {
        "id": "6501a2b3c4d5e6f708192a3b",
        "email": "jane.doe@example.com",
        "name": "Jane Doe"
      },
      "mentioned_users": [
        {
          "id": "6501a2b3c4d5e6f708192a3c",
          "email": "john.smith@example.com",
          "name": "John Smith"
        }
      ],
      "files": [
        { "id": "6729f1c2a1b2c3d4e5f60719", "name": "deal_export.csv" }
      ]
    },
    "request": {
      "id": "6729f0a1a1b2c3d4e5f60700",
      "name": "Commission dispute",
      "status": "open",
      "url": "https://app.qobra.co/requests/6729f0a1a1b2c3d4e5f60700",
      "created_at": "2026-11-05T09:00:00Z",
      "creator": {
        "id": "6501a2b3c4d5e6f708192a3b",
        "email": "jane.doe@example.com",
        "name": "Jane Doe"
      },
      "assignee": {
        "id": "6501a2b3c4d5e6f708192a3c",
        "email": "john.smith@example.com",
        "name": "John Smith"
      },
      "members": [
        {
          "id": "6501a2b3c4d5e6f708192a3b",
          "email": "jane.doe@example.com",
          "name": "Jane Doe"
        },
        {
          "id": "6501a2b3c4d5e6f708192a3c",
          "email": "john.smith@example.com",
          "name": "John Smith"
        }
      ],
      "topic": { "id": "6600b1c2d3e4f5a6b7c8d9e0", "name": "Commissions" },
      "statements": [
        {
          "user": {
            "id": "6501a2b3c4d5e6f708192a3b",
            "email": "jane.doe@example.com",
            "name": "Jane Doe"
          },
          "year": 2026,
          "month": 10
        }
      ]
    }
  }
}
```
