Skip to content
WhatSync/DocsAPI v1

Inspect an agent operation

Read the durable result of a management operation on this account, whichever app started it.

POST/api/v1/tools/get_operationRead
Key permissions
Read chats and messages
Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work

How it works

Running or unknown results must not be retried with a new key.

Body parameters

operationIdstring · uuidrequired

Use operation_id from a write response, or id from get_operation.

Response

The lookup returns id (not operation_id). result holds the original tool's result. Running or unknown outcomes require inspection before any new action.

Every response includes X-Request-Id. Errors use the shared error format and retry rules.

Schemas

Input JSON Schema
Input JSON Schema
{
  "type": "object",
  "properties": {
    "operationId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "operationId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Response JSON Schema
Response JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true,
          "description": "Provider or tool-specific fields; preserve unknown fields."
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": true
}