New260+ blocks and 240+ tools are now fully documented
DocumentationReferenceTool IntegrationsAnalytics & Monitoring
Tool

Hex Tools

Run and manage Hex data projects, runs, collections, groups, users, and data connections.

Hex is a collaborative data workspace for building notebooks, apps, and dashboards. These tools let a workflow trigger and monitor Hex project runs, inspect projects and their queried tables, and manage workspace resources such as collections, groups, users, and data connections.

Overview

PropertyValue
Providerhex
Categorytools
AuthBearer Token (Hex API key)

Operations

OperationTool IDDescription
Run Projecthex_run_projectTrigger a run of a Hex project
Get Run Statushex_get_run_statusGet the status of a Hex project run
Get Project Runshex_get_project_runsList runs for a Hex project
Cancel Runhex_cancel_runCancel a running Hex project run
List Projectshex_list_projectsList Hex projects
Get Projecthex_get_projectGet details of a Hex project
Update Projecthex_update_projectUpdate a Hex project (e.g. change its status)
Get Queried Tableshex_get_queried_tablesGet tables queried by a Hex project
List Usershex_list_usersList Hex workspace users
List Groupshex_list_groupsList Hex groups
Get Grouphex_get_groupGet details of a Hex group
List Collectionshex_list_collectionsList Hex collections
Get Collectionhex_get_collectionGet details of a Hex collection
Create Collectionhex_create_collectionCreate a new Hex collection
List Data Connectionshex_list_data_connectionsList Hex data connections
Get Data Connectionhex_get_data_connectionGet details of a Hex data connection

All operations call the Hex REST API at https://app.hex.tech/api/v1 and authenticate with the Authorization: Bearer <apiKey> header.

Configuration

hex_run_project

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
projectIdstringYesProject ID to run.
inputParamsjsonNoInput parameters for the project run. Accepts a JSON object (or JSON string, which is parsed).
dryRunbooleanNoPerform a dry run without executing cells.
updateCachebooleanNoUpdate cached results.
updatePublishedResultsbooleanNoUpdate published results.
useCachedSqlResultsbooleanNoUse cached SQL results.

hex_get_run_status

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
projectIdstringYesProject ID.
runIdstringYesRun ID.

hex_get_project_runs

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
projectIdstringYesProject ID.
limitnumberNoNumber of runs to return.
offsetnumberNoOffset for pagination.
statusFilterstringNoFilter by status (e.g. PENDING, RUNNING, COMPLETED, ERRORED, KILLED).

hex_cancel_run

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
projectIdstringYesHex project ID.
runIdstringYesRun ID to cancel.

hex_list_projects

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
limitnumberNoNumber of projects to return.
includeArchivedbooleanNoInclude archived projects.
statusFilterstringNoFilter by status (e.g. PUBLISHED, DRAFT). Sent as the statuses[] query param.

hex_get_project

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
projectIdstringYesProject ID.

hex_update_project

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
projectIdstringYesProject ID to update.
statusstringNoNew project status.

hex_get_queried_tables

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
projectIdstringYesProject ID.
limitnumberNoNumber of tables to return.

hex_list_users

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
limitnumberNoNumber of users to return.
sortBystringNoSort field.
sortDirectionstringNoSort direction (asc or desc).
groupIdstringNoFilter by group ID.

hex_list_groups

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
limitnumberNoNumber of groups to return.
sortBystringNoSort field.
sortDirectionstringNoSort direction (asc or desc).

hex_get_group

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
groupIdstringYesGroup ID.

hex_list_collections

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
limitnumberNoNumber of collections to return.
sortBystringNoSort field.

hex_get_collection

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
collectionIdstringYesCollection ID.

hex_create_collection

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
namestringYesCollection name.
descriptionstringNoCollection description.

hex_list_data_connections

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
limitnumberNoNumber of connections to return.
sortBystringNoSort field.
sortDirectionstringNoSort direction (asc or desc).

hex_get_data_connection

ParameterTypeRequiredDescription
apiKeystringYesHex API key. Secret (user-only).
dataConnectionIdstringYesData connection ID.

Outputs

hex_run_project

  • projectId (string) — Project ID.
  • runId (string) — Run ID.
  • runUrl (string) — URL to view the run.
  • runStatusUrl (string) — URL to check run status.
  • traceId (string) — Trace ID.
  • projectVersion (number) — Project version.

hex_get_run_status

  • projectId (string) — Project ID.
  • runId (string) — Run ID.
  • runUrl (string) — URL to view the run.
  • status (string) — Run status.
  • startTime (string) — Run start time.
  • endTime (string) — Run end time.
  • elapsedTime (number) — Elapsed time in ms.
  • traceId (string) — Trace ID.
  • projectVersion (number) — Project version.

hex_get_project_runs

  • runs (json) — List of project runs.
  • total (number) — Total number of runs.
  • traceId (string) — Trace ID.

hex_cancel_run

  • success (boolean) — Whether the run was cancelled.
  • projectId (string) — Project ID.
  • runId (string) — Run ID that was cancelled.

hex_list_projects

  • projects (json) — List of projects.
  • total (number) — Total number of projects.

hex_get_project

  • id (string) — Project ID.
  • title (string) — Project title.
  • description (string) — Project description.
  • status (json) — Project status object.
  • type (string) — Project type.
  • creator (json) — Creator info.
  • owner (json) — Owner info.
  • categories (json) — Project categories.
  • lastEditedAt (string) — Last edited timestamp.
  • lastPublishedAt (string) — Last published timestamp.
  • createdAt (string) — Creation timestamp.
  • archivedAt (string) — Archive timestamp.
  • trashedAt (string) — Trash timestamp.

hex_update_project

  • id (string) — Project ID.
  • title (string) — Project title.
  • description (string) — Project description.
  • status (json) — Project status.
  • type (string) — Project type.
  • creator (json) — Creator info.
  • owner (json) — Owner info.
  • categories (json) — Project categories.
  • lastEditedAt (string) — Last edited timestamp.
  • lastPublishedAt (string) — Last published timestamp.
  • createdAt (string) — Creation timestamp.
  • archivedAt (string) — Archive timestamp.
  • trashedAt (string) — Trash timestamp.

hex_get_queried_tables

  • tables (json) — List of queried tables.
  • total (number) — Total number of tables.

hex_list_users

  • users (json) — List of users.
  • total (number) — Total number of users.

hex_list_groups

  • groups (json) — List of groups.
  • total (number) — Total number of groups.

hex_get_group

  • id (string) — Group ID.
  • name (string) — Group name.
  • createdAt (string) — Creation timestamp.

hex_list_collections

  • collections (json) — List of collections.
  • total (number) — Total number of collections.

hex_get_collection

  • id (string) — Collection ID.
  • name (string) — Collection name.
  • description (string) — Collection description.
  • creator (json) — Creator info.

hex_create_collection

  • id (string) — Collection ID.
  • name (string) — Collection name.
  • description (string) — Collection description.
  • creator (json) — Creator info.

hex_list_data_connections

  • connections (json) — List of data connections.
  • total (number) — Total number of connections.

hex_get_data_connection

  • id (string) — Data connection ID.
  • name (string) — Data connection name.
  • type (string) — Connection type.
  • description (string) — Connection description.
  • connectViaSsh (boolean) — Whether SSH tunnel is used.
  • includeMagic (boolean) — Whether magic is included.
  • allowWritebackCells (boolean) — Whether writeback cells are allowed.

YAML Example

hex_1:
  type: hex
  name: "Hex"
  inputs:
    operation: "hex_run_project"
    apiKey: "{{HEX_API_KEY}}"
    projectId: "5a6f8c2e-1234-4abc-9def-0123456789ab"
    inputParams: '{"date_range": "2024-01-01", "department": "engineering"}'
  connections:
    outgoing:
      - target: next-block-id

Tips

  • Generate an API key from your Hex workspace settings (Settings → API keys). It is passed as a Bearer token, so treat it as a secret and store it as an environment variable referenced with {{HEX_API_KEY}} rather than hardcoding it.
  • hex_run_project returns asynchronously: capture {{hex_1.runId}} and {{hex_1.runStatusUrl}}, then poll with hex_get_run_status (or feed the run into a wait/loop) to detect COMPLETED, ERRORED, or KILLED before continuing.
  • inputParams for hex_run_project may be a JSON object or a JSON string; string values are parsed automatically. Use keys that match the input parameter names defined in the Hex project.
  • All projectId, runId, groupId, collectionId, and dataConnectionId values are UUIDs from Hex — copy them from the project URL or the relevant list operation (hex_list_projects, hex_list_groups, etc.).