Example of Webhook Request
Request Mode
POST https://your-webhookHeaders
Content-Type: application/json
ComPDFKit-Signature: 8fef357511abec47a4a22313c1dcdb8bExample Payload
Request parameters
| Parameter | Data Type | Description |
|---|---|---|
| eventName | String | Current event type |
| webhookToken | String | ComPDFKit-Signature |
| sendTime | Date | Sending time |
| eventObject | String | Trigger object of the current event |
java
{
"eventName": "task.finish",
"webhookToken": "225c4d7461bb91133a91251cece9cce2",
"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, the eventObject is ataskId - If the current event type is a
fileobject, the eventObject is afileKey