Access_rights for a group of api`s

Hi, how i can get a key for a group of API´s?

I don´t want specify each api_id, and get a key por each api. I have more less one hundred APIs, how i can use these api`s with one key?

Thanks.

Take a look at the documentation for policies, or for how key session objects are structured:

Both of these have interfaces in the dashboard for you to do this with a GUI

I think policies would be the way to go…

curl -H “x-tyk-authorization: 352d20ee67be67f6340b4c0605b044b7”\

-s
-H “Content-Type: application/json”
-X POST
-d ‘{
“allowance”: 1000,
“rate”: 1000,
“per”: 1,
“expires”: -1,
“quota_max”: -1,
“quota_renews”: 1449051461,
“quota_remaining”: -1,
“quota_renewal_rate”: 60,
“org_id”: “53ac07777cbb8c2d53000002”,
“hmac_enabled”: true,
“hmac_string”: “secret_key”
}’
http://10.0.127.10:8080/tyk/keys/create | python -mjson.tool
{
“error”: “Failed to create key, keys must have at least one Access Rights record set.”,
“status”: “error”
}
ubuntu-1:/opt/tyk-gateway$

Hi Martin, thanks for the reply.

I found “The Access Control section is the primary way to limit access to your APIs if you are running multiple Definitions. In other words, if there is nothing set in the access_rights section, then the user is granted access to all APIs defined on the system.”, but, when I send the request for create a key, I got the response:

{
“error”: “Failed to create key, keys must have at least one Access Rights record set.”,
“status”: “error”
}

Enable allow_master_keys in your tyk.conf

Thanks :), I will made the change and try.