Patch message metadata
Update message metadata using patch semantics. Only updates keys present in the request. Pass null as value to delete a key.
Authorization
BearerAuth Project Bearer token (e.g., "Bearer sk-ac-xxxx")
In: header
Path Parameters
Session ID
uuidMessage ID
uuidRequest Body
application/json
PatchMessageMeta payload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://loading/api/v1/session/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/meta" \ -H "Content-Type: application/json" \ -d '{ "meta": {} }'{
"code": 0,
"error": "string",
"msg": "string",
"data": {
"meta": {}
}
}{
"code": 0,
"error": "string",
"msg": "string"
}{
"code": 0,
"error": "string",
"msg": "string"
}Store message to session POST
Supports JSON and multipart/form-data. In multipart mode: the payload is a JSON string placed in a form field. The format parameter indicates the format of the input message (default: openai, same as GET). The blob field should be a complete message object: for openai, use OpenAI ChatCompletionMessageParam format (with role and content); for anthropic, use Anthropic MessageParam format (with role and content); for acontext (internal), use {role, parts} format. The optional meta field allows attaching user-provided metadata to the message, which can be retrieved via get_messages().metas or updated via patch_message_meta().
Get message observing status for a session GET
Returns the count of observed, in_process, and pending messages