GET
/
v1
/
teams
/
{teamId}
/
tracking
/
recent-content
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

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

const response = await client.tracking.listRecentContent({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  query: {},
})
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "lastUsedAt": "<string>",
      "useCount": 123,
      "draftCount": 123,
      "channels": [
        {
          "socialAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ],
      "lastPostId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agentRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agentScheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}

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.

Query Parameters

kind
enum<string>

Restrict the list to assets or to posts; omit for both, merged newest first.

Available options:
asset,
post
sinceDays
string

a string to be decoded into a number

limit
string

a string to be decoded into a number

Response

Success

data
object[]
required