Compatibility: the first rule of the set
Kept for integrations written against the single-rule API. Addresses the rule at position 0 of the set (rule is null when the set is empty); ruleCount says how many rules the set holds. New integrations use …/transformations.
Authorization
apiKey AuthorizationBearer <token>
API key in the Authorization header: Authorization: Bearer wv_live_…. Keys are created on the API keys page in the app, shown once, and scoped to your workspace. X-Api-Key: wv_live_… is accepted as a fallback for tools that can't set Authorization.
In: header
Path Parameters
endpointId*string
The endpoint id (also the capture token in its URL).
Format
uuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
{
"ruleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac",
"ruleCount": 0,
"endpointId": "c8d2c7e1-e4b1-4108-9e29-3429a36a1ef3",
"destinationId": "d0a0ebc7-d6b4-4f3c-a5af-5761a8148e3a",
"destinationUrl": "string",
"rule": {
"version": 1,
"name": "strip PII, flatten invoice",
"when": {
"all": [
{
"path": "body.type",
"op": "startsWith",
"value": "invoice."
}
]
},
"steps": [
{
"op": "keep",
"paths": [
"body.id",
"body.type",
"body.data.object"
]
},
{
"op": "rename",
"from": "body.data.object.id",
"to": "body.invoiceId"
},
{
"op": "redact",
"paths": [
"body.data.object.customer_email"
],
"with": "***"
},
{
"op": "set",
"path": "headers.X-Relayed-By",
"value": "webhookvault"
},
{
"op": "template",
"path": "body.summary",
"template": "{{body.type}} {{body.invoiceId}}"
}
]
},
"version": 0,
"updatedAt": "2019-08-24T14:15:22Z",
"featureInPlan": true,
"schemaUrl": "string"
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"traceId": "string"
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"traceId": "string"
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"traceId": "string"
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"traceId": "string"
}