Anvesh
API ReferenceAutomation

Get task status

Retrieve the current status and details of a specific automation task. **Possible statuses:** - `idle` - Task is queued but not yet started - `running` - Task is currently scraping - `completed` - Task finished successfully - `stopped` - Task was stopped by user - `error` - Task encountered an error

GET
/automation/tasks/{task_id}

Path Parameters

task_id*string

The unique task ID

Header Parameters

X-API-Key*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:8000/automation/tasks/string" \  -H "X-API-Key: string"
{
  "data": {
    "id": 1,
    "name": "Example"
  },
  "error": false,
  "message": "Operation completed successfully",
  "success": true
}
{
  "data": {
    "errors": [
      "field -> error message"
    ]
  },
  "error": true,
  "message": "Validation error",
  "success": false
}
{
  "data": {
    "errors": [
      "field -> error message"
    ]
  },
  "error": true,
  "message": "Validation error",
  "success": false
}
{
  "data": {
    "errors": [
      "field -> error message"
    ]
  },
  "error": true,
  "message": "Validation error",
  "success": false
}
{
  "data": {
    "errors": [
      "field -> error message"
    ]
  },
  "error": true,
  "message": "Validation error",
  "success": false
}
{
  "data": {
    "errors": [
      "field -> error message"
    ]
  },
  "error": true,
  "message": "Validation error",
  "success": false
}
{
  "data": {
    "errors": [
      "field -> error message"
    ]
  },
  "error": true,
  "message": "Validation error",
  "success": false
}