Skip to main content

Manage job records via webhook REST API with PostgreSQL

Workflow preview

Workflow preview
100%
Manage job records via webhook REST API with PostgreSQL preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow exposes a header authenticated webhook REST API that performs CRUD operations on a PostgreSQL jobs table, letting you create, list, update, and delete job records and r...

Best for

  • HR automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.switch, n8n-nodes-base.postgres, n8n-nodes-base.respondtowebhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Raj.

Original n8n.io source

1.1 Workflow description

Title
Manage job records via webhook REST API with PostgreSQL
Workflow name
Manage job records via webhook REST API with PostgreSQL

Quick overview

This workflow exposes a header-authenticated webhook REST API that performs CRUD operations on a PostgreSQL jobs table, letting you create, list, update, and delete job records and returning either JSON results or an error message to the caller.

How it works

  1. Receives a POST request via a webhook secured with HTTP header authentication.
  2. Reads the request body’s action value and routes the request to the matching operation (list, create, update, or delete).
  3. For list, queries PostgreSQL for up to 100 jobs ordered by created_at and returns the rows in the webhook response.
  4. For create, inserts a new job (title, description, requirements) into PostgreSQL with status set to open and returns a 200 response.
  5. For update, updates the specified job in PostgreSQL using the provided id, fields, and status, then returns a 200 response.
  6. For delete, deletes the specified job by id in PostgreSQL and returns a 200 response.
  7. If any database operation fails, returns a 500 response with an operation-specific error message.

Setup

  1. Create the required PostgreSQL jobs table (id, title, description, requirements, status, created_at) and ensure the database is reachable from n8n.
  2. Add a PostgreSQL credential in n8n and select it in the PostgreSQL nodes.
  3. Create an HTTP Header Auth credential (for example header name x-api-key with your secret value) and attach it to the webhook.
  4. Set the webhook path to your desired endpoint and configure your client to send POST requests with the correct JSON body for action (and required fields like id, title, status).

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 9 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 10 - Get All Jobs

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 11 - Create Job

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 12 - Update Job

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 13 - Delete Job

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 14 - Return Success Response

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 15 - Return Job List

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 16 - Error During Fetching Jobs

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 17 - Error during job creation

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 18 - Error during job details update

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 19 - Error during job deletion

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

3. Summary Table

Workflow Manage job records via webhook REST API with PostgreSQL
Complexity advanced
Nodes 19
Categories HR
Author Raj
Published 03 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16081/16081.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Manage job records via webhook REST API with PostgreSQL do?

Quick overview This workflow exposes a header authenticated webhook REST API that performs CRUD operations on a PostgreSQL jobs table, letting you create, list, update, and delete job records and r...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your HR use case.