AptlyStar

Hex

Run and manage Hex projects

使用方法

Integrate Hex into your workflow. Run projects, check run status, manage collections and groups, list users, and view data connections. Requires a Hex API token.

ツール

hex_cancel_run

Cancel an active Hex project run.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
projectIdstringはいThe UUID of the Hex project
runIdstringはいThe UUID of the run to cancel

出力

パラメータ型説明
successbooleanWhether the run was successfully cancelled
projectIdstringProject UUID
runIdstringRun UUID that was cancelled

hex_create_collection

Create a new collection in the Hex workspace to organize projects.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
namestringはいName for the new collection
descriptionstringいいえOptional description for the collection

出力

パラメータ型説明
idstringNewly created collection UUID
namestringCollection name
descriptionstringCollection description
creatorobjectCollection creator
↳ emailstringCreator email
↳ idstringCreator UUID

hex_get_collection

Retrieve details for a specific Hex collection by its ID.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
collectionIdstringはいThe UUID of the collection

出力

パラメータ型説明
idstringCollection UUID
namestringCollection name
descriptionstringCollection description
creatorobjectCollection creator
↳ emailstringCreator email
↳ idstringCreator UUID

hex_get_data_connection

Retrieve details for a specific data connection including type, description, and configuration flags.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
dataConnectionIdstringはいThe UUID of the data connection

出力

パラメータ型説明
idstringConnection UUID
namestringConnection name
typestringConnection type (e.g., snowflake, postgres, bigquery)
descriptionstringConnection description
connectViaSshbooleanWhether SSH tunneling is enabled
includeMagicbooleanWhether Magic AI features are enabled
allowWritebackCellsbooleanWhether writeback cells are allowed

hex_get_group

Retrieve details for a specific Hex group.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
groupIdstringはいThe UUID of the group

出力

パラメータ型説明
idstringGroup UUID
namestringGroup name
createdAtstringCreation timestamp

hex_get_project

Get metadata and details for a specific Hex project by its ID.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
projectIdstringはいThe UUID of the Hex project

出力

パラメータ型説明
idstringProject UUID
titlestringProject title
descriptionstringProject description
statusobjectProject status
↳ namestringStatus name (e.g., PUBLISHED, DRAFT)
typestringProject type (PROJECT or COMPONENT)
creatorobjectProject creator
↳ emailstringCreator email
ownerobjectProject owner
↳ emailstringOwner email
categoriesarrayProject categories
↳ namestringCategory name
↳ descriptionstringCategory description
lastEditedAtstringISO 8601 last edited timestamp
lastPublishedAtstringISO 8601 last published timestamp
createdAtstringISO 8601 creation timestamp
archivedAtstringISO 8601 archived timestamp
trashedAtstringISO 8601 trashed timestamp

hex_get_project_runs

Retrieve API-triggered runs for a Hex project with optional filtering by status and pagination.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
projectIdstringはいThe UUID of the Hex project
limitnumberいいえMaximum number of runs to return (1-100, default: 25)
offsetnumberいいえOffset for paginated results (default: 0)
statusFilterstringいいえFilter by run status: PENDING, RUNNING, ERRORED, COMPLETED, KILLED, UNABLE_TO_ALLOCATE_KERNEL

出力

パラメータ型説明
runsarrayList of project runs
↳ projectIdstringProject UUID
↳ runIdstringRun UUID
↳ runUrlstringURL to view the run
↳ statusstringRun status (PENDING, RUNNING, COMPLETED, ERRORED, KILLED, UNABLE_TO_ALLOCATE_KERNEL)
↳ startTimestringRun start time
↳ endTimestringRun end time
↳ elapsedTimenumberElapsed time in seconds
↳ traceIdstringTrace ID
↳ projectVersionnumberProject version number
totalnumberTotal number of runs returned
traceIdstringTop-level trace ID

hex_get_queried_tables

Return the warehouse tables queried by a Hex project, including data connection and table names.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
projectIdstringはいThe UUID of the Hex project
limitnumberいいえMaximum number of tables to return (1-100)

出力

パラメータ型説明
tablesarrayList of warehouse tables queried by the project
↳ dataConnectionIdstringData connection UUID
↳ dataConnectionNamestringData connection name
↳ tableNamestringTable name
totalnumberTotal number of tables returned

hex_get_run_status

Check the status of a Hex project run by its run ID.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
projectIdstringはいThe UUID of the Hex project
runIdstringはいThe UUID of the run to check

出力

パラメータ型説明
projectIdstringProject UUID
runIdstringRun UUID
runUrlstringURL to view the run
statusstringRun status (PENDING, RUNNING, COMPLETED, ERRORED, KILLED, UNABLE_TO_ALLOCATE_KERNEL)
startTimestringISO 8601 run start time
endTimestringISO 8601 run end time
elapsedTimenumberElapsed time in seconds
traceIdstringTrace ID for debugging
projectVersionnumberProject version number

hex_list_collections

List all collections in the Hex workspace.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
limitnumberいいえMaximum number of collections to return (1-500, default: 25)
sortBystringいいえSort by field: NAME

出力

パラメータ型説明
collectionsarrayList of collections
↳ idstringCollection UUID
↳ namestringCollection name
↳ descriptionstringCollection description
↳ creatorobjectCollection creator
↳ emailstringCreator email
↳ idstringCreator UUID
totalnumberTotal number of collections returned

hex_list_data_connections

List all data connections in the Hex workspace (e.g., Snowflake, PostgreSQL, BigQuery).

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
limitnumberいいえMaximum number of connections to return (1-500, default: 25)
sortBystringいいえSort by field: CREATED_AT or NAME
sortDirectionstringいいえSort direction: ASC or DESC

出力

パラメータ型説明
connectionsarrayList of data connections
↳ idstringConnection UUID
↳ namestringConnection name
↳ typestringConnection type (e.g., athena, bigquery, databricks, postgres, redshift, snowflake)
↳ descriptionstringConnection description
↳ connectViaSshbooleanWhether SSH tunneling is enabled
↳ includeMagicbooleanWhether Magic AI features are enabled
↳ allowWritebackCellsbooleanWhether writeback cells are allowed
totalnumberTotal number of connections returned

hex_list_groups

List all groups in the Hex workspace with optional sorting.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
limitnumberいいえMaximum number of groups to return (1-500, default: 25)
sortBystringいいえSort by field: CREATED_AT or NAME
sortDirectionstringいいえSort direction: ASC or DESC

出力

パラメータ型説明
groupsarrayList of workspace groups
↳ idstringGroup UUID
↳ namestringGroup name
↳ createdAtstringCreation timestamp
totalnumberTotal number of groups returned

hex_list_projects

List all projects in your Hex workspace with optional filtering by status.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
limitnumberいいえMaximum number of projects to return (1-100)
includeArchivedbooleanいいえInclude archived projects in results
statusFilterstringいいえFilter by status: PUBLISHED, DRAFT, or ALL

出力

パラメータ型説明
projectsarrayList of Hex projects
↳ idstringProject UUID
↳ titlestringProject title
↳ descriptionstringProject description
↳ statusobjectProject status
↳ namestringStatus name (e.g., PUBLISHED, DRAFT)
↳ typestringProject type (PROJECT or COMPONENT)
↳ creatorobjectProject creator
↳ emailstringCreator email
↳ ownerobjectProject owner
↳ emailstringOwner email
↳ lastEditedAtstringLast edited timestamp
↳ lastPublishedAtstringLast published timestamp
↳ createdAtstringCreation timestamp
↳ archivedAtstringArchived timestamp
totalnumberTotal number of projects returned

hex_list_users

List all users in the Hex workspace with optional filtering and sorting.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
limitnumberいいえMaximum number of users to return (1-100, default: 25)
sortBystringいいえSort by field: NAME or EMAIL
sortDirectionstringいいえSort direction: ASC or DESC
groupIdstringいいえFilter users by group UUID

出力

パラメータ型説明
usersarrayList of workspace users
↳ idstringUser UUID
↳ namestringUser name
↳ emailstringUser email
↳ rolestringUser role (ADMIN, MANAGER, EDITOR, EXPLORER, MEMBER, GUEST, EMBEDDED_USER, ANONYMOUS)
totalnumberTotal number of users returned

hex_run_project

Execute a published Hex project. Optionally pass input parameters and control caching behavior.

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
projectIdstringはいThe UUID of the Hex project to run
inputParamsjsonいいえJSON object of input parameters for the project (e.g., {"date": "2024-01-01"})
dryRunbooleanいいえIf true, perform a dry run without executing the project
updateCachebooleanいいえ(Deprecated) If true, update the cached results after execution
updatePublishedResultsbooleanいいえIf true, update the published app results after execution
useCachedSqlResultsbooleanいいえIf true, use cached SQL results instead of re-running queries

出力

パラメータ型説明
projectIdstringProject UUID
runIdstringRun UUID
runUrlstringURL to view the run
runStatusUrlstringURL to check run status
traceIdstringTrace ID for debugging
projectVersionnumberProject version number

hex_update_project

Update a Hex project status label (e.g., endorsement or custom workspace statuses).

入力

パラメータ型必須説明
apiKeystringはいHex API token (Personal or Workspace)
projectIdstringはいThe UUID of the Hex project to update
statusstringはいNew project status name (custom workspace status label)

出力

パラメータ型説明
idstringProject UUID
titlestringProject title
descriptionstringProject description
statusobjectUpdated project status
↳ namestringStatus name (e.g., PUBLISHED, DRAFT)
typestringProject type (PROJECT or COMPONENT)
creatorobjectProject creator
↳ emailstringCreator email
ownerobjectProject owner
↳ emailstringOwner email
categoriesarrayProject categories
↳ namestringCategory name
↳ descriptionstringCategory description
lastEditedAtstringLast edited timestamp
lastPublishedAtstringLast published timestamp
createdAtstringCreation timestamp
archivedAtstringArchived timestamp
trashedAtstringTrashed timestamp

On this page