clay api-keys update or removing it with clay api-keys delete.
--limit sets the page size, and the response includes a top-level cursor when more keys are available; pass it back with --cursor to fetch the next page.
Flags
| Flag | Description |
|---|---|
--limit <n> | Maximum API keys to return per page. Defaults to 50. |
--cursor <token> | Resume from a previous response’s cursor to fetch the next page. |
Output
| Field | Type | Description |
|---|---|---|
data[].id | string | API key id. Pass it to update or delete. |
data[].name | string | Human-readable name for the key. |
data[].scopes | string[] | Scopes granted to the key. |
data[].workspaceId | number | undefined | Workspace the key is scoped to, when set. |
data[].createdAt | string | ISO 8601 creation timestamp. |
data[].updatedAt | string | ISO 8601 last-updated timestamp. |
cursor | string | Present when more keys are available. Pass it back via --cursor. Omitted on the last page. |
clay api-keys create.
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | --limit is not a positive integer or exceeds 100. |
auth_forbidden | 3 | The key lacks permission to read API keys. |

