What token permissions for IP List Edits?

Hi Cloudflare,

I’m trying to POST to https://api.cloudflare.com/client/v4/accounts/account_identifier/rules/lists/list_id/items to dynamically add IP Addresses to my list, but I can’t figure out what permission to give my token. There doesn’t seem to be an IP List permission…

When I added the Filter List permission, the request said my list_id couldn’t be found.


I believe filter list is the correct permissions. If you are getting a 404 when your list couldn’t be found, it means you have the wrong id for it.

1 Like

Thanks… :thinking: is the list_id just the name of the list that I typed when I created it? Or is the id something else?

The ID is the UUID of the list. If you open the list from https://dash.cloudflare.com/?to=/:account/configurations/lists it will be the last element of the URL.

1 Like

Oh thanks!

That’s a bit confusing, as the interface calls the name an “ID” and doesn’t display the UUID anywhere…

Thanks Cyb3r-Jak3, that’s very helpful I couldn’t find the documentation for this, as I too was using the ID named $listname and kept receiving 1000 errors.