A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.
Lesson 31, module 8: Data, security and rules API keys, service accounts and access rights in a workflow The joinery firm's workflow holds four keys. Who else can use them?
A secret lives in the tool's credentials, and nowhere else. Not in a text field Not in the spreadsheet or the record Not in a shared export Every access is set on four layers. [Diagram: The four layers of an access] The vault The account The rights The cap When Claire leaves the company, her accounts will close. So will the workflow. A devis@ mailbox rather than Claire's Gmail A project's key, not a person's A webhook without authentication is an open door. Prompt: curl -X POST "https://[votre-instance]/webhook/[chemin]" -H "X-Cle-Webhook: $CLE_WEBHOOK" -d '{"test":true}' Response: With the right header, the workflow receives the request. Without the header or with a wrong value, n8n rejects the request and nothing runs. A leaked key is replaced within the hour, then revoked. [Diagram: A key has leaked] H+0: New key, old one revoked H+1: Spending and logs reviewed D+1: Cause found, record updated In the exercise, you clean up the access of a wine merchant.
Your turn: Clean up the access of a wine merchant The written lesson, the corrected exercise and the quiz are below the video.
Lesson 31 of 50 · module 8, data, security and rules
API keys, service accounts and access rights for a flow
A workflow holds keys: the AI key, access to the spreadsheet and the inbox, its webhook address. Store every secret in the tool’s credentials, never in a field or a spreadsheet, have it held by a company account, give it as few rights as possible, cap spending and protect the webhook.
26 min of reading
1 min 42 of video
7 diagrams
0 demande to copy
3 exemples pratiques
4 exercices answerss
5 questions
1 ressource
By the end of this lesson, you will know how to
Store every secret of a workflow in the tool’s credentials and spot those lying around elsewhere
Assign each access to a company account with the fewest possible rights and a spending cap
Protect a webhook and manage the replacement of a leaked key
What’s covered
Where secrets live
The account that runs each action
As few rights as possible
Protect the webhook
When a key has leaked
3 worked examples, followed from start to finish
Exercise with answers · Clean up a wine merchant’s access
3 practice exercises, from guided to demanding cases
The quiz
Key points
A secret is entered once, in the tool’s credentials; never in a field, an expression, a spreadsheet, the workflow sheet or a shared export.
The accesses of a workflow meant to last belong to a company account that at least two people can reconnect.
Each flow has its own AI key, with a spending cap and an expiry date, and each access has the fewest rights possible.
A production webhook has authentication, and its address appears on no public page.
A leaked key is replaced and revoked within the hour; the response is written in the workflow sheet before you need it.
The Pessac joinery’s quote request workflow holds four accesses: the AI provider’s key, permission to write to the “Demandes de devis” Google Sheet, permission to create drafts in a Gmail mailbox, and its webhook address, which accepts any request from anyone who knows the address. Each one is a door. For each, ask four questions: where is the secret stored, which account holds it, what rights does it open, and what happens if it leaks?
The four layers of an access
The vault
The secret is entered once in the tool’s credentials, which encrypt or mask it.
The account
The access belongs to a company account, which survives departures and leave.
Rights
The account opens only what the workflow needs: one file, one mailbox, one project.
The cap
A spending limit and an expiry date limit the damage of a leak.
One badly configured layer is enough: a key stored properly but with no cap, or capped but in the name of someone who is leaving.
Where secrets live
In n8n, a secret is entered in a credential: n8n encrypts it before saving it to its database, and each node that needs it calls it by name. Make calls them connections, as does Zapier: same principle. Since n8n version 2, the Code node no longer reads environment variables by default, and the documentation recommends credentials for anything sensitive. The rule fits in one sentence: a secret entered anywhere other than in credentials is a secret someone will end up reading.
Places a secret must never be
Where
Why it’s dangerous
Where to put it
A node’s text field, such as an HTTP Request header
Visible to anyone who opens the workflow, and copied into the JSON export
A “Header Auth” credential or the provider’s own
An expression or a Code node
Readable in the editor and in execution data
A credential, called by the node
The workflow’s spreadsheet, a “Settings” tab
Shared with the whole team, sometimes by public link
A credential; the spreadsheet holds only data
The automation sheet, an email, Teams
These documents get passed around and kept for years
Only the credential name and the account that holds it
A JSON export sent to a contractor
It contains the names and IDs of the access credentials, and sometimes a header copied from a cURL command
An export opened, checked and cleaned before sending
Generate the encryption key, then declare it in the .env fileTerminal
# Génère 32 octets aléatoires, écrits en 64 caractères hexadécimaux.
# Testé le 15/11/2026 sur macOS ; même commande sous Linux.
openssl rand -hex 32
# Copiez le résultat dans le gestionnaire de mots de passe de l'entreprise,
# puis dans le fichier .env du serveur (jamais dans Git, jamais dans la fiche) :
# N8N_ENCRYPTION_KEY=[les 64 caractères générés]
# Le fichier .env se protège en lecture :
chmod 600 .env
Changing the key of an instance that already holds credentials is not a trivial step: do it on a copy, and ideally only at installation.
The account that runs each action
Claire built the flow by signing in to Google with her own account. Everything works, until the day she changes roles, goes on extended leave or leaves the company: her account is suspended, and the flow stops. The access for a flow that has to last belongs to a service account: a company devis@ mailbox for Gmail, a file shared with that account for Google Sheets, a key created in a company project with the AI provider. OpenAI says so explicitly: use a project service account as the application’s identity, rather than a developer’s personal key.
Personal account or service account
Claire’s account
The workflow sees her entire personal mailbox
It stops when they leave or change their password
Her emails go out under her name
Nobody else can reconnect the access
The devis@ account
The workflow sees only the quotes mailbox
It survives departures and leave
Replies go out in the joinery’s name
Thierry and Julien can reconnect it
As few rights as possible
The joinery workflow’s rights
Accessibility
Sufficient right
Avoid
Google Sheets
Only the “Demandes de devis” file, shared with edit rights with devis@; the team has read access
A file shared with “anyone with the link”
Gmail
The devis@ mailbox, in which the flow creates drafts
The managing director’s personal mailbox, which contains banking and payroll
AI key
A key specific to the workflow, in a dedicated project or workspace, with a spending cap and an expiry date
The organisation key, shared by all tools
n8n platform
One account per person, two-factor authentication enabled
A single “admin” account whose password everyone knows
Webhook
Header authentication, production address never published
An address with no authentication, pasted into the site’s public code
In Anthropic, create a key restricted to the joinery firm’s flow
In the Claude console, open the Workspaces page and create a “Flux menuiserie” workspace.
Set a spend limit on this workspace; that isn’t possible on the default workspace, hence the dedicated one.
In this workspace, create an API key named “Classer les demandes de devis”.
Copy the key once only, straight into a new n8n credential for the provider, named “IA - devis menuiserie”. Do not paste it anywhere else.
In the record, under “Access”, note the credential name, the workspace and the limit, never the key.
Labels may vary depending on the console version. When spending reaches a workspace’s limit, the API rejects requests with a message saying so: your error workflow will alert you. With OpenAI, you get the same result with a project dedicated to the workflow: spending limits and alerts per project, and an expiry date set when the key is created, which the documentation strongly recommends.
Protect the webhook
A webhook’s production URL accepts any request that reaches it. If it is lying around in the website’s public code or in an email, anyone can fill your spreadsheet with fake requests and use up your executions. n8n’s Webhook node offers four authentication methods: “Basic auth”, “Header auth”, “JWT auth” and “n8n User Auth”, plus the “IP(s) Allowlist” option, which rejects addresses not on the list with a 403 error. For a form, header authentication is the simplest: the tool calling the webhook adds a secret header, which n8n compares with its credential.
Test the protected webhook from a terminalTerminal
# Le secret de l'en-tête vit dans une variable d'environnement, jamais en clair :
# export CLE_WEBHOOK="[la valeur rangée dans le gestionnaire de mots de passe]"
# 1. Avec le bon en-tête : la demande de test doit arriver dans le workflow.
curl -X POST "https://[votre-instance]/webhook/[chemin]" \
-H "Content-Type: application/json" \
-H "X-Cle-Webhook: $CLE_WEBHOOK" \
-d '{"nom": "Test", "projet": "Fenêtre alu, Pessac"}'
# 2. Sans l'en-tête : la requête doit être refusée, et rien ne s'exécute.
curl -X POST "https://[votre-instance]/webhook/[chemin]" \
-H "Content-Type: application/json" \
-d '{"nom": "Intrus"}'
The header name (here X-Cle-Webhook) and its value are set in the Webhook node’s “Header Auth” credential. Command syntax checked on 15 November 2026; the tool sending the request must be able to add a header.Is the webhook protected?
1Is authentication set on the Webhook node?
No Add “Header auth” with a long, random secret.
2Is the production URL absent from the website’s public code?
No Have the webhook called by the form’s server, not by the browser.
3Is a request without a header refused in testing?
No Review the node’s credential, then test again.
4Is the header secret stored in the password manager?
No Store it there and remove it from everywhere else.
Yes to allThe webhook accepts only requests from the form.
Fix every “no” before going live, not after the first spreadsheet full of fake requests.
When a key has leaked
A key pasted into a Teams message, an export sent as is, a published screenshot: leaks mostly happen by accident. The response is always the same and goes in the workflow sheet before you need it. For a planned replacement, OpenAI’s documentation advises creating the new key first, checking it works, then revoking the old one; for a leak, revocation happens within the hour, even if it means stopping the workflow for a few minutes.
A leaked key, hour by hour
H+0Replace and revoke
New key in the credential, old one revoked with the provider.
H+1Measure
Provider spending and logs reviewed since the leak.
J+1Understand
Where the key was copied, who saw it, what must change.
J+2Trace
Entry in the sheet’s history, rule added.
“Classer les demandes de devis” record, Access section and Check box
Box
Content
Trigger
n8n webhook protected by “Header auth”; production address known only to Tally
Data
Customer’s contact details and request (personal data: yes)
Decisions
Classification and extraction by AI, doubtful cases for review
Actions
Row in “Demandes de devis” and Gmail draft, using the devis@ account’s access
Inspection
Access: credentials “IA - devis menuiserie” (dedicated workspace, monthly spending limit), “Google - devis@”, “Gmail - devis@”, “Header auth - webhook devis”. Held by devis@, can be reconnected by Thierry and Julien. Two-factor authentication on n8n. AI key replaced every year; in case of a leak, follow the procedure in the sheet
Mistakes to avoid
Paste the AI provider’s key into the header of an HTTP Request node, “until we tidy it up”.
The key is readable by anyone who opens the workflow and goes out with every export. Temporary fixes last, and the key ends up with a contractor or in a screenshot.
Create a provider credential, or a “Header Auth” credential, from the outset and call it from the node. If the key has already been entered in plain text, replace it.
Build the flow with your own Google account and your own AI key, because it’s quicker.
The workflow depends on one person: it stops when they leave, change their password or lose their access, and it sees everything their account sees.
Have each access held by a company account, with only the rights it needs, and note in the record the two people who can reconnect.
Delete the Teams message where the key was pasted, and consider the matter closed.
Anyone who read the message could have copied it, and the history, notifications or a backup keep it. Until it is revoked, it works.
Create a new key, put it in the credential, revoke the old one within the hour, then review usage since the leak.
Publish a webhook without authentication and call its address from the website’s page code.
The address is readable by any visitor. A bot can fill the spreadsheet with fake requests, use up executions and trigger AI calls at your expense.
Set “Header auth” on the Webhook node, have the form’s server call the address, and test that a request without the header is rejected.
3 SME situations followed from start to finish: the prompts exactly as they were written, the model answer to aim for, and what was checked before sending.
Example 1
An electrical contractor’s n8n server, with its encryption key
Thomas is a project manager and IT lead at a 30-employee general electrical contractor in Mérignac. He installs n8n on a rented server to automate site reports and equipment orders. The provider renting out the server backs up the database every night.
A well-guarded encryption key
1Generation
openssl rand -hex 32, before the first launch.
2Vault
Copy in the company password manager.
3Server
Declared in the .env file, read-protected.
4Restore tested
The overnight database and the same key, on a test server.
Request 1
Key generated with openssl rand -hex 32 before the first launch, copied to the company password manager, then declared in the server’s .env file, which is read-protected.
Model answer
Server .env file (excerpt)
N8N_ENCRYPTION_KEY=[64 characters, stored in the “Informatique” vault]
GENERIC_TIMEZONE=Europe/Paris
File permissions: read and write for the account that runs n8n only
Thomas sets the key himself rather than letting it be generated: that way he knows where it is, and the provider doesn’t need it for the backup.
Request 2
Restore test with the hosting provider: last night’s backup restored onto a test server, launched with the same key, then three credentials opened.
Model answer
Restore of 20/11, test server
Workflows: 9 of 9
Credentials: 12, opened without errors
Test run of the “Commandes de matériel” workflow: successful
Thomas records in the server sheet where the key is, who has access to it (himself and the manager), and the date of the last restore test.
What was checked before sending
The key appears neither in the record, nor in the configuration repository, nor in an email to the contractor.
Restore tested on a copy before going into production.
Two-factor authentication enabled on the n8n admin account and on the hosting provider’s customer area.
Rough scale: an hour of preparation, versus re-entering twelve credentials and several days of downtime when a server fails.
Example 2
A car hire agency’s Zaps, after someone leaves
Karine runs a 10-employee car hire agency near Mérignac airport. Her six Zaps (bookings, vehicle condition reports, deposit reminders) had been connected by her former deputy, who left in September. Three stopped the day his Microsoft 365 account was closed.
Connections before and after
Before
Three connections in the former deputy’s name
An API key they still hold
Three Zaps stopped
After
All connections in the name of agence@
Old key revoked
Six active Zaps, two-factor authentication
Request 1
Inventory of Zapier connections: for each, the account that holds it and the Zaps that use it.
Model answer
Office 365 Outlook: former deputy’s account, 3 Zaps (failing)
Google Sheets: Karine’s account, 4 Zaps
Booking software: former deputy’s API key, 2 Zaps
Twilio (SMS): agency account, 1 Zap
Karine finds that the booking software key is also the former deputy’s: it still works, but he could use it.
Request 2
Switch to an agence@ mailbox: new Outlook and Google Sheets connections in agence@'s name, new API key created in the booking software for agence@, old key revoked, two-factor authentication on Zapier for Karine and her assistant.
Model answer
Connections after the switch:
Office 365 Outlook: agence@
Google Sheets: agence@
Booking software: agence@'s key, old one revoked
Twilio: agency account
Zaps: 6 active, 3 replayed from history
The three stopped Zaps are replayed after the switchover. Karine records in each sheet the holding account and the two people who can reconnect.
What was checked before sending
Every connection reviewed after the switch: none left in the name of someone who has left.
Revoked key tested: the booking software rejects it.
Replayed executions compared with the software’s bookings to avoid duplicates.
Rough scale: half a day for the switchover, and no more downtime at the next departure; a key still active with a former employee shut down.
Example 3
A key pasted into a shared spreadsheet, and the cap that held
Julie is head of teaching at a 12-person language school in Bordeaux. To test a marking flow, a trainer pasted the AI provider’s key into a “Réglages” tab of the enrolments Google Sheet, which is shared with all the trainers and two contractors.
One morning, from discovery to rule
10 hDiscovery
The key is in the “Réglages” tab of a shared spreadsheet.
10 h 10Revocation
New key in place, old one revoked.
11 hMeasurement
Three weeks of usage reviewed: nothing unusual.
The next dayRule
Policy updated, trainers informed.
Request 1
As soon as it was discovered, at 10am: new key created in the “Correction des copies” project, replaced in the flow’s n8n credential, old key revoked, “Réglages” tab deleted.
Model answer
10:05am: new key created, project monthly cap: $15
10:08am: n8n credential updated, test execution successful
10:10am: old key revoked
10:12am: tab deleted, spreadsheet version history checked
Julie knows that deleting the tab isn’t enough: the spreadsheet’s version history keeps the key. Revoking it is what makes it unusable.
Request 2
Review of the project’s usage since the date the key was pasted, three weeks earlier.
Model answer
Project usage over three weeks: about $3
No spikes, no requests outside class hours
$15 cap never approached
No one else used the key, and the cap would have limited the loss anyway. Julie adds to the policy: “no keys anywhere other than in n8n credentials”.
What was checked before sending
The new key exists only in the n8n credential and the vault; checked by searching for “sk-” in the shared Drive.
Usage reviewed over the whole exposure period, not just the day it was discovered.
Dated entry in the sheet’s history, with the rule added to the policy.
Rough scale: fifteen minutes to neutralise the leak, and a possible loss capped at $15 a month thanks to the limit set when the project was created.
Antoine manages a 15-employee wine merchant in Libourne. An intern who left in June built a Make scenario that receives orders from wine shops via a form on the website, has the AI extract the product references and quantities, adds them to a Google Sheet and sends a confirmation. Reviewing the scenario, Antoine finds: the Google and Gmail connections in the name of the intern’s personal address; the AI provider key written in plain text in a header field of an HTTP module; the spreadsheet shared with “anyone with the link”; the webhook address visible in the form page’s code. Clean up these access points.
Fill in the workflow sheet’s five boxes, with a complete “Access” section.
Rank the four problems from most to least urgent, with a one-line justification.
Describe, in order, the steps to replace the AI key without stopping orders for more than a few minutes.
State which account should hold each access, and with which rights.
Propose how to protect the webhook, and how to test it.
See the answers
The sheet for the “Record wine merchants’ orders” workflow
Box
Content
Trigger
Website order form, called by the website’s server to Make’s Custom webhook, with a secret header
AI extracts references and quantities; unknown reference: for review
Actions
Row in “Commandes”, confirmation to the wine merchant. Account: the wholesaler’s commandes@
Inspection
Access: Google and Gmail connection for commandes@; AI key for the “Commandes cavistes” project, capped; spreadsheet shared with commandes@ and the sales team only. Stand-in: the sales administration manager
The AI key in plain text: anyone who opens the scenario can read it, as can anyone with an exported blueprint; it may already have been passed around. Replace within the hour.
The spreadsheet shared by link: wine merchants’ orders and contact details can be read by anyone with the link.
The webhook visible in the page: anyone can send fake orders.
The intern’s connections: the scenario will stop when his account is closed; urgent, but not a leak.
Create a new key in a “Commandes cavistes” project in the company’s account with the provider, with a spending limit and an expiry date.
In Make, create an AI provider connection with this key and select it in a module of the provider’s app, instead of the HTTP module and its plain-text header.
Place a test order and check the added row.
Revoke the old key with the provider, then review its usage since the intern left.
Export the corrected blueprint and check it no longer contains any key.
The accounts: a commandes@ mailbox belonging to the wholesaler holds the Google and Gmail connections; the spreadsheet is moved to a company shared Drive, shared with edit rights with commandes@ and read access for the sales team, and link sharing is turned off. Antoine and the sales administration manager each have their own Make account, with two-factor authentication.
Testing the webhook after protectionTerminal
# Secret de l'en-tête dans une variable d'environnement
# export CLE_WEBHOOK="[valeur du gestionnaire de mots de passe]"
# Avec l'en-tête : la commande de test doit apparaître dans « Commandes »
curl -X POST "https://[adresse-du-webhook-make]" \
-H "Content-Type: application/json" \
-H "X-Cle-Commande: $CLE_WEBHOOK" \
-d '{"caviste": "Test", "reference": "TEST-01", "quantite": 1}'
# Sans l'en-tête : le scénario doit l'écarter (filtre sur l'en-tête),
# et aucune ligne ne doit apparaître.
In Make, the header is checked by a filter placed right after the webhook, which compares the incoming header with the secret; check the option in the Custom webhook module that passes headers to the scenario.
Practise
Three more exercises, from the most guided to the most demanding. The material is provided in full: copy it into your tool, then check your work against the criteria before opening the answers.
Level 1 · guided10 min
Spot badly stored secrets
Here are six extracts found in the tools of a 14-employee landscaping company in Gradignan. For each one, say whether it exposes a secret, and where that secret should live.
The material to work on
1. HTTP Request node, “Header Value” field: Bearer [AI provider key in plain text]
2. n8n credential named “IA - devis paysage”, selected in the AI provider node
3. “Settings” tab of the site jobs spreadsheet: “Gmail password: [password in plain text]”
4. Flow sheet, Access section: “Google connection: chantiers@ account, can be reconnected by Hélène and Marc”
5. Teams message of 3 November: “Here’s the key for your test: [key in plain text]”
6. Code of the website’s “Quote request” page: fetch("https://[your-instance]/webhook/devis"), with no header
Check your work
Extracts 1, 3 and 5 are identified as secret leaks
Extracts 2 and 4 are identified as correct
Excerpt 6 is identified as an exposed webhook, even without a plain-text secret
For 1, 3 and 5, you plan to replace the secret, not just delete it
See the answers
Excerpt
Problem
Correction
1. Key in a header
Leak: readable in the editor and the export
Provider credential; new key, old one revoked
2. Named credential
None
This is good practice
3. Password in the spreadsheet
Leak: readable by the whole team
Password changed; OAuth connection of the chantiers@ account in the tool
4. Sheet, Access section
None
The name and the holder, without the value
5. Key in Teams
Leak: the history keeps the message
New key, old one revoked, message deleted
6. Webhook in the page
Open door: anyone can call it
Called by the form’s server with a secret header
Look for forgotten keys in an exportTerminal
# Cherche dans un export JSON les mots qui trahissent souvent un secret.
# Affiche le numéro de ligne, sans recopier la ligne entière.
grep -n -i -o -E "authorization|bearer|api[_-]?key|token|password|sk-" workflow-export.json
Level 2 · independent20 min
Write the Access section for a flow
A 20-employee removals company in Bègles has the Make workflow described below. Write its “Access” section: for each access, the connection name, the account holder, the minimum rights needed, the cap or protection, and who can reconnect. Flag what needs to change.
The material to work on
Flow “Préparer les devis de déménagement”
1. Custom webhook: receives the website’s request form (departure address, arrival address, volume, date).
2. AI provider module: estimates the volume from the list of furniture. Connection: key from the personal account of Damien, sales rep.
3. Google Sheets: adds the request to the “Devis 2026” file, in Damien’s Drive, shared with the whole company by link.
4. Gmail: creates a draft in Damien’s mailbox.
People: Damien (sales rep, owner), Nadia (assistant), the managing director.
Check your work
Every access is tied to a company account, no longer to Damien
The AI key is specific to the flow, capped, in a company project
The spreadsheet leaves Damien’s Drive and link sharing is turned off
The webhook gets protection, and two people can reconnect each access
See the answers
The “Access” section rewritten
Accessibility
Log in
Holder and rights
Safeguard
Reconnection
Webhook
Custom webhook “Devis déménagement”
Called by the website’s server
Filter on a secret header; address kept out of public code
Damien, Nadia
IA
“IA - devis déménagement”
Key from a company project dedicated to the flow
Monthly spending limit, expiry date
The manager, Nadia
Google Sheets
“Google - devis@”
File in a shared Drive, edit for devis@, view for sales staff
Link sharing turned off
Damien, Nadia
Gmail
“Gmail - devis@”
Drafts in the devis@ mailbox
Account two-factor authentication
Damien, Nadia
Have an AI check the section
Here is the “Access” section of an automation workflow sheet: [paste the section]. For each access, check four points: the holder is a company account, not a person; rights are limited to what the workflow uses; a cap or protection exists; at least two people can reconnect. Also flag any value written in the section that looks like a secret. Reply with a table: access, missing point, proposed fix.
Roughly what you should get
A short table that flags nothing if the section is complete, or the missing points access by access, for example a connection still in one person’s name.
Level 3 · demanding case35 min
Handling a leaked key and an attacked webhook
Read the incident log of a 9-person HR consultancy in Bordeaux. Write the hour-by-hour response, the design fixes, the test that proves the webhook is protected, and the sheet’s “Access” section after the incident.
The material to work on
Incident log, Thursday 12 November
08:40 The AI provider’s invoice shows $214 since the start of the month, against the usual $4.
08:55 In the n8n workflow “Résumer les comptes rendus d'entretien”, the AI key is written in the header of an HTTP Request node. The workflow was exported and sent to a freelancer on 2 November.
09:10 The “Comptes rendus” spreadsheet contains 1,800 rows added overnight, in English, unrelated to the firm.
09:15 The form’s webhook address appears in the code of the website’s “Contact” page. The Webhook node has no authentication.
09:20 The key belongs to the founder’s personal account, with no spending limit.
No two-factor authentication on n8n.
Check your work
The key is replaced and the old one revoked before any further analysis
The workflow is unpublished while the webhook is protected, then republished
The new key belongs to the workflow alone, sits in a company project and is capped
The webhook gets header authentication and its test without a header fails
The 1,800 junk rows are isolated without touching the real ones
See the answers
What to do
When
Action
09:25
Unpublish the workflow: it receives nothing while it is being fixed
09:30
Create a key in a “Comptes rendus” project in the company account, $20 monthly cap, expiry date; store it in an n8n credential; revoke the old one
09:45
Replace the HTTP Request node with the provider’s node using the credential; check the export: no keys left
10:00
Webhook node: “Header auth” with a 64-character secret; the website form calls it from the server, and the address disappears from the page
10:15
Tests with and without the header, then republication
10:30
Move the junk rows, identified by date added and language, to a separate tab, then delete them after checking
11:00
Two-factor authentication on all n8n accounts; tell the freelancer the old key has been revoked
The two webhook testsTerminal
# export CLE_WEBHOOK="[secret de l'identifiant Header Auth]"
# Attendu : accepté, une ligne de test dans « Comptes rendus »
curl -s -o /dev/null -w "%{http_code}\n" -X POST "https://[votre-instance]/webhook/[chemin]" \
-H "Content-Type: application/json" -H "X-Cle-Webhook: $CLE_WEBHOOK" \
-d '{"test": "avec en-tête"}'
# Attendu : refusé, aucune ligne ajoutée
curl -s -o /dev/null -w "%{http_code}\n" -X POST "https://[votre-instance]/webhook/[chemin]" \
-H "Content-Type: application/json" \
-d '{"test": "sans en-tête"}'
The -w option displays only the HTTP response code: a success code for the first call, an error code for the second.
All the course prompts to copy, both for the assistant that helps you build and for the AI step of a flow, including answers, practical examples and practice tasks, sorted by module and lesson, with filters to find the right one.
For each lesson, the main exercise and the three graded practice tasks with their materials, to do on paper or alongside your automation platform; all the answers are grouped at the end.
The course’s practical examples, job by job: the situation, the prompt as it was written, the model answer and what was checked before letting the flow run.
All the lessons in a single PDF: objectives, written course with its diagrams, tables and requests, common mistakes, exercise and key takeaways. The practice exercises and answers are in the workbook, the examples in the collection.
Your notes stay on this device; they are not sent anywhere.
A question for the tutor
A result that doesn’t match the model answer, a prompt that gets you nowhere, a case specific to your business: write to us with your prompt and the response you got. A Bonbay Académie trainer replies within 24 working hours, on your case.