curl --request GET \
--url http://localhost/api/webhooks/configs/{id}/test \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhookID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"config": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint": "https://example.com",
"secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3",
"eventTypes": [
"TYPE1",
"TYPE2"
],
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"payload": "{\"data\":\"test\"}",
"statusCode": 200,
"retryAttempt": 1,
"status": "success",
"nextRetryAfter": "2023-11-07T05:31:56Z"
}
}Test a config by sending a webhook to its endpoint.
curl --request GET \
--url http://localhost/api/webhooks/configs/{id}/test \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhookID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"config": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint": "https://example.com",
"secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3",
"eventTypes": [
"TYPE1",
"TYPE2"
],
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"payload": "{\"data\":\"test\"}",
"statusCode": 200,
"retryAttempt": 1,
"status": "success",
"nextRetryAfter": "2023-11-07T05:31:56Z"
}
}The access token received from the authorization server in the OAuth 2.0 flow.
Config ID
"4997257d-dfb6-445b-929c-cbe2ab182818"
OK
Show child attributes
Show child attributes
"https://example.com"
"V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3"
["TYPE1", "TYPE2"]
true
"{\"data\":\"test\"}"
200
1
"success"