2. Refresh Pipedrive tokens

Automated workflow: 2. Refresh Pipedrive tokens. This workflow integrates 9 different services: webhook, stickyNote, httpRequest, code, respondToWebhook. It contains 37 nodes and follows best practices for error handling and security.

Integrations Used (3)

Workflow Structure (20 nodes)
100%
Webhook
catch Auth code
Webhook
Webhook
Code
convert clientId and secret to base64
Supabase
Supabase- look for the record
Http Request
Generate Refresh Token from authcode
Set
combine client id and secret
Supabase
Look for the related record in Supabase
Http Request
Get Pipedrive acess token
If
IF success
If
IF rec not found
Supabase
Update thr row with new access token
Supabase
Insert
Supabase
Update tokns in the record
Webhook
Receive request
Supabase
Get Pipedrive Token
Http Request
Get contact from Pipedrive
If
Access Token Invalid
Http Request
Refresh Access Token
Respond To Webhook
Success
Stop And Error
Stop and Error
Node Types:
default
http
logic
trigger
code
transform
Requires credentials

Prerequisites

Required Credentials (2)

HTTP Basic Auth

Used by: Refresh Access Token, Webhook +1 more

Docs

Supabase

Used by: Insert, Get Pipedrive Token +4 more

Docs

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~45 min
Score: 75/100
Custom Code
Conditional Logic
5 Integrations

When to Use This Workflow

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Time Savings

Replace repetitive manual tasks with reliable automation.

Reclaim hours every week for higher-value work.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "IYgbtNpyB4E6Jbxo",
  "meta": {
    "instanceId": "workflow-170789c5",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:55.695000",
    "updatedAt": "2025-09-29T07:07:55.695019",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "2. Refresh Pipedrive tokens",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
...

Workflow Details

Nodes
29
Trigger
Webhook
Source
community
Added
Sep 29, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Openai Workflow

Automated workflow: Openai Workflow. This workflow integrates 10 different services: postgresTool, stickyNote, httpReque...

Postgres
Postgrestool
Http-request
Supabase
19 nodesWebhook

Openai Workflow

Automated workflow: Openai Workflow. This workflow integrates 10 different services: postgresTool, stickyNote, httpReque...

Postgres
Postgrestool
Http-request
Supabase
19 nodesWebhook

Manualtrigger Workflow

Automated workflow: Manualtrigger Workflow. This workflow integrates 8 different services: webhook, stickyNote, httpRequ...

Http-request
Supabase
Webhook
21 nodesWebhook

ChatGPT Automatic Code Review in Gitlab MR

Edit your own prompt ⬇️

Webhook
Lmchatopenai
Http-request
Chainllm
14 nodesWebhook
Curated

Obsidian Notes Read Aloud: Available as a Podcast Feed

Send Notes to Webhook Setup: - Install [Post Webhook Plugin](https://github.com/Masterb1234/obsidian-post-webhook/) in O...

Openai
Webhook
Http-request
Google-sheets
23 nodesWebhook
Curated

Webhook Workflow

Automated workflow: Webhook Workflow. This workflow integrates 7 different services: webhook, stickyNote, httpRequest, c...

Webhook
Http-request
Graphql
15 nodesWebhook