Skip to content

Docs

get_activity

The activity feed of a content item, newest first: who did what and when, including which agent did it ("Claude asked to schedule the LinkedIn post"), reviewers' comments and verdicts, schedule changes and publishing results. Each item has a readable `summary`, the actor, and the raw event `data`. Page back with `before` (the `at` of the last item you have).

The activity feed of a content item, newest first: who did what and when, including which agent did it ("Claude asked to schedule the LinkedIn post"), reviewers' comments and verdicts, schedule changes and publishing results. Each item has a readable summary, the actor, and the raw event data. Page back with before (the at of the last item you have).

Access and cost

  • Kind: query
  • Scope: workspace
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "pieceId": {
      "format": "uuid",
      "type": "string"
    },
    "limit": {
      "default": 50,
      "maximum": 200,
      "minimum": 1,
      "type": "integer"
    },
    "before": {
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "pieceId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "actor": {
            "additionalProperties": false,
            "properties": {
              "kind": {
                "enum": [
                  "member",
                  "guest",
                  "agent",
                  "system"
                ],
                "type": "string"
              },
              "accountId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "agentClientId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "guestId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "accountId",
              "agentClientId",
              "guestId",
              "name"
            ],
            "type": "object"
          },
          "summary": {
            "type": "string"
          },
          "targetType": {
            "type": [
              "string",
              "null"
            ]
          },
          "targetId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "postId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "autopilot": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "agentClientId": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "agentName": {
                    "type": "string"
                  }
                },
                "required": [
                  "agentClientId",
                  "agentName"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "object"
          }
        },
        "required": [
          "id",
          "action",
          "at",
          "actor",
          "summary",
          "targetType",
          "targetId",
          "postId",
          "data"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "hasMore": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "hasMore"
  ],
  "type": "object"
}

Errors

[]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "Get a content item's activity"
}