David Micheau
11/10/2025, 10:20 AMContent-Type: multipart/form-data to wiremock, as it's the only accepted content-type accepted by my real third-party.
Using only basic JSON stub, is it possible to extract the body from the request and pass it to a webhook body ?
When I post my request with content-type application/json , the following stub works very well and I receive the transcript_id from the original request. But as soon as I send the original request with multipart/form-data, it doesn't work anymore :
{
"request": ...,
"response": ...,
"serveEventListeners": [
{
"name": "webhook",
"parameters": {
...
"body": "{\"transcript_id\":\"{{jsonPath originalRequest.body '$.transcript_id'}}\"}"
}
}
]
}Tom
11/10/2025, 10:41 AM{{jsonPath originalRequest.parts.<part name>.body '$.transcript_id'}}