{ "opencollection": "1.0.0", "info": { "name": "Hex Cells API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Cells", "type": "folder" }, "items": [ { "info": { "name": "ListCells", "type": "http" }, "http": { "method": "GET", "url": "https://app.hex.tech/api/v1/cells", "params": [ { "name": "projectId", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "after", "value": "", "type": "query" }, { "name": "before", "value": "", "type": "query" } ] }, "docs": "List all cells\n\nReturns cells from the draft version of the project only, not the published app.\nRequires a project id for filtering.\nFor SQL and CODE cells, includes the source code content." }, { "info": { "name": "CreateCell", "type": "http" }, "http": { "method": "POST", "url": "https://app.hex.tech/api/v1/cells", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new cell\n\nCreates a new cell in the draft version of a project.\nCurrently only CODE and SQL cell types are supported.\nRequires EDIT_PROJECT_CONTENTS permission on the project." }, { "info": { "name": "GetCell", "type": "http" }, "http": { "method": "GET", "url": "https://app.hex.tech/api/v1/cells/:cellId", "params": [ { "name": "cellId", "value": "", "type": "path" } ] }, "docs": "Get a single cell by ID\n\nReturns cells from the draft version of the project only, not the published app.\nReturns the cell details including id, staticId, cellType, label, dataConnectionId,\nsource contents (for CODE and SQL cells), and projectId." }, { "info": { "name": "UpdateCell", "type": "http" }, "http": { "method": "PATCH", "url": "https://app.hex.tech/api/v1/cells/:cellId", "params": [ { "name": "cellId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a cell's source and/or data connection\n\nUpdates the source code and/or data connection ID for a cell.\nFor SQL cells, can update SQL source and data connection ID.\nFor code cells, can update code source.\nRequires EDIT_PROJECT_CONTENTS permission on the project containing the cell." }, { "info": { "name": "DeleteCell", "type": "http" }, "http": { "method": "DELETE", "url": "https://app.hex.tech/api/v1/cells/:cellId", "params": [ { "name": "cellId", "value": "", "type": "path" } ] }, "docs": "Delete a cell\n\nPermanently deletes a cell from the draft version of a project.\nRequires EDIT_PROJECT_CONTENTS permission on the project containing the cell." }, { "info": { "name": "GetChartImageFromLogic", "type": "http" }, "http": { "method": "GET", "url": "https://app.hex.tech/api/v1/cells/:cellId/image", "params": [ { "name": "cellId", "value": "", "type": "path" } ] }, "docs": "Get the rendered PNG image of a chart cell from the current notebook session by cellId.\nThe \"cellId\" path parameter should be the cell's ID (scoped to a\nspecific version), as opposed to its staticId (which remains stable across versions).\n\nReturns a JSON object containing the base64-encoded PNG image of the chart cell\nas it currently appears in the Logic view, along with the cell ID and MIME type.\nThe cell must have been executed and must not be in an error state.\nOnly chart-type cells are suppo" } ] } ], "bundled": true }