VocalDocscontracts 1.65.0

Delete an event filter

DELETE /v1/event-filters/{filter_id}

PropertyValue
Operationdelete_event_filter
GroupEvents
Scopewebhooks:write
Route classcontrol
IdempotencyNo Idempotency-Key
AuditAudited webhooks.event_filter.delete (mutation)
Released in1.52.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Deletes the filter at the revision If-Match names (1.52.0). A filter a Webhook subscription references is refused with 409 event_filter_in_use; an open stream connection that named it keeps the values it read.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the webhooks:write scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl -X DELETE "$VOCAL_API/v1/event-filters/evf_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY" \
  -H 'If-Match: "1"'

Parameters

NameInTypeRequiredDescription
filter_idpathEventFilterIdyesThe id of an event filter: evf_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
if-matchheaderstringyesThe revision the change was made against, quoted as the ETag returns it, or * to overwrite.

Responses

StatusContent typeShapeError codes
200application/jsonEventFilterDeletion
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden, org_suspended
404application/jsonErrorEnvelopenot_found
409application/jsonErrorEnvelopeevent_filter_in_use
412application/jsonErrorEnveloperevision_mismatch
428application/jsonErrorEnvelopeprecondition_required
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is EventFilterDeletion.

FieldTypeRequiredDescription
deleted_atTimestampyes
idEventFilterIdyes
object"event_filter_deletion"yes