Use Hex to run analytics projects, inspect results and run status, and manage workspace collections and groups. Connect with a Hex API token.
Run projects, check run status, manage collections and groups (including membership and deactivating users), list users, and view data connections. Requires a Hex API token.
Cancel an active Hex project run.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) projectIdstring Yes The UUID of the Hex project runIdstring Yes The UUID of the run to cancel
Parameter Type Description successboolean Whether the run was successfully cancelled projectIdstring Project UUID runIdstring Run UUID that was cancelled
Create a new collection in the Hex workspace to organize projects.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) namestring Yes Name for the new collection descriptionstring No Optional description for the collection
Parameter Type Description idstring Newly created collection UUID namestring Collection name descriptionstring Collection description creatorobject Collection creator ↳ email string Creator email ↳ id string Creator UUID
Create a new group in the Hex workspace, optionally with initial members.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) namestring Yes Name for the new group memberUserIdsjson No JSON array of user UUIDs to add as initial group members (e.g., ["uuid1", "uuid2"])
Parameter Type Description idstring Newly created group UUID namestring Group name createdAtstring Creation timestamp
Deactivate a user in the Hex workspace.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) userIdstring Yes The UUID of the user to deactivate
Parameter Type Description successboolean Whether the user was successfully deactivated userIdstring User UUID that was deactivated
Delete a group from the Hex workspace.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) groupIdstring Yes The UUID of the group to delete
Parameter Type Description successboolean Whether the group was successfully deleted groupIdstring Group UUID that was deleted
Retrieve details for a specific Hex collection by its ID.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) collectionIdstring Yes The UUID of the collection
Parameter Type Description idstring Collection UUID namestring Collection name descriptionstring Collection description creatorobject Collection creator ↳ email string Creator email ↳ id string Creator UUID
Retrieve details for a specific data connection including type, description, and configuration flags.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) dataConnectionIdstring Yes The UUID of the data connection
Parameter Type Description idstring Connection UUID namestring Connection name typestring Connection type (e.g., snowflake, postgres, bigquery) descriptionstring Connection description connectViaSshboolean Whether SSH tunneling is enabled includeMagicboolean Whether Magic AI features are enabled allowWritebackCellsboolean Whether writeback cells are allowed
Retrieve details for a specific Hex group.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) groupIdstring Yes The UUID of the group
Parameter Type Description idstring Group UUID namestring Group name createdAtstring Creation timestamp
Get metadata and details for a specific Hex project by its ID.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) projectIdstring Yes The UUID of the Hex project
Parameter Type Description idstring Project UUID titlestring Project title descriptionstring Project description statusobject Project status ↳ name string Status name (e.g., PUBLISHED, DRAFT) typestring Project type (PROJECT or COMPONENT) creatorobject Project creator ↳ email string Creator email ownerobject Project owner ↳ email string Owner email categoriesarray Project categories ↳ name string Category name ↳ description string Category description lastEditedAtstring ISO 8601 last edited timestamp lastPublishedAtstring ISO 8601 last published timestamp createdAtstring ISO 8601 creation timestamp archivedAtstring ISO 8601 archived timestamp trashedAtstring ISO 8601 trashed timestamp
Retrieve API-triggered runs for a Hex project with optional filtering by status and pagination.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) projectIdstring Yes The UUID of the Hex project limitnumber No Maximum number of runs to return (1-100, default: 25) offsetnumber No Offset for paginated results (default: 0) statusFilterstring No Filter by run status: PENDING, RUNNING, ERRORED, COMPLETED, KILLED, UNABLE_TO_ALLOCATE_KERNEL runTriggerFilterstring No Filter by how the run was triggered: ALL, API, SCHEDULED, or APP_REFRESH
Parameter Type Description runsarray List of project runs ↳ projectId string Project UUID ↳ runId string Run UUID ↳ runUrl string URL to view the run ↳ status string Run status (PENDING, RUNNING, COMPLETED, ERRORED, KILLED, UNABLE_TO_ALLOCATE_KERNEL) ↳ startTime string Run start time ↳ endTime string Run end time ↳ elapsedTime number Elapsed time in seconds ↳ traceId string Trace ID ↳ projectVersion number Project version number totalnumber Total number of runs returned traceIdstring Top-level trace ID nextPagestring Cursor for the next page of runs previousPagestring Cursor for the previous page of runs
Return the warehouse tables queried by a Hex project, including data connection and table names.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) projectIdstring Yes The UUID of the Hex project limitnumber No Maximum number of tables to return (1-100)
Parameter Type Description tablesarray List of warehouse tables queried by the project ↳ dataConnectionId string Data connection UUID ↳ dataConnectionName string Data connection name ↳ tableName string Table name totalnumber Total number of tables returned
Check the status of a Hex project run by its run ID.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) projectIdstring Yes The UUID of the Hex project runIdstring Yes The UUID of the run to check
Parameter Type Description projectIdstring Project UUID runIdstring Run UUID runUrlstring URL to view the run statusstring Run status (PENDING, RUNNING, COMPLETED, ERRORED, KILLED, UNABLE_TO_ALLOCATE_KERNEL) startTimestring ISO 8601 run start time endTimestring ISO 8601 run end time elapsedTimenumber Elapsed time in seconds traceIdstring Trace ID for debugging projectVersionnumber Project version number
List all collections in the Hex workspace.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) limitnumber No Maximum number of collections to return (1-500, default: 25) sortBystring No Sort by field: NAME afterstring No Cursor to fetch the page of results after this value beforestring No Cursor to fetch the page of results before this value
Parameter Type Description collectionsarray List of collections ↳ id string Collection UUID ↳ name string Collection name ↳ description string Collection description ↳ creator object Collection creator ↳ email string Creator email ↳ id string Creator UUID totalnumber Total number of collections returned afterstring Cursor for the next page of results beforestring Cursor for the previous page of results
List all data connections in the Hex workspace (e.g., Snowflake, PostgreSQL, BigQuery).
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) limitnumber No Maximum number of connections to return (1-500, default: 25) sortBystring No Sort by field: CREATED_AT or NAME sortDirectionstring No Sort direction: ASC or DESC afterstring No Cursor to fetch the page of results after this value beforestring No Cursor to fetch the page of results before this value
Parameter Type Description connectionsarray List of data connections ↳ id string Connection UUID ↳ name string Connection name ↳ type string Connection type (e.g., athena, bigquery, databricks, postgres, redshift, snowflake) ↳ description string Connection description ↳ connectViaSsh boolean Whether SSH tunneling is enabled ↳ includeMagic boolean Whether Magic AI features are enabled ↳ allowWritebackCells boolean Whether writeback cells are allowed totalnumber Total number of connections returned afterstring Cursor for the next page of results beforestring Cursor for the previous page of results
List all groups in the Hex workspace with optional sorting.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) limitnumber No Maximum number of groups to return (1-500, default: 25) sortBystring No Sort by field: CREATED_AT or NAME sortDirectionstring No Sort direction: ASC or DESC afterstring No Cursor to fetch the page of results after this value beforestring No Cursor to fetch the page of results before this value
Parameter Type Description groupsarray List of workspace groups ↳ id string Group UUID ↳ name string Group name ↳ createdAt string Creation timestamp totalnumber Total number of groups returned afterstring Cursor for the next page of results beforestring Cursor for the previous page of results
List all projects in your Hex workspace with optional filtering by status.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) limitnumber No Maximum number of projects to return (1-100) includeArchivedboolean No Include archived projects in results statusFilterstring No Filter by status: PUBLISHED, DRAFT, or ALL includeComponentsboolean No Include components in results includeTrashedboolean No Include trashed projects in results creatorEmailstring No Filter by creator email ownerEmailstring No Filter by owner email collectionIdstring No Filter by collection UUID categoriesjson No JSON array of category names to filter by (e.g., ["Marketing", "Finance"]) sortBystring No Sort by field: CREATED_AT, LAST_EDITED_AT, or LAST_PUBLISHED_AT sortDirectionstring No Sort direction: ASC or DESC afterstring No Cursor to fetch the page of results after this value beforestring No Cursor to fetch the page of results before this value
Parameter Type Description projectsarray List of Hex projects ↳ id string Project UUID ↳ title string Project title ↳ description string Project description ↳ status object Project status ↳ name string Status name (e.g., PUBLISHED, DRAFT) ↳ type string Project type (PROJECT or COMPONENT) ↳ creator object Project creator ↳ email string Creator email ↳ owner object Project owner ↳ email string Owner email ↳ lastEditedAt string Last edited timestamp ↳ lastPublishedAt string Last published timestamp ↳ createdAt string Creation timestamp ↳ archivedAt string Archived timestamp totalnumber Total number of projects returned afterstring Cursor for the next page of results beforestring Cursor for the previous page of results
List all users in the Hex workspace with optional filtering and sorting.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) limitnumber No Maximum number of users to return (1-100, default: 25) sortBystring No Sort by field: NAME or EMAIL sortDirectionstring No Sort direction: ASC or DESC groupIdstring No Filter users by group UUID userIdsstring No Comma-separated list of user UUIDs to filter by afterstring No Cursor to fetch the page of results after this value beforestring No Cursor to fetch the page of results before this value
Parameter Type Description usersarray List of workspace users ↳ id string User UUID ↳ name string User name ↳ email string User email ↳ role string User role (ADMIN, MANAGER, EDITOR, EXPLORER, MEMBER, GUEST, EMBEDDED_USER, ANONYMOUS) ↳ lastLoginDate string Last login timestamp totalnumber Total number of users returned afterstring Cursor for the next page of results beforestring Cursor for the previous page of results
Execute a published Hex project. Optionally pass input parameters and control caching behavior.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) projectIdstring Yes The UUID of the Hex project to run inputParamsjson No JSON object of input parameters for the project (e.g., {"date": "2024-01-01"}) dryRunboolean No If true, perform a dry run without executing the project updateCacheboolean No (Deprecated) If true, update the cached results after execution updatePublishedResultsboolean No If true, update the published app results after execution useCachedSqlResultsboolean No If true, use cached SQL results instead of re-running queries viewIdstring No Optional SavedView ID to use for the project run notificationsjson No JSON array of notification details to deliver once the run completes (e.g., [{"type": "FAILURE", "slackChannelIds": ["C0123456789"], "userIds": [], "groupIds": [], "includeSuccessScreenshot": false}]). type is ALL, SUCCESS, or FAILURE.
Parameter Type Description projectIdstring Project UUID runIdstring Run UUID runUrlstring URL to view the run runStatusUrlstring URL to check run status traceIdstring Trace ID for debugging projectVersionnumber Project version number
Update the name or description of an existing Hex collection.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) collectionIdstring Yes The UUID of the collection to update namestring No New name for the collection descriptionstring No New description for the collection
Parameter Type Description idstring Collection UUID namestring Collection name descriptionstring Collection description creatorobject Collection creator ↳ email string Creator email ↳ id string Creator UUID
Rename a Hex group or add/remove members from it.
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) groupIdstring Yes The UUID of the group to update namestring No New name for the group addUserIdsjson No JSON array of user UUIDs to add to the group (e.g., ["uuid1", "uuid2"]) removeUserIdsjson No JSON array of user UUIDs to remove from the group (e.g., ["uuid1", "uuid2"])
Parameter Type Description idstring Group UUID namestring Group name createdAtstring Creation timestamp
Update a Hex project status label (e.g., endorsement or custom workspace statuses).
Inputs and outputsParameter Type Required Description apiKeystring Yes Hex API token (Personal or Workspace) projectIdstring Yes The UUID of the Hex project to update statusstring Yes New project status name (custom workspace status label)
Parameter Type Description idstring Project UUID titlestring Project title descriptionstring Project description statusobject Updated project status ↳ name string Status name (e.g., PUBLISHED, DRAFT) typestring Project type (PROJECT or COMPONENT) creatorobject Project creator ↳ email string Creator email ownerobject Project owner ↳ email string Owner email categoriesarray Project categories ↳ name string Category name ↳ description string Category description lastEditedAtstring Last edited timestamp lastPublishedAtstring Last published timestamp createdAtstring Creation timestamp archivedAtstring Archived timestamp trashedAtstring Trashed timestamp