Expand description
Constructors§
Source§new Webhook<L extends string, P extends WebhookProps>(
id: L,
props: P,
): Webhook<L, P>
new Webhook<L extends string, P extends WebhookProps>(
id: L,
props: P,
): Webhook<L, P>
Properties§
§§§§
public readonly id: LUnique identifier for this state
public readonly label: string | undefinedThe node label
public position?: NodePositionPosition of the node in the n8n workflow editor canvas When undefined, the node will be placed automatically
props: P§public size: NodeSizeDEFAULT_NODE_SIZESize of the node in the n8n workflow editor
Methods§
Source§canTakeInput(
_fromState: IChainable,
_withConnectionOptions?: ConnectionOptions,
): boolean
canTakeInput(
_fromState: IChainable,
_withConnectionOptions?: ConnectionOptions,
): boolean
Determines if this state can accept input from another state
Source§clone<Id extends string>(
id: Id,
props?: NodeProps,
cloneOptions?: { preserveChainConnections?: boolean },
): Omit<Webhook<L, P>, "id"> & Node<
Id,
{
body: GetOutputSchemaField<P, "body">;
executionMode: "test" | "production";
headers: GetOutputSchemaField<P, "headers">;
params: GetOutputSchemaField<P, "params">;
query: GetOutputSchemaField<P, "query">;
webhookUrl: string;
},
>
clone<Id extends string>(
id: Id,
props?: NodeProps,
cloneOptions?: { preserveChainConnections?: boolean },
): Omit<Webhook<L, P>, "id"> & Node<
Id,
{
body: GetOutputSchemaField<P, "body">;
executionMode: "test" | "production";
headers: GetOutputSchemaField<P, "headers">;
params: GetOutputSchemaField<P, "params">;
query: GetOutputSchemaField<P, "query">;
webhookUrl: string;
},
>
Creates a deep copy of this node with a new ID and optional property overrides
Source§getCredentials(): (
| Credentials<HttpBasicAuthCredentials>
| Credentials<HttpHeaderAuthCredentials>
| Credentials<JwtAuthCredentials>
| undefined
)[]
getCredentials(): (
| Credentials<HttpBasicAuthCredentials>
| Credentials<HttpHeaderAuthCredentials>
| Credentials<JwtAuthCredentials>
| undefined
)[]
Returns the credentials required by this node
Source§listOutgoing(): IChainable<string, any>[]
listOutgoing(): IChainable<string, any>[]
Returns all states that are connected as next states from this state
Starts the workflow when a webhook is called