Skip to main content
PATCH
Manage Email Thread
This API reference has not been updated for the currently available endpoint.
Adds or removes labels on a thread addressed by id alone, returning thread_id and the resulting labels. No inbox is named, so it resolves account-wide. Writes to the shared AgentMail workspace: Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, and what you write here is visible and editable by the next caller. The scoped twin is patch_agentmail_inbox_thread.

Example

First time? Point any MCP client at https://mcp.aisa.one/mcp — Claude Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client opens a browser, you click Allow once, and there is no key to paste. Your agent then reaches every endpoint through a few meta tools: search, list_categories, get_details and batch_quote are free, batch_use is billed per call. Setup per client is in Connect via MCP; the live tool list and what each call costs are on aisa.one/mcp.
Set this endpoint up in your agent →

Request contract

  • Method and path: PATCH /apis/v1/agentmail/threads/{thread_id}
  • Availability: disabled
This endpoint is disabled and cannot be called. Its historical request, schema and pricing declarations are retained for reference.
  • Request URL template: https://api.aisa.one/apis/v1/agentmail/threads/{thread_id}
  • thread_id: path; required
  • Runtime facts: b99ca4149ff3daae12d76cfc531f5283e79e7d7a4e0325efb1f93efd8385607e
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.012 USD per successful request. Your account price may differ; use a request quote where supported. Currently disabled.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

thread_id
string
required

ID of thread.

Body

application/json
add_labels
string[]

Labels to add to thread. Cannot be system labels.

remove_labels
string[]

Labels to remove from thread. Cannot be system labels. Takes priority over add_labels (in the event of duplicate labels passed in).

Response

Response with status 200

labels
string[]
required

Labels of thread.

thread_id
string
required

ID of thread.