Retrieve a single agent definition with its 10 most recent runs.
Permission: agents:read (Pro plan and above)
curl --request GET \
--url https://app.dacard.ai/api/agents/{id} \
--cookie __session={
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentType": "strategic_intelligence",
"name": "<string>",
"description": "<string>",
"status": "active",
"config": {
"schedule": "<string>",
"notifySlack": true,
"productIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"lastRunAt": "2023-11-07T05:31:56Z",
"lastRunStatus": "completed",
"totalRuns": 123,
"successRate": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"recentRuns": [
{
"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
}
]
}
}Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.
Agent definition ID
Agent definition with recent runs
Show child attributes
Was this page helpful?
curl --request GET \
--url https://app.dacard.ai/api/agents/{id} \
--cookie __session={
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentType": "strategic_intelligence",
"name": "<string>",
"description": "<string>",
"status": "active",
"config": {
"schedule": "<string>",
"notifySlack": true,
"productIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"lastRunAt": "2023-11-07T05:31:56Z",
"lastRunStatus": "completed",
"totalRuns": 123,
"successRate": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"recentRuns": [
{
"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
}
]
}
}