1. Onebox
  • Welcome to the Cold Mail Reseller API
  • Get Started
    • Overview
    • Authentication
    • Quick Start
  • Core Concepts
    • Onebox
    • Users
    • Domains
    • DNS Management
    • Pre-Warmup
    • Mailbox Warmup
    • OAuth Exports
    • Platform Exports
    • Mailboxes
    • Sandbox API
    • 1+ Year Subscriptions
    • Subscriptions
    • Domain Renewal
  • API Reference
    • Users
      • List Users
      • Get User
      • Create User
      • Update User
      • Delete User
    • Geo
      • List Countries
      • List States
    • Domains
      • Domain Protection
      • Domain Renewal
        • Get Domain Renewal Prices
        • Renew Domains
        • Toggle Domain Auto-Renew
      • Get Domain
      • List Available Aged Domains
      • Order Aged Domains
      • Get Domains by User
      • Check Domain Availability
      • Check Single Domain Availability
      • Check Workspace Existence
      • Set Domain Forwarding
      • Set Email Forwarding
      • Delete Domains
      • Enable Domain Protection
      • Cancel Domain Protection
    • DNS
      • Get DNS Records
      • Add DNS Records
      • Update DNS Record
      • Update Nameservers
      • Delete DNS Record
    • Mailboxes
      • List Mailboxes
      • Get Mailboxes by User
      • Get Mailbox
      • Get Admin Mailbox Details
      • Update Mailbox Details
      • Delete Mailbox
    • Mailbox Warmup
      • Add Warmup to Mailbox
      • Toggle Warmup
      • Update Warmup Settings
      • Delete Warmup Subscription
    • Orders
      • Get Order Status
      • Get Order Details
      • Create Order
      • Create Order (JSON)
      • Create Mailbox Order (JSON)
      • Process Order
    • Subscriptions
      • 1+ Year Subscription
        • Recreate Subscription
      • Get Subscriptions
      • Renew Subscriptions
      • Cancel Subscription
      • Toggle Auto-Renewal
    • Exports
      • Platform Exports
        • Get Platform Credentials
        • Get Platform Workspaces
        • Add Platform Credential
        • Export Mailboxes to Platform
        • Update Platform Credential
        • Remove Platform Credential
      • OAuth Exports
        • Perform OAuth
        • Add Client ID to Domains
    • Pre-Warmup
      • Sandbox
        • Get Sandbox Pre-warmup Domains
        • Order Sandbox Pre-warmup
        • Reset Sandbox Pre-warmup
      • Get Pre-warmup Domains
      • Order Pre-warmup
    • Placement Test
      • Create Placement Order
      • Get Placement Reports
    • Onebox
      • Connect Mailbox
        POST
      • List Connected Mailboxes
        GET
      • List Emails
        GET
      • Get Thread
        GET
      • Search Emails
        GET
      • Act On Thread
        POST
      • List Labels
        GET
      • Create Label
        POST
      • Rename Label
        PUT
      • Delete Label
        DELETE
      • Send Email
        POST
      • Disconnect Mailbox
        DELETE
    • ZapSites
      • ZapSites: how the flow fits together
      • Page
        • Scan Destination
        • Check Existing Sites For Destination
        • List ZapSites
        • Create ZapSite
        • Get ZapSite
        • Update ZapSite
        • Delete ZapSite
        • Duplicate ZapSite
      • Copy & Versions
        • Regenerate ZapSite Copy
        • List ZapSite Versions
        • Preview ZapSite Version
        • Rollback ZapSite
      • Preview & Leads
        • Preview ZapSite
        • List ZapSite Leads
        • Send Test Lead Alert
      • Deploy & Deployments
        • Deploy ZapSite
        • Update Deployment Settings
        • Remove Deployment
  • Resources
    • Errors
    • Rate Limits
    • Pagination
    • Sandbox
    • MCP
  • Webhooks
    • Overview
    • Events
      • DNS Events
      • Subscription Events
      • Prewarmup Events
      • Mailbox Warmup Events
      • Mailbox Events
      • Domain Events
  • Schemas
    • Error
    • Success
    • MessageResponse
    • User
    • Domain
    • ErrorResponse
    • Mailbox
    • Subscription
    • DnsRecord
    • Error Response
    • Pagination Meta
    • Action Error Response
    • PrewarmupOrderResult
    • OrderCreationResult
  1. Onebox

Act On Thread

POST
/onebox/action
Apply an action to one or more threads — mark read, star, move, label.
threadMessages maps each threadId to the list of messageId values within it that the action should apply to, so you can act on a single message or a whole thread.

Known action values#

read and unread are confirmed working against Gmail. The accepted vocabulary is enforced by the mail backend rather than by CMR, so an unrecognised value returns 400 with "action is required and must be a valid email action". Values that move or label mail take the data object.

Example#

{
  "userId": "K5PF9Y068AMDGENV5BTCNJJZK55F",
  "account": "andrew.lawyer@aurumlawyer.com",
  "threadMessages": {
    "1877937258181177440": ["<Gq3K93hRllxHkWlnjYO1wg@notifications.google.com>"]
  },
  "action": "read"
}

Request

Authorization
API Key
Add parameter in header
cmr-x-api-key
Example:
cmr-x-api-key: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Action applied. results holds one entry per thread, in request order.
Bodyapplication/json

🟠400Invalid action
🟠401Unauthorized
🟠404Not Found
🟠422Validation Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://customers.coldmailreseller.com/api/v1/integration/onebox/action' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userId": "K5PF9Y068AMDGENV5BTCNJJZK55F",
    "account": "andrew.lawyer@aurumlawyer.com",
    "threadMessages": {
        "1877937258181177440": [
            "<Gq3K93hRllxHkWlnjYO1wg@notifications.google.com>"
        ]
    },
    "action": "read",
    "data": {
        "folder": "archive",
        "label": "important"
    }
}'
Response Response Example
200 - Example 1
{
    "status": 200,
    "message": "Action applied",
    "data": {
        "message": "1 of 1 threads updated successfully.",
        "results": [
            {
                "success": true
            }
        ]
    }
}
Modified at 2026-10-02 12:23:00
Previous
Search Emails
Next
List Labels
Built with