API Keys API
Reference for the 7 API Keys operations in the Intuidy API.
Responses are JSON. A successful response is { "success": true, "data": …, "meta": … }, and each operation below documents its data. Errors use the error envelope described in Errors, pagination and limits.
| Operation | Method and path | Authorization |
|---|---|---|
| List API keys | GET /keys | Web session |
| Create an API key | POST /keys | Web session |
| Update an API key | PATCH /keys/{keyId} | Web session |
| Revoke an API key | DELETE /keys/{keyId} | Web session |
| Apps connected as this key | GET /keys/{keyId}/connections | Web session |
| Disconnect one app | DELETE /keys/{keyId}/connections/{grantId} | Web session |
| What would this key reach? | GET /keys/{keyId}/probe | Web session |
List API keys
GET /keys
Returns all API keys for the authenticated user.
Managed via the Intuidy web interface (session-authenticated). Not reachable with a Bearer API key.
Authorization: signed-in web session only. An API key or OAuth token can’t call this operation.
Response 200 OK
The body fields:
| Field | Type | Description |
|---|---|---|
keys | array of object | — |
keys[].id | integer | — |
keys[].name | string | — |
keys[].prefix | string | First 8 characters of the key for identification |
keys[].scopes | array of string | — |
keys[].scope_level | "user" or "client" | — |
keys[].created | string (date-time) | — |
keys[].last_used | string (date-time) or null | — |
keys[].kind | "key" or "oauth" | "key" is a pasted key; "oauth" is a grant an MCP client got through OAuth sign-in |
keys[].sensitive_read | boolean or null | — |
keys[].sensitive_write | boolean or null | — |
keys[].expires_at | string (date-time) or null | — |
Create an API key
POST /keys
Create a new API key with specified scopes. The full key value is only returned once in the response — store it securely.
Managed via the Intuidy web interface (session-authenticated).
Not reachable with a Bearer API key. Creating a client-level
(organization-wide) key requires an administrator role.
Authorization: signed-in web session only. An API key or OAuth token can’t call this operation.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Human-readable key name |
scopes | array of "workflows:read" or "workflows:write" or "workflows:execute" or "templates:read" or "templates:write" or "ontology:read" or "ontology:write" or "policies:read" or "policies:write" or "agents:read" or "agents:write" or "agents:execute" or "users:read" or "users:write" or "approvals:read" or "approvals:write" or "notebooks:read" or "notebooks:write" or "dashboards:read" or "dashboards:write" or "databases:read" or "databases:write" or "knowledge:read" or "integrations:read" or "integrations:write" or "mcp" or "mcp:read" or "mcp:write" | No | Permission scopes (default: [workflows:read]) |
scope_level | "user" or "client" | No | "user" for personal access, "client" for admin/org-wide access |
sensitive_read | boolean or null | No | Whether this key may read items marked sensitive (Settings → Data Sensitivity). false blocks it for this key even where the owner's role allows it; true or null never widen past the role. null = not set. |
sensitive_write | boolean or null | No | The same switch for writing to items marked sensitive. |
Response 200 OK
The body fields:
| Field | Type | Description |
|---|---|---|
key | string | Full API key (only shown once). Starts with vntg_ |
id | integer | — |
name | string | — |
prefix | string | — |
scopes | array of string | — |
expires_at | string (date-time) or null | — |
Update an API key
PATCH /keys/{keyId}
Update the name or scopes of an existing API key.
Managed via the Intuidy web interface (session-authenticated). Not reachable with a Bearer API key.
Authorization: signed-in web session only. An API key or OAuth token can’t call this operation.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyId | integer | Yes | — |
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
scopes | array of string | No | — |
expires_at | string (date-time) or null | No | ISO 8601 expiry in the future; null clears it. Same rule as key creation. |
sensitive_read | boolean or null | No | Whether this key may read items marked sensitive (Settings → Data Sensitivity). false blocks it for this key even where the owner's role allows it; true or null never widen past the role. null = not set. |
sensitive_write | boolean or null | No | The same switch for writing to items marked sensitive. |
Response 200 OK
Errors 400, 403, 404. See Errors, pagination and limits.
Revoke an API key
DELETE /keys/{keyId}
Permanently revokes an API key. This action cannot be undone.
Managed via the Intuidy web interface (session-authenticated). Not reachable with a Bearer API key.
Authorization: signed-in web session only. An API key or OAuth token can’t call this operation.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyId | integer | Yes | — |
Response 200 OK
Errors 403, 404. See Errors, pagination and limits.
Apps connected as this key
GET /keys/{keyId}/connections
Lists the apps holding an OAuth connection bound to this key — one row per connection, not per token, so a client that has refreshed forty times is still one entry. A bound connection has no key of its own (it acts as this one), which is why it is listed here rather than beside the keys. Requires a signed-in web session, like the other key management operations: a compromised API key must not be able to enumerate or sever its own connections.
Authorization: signed-in web session only. An API key or OAuth token can’t call this operation.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyId | integer | Yes | — |
Response 200 OK
The body fields:
| Field | Type | Description |
|---|---|---|
success | boolean | — |
connections | array of object | — |
connections[].grantId | string | The connection lineage, stable across refresh rotation |
connections[].clientId | string | The OAuth client — a Client ID Metadata Document URL, or a registered client id |
connections[].connected | string (date-time) | — |
connections[].lastRefreshed | string (date-time) | — |
Errors 401, 404. See Errors, pagination and limits.
Disconnect one app
DELETE /keys/{keyId}/connections/{grantId}
Ends a single OAuth connection bound to this key, leaving the key — and every other app connected as it — working. Revoking the key itself instead ends all of them. Permission mirrors revoking the key: company-wide keys are administrators only, personal keys are the owner's.
Authorization: signed-in web session only. An API key or OAuth token can’t call this operation.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyId | integer | Yes | — |
grantId | string | Yes | — |
Response 200 OK
The body fields:
| Field | Type | Description |
|---|---|---|
success | boolean | — |
Errors 401, 403, 404. See Errors, pagination and limits.
What would this key reach?
GET /keys/{keyId}/probe
Applies the same ownership rules that every access method enforces and counts what they match, so the answer matches actual authorization. The secret is never returned. Requires a signed-in web session, like the other key management operations: a compromised API key must not be able to enumerate the reach of other keys.
Authorization: signed-in web session only. An API key or OAuth token can’t call this operation.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyId | integer | Yes | — |
Response 200 OK
The body fields:
| Field | Type | Description |
|---|---|---|
success | boolean | — |
keyId | integer | — |
name | string | — |
scopes | array of string | — |
scopeLevel | string | — |
active | boolean | — |
expired | boolean | — |
reach | object | — |
reach.workflows | integer | — |
reach.notebooks | integer | — |
reach.dashboards | integer | — |
reach.agents | integer | — |
Errors 404, 429. See Errors, pagination and limits.