External keys
Add external keys to access the intended services
External keys that lets Mammoth to user certain services. User brings their own key to access the service e.g AI based rules need an Open AI key
post/workspaces/{workspace_id}/external_keys
Request
- Base URL: https://app.mammoth.io/api/v2
- URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/external_keys
- Auth: one of:
- HTTP bearer
- API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID
Path parameters
workspace_idinteger required
Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
Example:4
Request body
Example request
{
"key_type": "open_ai",
"key_name": "My Open AI key",
"description": null,
"secure_key": "abcDefGhiJklMnoPqrStuVwxYz1234567890",
"model_id": "gpt-5.4-mini",
"model_config_data": null
}Response
Successful create
Changes
No recorded changes to this operation across all 3 revisions of this API.