System and Security

Get status of a system delayed task

get/accounts/{account_id}/delayed_tasks/{task_id}

Request

  • Base URL: https://api.huntflow.ru/v2
  • URL: https://api.huntflow.ru/v2/accounts/{account_id}/delayed_tasks/{task_id}
  • Auth: HTTP bearer

Path parameters

account_idinteger required
task_idstring uuid required

Task ID

Response

Successful Response

task_idstring uuid required

Task ID

state'enqueued' | 'inprogress' | 'success' | 'failed' required

An enumeration.

creatednumber required

Unix timestamp of task creation

updatednumber

Unix timestamp of the last task update

created_datetimestring date-time required

Date and time of task creation (ISO 8601)

updated_datetimestring date-time

Date and time of the last task update (ISO 8601)

Example response

{
  "created": 1561006501.318867,
  "updated": 1561006501.318867,
  "created_datetime": "2020-01-01T00:00:00+03:00",
  "updated_datetime": "2020-01-01T00:00:00+03:00",
  "states_log": [
    {
      "timestamp": 1561006501.318867,
      "datetime": "2020-01-01T00:00:00+03:00",
      "comment": "Some text"
    }
  ]
}

Changes

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