GET
/
v1
/
teams
/
{teamId}
/
agents
/
activity-summary
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

const client = new OctosparkClient({
  token: process.env.OCTOSPARK_TOKEN
})

const response = await client.agents.getAgentActivitySummary({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
})
{
  "draftsAwaitingApproval": 1,
  "failedLegs": 1,
  "pausedRuns": 1,
  "approvedAgentPosts": 1,
  "lastRuns": [
    {
      "agentId": "<string>",
      "lastRunAt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

teamId
string
required

Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.

Response

AgentActivitySummaryResponse

draftsAwaitingApproval
integer
required

Agent-made draft or in-review posts with no scheduled, publishing or published leg yet.

Required range: x >= 0
failedLegs
integer
required

Failed scheduled legs of agent-made posts.

Required range: x >= 0
pausedRuns
integer
required

Agent runs currently paused (for example waiting on funds).

Required range: x >= 0
approvedAgentPosts
integer
required

Agent-made posts ever approved or given a scheduled, publishing or published leg.

Required range: x >= 0
lastRuns
object[]
required

Newest run per agent that has run at least once.