Every agent run creates a job. Jobs track the execution lifecycle from queued to completed. Use these endpoints to manage your jobs.
Job Statuses
| Status | Description |
|---|
queued | Job is waiting to be processed |
running | Agent is actively collecting data |
completed | Finished successfully — results are available |
failed | Encountered an error — check the error message |
cancelled | Cancelled by the user — no credits charged |
List All Jobs
Returns all jobs for your account, newest first.
curl https://api.mindcase.co/api/v1/jobs \
-H "Authorization: Bearer mk_live_abc123def456"
{
"jobs": [
{
"id": "job_7f3a2b1c",
"status": "completed",
"agent": "instagram/profile-scraper",
"row_count": 3,
"credits_used": 3,
"created_at": "2026-03-30T10:15:00Z",
"completed_at": "2026-03-30T10:15:32Z"
},
{
"id": "job_9e2d4a5b",
"status": "running",
"agent": "linkedin/company-employees",
"row_count": 0,
"credits_used": 0,
"created_at": "2026-03-30T10:12:00Z",
"completed_at": null
}
]
}
Get Job Status
curl https://api.mindcase.co/api/v1/jobs/job_7f3a2b1c \
-H "Authorization: Bearer mk_live_abc123def456"
{
"id": "job_7f3a2b1c",
"status": "completed",
"agent": "instagram/profile-scraper",
"row_count": 3,
"credits_used": 3,
"created_at": "2026-03-30T10:15:00Z",
"completed_at": "2026-03-30T10:15:32Z",
"expires_at": "2026-04-06T10:15:00Z"
}
Job results expire after 7 days. Download your data before the expires_at timestamp.
Get Job Results
Returns the collected data for a completed job. Returns 404 if the job is still running.
curl https://api.mindcase.co/api/v1/jobs/job_7f3a2b1c/results \
-H "Authorization: Bearer mk_live_abc123def456"
{
"status": "completed",
"row_count": 3,
"data": [
{
"username": "nike",
"fullName": "Nike",
"followersCount": 306000000,
"verified": true,
"biography": "Just Do It."
}
]
}
Cancel a Job
Cancel a queued or running job. Credits are not charged for cancelled jobs.
curl -X DELETE https://api.mindcase.co/api/v1/jobs/job_9e2d4a5b \
-H "Authorization: Bearer mk_live_abc123def456"
{
"job_id": "job_9e2d4a5b",
"status": "cancelled",
"message": "Job has been cancelled."
}