> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://help.sigmacomputing.com/recipes/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server. # API Recipes > Official documentation and guidance for using Sigma to build AI apps, dashboards, and agents on governed warehouse data. ## Docs - [Authentication: Get Access Token (JavaScript)](https://help.sigmacomputing.com/recipes/authentication-get-access-token-javascript.md): This script retrieves a bearer token from the Sigma API using client credentials authentication. - [Connections: List all (Javascript)](https://help.sigmacomputing.com/recipes/connections-list-all-javascript.md): This script lists all connections in alphabetically order by name. - [Connections: Sync All Tables in Schema (Javascript)](https://help.sigmacomputing.com/recipes/connections-sync-all-tables-in-schema-javascript.md): This script automates the synchronization of tables within a specified schema (Snowflake). - [Get Column Names by Page and Element (Javascript)](https://help.sigmacomputing.com/recipes/get-column-names-by-page-and-element-javascript.md): This script automates the process of retrieving column names for all elements in each page of a workbook in Sigma. - [Workbook - Copy Workbook to Member "My Documents" Folder (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-copy-workbook-to-member-my-documents-folder-javascript.md): This script automates the process of copying a specific workbook for a designated user in Sigma. - [Workbook: Export to CSV with Date Range Parameters (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-export-to-csv-with-date-range-parameters-javascript.md): This recipe demonstrates how to trigger an export job for a specific workbook and include a parameter-based date range for the data. - [Workbook: Export to PDF (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-export-to-pdf-javascript.md): This script triggers an export to PDF job and downloads the export once ready. - [Workbook: Initiate Materialization Job (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-initiate-materialization-job-javascript.md): This script initiates a materialization job for a specified workbook. - [Workbook: List All (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-list-all-javascript.md): This script fetches all workbooks accessible to a specific member based on their memberId. - [Workbook: Pagination (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-pagination-javascript.md): This script fetches all workbooks from the Sigma API, handling pagination for large datasets. - [Workbook: Reassign Ownership by Email (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-reassign-ownership-by-email.md): This script transfers ownership of all workbooks owned by one user to another user using email addresses. - [Workbook: Shared with Me (JavaScript)](https://help.sigmacomputing.com/recipes/workbook-shared-with-me-javascript.md): This script fetches all workbooks shared to a specific member based on their memberId. - [Workbooks: List all Input Tables (JavaScript)](https://help.sigmacomputing.com/recipes/workbooks-list-all-input-tables-javascript.md): This script searches through all workbooks for specific elements of the type "input-table" and logs details about them. - [Workbooks - Update owner (Javascript)](https://help.sigmacomputing.com/recipes/workbooks-update-owner-javascript.md): This script updates the ownership of a specified workbookId. - [Member - Get Member Details (JavaScript)](https://help.sigmacomputing.com/recipes/member-get-member-details-javascript.md): This script retrieves the details of a specific member based on the memberId provided in the .env file. - [Member: Onboarding (JavaScript)](https://help.sigmacomputing.com/recipes/member-onboarding-javascript.md): This script automates the onboarding process for a new member by creating them and executing a series of actions in a specific order. - [Members: Bulk Deactivate](https://help.sigmacomputing.com/recipes/members-bulk-deactivate.md): This script deactivates and deletes all users found using a single parameter that can be configured as a wildcard. - [Members: Change Email Address (JavaScript)](https://help.sigmacomputing.com/recipes/members-change-email-address-javascript.md): This script automates the process of changing a member's email address in Sigma. - [Members: Create New (JavaScript)](https://help.sigmacomputing.com/recipes/members-create-new-javascript.md): This script creates a new member, workspace and the associated grants in Sigma by sending a POST request to the API endpoints required. - [Members: List All (JavaScript)](https://help.sigmacomputing.com/recipes/members-list-all-javascript.md): This script retrieves all members from the Sigma API by making GET requests with pagination until all members are fetched. - [Members: Recent Workbooks (JavaScript)](https://help.sigmacomputing.com/recipes/members-recent-workbooks-javascript.md): This script fetches recent documents and folders for a specified member from the Sigma API. - [Members: Update (JavaScript)](https://help.sigmacomputing.com/recipes/members-update-javascript.md): This script updates the account type of a member on the Sigma platform by sending a PATCH request to the API with the new member type. - [Teams: Bulk Assign Members (JavaScript)](https://help.sigmacomputing.com/recipes/teams-bulk-assign-members-javascript.md): This script is designed to bulk assign existing members to a specific team, utilizing the members' emails as identifiers. - [Teams: Bulk Remove Members (JavaScript)](https://help.sigmacomputing.com/recipes/teams-bulk-remove-members-javascript.md): This script is designed to bulk remove existing members to a specific team, utilizing the members' emails as identifiers. - [Tenants: Bulk Sync Connection Paths (JavaScript)](https://help.sigmacomputing.com/recipes/tenants-bulk-sync-connection-paths-javascript.md): This script demonstrates how to perform bulk operations across all tenants associated with a given parent organization. The specific example demonstrates syncing a specified connection path for each tenant's connections. > **Note:** This page contains both a page directory (above) and the landing page content (below). The page directory is generated for agent use and does not appear on the landing page. > For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://help.sigmacomputing.com/recipes/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server. # API Recipes > Ready-to-use code samples for common Sigma API workflows. # API Recipes Ready-to-use code samples for common Sigma API workflows. Click any recipe to view the code sample and instructions. #### [Get Access Token](/recipes/authentication-get-access-token-javascript) #### [List All Connections](/recipes/connections-list-all-javascript) #### [Sync All Tables in Schema](/recipes/connections-sync-all-tables-in-schema-javascript) #### [Get Column Names by Page and Element](/recipes/get-column-names-by-page-and-element-javascript) #### [Get Member Details](/recipes/member-get-member-details-javascript) #### [Member Onboarding](/recipes/member-onboarding-javascript) #### [Bulk Deactivate Members](/recipes/members-bulk-deactivate) #### [Change Email Address](/recipes/members-change-email-address-javascript) #### [Create New Member](/recipes/members-create-new-javascript) #### [List All Members](/recipes/members-list-all-javascript) #### [Recent Workbooks](/recipes/members-recent-workbooks-javascript) #### [Update Member](/recipes/members-update-javascript) #### [Bulk Assign Members](/recipes/teams-bulk-assign-members-javascript) #### [Bulk Remove Members](/recipes/teams-bulk-remove-members-javascript) #### [Bulk Sync Connection Paths](/recipes/tenants-bulk-sync-connection-paths-javascript) #### [Copy Workbook to My Documents](/recipes/workbook-copy-workbook-to-member-my-documents-folder-javascript) #### [Export to CSV with Date Range](/recipes/workbook-export-to-csv-with-date-range-parameters-javascript) #### [Export to PDF](/recipes/workbook-export-to-pdf-javascript) #### [Initiate Materialization Job](/recipes/workbook-initiate-materialization-job-javascript) #### [List All Workbooks](/recipes/workbook-list-all-javascript) #### [Pagination](/recipes/workbook-pagination-javascript) #### [Reassign Ownership by Email](/recipes/workbook-reassign-ownership-by-email) #### [Shared with Me](/recipes/workbook-shared-with-me-javascript) #### [List All Input Tables](/recipes/workbooks-list-all-input-tables-javascript) #### [Update Owner](/recipes/workbooks-update-owner-javascript)