Workflow x n8n integration
Hi everyone, I have a small pro account and I'm trying to trigger a Twenty workflow to create custom object data from an n8n HTTP POST request. I'm having a hard time formatting my JSON. Is there any documentation for this use case? Thank you!
4 Replies
Hey, did you check the playground? It is accessible from yours settings
/settings/api-keys
or go here -> https://docs.twenty.com/rest-api/core
In both cases you need an API Key to generate the documentation for your workspace. You can generate one in your advances settings /settings/api-keysTwenty.com
Open Source CRM
@martmull thank you for your answer - I'm afraid I was misleading in my message title - I have an API key.
I'm building a workflow in my Twenty account, triggered by a webhook (POST request from n8n) and I'm failing at correctly receiving this call.
In n8n, I can see my POST request is successful.
But in my Twenty webhook trigger I can read in the dedicated tab "Expected Body: {"message":"Workflow was started"}".
When I manually format this Body to test my Twenty workflow it works and I successfully create data.
But when data comes from my n8n POST request it fails.
So my mistake is how I format body in Twenty trigger tab.
I was wondering whether there is more documentation or examples, as I think I'm not correctly formatting the body.
Sorry my bad I read to quickly. There is no documentation currently. In the webhook trigger « expected body » field, you need to paste an example of an expected body that n8n will send. This will makes the workflow understand what data it can get from the n8n post requests. Is this clearer?
(I might only read the title ^^)
Got it, thank you for your help.