API Stream Keys Got Error 10009 - Forbidden

Here’s the setting

Here’s the request

POST /client/v4/accounts/[account_id]/stream/keys HTTP/1.1
Host: api.cloudflare.com
Content-Type: application/json
Authorization: Bearer [API TOKEN]

Is there something wrong?

Check out this thread: Using API Token to create Signing Key possible?

My tokens work with the keys API. Could there be something else? Are you using the correct account ID?

Have you found out about
“code”: 10009,
“message”: “Forbidden”

Might want to check if your token is correct, @sdube. There is currently no issue with API Tokens. This help article has good steps in verifying your token: https://support.cloudflare.com/hc/en-us/articles/200167836-Managing-API-Tokens-and-Keys (especially the part titled " Main Causes for API Token Related Issues")

Thank you very much Renan, i’ve figured it out and updated my post in case in helps others.

Have a good day !

1 Like