Secret and publishable keys
Yorlet uses three types of API keys:- Secret key: This key is used to authenticate your requests to the Yorlet API. Keep this key secure and never expose it in public.
- Publishable key: This key is used to authenticate your requests to the Yorlet API. You can expose this key in public.
- Restricted key: This key is used to authenticate your requests to the Yorlet API. You can limit the access to specific resources or actions.
Roll an API key
To roll an API key:- Go to the API keys page.
- In the row for the key you want to roll, click the overflow menu (•••), then select Roll key….
- Confirm that you want to roll the key.
- The window displays the new key value. Copy it by clicking it.
- Save the key value. You can’t retrieve it later.
Delete an API key
You cannot delete a publishable key. You can only delete a secret key.
- Go to the API keys page.
- In the row for the key you want to delete, click the overflow menu (•••), then select Delete key.
- Confirm that you want to delete the key.
Create a secret API key
To create a secret API key:- Go to the API keys page.
- Click the Create secret key button.
- Enter a name for the API key and a note (optional).
- Click Create.
- The window displays the new key value. Copy it by clicking it.
- Save the key value. You can’t retrieve it later.
Restricted keys
Restricted keys allow you to limit access to specific resources or actions. This is useful when you want to grant third-party services or team members access to your Yorlet account without giving them full control. When creating a restricted key, you can configure permissions for each resource type:- None: No access to the resource
- Read: Can view the resource but cannot make changes
- Write: Can view and modify the resource
Create a restricted key
To create a restricted key:- Go to the API keys page.
- Click the Create restricted key button.
- Enter a name for the API key and a note (optional).
- Configure the permissions for each resource type.
- Click Create.
- The window displays the new key value. Copy it by clicking it.
- Save the key value. You can’t retrieve it later.
Use an API key
Include the API key in theAuthorization header of your requests to the Yorlet API.