CopyHero

Read Task

GET
/api/v1/tasks/{task_id}

Get one workflow run (task): status, failure reason, product and store ids.

task_id is the id a workflow.completed or workflow.failed webhook carries.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

task_id*Task Id

Response Body

Successful Response

application/json
  1. response

One workflow run (task): its status, why it failed, and what it worked on.

id*Id
batch_id*Batch Id
status*Status
Value in"pending""running""completed""failed""cancelled"
failure_reason?|

Set when status is failed, as in workflow.failed.

failed_job_type?string|null
blueprint_id?integer|null
store_id?integer|null
internal_product_id?|null
created_at*Created At
Formatdate-time
updated_at*Updated At
Formatdate-time
Example Request
curl -X GET 'https://app.copyhero.app/api/v1/tasks/0'
Example Response
{  "id": 0,  "batch_id": 0,  "status": "pending",  "failure_reason": "string",  "failed_job_type": "string",  "blueprint_id": 0,  "store_id": 0,  "internal_product_id": "17d65d0a-2bba-46da-af25-e6db2fc23598",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}