Before you start
Before using API keys, ensure that you have the following required resources:- An account within a Community, Professional, or Enterprise Edition Organization. For more information, see Create a Wherobots Account.
Create an API Key
To create an API key, do the following:Go to Settings > API Keys.
Choose an Expiration Date for your API key. This value defaults to 1 year from when the API key is created.You can pick an exact date or use a preset. Short-duration presets (1 hour, 1 day, 7 days, 30 days) are available for temporary or test keys, alongside longer presets (6 months, 1 year, 2 years, 4 years).
Click Submit.
After clicking Submit, Wherobots generates an API key.
Note
Copy and store your API key securely, as Wherobots will not show you this API key again.Filter API keys by status
The API keys list in Settings > API Keys, Organization Settings > Security > API Keys, and on service principal detail pages includes a Status column and a status filter. Use the filter to show only keys matching a given state:- Active: The key has not been revoked and has not passed its expiration date.
- Revoked: An Administrator or key owner manually revoked the key.
- Expired: The key passed its expiration date.
Revoke an API Key
Organization Administrators have the ability to revoke any API key within their Wherobots Organization, including those belonging to other Organization members. Members configured to the User Role can only revoke their own API keys.- Revoke another member's API key
- Revoke your own API key
- Go to Organization Settings > Security > API Keys.
- Locate the API key you wish to revoke.
- Scroll to the right and click … > Revoke.
- Click Revoke to confirm that you want to remove this API key from your Organization.
HTTP Requests
To use an API key in an HTTP request, you must include it in theX-API-KEY header.
Example API key usage


