Build a robust CRUD REST API quickly using this n8n workflow, leveraging Google Sheets as your serverless database. This powerful n8n template handles POST, GET, PUT, and DELETE requests.
Download this n8n workflow template and start using it instantly.
Creating a reliable backend for prototypes or internal tools often requires setting up a database and handling endpoint logic. This process is simplified dramatically by using this comprehensive n8n workflow. This n8n template transforms a standard Google Sheet into a fully functional REST API, managing all Create, Read, Update, and Delete (CRUD) operations via separate, dedicated n8n trigger webhooks. This approach eliminates the need for traditional server code, offering a fast, scalable, and low-code solution. Each specific n8n node in this configuration is optimized for its respective task, ensuring efficient data manipulation in Google Sheets.
This n8n workflow operates using five distinct, parallel branches, each activated by a specific type of API request (n8n trigger):
Webhook: Create n8n trigger (HTTP POST) receives the data payload (name, email, status) and passes it directly to the Append row in sheet n8n node, which adds the new record to the bottom of the Google Sheet. The flow then sends a 'Record created' success response.Webhook: Read All n8n trigger (HTTP GET) initiates the reading of the entire dataset. The subsequent Get rows in sheet n8n node retrieves all records, which are then returned as the API response via the Respond to Webhook: Read All node.Webhook: Read n8n trigger (HTTP GET) accepts an ID via a query parameter. The Get row in sheet n8n node uses this id to filter and retrieve a specific row (by row number) from the Google Sheet.Webhook: Update n8n trigger (HTTP PUT) captures both the row ID (via query parameter) and the updated fields (via the request body). The flow uses the Prepare Fields for Update n8n node to correctly structure this data, passing the row number and the fields to the Update row in sheet n8n node, which performs the modification.Webhook: Delete n8n trigger (HTTP DELETE) receives the target row ID via a query parameter. The Delete rows or columns from sheet n8n node uses this row number as the starting index to delete the specific record, completing the required functionality of this n8n workflow.To deploy this useful n8n workflow template, follow these steps:
name, email, and status. Make sure this sheet is shared with the Service Account email address you will use for authentication.Google Sheets n8n node instances, set up or select your Google Service Account credentials. This is essential for the n8n workflow to interact with your sheet.This n8n workflow template relies on precise configuration of several core n8n node types:
Webhook Nodes (n8n trigger): Five separate webhook nodes are used, sharing the base path but differentiated by HTTP method and endpoint structure to define the CRUD paths (/items for POST/PUT/DELETE, /items/all for GET all). These nodes act as the primary n8n trigger for the entire API.
Google Sheets Node (Append row in sheet): Used for the Create operation. It maps incoming JSON body data ($json.body.name, $json.body.email, etc.) directly into new spreadsheet rows.
Google Sheets Node (Get rows in sheet): Used for the Read All operation. Set to simply retrieve all rows from the specified sheet.
Google Sheets Node (Get row in sheet): Used for Read Single. Configured with a filter where lookupColumn is rownumber and the lookupValue is derived from the incoming URL query parameter ($json.query.id).
Set Node (Prepare Fields for Update): A crucial intermediary n8n node for the Update operation. It dynamically merges the ID received from the query string ($json.query.id) with the data body, structuring the output correctly for the subsequent Update n8n node.
Google Sheets Node (Update row in sheet): Used for the Update operation. It uses rownumber (sourced from the Set node output) as the matching column to locate and overwrite the correct record.
Google Sheets Node (Delete rows or columns from sheet): Used for the Delete operation. It uses the startIndex parameter, populated by the row ID ($json.query.id), to delete a single row.
Respond to Webhook Nodes: These n8n nodes ensure that every operation immediately returns a status message or the requested data back to the API caller.
Use an advanced n8n workflow to deploy a custom AI Executive PA chatbot for your website. This smart n8n template handles customer inquiries, checks Microsoft Outlook calendar availability, and books meetings using specialized n8n tools and the powerful n8n node architecture.

Deploy a custom, branded AI chatbot on your website using this powerful n8n workflow. Integrate complex Flowise multi-agent chatflows and brand your customer support experience.

Build a custom, unified micro-API using an n8n workflow to fetch real-time prices for BTC and ETH (via CoinGecko) and current USD exchange rates (via ExchangeRate-API).

Use this powerful n8n workflow to generate a real-time Calendly availability API endpoint. Get scheduling slots instantly using the n8n trigger and native n8n node integration.

Build an intelligent AI assistant using this powerful n8n workflow. Connect OpenAI and GitHub to create a knowledge base (RAG) from your source code using custom n8n templates.








































