NewsCred

Webhooks

Webhooks allow you to subscribe to certain events on NewsCred to get programmatical notifications. When one of those events happen, we’ll send a HTTP POST payload with a JSON body to the configured callback URL.

Registering webhooks

To register a webhook, you will need to provide the following information

Supported events

asset_added

When an asset (article, image, video or raw file) is added to Library. An asset may be added to Library for several reasons including, but not limited to, uploading assets, completing a task, etc.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is asset_added.
data object Data of the event.
data[asset] object Data of the asset associated with the event.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be article, image, video or raw_file.
data[asset][links] object Links related to the asset
data[asset][links][self] string URL to fetch the asset’s details through NewsCred Open API.

Example

{
    "event_name": "asset_added",
    "data": {
        "asset": {
            "id": "019a86405de737b4ec3e616a4aeff981",
            "type": "image",
            "links": {
                "self": "https://api.newscred.com/v3/images/019a86405de737b4ec3e616a4aeff981"
            }
        }
    }
}

asset_removed

When an asset (article, image, video or raw file) is removed from Library. An asset may be removed from Library for several reasons including, but not limited to, deleting assets.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is asset_removed.
data object Data of the event.
data[asset] object Data of the asset associated with the event.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be article, image, video or raw_file.

Example

{
    "event_name": "asset_removed",
    "data": {
        "asset": {
            "id": "870825113a12950a7eeeb64a64236d49",
            "type": "article"
        }
    }
}

asset_modified

When an asset (article, image, video or raw file) is modified in Library. This event will be triggered for the modification of the asset's title, labels, file location and versions (of image, video or raw file).

Payload

Key Type Description
event_name string Name of the event. For this event, the value is asset_modified.
data object Data of the event.
data[asset] object Data of the asset associated with the event.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be article, image, video or raw_file.
data[asset][links] object Links related to the asset
data[asset][links][self] string URL to fetch the asset’s details through NewsCred Open API.

Example

{
    "event_name": "asset_modified",
    "data": {
        "asset": {
            "id": "019a86405de737b4ec3e616a4aeff951",
            "type": "image",
            "links": {
                "self": "https://api.newscred.com/v3/images/019a86405de737b4ec3e616a4aeff951"
            }
        }
    }
}

task_metadata_modified

When any of the following properties of a task is modified:

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_metadata_modifed.
data object Data of the event.
data[task] object Data of the task which has been removed.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch task through NewsCred Open API.

Example

{
    "event_name": "task_metadata_modified",
    "data": {
        "task": {
            "id": "870825113a12950a7eeeb64a64236dff",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/870825113a12950a7eeeb64a64236dff"
            }
        }
    }
}

task_removed

When a task is removed.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_removed.
data object Data of the event.
data[task] object Data of the task which has been removed.
data[task][id] string Unique identifier of the task.

Example

{
    "event_name": "task_removed",
    "data": {
        "task": {
            "id": "870825113a12950a7eeeb64a64236dff",
        }
    }
}

task_brief_added

When brief is added to a task.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_brief_added.
data object Data of the event.
data[task] object Data of the task associated with the brief.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task.
data[task][links][self] string URL to fetch the task through NewsCred Open API
data[task][links][brief] string URL to fetch the task brief through NewsCred Open API

Example

{
    "event_name": "task_brief_added",
    "data": {
        "task": {
              "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
              "links": {
                  "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
                  "brief": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/brief"
              }
        }
    }
}

task_brief_removed

When brief is removed from a task.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_brief_removed.
data object Data of the event.
data[task] object Data of the task associated with the brief.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task.
data[task][links][self] string URL to fetch the task through NewsCred Open API

Example

{
    "event_name": "task_brief_removed",
    "data": {
        "task": {
              "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
              "links": {
                  "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf"
              }
        }
    }
}

task_brief_modified

When brief of a task is modified.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_brief_modified.
data object Data of the event.
data[task] object Data of the task associated with the brief.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task.
data[task][links][self] string URL to fetch the task through NewsCred Open API
data[task][links][brief] string URL to fetch the task brief through NewsCred Open API

Example

{
    "event_name": "task_brief_modified",
    "data": {
        "task": {
              "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
              "links": {
                  "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
                  "brief": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/brief"
              }
        }
    }
}

task_asset_added

When an asset (article, image, video or raw file) is added to a Task.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_asset_added.
data object Data of the event.
data[task] object Data of the task associated with the deleted asset.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets of the task through NewsCred Open API.
data[asset] object Data of the asset associated with the event.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be article, image, video or raw_file.
data[asset][links] object Links related to the asset
data[asset][links][self] string URL to fetch the asset through NewsCred Open API.
data[asset][links][task] string URL to fetch the task of the asset through NewsCred Open API.

Example

{
    "event_name": "task_asset_added",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "asset": {
            "id": "870825113a12950a7eeeb64a64236d49",
            "type": "image",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/images/870825113a12950a7eeeb64a64236d49",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        }
    }
}

task_asset_removed

When an asset (article, image, video or raw file) is removed from a Task.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_asset_removed.
data object Data of the event.
data[task] object Data of the task associated with the deleted asset.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets of the task through NewsCred Open API.
data[asset] object Data of the asset associated with the event.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be article, image, video or raw_file.

Example

{
    "event_name": "task_asset_removed",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "asset": {
            "id": "870825113a12950a7eeeb64a64236d49",
            "type": "image"
        }
    }
}

task_asset_modified

When an asset (article, image, video or raw file) of a task is modified. This event will be triggered for the modification of the task asset's title, labels and versions (of image, video or raw file).

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_asset_modified.
data object Data of the event.
data[task] object Data of the task associated with the modified asset.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets of the task through NewsCred Open API.
data[asset] object Data of the asset associated with the event.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be article, image, video or raw_file.
data[asset][links] object Links related to the asset
data[asset][links][self] string URL to fetch the asset through NewsCred Open API.
data[asset][links][task] string URL to fetch the task of the asset through NewsCred Open API.

Example

{
    "event_name": "task_asset_modified",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "asset": {
            "id": "870825113a12950a7eeeb64a64236d49",
            "type": "image",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/images/870825113a12950a7eeeb64a64236d49",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        }
    }
}

task_asset_draft_added

When a new draft is added to an asset of a task. Currently supported asset types: image, video and raw_file.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_asset_draft_added.
data object Data of the event.
data[task] object Data of the task associated with the updated asset.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task.
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets of the task through NewsCred Open API.
data[asset] object Data of the asset for which a new draft was added.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be image, video or raw_file.
data[asset][links] object Links related to the asset
data[asset][links][self] string URL to fetch the asset through NewsCred Open API.
data[asset][links][task] string URL to fetch the task of the asset through NewsCred Open API.

Example

{
  "event_name": "task_asset_draft_added",
  "data": {
    "task": {
      "id":"3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links":{
        "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "assets": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/assets"
      }
    },
    "asset": {
      "id": "4d4ef1639c1046d49f51f5ab8cbb3fdf",
      "type": "image",
      "links": {
        "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/images/4d4ef1639c1046d49f51f5ab8cbb3fdf",
        "task": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf"
      }
    }
  }
}

task_asset_draft_removed

When a draft is removed from an asset of a task. Currently supported asset types: image, video and raw_file.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_asset_draft_removed.
data object Data of the event.
data[task] object Data of the task associated with the updated asset.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task.
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets of the task through NewsCred Open API.
data[asset] object Data of the asset for which a new draft was added.
data[asset][id] string Unique identifier of the asset.
data[asset][type] string Type of the asset. Value can be image, video or raw_file.
data[asset][links] object Links related to the asset
data[asset][links][self] string URL to fetch the asset through NewsCred Open API.
data[asset][links][task] string URL to fetch the task of the asset through NewsCred Open API.

Example

{
  "event_name": "task_asset_draft_removed",
  "data": {
    "task": {
      "id":"3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links":{
        "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "assets": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/assets"
      }
    },
    "asset": {
      "id": "4d43f1639c1046d49f51f5ab8cbb3fdf",
      "type": "image",
      "links": {
        "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/images/4d43f1639c1046d49f51f5ab8cbb3fdf",
        "task": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf"
      }
    }
  }
}

task_custom_field_modified

When values are updated for custom fields of a task.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is task_custom_field_modified.
data object Data of the event.
data[modified_custom_fields] array Array of custom fields which have been modified.
data[modified_custom_fields][<index>][id] string Unique identifier of the custom field.
data[modified_custom_fields][<index>][links] string Links related to the custom field.
data[modified_custom_fields][<index>][links][self] string URL to fetch the custom field through NewsCred Open API.
data[task] object Data of the task associated with the custom fields.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task.
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets of the task through NewsCred Open API.
data[task][links][custom_fields] string URL to fetch the custom fields associated the task through NewsCred Open API.

Example

{
  "event_name": "task_custom_field_modified",
  "data": {
    "modified_custom_fields": [
      {
        "id": "45aafc5f9eec1cde2028d3245435c2",
        "links": {
          "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields/45aafc5f9eec1cde2028d3245435c2",
        }
      },
      {
        "id": "45aafc5f9eec1cde2028d3245435c3",
        "links": {
          "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields/45aafc5f9eec1cde2028d3245435c3",
        }
      },
      {
        "id": "45aafc5f9eec1cde2028d3245435c4",
        "links": {
          "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields/45aafc5f9eec1cde2028d3245435c4",
        }
      }
    ],
    "task": {
      "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links": {
        "self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "assets": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/assets",
        "custom_fields": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields"
      }
    }
  }
}

external_sub_step_started

When an external sub step is started from a task.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is external_sub_step_started.
data object Data of the event.
data[task] object Data of the task associated with the external sub step.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets associated with the task through NewsCred Open API.
data[step] object Data of the step associated with the external sub step.
data[step][id] string Unique identifier of the step.
data[step][links] object Links related to the step.
data[step][links][task] string URL to fetch the task associated with the step through NewsCred Open API.
data[sub_step] object Data of the sub step associated with the external sub step.
data[sub_step][id] string Unique identifier of the sub step.
data[sub_step][links] object Links related to the sub step.
data[sub_step][links][self] string URL to fetch the sub step through NewsCred Open API.
data[sub_step][links][task] string URL to fetch the task associated with the sub step through NewsCred Open API.
data[sub_step][links][external_work] string URL to fetch the external work associated with the sub step through NewsCred Open API.
data[external_work] object Data of the external work associated with the external sub step.
data[external_work][external_system] string Name of the external system associated with the external work.
data[external_work][links] object Links related to the external work.
data[external_work][links][self] string URL to fetch the external work through NewsCred Open API.
data[external_work][links][task] string URL to fetch the task associated with the external work through NewsCred Open API.
data[external_work][links][sub_step] string URL to fetch the sub step associated with the external work through NewsCred Open API.

Example

{
    "event_name": "external_sub_step_started",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "step": {
            "id": "5f68911d83eeb10591933b49",
            "links": {
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        },
        "sub_step": {
            "id": "5f68911d83eeb10591933b4a",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "external_work": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work"
            }
        },
        "external_work": {
            "external_system": "Trello",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "sub_step": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a"
            }
        }
    }
}

external_sub_step_completed

When an external sub step is completed from a task.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is external_sub_step_completed.
data object Data of the event.
data[task] object Data of the task associated with the external sub step.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets associated with the task through NewsCred Open API.
data[step] object Data of the step associated with the external sub step.
data[step][id] string Unique identifier of the step.
data[step][links] object Links related to the step.
data[step][links][task] string URL to fetch the task associated with the step through NewsCred Open API.
data[sub_step] object Data of the sub step associated with the external sub step.
data[sub_step][id] string Unique identifier of the sub step.
data[sub_step][links] object Links related to the sub step.
data[sub_step][links][self] string URL to fetch the sub step through NewsCred Open API.
data[sub_step][links][task] string URL to fetch the task associated with the sub step through NewsCred Open API.
data[sub_step][links][external_work] string URL to fetch the external work associated with the sub step through NewsCred Open API.
data[external_work] object Data of the external work associated with the external sub step.
data[external_work][external_system] string Name of the external system associated with the external work.
data[external_work][links] object Links related to the external work.
data[external_work][links][self] string URL to fetch the external work through NewsCred Open API.
data[external_work][links][task] string URL to fetch the task associated with the external work through NewsCred Open API.
data[external_work][links][sub_step] string URL to fetch the sub step associated with the external work through NewsCred Open API.

Example

{
    "event_name": "external_sub_step_completed",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "step": {
            "id": "5f68911d83eeb10591933b49",
            "links": {
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        },
        "sub_step": {
            "id": "5f68911d83eeb10591933b4a",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "external_work": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work"
            }
        },
        "external_work": {
            "external_system": "Trello",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "sub_step": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a"
            }
        }
    }
}

external_sub_step_modified

When the assignee or due date of an external sub step is modified.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is external_sub_step_modfied.
data object Data of the event.
data[task] object Data of the task associated with the external sub step.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets associated with the task through NewsCred Open API.
data[step] object Data of the step associated with the external sub step.
data[step][id] string Unique identifier of the step.
data[step][links] object Links related to the step.
data[step][links][task] string URL to fetch the task associated with the step through NewsCred Open API.
data[sub_step] object Data of the sub step associated with the external sub step.
data[sub_step][id] string Unique identifier of the sub step.
data[sub_step][links] object Links related to the sub step.
data[sub_step][links][self] string URL to fetch the sub step through NewsCred Open API.
data[sub_step][links][task] string URL to fetch the task associated with the sub step through NewsCred Open API.
data[sub_step][links][external_work] string URL to fetch the external work associated with the sub step through NewsCred Open API.
data[external_work] object Data of the external work associated with the external sub step.
data[external_work][external_system] string Name of the external system associated with the external work.
data[external_work][links] object Links related to the external work.
data[external_work][links][self] string URL to fetch the external work through NewsCred Open API.
data[external_work][links][task] string URL to fetch the task associated with the external work through NewsCred Open API.
data[external_work][links][sub_step] string URL to fetch the sub step associated with the external work through NewsCred Open API.

Example

{
    "event_name": "external_sub_step_modified",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "step": {
            "id": "5f68911d83eeb10591933b49",
            "links": {
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        },
        "sub_step": {
            "id": "5f68911d83eeb10591933b4a",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "external_work": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work"
            }
        },
        "external_work": {
            "external_system": "Jira",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "sub_step": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a"
            }
        }
    }
}

external_sub_step_comment_added

When a top level comment is added to an external sub step.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is external_sub_step_comment_added.
data object Data of the event.
data[task] object Data of the task associated with the external sub step.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets associated with the task through NewsCred Open API.
data[step] object Data of the step associated with the external sub step.
data[step][id] string Unique identifier of the step.
data[step][links] object Links related to the step.
data[step][links][task] string URL to fetch the task associated with the step through NewsCred Open API.
data[sub_step] object Data of the sub step associated with the external sub step.
data[sub_step][id] string Unique identifier of the sub step.
data[sub_step][links] object Links related to the sub step.
data[sub_step][links][self] string URL to fetch the sub step through NewsCred Open API.
data[sub_step][links][task] string URL to fetch the task associated with the sub step through NewsCred Open API.
data[sub_step][links][external_work] string URL to fetch the external work associated with the sub step through NewsCred Open API.
data[sub_step][links][comments] string URL to fetch the comments associated with the sub step through NewsCred Open API.
data[comment] object Data of the comment.
data[comment][id] string Unique identifier of the comment.
data[comment][links] object Links related to the comment.
data[comment][links][self] string URL to fetch the comment through NewsCred Open API.
data[comment][links][task] string URL to fetch the task associated with the comment through NewsCred Open API.
data[comment][links][sub_step] string URL to fetch the sub step associated with the comment through NewsCred Open API.

Example

{
    "event_name": "external_sub_step_comment_added",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "step": {
            "id": "5f68911d83eeb10591933b49",
            "links": {
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        },
        "sub_step": {
            "id": "5f68911d83eeb10591933b4a",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "external_work": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work",
                "comments": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments"
            }
        },
        "comment": {
            "id": "8f68911d83eeb10591933b4q",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments/8f68911d83eeb10591933b4q",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "sub_step": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a"
            }
        }
    }
}

external_sub_step_comment_removed

When a top level comment is removed from an external sub step.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is external_sub_step_comment_removed.
data object Data of the event.
data[task] object Data of the task associated with the external sub step.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets associated with the task through NewsCred Open API.
data[step] object Data of the step associated with the external sub step.
data[step][id] string Unique identifier of the step.
data[step][links] object Links related to the step.
data[step][links][task] string URL to fetch the task associated with the step through NewsCred Open API.
data[sub_step] object Data of the sub step associated with the external sub step.
data[sub_step][id] string Unique identifier of the sub step.
data[sub_step][links] object Links related to the sub step.
data[sub_step][links][self] string URL to fetch the sub step through NewsCred Open API.
data[sub_step][links][task] string URL to fetch the task associated with the sub step through NewsCred Open API.
data[sub_step][links][external_work] string URL to fetch the external work associated with the sub step through NewsCred Open API.
data[sub_step][links][comments] string URL to fetch the comments associated with the sub step through NewsCred Open API.
data[comment] object Data of the comment.
data[comment][id] string Unique identifier of the comment.
data[comment][links] object Links related to the comment.
data[comment][links][task] string URL to fetch the task associated with the comment through NewsCred Open API.
data[comment][links][sub_step] string URL to fetch the sub step associated with the comment through NewsCred Open API.

Example

{
    "event_name": "external_sub_step_comment_removed",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "step": {
            "id": "5f68911d83eeb10591933b49",
            "links": {
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        },
        "sub_step": {
            "id": "5f68911d83eeb10591933b4a",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "external_work": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work",
                "comments": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments"
            }
        },
        "comment": {
            "id": "8f68911d83eeb10591933b4q",
            "links": {
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "sub_step": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a"
            }
        }
    }
}

external_sub_step_comment_modified

When a top level comment of an external sub step of a task is modified.

Payload

Key Type Description
event_name string Name of the event. For this event, the value is external_sub_step_comment_modified.
data object Data of the event.
data[task] object Data of the task associated with the external sub step.
data[task][id] string Unique identifier of the task.
data[task][links] object Links related to the task
data[task][links][self] string URL to fetch the task through NewsCred Open API.
data[task][links][assets] string URL to fetch the assets associated with the task through NewsCred Open API.
data[step] object Data of the step associated with the external sub step.
data[step][id] string Unique identifier of the step.
data[step][links] object Links related to the step.
data[step][links][task] string URL to fetch the task associated with the step through NewsCred Open API.
data[sub_step] object Data of the sub step associated with the external sub step.
data[sub_step][id] string Unique identifier of the sub step.
data[sub_step][links] object Links related to the sub step.
data[sub_step][links][self] string URL to fetch the sub step through NewsCred Open API.
data[sub_step][links][task] string URL to fetch the task associated with the sub step through NewsCred Open API.
data[sub_step][links][external_work] string URL to fetch the external work associated with the sub step through NewsCred Open API.
data[sub_step][links][comments] string URL to fetch the comments associated with the sub step through NewsCred Open API.
data[comment] object Data of the comment.
data[comment][id] string Unique identifier of the comment.
data[comment][links] object Links related to the comment.
data[comment][links][self] string URL to fetch the comment through NewsCred Open API.
data[comment][links][task] string URL to fetch the task associated with the comment through NewsCred Open API.
data[comment][links][sub_step] string URL to fetch the sub step associated with the comment through NewsCred Open API.

Example

{
    "event_name": "external_sub_step_comment_modified",
    "data": {
        "task": {
            "id": "5f6a0312a5963d0591015e3e",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "assets": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
            }
        },
        "step": {
            "id": "5f68911d83eeb10591933b49",
            "links": {
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e"
            }
        },
        "sub_step": {
            "id": "5f68911d83eeb10591933b4a",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "external_work": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/external-work",
                "comments": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments"
            }
        },
        "comment": {
            "id": "8f68911d83eeb10591933b4q",
            "links": {
                "self": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments/8f68911d83eeb10591933b4q",
                "task": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e",
                "sub_step": "https://api.newscred.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a"
            }
        }
    }
}

Security

You can provide a secret (random string up to 32 character) while registering a webhook. If provided, we will send the secret with the HTTP POST request in the Callback-Secret header when triggering the webhook event.

When you receive the event in your callback URL, you can validate the secret from the Callback-Secret header.

Event delivery

Acknowledgement

When you receive an event, acknowledge the delivery by returning an HTTP 200 or 202 status code. Anything other than 200 or 202 will be considered as delivery failure.

Timeout

It is expected that the callback endpoint will respond within 10 seconds of receiving the webhook event. If it takes more then 10 seconds, the connection will be terminated and will be considered as delivery failure.

Retry

In case of delivery failure, NewsCred will retry to deliver the event for up to three days with an exponential back off.

Duplicate events

In rare cases, callback endpoints might receive the same event more than once. Please make your event processing idempotent to guard against duplicated events.

Delivery sequence

NewsCred does not guarantee the delivery of events in the sequence in which they are generated. You can always use the NewsCred Open API to fetch the latest data.

Backward compatibility

The following changes are considered to be backward compatible: