Features
Use limited keys
Limiting the usage of keys
Sometimes you would like to create an api key and automatically invalidate it after a certain number of uses.
Example: You are selling API access and a customer has purchased 1000 api requests from you.
Datkey allows you to set/update usage limits on individual keys and we take care of invalidating a key after it has reached its limit.
Example
Let’s create a new key, which can be used/validated 100 times.
Now when you verify the new key, you will receive back the usage count and after all of them are used up, the key is invalid.
- The returned
verifications
value represents how many verifications have been done. - The returned
verification_limit
value represents the total amount of verification that can be perfermed on that key. - The difference between
verification_limit
andverifications
is the about of verifications left.