---
title: "Send my session message"
url: https://hexelstudio.com/docs/api/titan-user/person/send-my-session-message
---

# Send my session message

**POST** `/titan/user/sessions/{id}/messages`

Queue a message for the caller's own durable session (active or idle; SESSION_NOT_ACTIVE otherwise): its SHA-256 and size only, at most 64 KiB; the app writes the text to the session's content store. Idempotent per op_id (the same op_id with other content is OP_ID_CONFLICT); at most 32 waiting (RATE_LIMITED). NOT_FOUND also unless the workspace's enforced session profile allows remote_steering. Authorized by the user access token of the person the durable sessions act for; NOT_FOUND unless person sessions is on.

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. The person's user-route token: a user access token from the deployment's identity provider for an audience only the person routes accept, carrying their use claim. The Gateway verifies it; the edge does not. A session's token is refused here, and a user-route token is refused as a session's. Served only while the deployment turns the person routes on; NOT_FOUND otherwise.

## Body parameters

- `content_sha256: string`

- `content_size_bytes: integer`

- `op_id: string`

## Returns

`200` Successful response; exact status varies by operation. (`object`)

- `durable_session_id: string`

- `message: object`

  - `claim_expires_at: string`

  - `content_sha256: string`

  - `content_size_bytes: integer`

  - `created_at: string`

  - `finished_at: string`

  - `leg_session_id: string`

  - `message_id: string`

  - `reason: string`

  - `state: string`

    One of: `"pending"`, `"running"`, `"completed"`, `"refused"`, `"failed"`

- `replayed: boolean`

## Errors

- `default` Rejected request.

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/user/sessions/{id}/messages' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "content_sha256": "string",
  "content_size_bytes": 0,
  "op_id": "string"
}'
```

### Response (200)

```json
{
  "durable_session_id": "string",
  "message": {
    "claim_expires_at": "2026-01-01T00:00:00Z",
    "content_sha256": "string",
    "content_size_bytes": 0,
    "created_at": "2026-01-01T00:00:00Z",
    "finished_at": "2026-01-01T00:00:00Z",
    "leg_session_id": "string",
    "message_id": "string",
    "reason": "string",
    "state": "pending"
  },
  "replayed": true
}
```

### Response (default)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
