API Keys
This guide will help you create and manage API keys for the Writer API.
All actions are performed in AI Studio.
About API keys
The Writer API uses token authentication for API requests. API keys are used as tokens, which you pass in the Authorization
header of your requests:
API applications and API keys
Writer API keys are attached to AI Studio API applications.
API permissions and scopes are set at the application level. Within an API application, you can create multiple API keys that share the permissions of the application. To create keys with different permissions, create multiple API applications.
Create an API application
- From the AI Studio home page, click on Build an app.
- Select API as the app type.
- Click on the application’s name to rename it to something description, and provide a short description of your app to help you keep track of what it does.
Create an API key
Each API application has a default API key, called Production
. To create additional API keys:
- Navigate to the API application. From the AI Studio home page, click on API Keys in the navigation menu.
- Click on Generate a new key.
- Give the key a name and click Generate.
- To see the API key value, click on Reveal key next to the key name.
.env
file to store the key.See your API applications and API keys
- From the AI Studio home page, click on API Keys in the navigation menu.
- Click on an individual application’s tile to navigate to the application.
- To see the API key value, click on Reveal key next to the key name.
Manage API application permissions
API permissions are set at the application level. To manage API application permissions:
- From the AI Studio home page, click on API Keys in the navigation menu.
- Click on an individual application’s tile to navigate to the application.
- Under Capabilities, toggle to enable or disable a specific capability for the API key.
Capabilities map to Writer API endpoints. Click Read more in the API Documentation column to learn more about the specific endpoints.
Delete an API application
To delete an API application:
- From the AI Studio home page, click on API Keys in the navigation menu.
- Click on the dropdown menu (…) next to the application you want to delete, and select Delete.
- Confirm the deletion by clicking Delete.
Delete an API key
To delete an API key:
- From the AI Studio home page, click on API Keys in the navigation menu.
- Click on an individual application’s tile to navigate to the application.
- Click on the dropdown menu (…) next to the key you want to delete, and select Revoke.
- Confirm the deletion by clicking Revoke key.
Was this page helpful?