Create a webhook endpoint
Authorization
apiKey x-api-key<token>
Your workspace API key. Create and manage keys in your Fusial workspace settings. Keys carry scopes of the form resource:action.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/webhook-endpoints" \ -H "Content-Type: application/json" \ -d '{ "url": "string", "events": [ "contract.created" ] }'{
"endpoint": {
"id": "string",
"url": "string",
"description": "string",
"events": [
"string"
],
"enabled": true,
"consecutiveFailures": 0,
"disabledAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
},
"secret": "string"
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}