APIs
Create an API Keyβ
Overviewβ
You can create an application programming interface (API) key to obtain programmatic access to your Enterprise h2oGPTe account.
Instructionsβ
The following steps describe how to create an API Key:
- In the Enterprise h2oGPTe navigation menu, click APIs.
- Click + New API Key.
- (Optional) In the Key name box, enter a name for the API Key.
- (Optional) In the Collection list, select a Collection. note
Specifying a Collection enables you to create a Collection-specific API Key by indicating the Collection you want to link it with. For more information, see Types of API keys.
- Click Generate new key.caution
Do not share your API Key with others or expose it within the browser or other client-side code.
Please refer to theΒ Python Client GuideΒ for detailed instructions on using your API Key with the Enterprise h2oGPTe Python Client.
Delete an API Keyβ
Overviewβ
Once an API Key is no longer in use, you can delete it.
Deleting an API Key removes the API Key from the servers permanently. Once an API Key is deleted, there is no way to undo the action or recover the deleted API Key.
Instructionsβ
To delete an API Key, consider the following steps:
- In the Enterprise h2oGPTe navigation menu, click APIs.
- In the API Keys table, locate the checkbox corresponding to the API Key you wish to delete, then select it.
- Click Delete.
- In the Are you sure? card, click Delete.
Types of API Keysβ
In Enterprise h2oGPTe there are two types of API Keys:
Global API Keysβ
If a Collection is not specified when creating a new API Key, that key is considered to be a global API Key. Use global API Keys to grant full user impersonation and system-wide access to all of your work. Anyone with access to one of your global API Keys can create, delete, or interact with any of your past, current, and future Collections, Documents, Chats, and settings.
Collection-specific API Keysβ
Use Collection-specific API Keys to grant external access to only Chat with a specified Collection and make related API calls to it. Collection-specific API keys do not allow other API calls, such as creation, deletion, or access to other Collections or Chats.
- Submit and view feedback for this page
- Send feedback about Enterprise h2oGPTe to cloud-feedback@h2o.ai