Trigger a webhook event with a CSV attachment.

Send a multipart/form-data request with the CSV file and, optionally, the event name and a message. Defaults to the file.deduction.ready event.

Notes:

  • file is required and must be a non-empty .csv (max 10 MB).
  • event defaults to file.deduction.ready. It is validated by its root segment — the parent before the first dot (e.g. the root of file.publisher is file) — which must be a registered topic; an unknown root returns 400 listing the valid roots. This mirrors delivery routing, so subscribers on "file" receive any file.* event.
  • The generated download URL is a pre-signed URL valid for 15 minutes.
Headers
  • Authorization
    Type: string
    required

    Authentication JWT used to validate your session. Format: Bearer {token}

Body
required
application/json

Optional human-readable message included in the event payload.

Responses
Request Example for post/api/v1/webhook-trigger
curl https://sandbox.bmgmoney.com/law/api/v1/webhook-trigger \
  --request POST \
  --header 'Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAMLheAAAAAAA0%2BuSeid%2BULvsea4JtiGRiSDSJSI%3DEUifiRBkKG5E2XzMDjRfl76ZC9Ub0wnz4XsNiRVBChTYbJcE3F' \
  --header 'Content-Type: multipart/form-data' \
  --form 'File=@filename' \
  --form 'Event=' \
  --form 'Message='
{
  "event": "string",
  "fileName": "string",
  "downloadUrl": "string"
}