Create custom key / Import key
You can use this endpoint to import existing keys into Tyk or to create a new custom key.
Authorizations
Api key
Path Parameters
Name to give the custom key.
Query Parameters
Adding the suppress_reset parameter and setting it to 1, will cause Tyk not to reset the quota limit that is in the current live quota manager. By default Tyk will reset the quota in the live quota manager (initialising it) when adding a key. Adding the suppress_reset flag to the URL parameters will avoid this behaviour.
1 When set to true the key_hash returned will be similar to the un-hashed key name.
Body
"portal-developer@example.org"
1000
["641c15dd0fffb800010197bf"]deprecated use apply_policies going forward instead to send a list of policies ids
"641c15dd0fffb800010197bf"
0
"2024-03-13T03:56:46.568042549Z"
deprecated use enable_detailed_recording going forward instead
false
true
false
1712895619
false
false
0
"1710302206"
-1
{
"tyk_developer_id": "62b3fb9a1d5e4f00017226f5"
}"5e9d9544a1dcd60001d0ed20"
5
Defines the action to take on a Session in Redis after it expires. Valid values are "retain" and "delete".
retain, delete "delete"
Duration in seconds to retain a Session in Redis after it expires. Used with post_expiry_action "retain". Set to -1 to retain indefinitely.
0
20000
20000
31556952
1710302205
1
0
["edge", "edge-eu"]10
1000