🚀 Quickstart
Connect to Hex with Nango and see data flow in 2 minutes.1
Create the integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Hex.
2
Authorize Hex
Go to Connections -> Add Test Connection -> Authorize, then enter your Hex API token. Later, you’ll let your users do the same directly from your app.
3
Call the Hex API
Let’s make your first request to the Hex API. Replace the placeholders below with your Environment API key, integration ID, and connection ID:Or fetch credentials with the Node SDK or API.✅ You’re connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
curl "https://api.nango.dev/proxy/v1/users" \
-H "Authorization: Bearer <NANGO-API-KEY>" \
-H "Provider-Config-Key: <INTEGRATION-ID>" \
-H "Connection-Id: <CONNECTION-ID>"
Install Nango’s backend SDK with
npm i @nangohq/node. Then run:import { Nango } from '@nangohq/node';
const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
const res = await nango.get({
endpoint: '/v1/users',
providerConfigKey: '<INTEGRATION-ID>',
connectionId: '<CONNECTION-ID>'
});
console.log(res.data);
4
Implement Nango in your app
Follow our Auth implementation guide to integrate Nango in your app.To obtain your own API token, follow the setup guide linked below.
📚 Hex Integration Guides
Nango maintained guides for common use cases.- How to obtain your Hex API token Create a personal access token or workspace token in Hex and connect it to Nango
🧩 Pre-built syncs & tools for Hex
Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.Others
| Function name | Description | Type |
|---|---|---|
sync-agent-usage | Replicate Enterprise workspace per-agent-run credit usage, including user/workspace charges and billing-cycle context. Requires workspace-admin authority or an appropriately authorized workspace token. | Sync |
sync-cells | Replicate the cells of one configured project’s draft notebook, including available source and SQL dataframe metadata. | Sync |
sync-collections | Replicate collection metadata, creator information, and available sharing assignments. | Sync |
sync-credit-grants | Replicate Enterprise workspace credit grants, their quantities, estimated costs, reasons, and expiration instants. Requires reporting authority. | Sync |
sync-data-connections | Replicate workspace data connection identities, sensitivity, and available non-secret administrative configuration. | Sync |
sync-groups | Replicate workspace group identifiers, names, and creation instants; this dataset does not include member rosters. | Sync |
sync-guide-drafts | Make guide draft identifiers and file paths available as a replicated metadata collection; draft contents are not exposed by the source operation. | Sync |
sync-project-queried-tables | Make project-to-warehouse-table lineage references available as a replicated collection. | Sync |
sync-project-runs | Make project run history available with state, origin, version and timing for viewable projects. | Sync |
sync-projects | Make viewable project and component inventory available with ownership, lifecycle, status, category and review metadata, including archived, trashed and unlisted records visible to the connection. | Sync |
sync-suggestions | Make workspace context suggestion summaries available as records, including lifecycle and background-review state. | Sync |
sync-threads | Make visible workspace agent-thread metadata available as records, including author, classification, model usage, warnings, topics, and feedback. Requires Manager role or higher and retains provider privacy redactions. | Sync |
sync-topics | Replicate workspace thread-topic identifiers and display names. | Sync |
sync-users | Make workspace user directory records available with display name, email, organization role, and last recorded login. | Sync |
add-project-to-collection | Add a project to a collection, or replace its existing collection access level. | Tool |
add-user-to-group | Add one existing user to a workspace group without changing other members. Requires sufficient group-administration authority. | Tool |
batch-add-users-to-group | Add up to 100 existing users to one workspace group through the native membership update. Requires sufficient group-administration authority. | Tool |
batch-remove-users-from-group | Remove up to 100 user memberships from one group without deleting user accounts. Requires sufficient group-administration authority. | Tool |
batch-update-data-connection-schema-statuses | Atomically validate and apply status or endorsement changes to multiple databases, schemas, and tables in one data connection. | Tool |
batch-update-guide-draft-publications | Publish up to 25 selected guide drafts in one request. | Tool |
batch-update-project-collection-access | Update up to 25 collection associations and access levels for one project. | Tool |
batch-update-project-compute-profiles | Apply one kernel image and/or size selection to up to 250 projects’ logic and published compute profiles. | Tool |
batch-update-project-group-access | Grant, replace or remove direct project access for up to 25 groups in one request. | Tool |
batch-update-project-user-access | Grant, replace or remove direct project access for up to 25 users in one request. | Tool |
batch-update-semantic-dataset-statuses | Atomically validate and apply status or endorsement changes to up to 100 datasets in one semantic project. | Tool |
batch-update-semantic-object-statuses | Apply one validation-atomic batch of status changes across datasets and views in the same semantic project. | Tool |
batch-update-semantic-view-statuses | Atomically validate and apply status or endorsement changes to up to 100 views in one semantic project. | Tool |
batch-upsert-guide-drafts | Create or replace up to 25 guide drafts by file path in one native request, without publishing. | Tool |
cancel-project-run | Request cancellation of a project run without deleting the project or its run history. | Tool |
create-cell | Create a code, SQL, or Markdown cell in a project’s draft, with optional placement. | Tool |
create-collection | Create a collection with optional description and initial sharing assignments. | Tool |
create-data-connection | Create a workspace warehouse connection with credentials, sensitivity, access assignments, and optional schema-refresh configuration. Requires sufficient workspace administration authority. | Tool |
create-group | Create a workspace group, optionally with up to 100 initial users. Requires sufficient group-administration authority. | Tool |
create-project | Create a new workspace project with a title and optional description. | Tool |
create-project-embed-url | Create a short-lived, single-use signed URL for embedding a project, with input defaults, user attributes, display options, and optional export permissions. | Tool |
create-project-run | Start a run of the latest published project version, with optional inputs, saved view, cache controls and run notifications. | Tool |
create-suggestion-review | Start a background review agent for a suggestion, or return the current review when one is already running. | Tool |
create-thread | Start a Hex agent thread with a prompt and optional referenced data, using an existing project, a new project, or no project. | Tool |
delete-cell | Delete one cell from a project’s draft notebook. | Tool |
delete-group | Delete a workspace group. Requires sufficient group-administration authority; restoration is not guaranteed. | Tool |
delete-guide-draft | Delete a guide’s draft by guide file ID. This does not promise deletion of its published guide. | Tool |
disable-user | Administratively deactivate a workspace user and return the user record provided by Hex. This changes account access, not merely group membership. | Tool |
download-cell-chart-image | Download the rendered PNG of an executed chart cell in the current draft notebook session. | Tool |
download-project-run-chart-image | Download the PNG rendering of an executed chart cell from a completed project run. | Tool |
export-project | Export one project version as its original .hex.yaml document. | Tool |
get-cell | Get a cell’s identity, type, label, attached connection, and available source. | Tool |
get-cell-output | Get the latest SQL output preview or execution error from the active draft notebook session. | Tool |
get-collection | Get a collection’s metadata and sharing permissions. | Tool |
get-current-user | Get the current connection’s workspace identity and, when authenticated as a user, that user’s directory information. Workspace tokens have no user metadata. | Tool |
get-data-connection | Get a data connection’s non-secret configuration, sensitivity, refresh settings, and access assignments. | Tool |
get-group | Get a workspace group’s name and creation instant. | Tool |
get-project | Get a project’s metadata, analytics, schedules and sharing state by ID. | Tool |
get-project-run | Get a project’s run status, timing, notifications and optional expanded diagnostic state events. | Tool |
get-project-run-validation | Validate project inputs for the latest published version without starting execution. | Tool |
get-suggestion | Get a context suggestion with its evidence sources and proposed changes from the most recent review. | Tool |
get-thread | Get an agent thread’s current status, structured response, execution error, and associated metadata. | Tool |
get-user | Get one workspace user’s directory record by opaque user ID. | Tool |
list-agent-usage | List one page of per-agent-run credit usage, newest first. Requires Enterprise and workspace-admin authority or a workspace token with agent usage read access. | Tool |
list-cells | List one page of cells in a project’s draft notebook, including available code, SQL, and Markdown sources. | Tool |
list-collections | List one page of collections with descriptions, creators, and sharing permissions. | Tool |
list-credit-grants | List one page of Enterprise workspace credit grants, newest first. Requires workspace-admin authority or an authorized agent-usage-read workspace token. | Tool |
list-data-connections | List one page of workspace data connections, including sensitivity and available administrative configuration. | Tool |
list-groups | List one page of workspace groups, optionally restricted to groups a user belongs to. | Tool |
list-guide-drafts | List one page of guide draft identifiers and file paths. | Tool |
list-project-queried-tables | List one page of warehouse table references queried in a project. | Tool |
list-project-runs | List one page of runs for a project, optionally filtered by state or trigger. | Tool |
list-projects | List one page of viewable projects with lifecycle, ownership, category and status metadata. | Tool |
list-suggestions | List one page of workspace context suggestions, filtered by lifecycle status and ordered by the selected criterion. | Tool |
list-thread-messages | List one page of an agent thread’s history, as rendered text blocks or decoded full message records for detailed inspection. | Tool |
list-threads | List one page of workspace agent threads, newest created first, with administrative filters and visibility constrained by the connection’s role. | Tool |
list-topics | List one page of workspace thread topics sorted by name. | Tool |
list-users | List one page of workspace users, optionally restricted to a group or explicit user IDs. | Tool |
remove-project-from-collection | Remove a project’s association with one collection without deleting either resource. | Tool |
remove-user-from-group | Remove one user’s membership from a workspace group without deleting the user. Requires sufficient group-administration authority. | Tool |
reply-to-thread | Send a follow-up prompt and optional referenced context to an existing idle agent thread. | Tool |
update-all-guide-draft-publications | Publish all currently drafted guides in the connected workspace, including drafts not authored by this caller. | Tool |
update-cell | Partially modify a cell’s source and, for SQL cells, result dataframe or attached data connection. | Tool |
update-collection | Partially update collection metadata and upsert specified sharing assignments without replacing unspecified assignments. | Tool |
update-data-connection | Partially modify a data connection’s credentials, metadata, sensitivity, sharing, schema filters, or refresh schedule. Requires sufficient workspace administration authority. | Tool |
update-data-connection-schema-status | Apply or remove a status, including an endorsement, on one database, schema, or table within a data connection. | Tool |
update-group | Update a workspace group’s name without changing its membership. Requires sufficient group-administration authority. | Tool |
update-guide-draft-publication | Publish the current draft of one guide. | Tool |
update-project-compute-profile | Update kernel image and/or size on both logic and published compute profiles of one project. | Tool |
update-project-group-access | Grant, replace or remove one group’s direct access to a project. | Tool |
update-project-status | Apply or remove a project’s status, including endorsements, without changing other project metadata. | Tool |
update-project-user-access | Grant, replace or remove one user’s direct access to a project. | Tool |
update-project-workspace-and-public-access | Modify workspace-wide and/or public-web access to a project without replacing other sharing settings. | Tool |
update-semantic-dataset-status | Apply or remove a status or endorsement on one named dataset within a semantic project. | Tool |
update-semantic-view-status | Apply or remove a status or endorsement on one named view in a semantic project. | Tool |
update-suggestion-change-status | Change the review status of one file or data-warehouse proposed change within a suggestion. | Tool |
update-suggestion-status | Change a context suggestion’s lifecycle status and optionally its dismissal reason. | Tool |
upsert-guide-draft | Create or replace a guide draft matched by file path in the connected workspace, without publishing it. | Tool |