Skip to main content
GET
/
agents
/
{agentId}
/
runs
/
{runId}
Get a specific run
curl --request GET \
  --url https://app.autoposting.ai/api-proxy/agents/{agentId}/runs/{runId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "run_01HXYZ",
    "agentId": "agent_01HXYZ",
    "status": "completed",
    "postsGenerated": 1,
    "tokensUsed": 850,
    "error": null,
    "startedAt": "2024-01-10T09:00:00Z",
    "completedAt": "2024-01-10T09:00:45Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required

Agent ID.

runId
string
required

Run ID.

Response

The agent run.

success
boolean
data
object

A single execution of an agent.