diff --git a/packages/nodes-base/nodes/Twilio/Twilio.node.ts b/packages/nodes-base/nodes/Twilio/Twilio.node.ts index 5ba363318d..4acd0c8ec7 100644 --- a/packages/nodes-base/nodes/Twilio/Twilio.node.ts +++ b/packages/nodes-base/nodes/Twilio/Twilio.node.ts @@ -151,10 +151,25 @@ export class Twilio implements INodeType { }, description: 'The message to send', }, + { + displayName: 'Options', + name: 'options', + type: 'collection', + placeholder: 'Add Field', + default: {}, + options: [ + { + displayName: 'Status Callback', + name: 'statusCallback', + type: 'string', + default: '', + description: 'Status Callbacks allow you to receive events related to the REST resources managed by Twilio: Rooms, Recordings and Compositions', + }, + ], + }, ], }; - async execute(this: IExecuteFunctions): Promise { const items = this.getInputData(); const returnData: IDataObject[] = []; @@ -192,6 +207,7 @@ export class Twilio implements INodeType { body.From = this.getNodeParameter('from', i) as string; body.To = this.getNodeParameter('to', i) as string; body.Body = this.getNodeParameter('message', i) as string; + body.StatusCallback = this.getNodeParameter('options.statusCallback', i, '') as string; const toWhatsapp = this.getNodeParameter('toWhatsapp', i) as boolean;