Skip to main content

[en] Webhook payload

[en] The following payloads are sent for the three events:

Beispiel 1. [en] JSON sent for the Published event
{    
    "event": "PUBLISHED_EVENT",    
    "data": {        
        "resource_id": 1665635,        
        "resource_title": "Testpublication",        
        "format": "pdf"    
    },    
    "webhook_name": "Silvio Webhook Test"
}

[en] The following data is contained in the payload:

  • [en] event: type of event being reported

  • [en] resource_id: the ID of the item being assigned

  • [en] resource_title: title of the publication that was published

  • [en] format: the format the publication was published in

  • [en] webhook_name: name of the webhook used

Beispiel 2. [en] JSON sent for the Released event
{    
    "event": "STATUS_SET_TO_RELEASED_EVENT",    
    "data": {        
        "resource_id": 1665639,        
        "resource_title": "Testpublication 2"    
    },    
    "webhook_name": "Silvio Webhook Test"
}

[en] The following data is contained in the payload:

  • [en] event: type of event being reported

  • [en] resource_id: the ID of the item being released

  • [en] resource_title: title of the item that was released

  • [en] webhook_name: name of the webhook used

Beispiel 3. [en] JSON sent for the Assignment event
{    
    "event": "ASSIGNMENT_CREATED_EVENT",    
    "data": {        
        "resource_id": 1665712,        
        "resource_title": "Admonitions",        
        "language": "en",        
        "assignment_type": "review",        
        "startdate": "Monday 17/02/2025",        
        "enddate": "Monday 24/02/2025",        
        "startdate_timestamp": 1739833201,        
        "enddate_timestamp": 1740438001,        
        "assignment_link": "https://your.paligoapp.com/document/review/1665712/lang/en/#/assignment/282",        
        "api": false    
    },    
    "webhook_name": "Webhook Title"
}

[en] The following data is contained in the payload:

  • [en] event: type of event being reported

  • [en] resource_id: the ID of the item being assigned

  • [en] resource_title: title of the item that was assigned

  • [en] language: the language that was selected for the assignment

  • [en] assignment_type: the type of assignment (Contribution, Review, Translation or Translation review)

  • [en] startdate: the starting date set for the assignment

  • [en] enddate: the date for the deadline set for the assignment

  • [en] startdate_timestamp: start date represented as computer code

  • [en] enddate_timestamp: end date represented as computer code

  • [en] assignment_link: direct link to the assignment

  • [en] api: set to true or false, depending on whether or not the API was used to trigger the event

  • [en] webhook_name: name of the webhook used