Skip to main content
POST
/
api
/
agents
/
run
Manually trigger agent run
curl --request POST \
  --url https://app.dacard.ai/api/agents/run \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "running",
    "triggerType": "schedule",
    "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "artifactsGenerated": 123,
    "tasksCompleted": 123,
    "totalTasks": 123,
    "tokensUsed": 123,
    "errorMessage": "<string>",
    "startedAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z",
    "durationMs": 123
  }
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Body

application/json
agentId
string<uuid>
required

The agent to run

productId
string<uuid>

Optional product context for the run

Response

Agent run result

data
object