Webhook Request Example
Request Mode
POST https://your-webhookRequest Headers
Content-Type: application/json
ComPDF-Signature: 8fef357511abec47a4a22313c1dcdb8bExample
Request Parameters
| Parameter | Data type | Description |
|---|---|---|
| eventName | String | Current event type |
| webhookToken | String | ComPDF-Signature |
| sendTime | Date | Send time |
| eventObject | String | Object that triggered the current event |
java
{
"eventName": "task.finish",
"webhookToken": "8fef357511abec47a4a22313c1dcdb8b",
"sendTime": Thu Dec 15 14:45:47 GMT+08:00 2022,
"eventObject": "e74d60a6-fbd3-4d7d-9efa-0dc70297ee0b"
}Note:
eventObject:
- If the current event type is a
taskobject,eventObjectistaskId - If the current event type is a
fileobject,eventObjectisfileKey