Create an API Key
API keys are necessary for authorizing and authenticating users, and to call Heretto Deploy API endpoints. There are two API key types you can chose form: Simple API Key or JWT HS256 Key. For more information on API key types and authentication methods, see Authentication and Security.
This procedure can be completed only by users assigned the Administrator role in Heretto CCMS.
For production applications, never expose your secret keys in client-side code or third-party web tools.
Ensure you are assigned the Administrator role in Heretto CCMS.
- Log in to Heretto CCMS as an Administrator.
- In the top-left corner, click the Main Menu
and go to Deploy API.
- Click the New API Key drop-down menu and select a key type:
- Simple API Key
- JWT HS256 Key
- In the window that opens, provide key details:
- Click Save.
The new API key is listed in the Deploy API along with its type, name, and access.
If you created a Simple API Key, you are ready to make authenticated API calls. See Make Authenticated API Calls.
If you created a JWT HS256 key, you must create a JWT. See Create a JWT.