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.
To register a webhook, you will need to provide the following information
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.
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. |
{
"event_name": "asset_added",
"data": {
"asset": {
"id": "019a86405de737b4ec3e616a4aeff981",
"type": "image",
"links": {
"self": "https://api.newscred.com/v3/images/019a86405de737b4ec3e616a4aeff981"
}
}
}
}
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.
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 . |
{
"event_name": "asset_removed",
"data": {
"asset": {
"id": "870825113a12950a7eeeb64a64236d49",
"type": "article"
}
}
}
When an asset (article, image, video or raw file) is modified in Library. Currently this event will be triggered only for the modification of the asset’s labels (both standard and custom).
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. |
{
"event_name": "asset_modified",
"data": {
"asset": {
"id": "019a86405de737b4ec3e616a4aeff951",
"type": "image",
"links": {
"self": "https://api.newscred.com/v3/images/019a86405de737b4ec3e616a4aeff951"
}
}
}
}
When any of the following properties of a task is modified:
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. |
{
"event_name": "task_metadata_modified",
"data": {
"task": {
"id": "870825113a12950a7eeeb64a64236dff",
"links": {
"self": "https://api.newscred.com/v3/tasks/870825113a12950a7eeeb64a64236dff"
}
}
}
}
When a task is removed.
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. |
{
"event_name": "task_removed",
"data": {
"task": {
"id": "870825113a12950a7eeeb64a64236dff",
}
}
}
When brief is added to a task.
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 |
{
"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"
}
}
}
}
When brief is removed from a task.
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 |
{
"event_name": "task_brief_removed",
"data": {
"task": {
"id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
"links": {
"self": "https://api.newscred.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf"
}
}
}
}
When brief of a task is modified.
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 |
{
"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"
}
}
}
}
When an asset (article, image, video or raw file) is added to a Task.
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. |
{
"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"
}
}
}
}
When an asset (article, image, video or raw file) is removed from a Task.
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 . |
{
"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"
}
}
}
When an asset (article, image, video or raw file) of a task is modified. Currently this event will be triggered only for the modification of the task asset’s labels (both standard and custom).
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. |
{
"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"
}
}
}
}
When a new draft is added to an asset of a task. Currently supported asset types: image, video and raw_file.
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. |
{
"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"
}
}
}
}
When a draft is removed from an asset of a task. Currently supported asset types: image, video and raw_file.
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. |
{
"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"
}
}
}
}
When values are updated for custom fields of a task.
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. |
{
"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"
}
}
}
}
When an external sub step is started from a task.
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. |
{
"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"
}
}
}
}
When an external sub step is completed from a task.
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. |
{
"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"
}
}
}
}
When the assignee or due date of an external sub step is modified.
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. |
{
"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"
}
}
}
}
When a top level comment is added to an external sub step.
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. |
{
"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"
}
}
}
}
When a top level comment is removed from an external sub step.
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. |
{
"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"
}
}
}
}
When a top level comment of an external sub step of a task is modified.
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. |
{
"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"
}
}
}
}
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.
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.
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.
In case of delivery failure, NewsCred will retry to deliver the event for up to three days with an exponential back off.
In rare cases, callback endpoints might receive the same event more than once. Please make your event processing idempotent to guard against duplicated events.
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.
The following changes are considered to be backward compatible: