I'm running into a somewhat frustrating
I'm running into a somewhat frustrating auth error when trying to trigger or list workflows via the
cloudflare
npm package …7 Replies
I have the following permissions for the API KEY:
Workers Tail:Read,
Workers Scripts:Edit,
Workers Scripts:Read
but I keep ketting this 400 error:
I double checked the values are present by printing them in the same script
what happens if you use the same API token but with
Authorization: Bearer $CLOUDFLARE_API_KEY
?Same error:
also tried without the email
@Matt Silverlock - hope you don't mind the ping — is there anything I'm missing here?
I created an API token in the dashboard but can't seem to auth against any workflow APIs
Remove the
X-Auth-Email
- just the single bearer token: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/Fresh token just created.

@martinklepsch - use the
verify
endpoint to test it (in the doc I linked)
That does work! thanks!
Now I guess I'm still wondering, is there a way to use this with the
cloudflare
package?
I tried the obvious of not passing an email but that didn't seem to work
And the docs don't mention the bearer auth
ah, pass as apiToken
:
Thanks @Matt Silverlock -- appreciate it!