Skip to main content
GET
/
agents
/
{agentId}
/
stats
Get agent statistics
curl --request GET \
  --url https://app.autoposting.ai/api-proxy/agents/{agentId}/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "agentId": "agent_01HXYZ",
    "totalRuns": 30,
    "successfulRuns": 28,
    "failedRuns": 2,
    "totalPostsGenerated": 28,
    "totalPostsPublished": 24,
    "averageRunDurationMs": 38000
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

agentId
string
required

Agent ID.

Response

Agent statistics.

success
boolean
data
object