Create a key
POST {{baseUrl}}/tyk/keys
Tyk will generate the access token based on the OrgID specified in the API Definition and a random UUID. This ensures that keys can be owned
by different API Owners should segmentation be needed at an organisational level.
API keys without accessrights data will be written to all APIs on the system (this also means that they will be created across all SessionHandlers and StorageHandlers, it is recommended to always embed accessrights data in a key to ensure that only targeted APIs and their back-ends are written to.
Request Body
{"quota_max"=>60, "quota_renews"=>1406121006, "quota_renewal_rate"=>60, "allowance"=>100, "rate"=>100, "per"=>5, "org_id"=>"53ac07777cbb8c2d53000002"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"action":"created","key":"{...KEY JSON definition...}","status":"ok"}