# Inbox desk act

`POST /workspace/inbox/threads/act` · Rivier · inbox

Do one thing to many conversations at once (archive, done, reopen, status, trash, restore, junk, snooze, assign, read, star, label), listed or found by a search (at most 1000). Answers a batch id to undo it.

- Scope: inbox:write
- Mcp: rivier_mail_triage
- Graphql: Mutation.inboxDeskAct
- Sdk: inbox.desk.act
- Cli: inbox desk act

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "minItems": 1,
      "maxItems": 200
    },
    "query": {
      "type": "object",
      "properties": {
        "folder": {
          "type": "string",
          "enum": [
            "inbox",
            "sent",
            "archive",
            "junk",
            "trash",
            "held",
            "snoozed",
            "starred",
            "all"
          ]
        },
        "q": {
          "type": "string",
          "maxLength": 500
        }
      },
      "additionalProperties": false
    },
    "action": {
      "type": "string",
      "enum": [
        "archive",
        "unarchive",
        "done",
        "reopen",
        "status",
        "trash",
        "restore",
        "junk",
        "notjunk",
        "snooze",
        "unsnooze",
        "assign",
        "unassign",
        "read",
        "unread",
        "star",
        "unstar",
        "label",
        "move_to_inbox"
      ]
    },
    "until": {
      "type": "string",
      "maxLength": 40
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "waiting",
        "done"
      ]
    },
    "assignee": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ]
    },
    "add": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80
      },
      "maxItems": 20
    },
    "remove": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80
      },
      "maxItems": 20
    }
  },
  "required": [
    "action"
  ],
  "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/act' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "action": "archive"
}'
```
