# Inbox presence heartbeat

`POST /workspace/inbox/threads/{id}/presence` · Rivier · inbox

Say the caller is viewing or replying to a conversation (repeat every 15 seconds); answers who else is.

- Scope: inbox:write
- Graphql: Mutation.inboxPresenceHeartbeat
- Sdk: inbox.presence.heartbeat
- Cli: inbox presence heartbeat

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "viewing",
        "replying",
        "idle"
      ]
    }
  },
  "required": [
    "kind"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/workspace/inbox/threads/{id}/presence' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "kind": "viewing"
}'
```
