Query Parameter not accepted with API key(

Hello dear community,

I'm doing a workflow, and I want it to be triggered by a webhook. Everything looks fine, so I get the proper API key, and I'm trying to do a request, but it is not working for whatever reason. Here is the link I am using in this scenario. And here is the way I am attaching workflow API key. Everything looks fine. I'm following the docs.
But I'm constantly getting the error that the API key is wrong. I have tried rotating that already.

https://api.retool.com/v1/workflows/2dfc410c-7895-424c-a0a3-1f46d787XXXXXXX/startTrigger?workFlowApiKey=retool_wk_7deebb106614469188c3fbf0ffXXXXXX

Hey @Bogdan_Mind,
It looks like you may be trying to pass the X-Workflow-Api-Key as a URL Param rather than as a header.

If you want to test in Retool you can set up a new RestAPI resource and the call will look something like this

Yes that's exactly what I'm trying to do. I'm passing it as an URL parameter. I intentionally do not want to pass it to as header. And I thought this is the option number two in docs.

If I pass it as header it works. But I want just a url to work too. Is this possible?

Hey @Bogdan_Mind ,

Got it, that makes sense. It looks like it might be as simple as a typo? You’re passing workFlowApiKey, notice the capital β€˜F’, but the URL param workflowApiKey no capital.

1 Like

I believe this is correct! Give it a shot and let us know if you still need assistance, @Bogdan_Mind.

The issue is caused by typo in thr URL parameter name.you are passing workFlowApikey(capital β€˜F’) but it should be workflowApikey(lower-case β€˜f’),as required by the API.

Here is the updated api link:

https://api.retool.com/v1/workflows/{WORKFLOW_ID}/startTrigger?workflowApiKey={YOUR_API_KEY}