Create a webhook
POST
/system/webhooks
3.0.0, administrators: a webhook for document events; the answer has the secret of the signatures (only this once). 400 for a URL that is no http(s) or has credentials.
Authorizations
httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)
Request Body
application/json
JSON "url": "string", "events": [ "string" ], "collections": [ "string" ], "active": true, "includeDocuments": true
{
}
Responses
application/json
JSON "id": "string", "url": "string", "events": [ "string" ], "collections": [ "string" ], "active": true, "includeDocuments": true, "failures": 0, "disabledAt": "2024-01-01T00:00:00Z", "createdAt": "2024-01-01T00:00:00Z", "declared": true, "secret": "string"
{
}
