Personal Access Tokens
Personal access tokens can be used by third-party applications and scripts to authenticate with the Cryptlex API. They function similarly to API keys and offer fine-grained access control.
Once you have your token, you can authenticate your API requests by passing it in the "Authorization" header.
Keep your access tokens secure and do not share them in publicly accessible areas such as Github, client-side code, and so forth.
Creating a personal access token
You can easily create personal access tokens through the admin portal. Go to the Developer -> Access Tokens
section in the admin portal and click the add button. A form with the following fields will popup:
Name
Name for the access token.
Expiration Date
The expiration date for the token. Leave empty for no expiry.
Scopes
The permissions to restrict the actions the token can be used to perform.
Revoking a personal access token
At any time, you can revoke any personal access token by just clicking the "Revoke" option from the actions menu.
Limiting scopes of a personal access token
Personal access tokens can be created with one or more scopes that allow various actions that a given token can perform. You should always scope the token access to the minimum required resources, by adding the minimum number of permissions. The available scopes (permissions) are depicted in the following table.
Scope | Description |
| Read-only access to the account details. |
| Update and delete account. |
| Read-only access to all the license activations. |
| Read-only access to analytics. |
| Read-only access to event logs. |
| Read-only access to all the invoices. |
| Read-only access to all the licenses. |
| Create, update and delete licenses. |
| Read-only access to all the license templates. |
| Create, update and delete license templates. |
| Read-only access to all the credit cards. |
| Create, update and delete credit cards. |
| Create, revoke and delete personal access tokens. |
| Read-only access to all the products and related policies. |
| Create, update and delete products. |
| Read-only access to all the releases. |
| Create, update, publish and delete releases. |
| Read-only access to all the roles. |
| Create, update and delete roles. |
| Read-only access to all the tags. |
| Create, update and delete tags. |
| Read-only access to all the trial activations. |
| Extend and delete trial activations. |
| Read-only access to all the trial policies. |
| Create, update and delete trial policies. |
| Read-only access to all the users. |
| Create, update and delete users. Generate password reset tokens for users with |
| Read-only access to all the webhooks. |
| Create, update and delete webhooks. |
Last updated