Schema Preview support for my custom node

Hi. I am building my own custom declarative style node in which I consume my own API. I want to be able to expose a Schema Preview, without the need to execute the API or pin data. Is this even possible? I want this data to be available in the downstream node, for an example, when using the IF node, i want to be able to select this predefined data. I can see that google calendar’s create actions are “exposed” without having a need to execute the node…

Hi, @fpuco!

Yes, this is possible, but only by defining the output schema statically in your custom node. You must declare the fields and their types in the node definition so they are available to downstream nodes without execution.

n8n does not support dynamically generating a schema preview from an API without executing the node or using pinned data. If the schema depends on runtime API responses, execution is required.