relay-inbox

Bulk Inbox Action

Apply a single action (read / unread / archive / unarchive / star / unstar) to up to 200 owned inbox emails in one atomic D1 batch. Only the user's own relay rows among the requested ids are touched; returns the number actually updated.

post/relay-inbox/bulk

Request

  • Base URL: https://api.aiapplyd.com/api/v1
  • URL: https://api.aiapplyd.com/api/v1/relay-inbox/bulk
  • Auth: HTTP bearer

Request body

action'read' | 'unread' | 'archive' | 'unarchive' | 'star' | 'unstar' required

Bulk inbox action applied to every id in the request (read/unread, archive/unarchive, star/unstar).

idsinteger[] required

The synced_email row ids to apply the action to (1..200). Only owned relay rows are touched.

Example request

{
  "action": "read",
  "ids": [
    9001,
    9002,
    9003
  ]
}

Response

Bulk action applied

successtrue required

Example response

{
  "data": {
    "updated": 3
  },
  "meta": {
    "duration": 150,
    "requestId": "req_abc123",
    "timestamp": "2026-10-13T10:27:20.268Z",
    "version": "v1"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.