tasks

POST /tasks/bulk

Request

Request body

Example request

{
  "data": [
    {
      "action": "scraping",
      "callbackUrl": "https://api.example.com/webhook",
      "createdAt": "2023-12-01T10:30:00Z",
      "domain": "example.com",
      "fingerprintId": 101112,
      "id": 1234,
      "jobId": 987,
      "proxy": "user:password@127.0.0.1:8080",
      "result": "s3://bucket/path/result.json",
      "scrapeTime": 2.5,
      "solution": "captcha_solution_token",
      "statusMessage": "Task queued for processing",
      "tokenUsage": 42,
      "updatedAt": "2023-12-01T10:35:00Z",
      "userId": "user_123"
    }
  ]
}

Response

Tasks created

messagestring

Example response

{
  "data": {
    "created": 2,
    "tasks": [
      {
        "action": "scraping",
        "callbackUrl": "https://api.example.com/webhook",
        "createdAt": "2023-12-01T10:30:00Z",
        "domain": "example.com",
        "fingerprintId": 101112,
        "id": 1234,
        "jobId": 987,
        "proxy": "user:password@127.0.0.1:8080",
        "result": "s3://bucket/path/result.json",
        "scrapeTime": 2.5,
        "solution": "captcha_solution_token",
        "statusMessage": "Task queued for processing",
        "updatedAt": "2023-12-01T10:35:00Z",
        "userId": "user_123"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.