Creating an API key
To create an API key, follow these steps:1
Step 1
Go to the “Manage API Keys” page in the Cachet dashboard. This is located under the “Settings” navigation group.
2
Step 2
Click the “New API Key” button. You will need to provide a name for the API key. This can be any name that helps
you identify the key.You may select an expiration date for the token. This provides an extra layer of security as tokens will no longer
work after the expiration date. You may choose to leave this blank to create a token that never expires.Finally, select the permissions for the API key. You may leave the permissions empty to give the key full permissions.
3
Step 3
Cachet will display the token in plain text. Make sure to copy the token and store it in a secure location.
Permissions
Each API key is granted a set of abilities. Leaving the permissions empty when creating a key grants full access. Otherwise, you can grant themanage and/or delete ability for each resource type:
The
manage ability allows creating and updating the resource, while delete allows deleting it. Read-only endpoints
are available to any valid API key and, depending on your API settings, may be
public.