Connect Jam to n8n to automate work after a form is submitted or media is shared. This guide sets up a GET route for Jam's ownership check and a POST route for the actual events, both at the same URL.
For event types, signing details and delivery behaviour, see Webhooks.
Before you start
- A running n8n instance with a publicly reachable HTTPS URL.
- Permission to create and publish or activate n8n workflows.
- Permission to manage webhooks in the relevant Jam workspace.
- A secure place to store the signing secret Jam displays when you create the connection.
Use n8n's Production URL for the saved Jam connection. A
/webhook-test/URL is temporary and can pass verification, then fail on the next delivery because its listener is no longer registered.
1. Create GET and POST routes
Create a workflow with two Webhook trigger nodes:
- Jam verification: HTTP Method GET, Path
jam. - Jam events: HTTP Method POST, Path
jam.
Both use the same path but different HTTP methods. Choose a different path if jam is already registered. On both nodes, set Respond to Using 'Respond to Webhook' Node. Keep the two branches separate.
For the GET node, set Authentication to None. Jam's GET verification does not send Basic, JWT or custom authentication credentials. POST requests must instead be authenticated using Jam's signature, as described below.
Some n8n versions also offer Settings > Allow Multiple HTTP Methods. You can use GET and POST outputs from one trigger instead. Use one approach, not both, to avoid registering the same path and method twice.
2. Return the challenge on the GET branch
Connect Jam verification directly to a Respond to Webhook node. Configure:
- Respond With: JSON.
- Options > Response Code: 200.
- Response Body: switch the field to Expression and enter the following.
{{ { challenge: $json.query.challenge } }}
Jam sends the challenge in the URL query string, not a header or request body:
GET https://your-n8n.example/webhook/jam?challenge=abc123
Your response must be HTTP 200 with this JSON object:
{"challenge":"abc123"}
Respond within 10 seconds. Use the exact value from the current request. Do not hardcode abc123, wrap the object in an array or return the challenge as plain text. Connect the trigger directly so that another node does not replace $json.query.
The GET branch is only an ownership check. It should not create records, download media or run the POST event workflow.
3. Configure the POST branch
The Jam events node receives the JSON event body. In the normal parsed output, read the payload from $json.body and the event type from $json.headers['x-jam-event']. The events are form.submitted and media.share_media.
For production, authenticate the request before performing any action. Preserve the original body bytes using the Webhook node's raw-body support or verify at a trusted receiving service before forwarding to n8n. Raw-body output differs from parsed JSON, so inspect your node's output and parse it only after verification.
Read X-JAM-Signature, calculate HMAC-SHA256 using the Jam secret and timestamp + "." + raw body, compare securely and reject stale timestamps. See Authenticate POST requests in the Webhooks guide for the full contract. n8n's generic Header Auth is not a substitute for validating Jam's dynamic signature. If your n8n environment cannot safely access secrets or validate raw-body HMAC, use a trusted verification service in front of it.
After authentication and safe acceptance or queueing, use a separate Respond to Webhook node with Respond With: JSON, Response Code: 200 and this fixed JSON response:
{"received":true}
Respond within 30 seconds. Give every accepted POST path a response. Keep slow work outside that response path and monitor it separately. Reject invalid signatures with a non-2xx response instead of acknowledging them as accepted.
4. Publish and copy the Production URL
- Save and publish the workflow, or switch it to Active in older n8n versions.
- Open a Webhook node and select Production URL.
- Copy the URL. It normally contains
/webhook/, not/webhook-test/. Copy the URL n8n actually displays rather than guessing it. - Confirm that both GET and POST use the same production endpoint.
Production executions are visible in n8n's Executions tab. You do not need to keep clicking Listen for test event or Execute workflow.
5. Add and verify the connection in Jam
- In the correct workspace, open Settings > Webhooks > Add Webhook.
- Paste the n8n Production URL.
- Select Media Shared, Form Submitted, or both.
- Create the connection and save its signing secret securely. Configure that secret in your POST signature verifier.
- Open the webhook details and click Verify Now.
- Confirm the connection is verified and enabled.
If you are replacing a test URL, edit the existing Jam endpoint and verify the new URL. Avoid creating duplicate active connections to the same workflow. After a successful cutover, disable any obsolete connection you intentionally replaced.
6. Check the full workflow
- Submit a test form or explicitly use Send to Webhook for selected media in Jam.
- Open the connection's Delivery Analytics and Recent Deliveries. Confirm a successful 2xx response.
- Open n8n's Executions tab and find the matching POST execution.
- Check that the payload was mapped correctly and the destination action completed.
Successful GET verification does not test POST processing. Likewise, HTTP 200 means n8n acknowledged the request, not that every later node succeeded. Configure n8n error handling for failures after acknowledgement.
Common problems and fixes
Webhook is not registered / HTTP 404
Confirm the workflow is published or active and that Jam uses the Production URL. Test listeners expire. Reopening a test listener may make one attempt work without fixing the saved connection.
Not registered for POST requests. Did you mean GET?
The ownership route exists, but the delivery route does not. Add the POST Webhook node at the same path or enable the POST output on a multi-method trigger, then publish the changes.
Challenge mismatch
Use Expression mode with {{ { challenge: $json.query.challenge } }}. Check that challenge is a top-level string and that the response is not a default workflow-started message. Ensure the GET branch actually reaches its Respond to Webhook node.
Expecting value / Extra data / invalid JSON
Set Respond With to JSON. Returning plain challenge text, HTML or multiple JSON values will fail. Do not use the Text response mode for verification.
HTTP 500 or timeout
Inspect the failed execution for expression or node errors. Keep the GET branch direct and finish within 10 seconds. POST acknowledgement must arrive within 30 seconds.
401 / 403 or signature mismatch
Remove unsupported authentication requirements from the GET route. For POST, check the signing secret for this specific Jam connection, timestamp handling and raw-body preservation. Two Jam connections can have different secrets even when they point to the same URL.
Duplicate executions
Check for duplicate enabled Jam subscriptions and retries of earlier failed requests. Make business actions idempotent so another delivery attempt does not create another record. Use stable payload identifiers appropriate to the action, such as a submission ID.
Verified but no new events
Confirm the Jam workspace, enabled status and selected event types. Trigger a new matching event. Verification alone does not replay older events, and uploading a file alone does not trigger Media Shared.
Ready-to-use checklist
- Production URL saved in Jam and workflow published or active.
- GET returns the current challenge as JSON with HTTP 200 within 10 seconds.
- POST is registered at the same URL and authenticates Jam signatures.
- Accepted events receive 2xx within 30 seconds.
- Jam shows the endpoint as verified and enabled.
- A fresh event succeeds in Jam and completes the intended action in n8n.
- Duplicate handling and downstream error monitoring are configured.