HigherData / Tool
account.create_key
Creates an API key. The secret is returned once.
Scopes: admin, data:write
Send execute false to preview the change. Send execute true to write it. A preview does not change stored data.
REST: POST /api/v1/tools/account.create_key?execute=false. The same call is POST /api/v1/account/create_key?execute=false.
MCP tool name: account_create_key. It is in the default MCP catalog when your scopes allow it.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Name for this key. 1 to 80 characters. |
| scopes | array | yes | Scopes this key can use. At least 1 items. Each item: One of: data:read, data:write, suppress:write, crm:read, crm:write, admin. |
| expiresInDays | value | no | Expiry in days, 1 to 365, or null for never. Defaults to 90. |
| caps | object | no | Limits for this key. Omit a limit to leave it unset. |
| caps. | integer | no | Most requests this key can make each second. At least 0. |
| caps. | integer | no | Most calls this key can run at once. At least 0. |
| caps. | integer | no | Most rows one bulk job from this key can process. At least 0. |
| caps. | integer | no | Most rows in one uploaded file. At least 0. |
| caps. | integer | no | Most bytes in one uploaded file. At least 0. |
| caps. | integer | no | Most rows in one suppression import. At least 0. |
| caps. | integer | no | Most bytes in one suppression import. At least 0. |
| allSpaces | boolean | no | When true, the key can use every space in the tenant. Otherwise it is limited to the current space. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
| executed | boolean | yes | |
| secret | string or null | yes | |
| key | value | yes | |
| proposed | value | yes |
Request
curl -sS -X POST "https://higherdata.io/api/v1/tools/account.create_key?execute=false" \
-H "Authorization: Bearer hd_example_replace_me" \
-H "Content-Type: application/json" \
-d '{
"name": "Nightly",
"scopes": [
"data:read"
]
}'SDK
import { HigherData } from "higherdata-sdk";
const higherdata = new HigherData({
apiKey: "hd_example_replace_me",
apiUrl: "https://higherdata.io",
});
const result = await higherdata.call("account.create_key", {
"name": "Nightly",
"scopes": [
"data:read"
]
}, { execute: false });Example
{
"input": {
"name": "Nightly",
"scopes": [
"data:read"
]
},
"output": {
"executed": false,
"secret": null,
"key": null,
"proposed": {
"name": "Nightly",
"scopes": [
"data:read"
],
"caps": {},
"spaceId": null,
"expiresAt": "2026-12-30T00:00:00.000Z"
}
}
}