Using Webhooks with an API Key

I’m trying to use a webhook with a web server that supports an API key for authentication. I’ve tried several iterations, but the one that feels like it should work looks like this:

http://localhost:1234/my/url/path/?api-key=MY_API_KEY&

I would expect the Plex webhook payload to be &'d onto the URL, but that doesn’t appear to be the case. I’ve achieved success using a Plex webhook using Basic auth (to another endpoint), but my target endpoint requires either Digest or an API key. I’ve also tested the above with a manually constructed URL to my desired endpoint (which does work):

http://localhost:1234/my/url/path/?api-key=MY_API_KEY&foo=bar

I’d want to keep the traffic local (i.e., not use a WAN intermediary). Any suggestions?

Server Version#: 4.125.1

UPDATE: something got into a bad state and I’m not sure whether it was the OS (macOS 14.4), the target server, or the Plex server, but bouncing everything sorted the issue. I was getting this to the Plex server log before the bounce:

Mar 19, 2024 13:11:40.574 [0x16fa77000] DEBUG - [HttpClient/HCl#4571] HTTP/1.1 (0.3s) 401 response from POST http://localhost:1234/my/url/path/?api-key=MY_API_KEY (reused)

However now, with everything bounced, this construction works.

http://localhost:1234/my/url/path/?api-key=MY_API_KEY

I’m not sure what (reused) is or means in this context, but it went away.