The HTTP Service lets you create an HTTP endpoint with a unique URL that triggers the associated workflow when an HTTP request is received.
You can also use this service to call any endpoints from within your workflows. They can be HTTP endpoints created with Liteflow but also any external endpoints (webhooks).
endpointKey helps to generate a unique URL. Keep the same value when you update your workflow to keep the same URL. Change its value to generate a new unique URL.
The URL will be generated by the commands
|endpointKey||A key used to generate a unique URL|
|authentication||If set to true, the endpoint requires your users' requests to contain an |
name: my-feature steps: - type: trigger endpointKey: endpointX authentication: true # ...
The HTTP endpoint trigger contains the following data:
|body||All the data contained in the request body|
|headers||All the headers contained in the request|
|userId||Optional If endpoint requires authentication, then this data will contain the |
|service||Select the HTTP service|
|taskKey||Task needed to send an HTTP Request.|
|inputs||Inputs required to send an HTTP Request|
|url||URL that you want to call.|
|data||(optional) Data you wish to send.|
|headers||(optional) Additional headers that you want to send.|
name: my-workflow steps: ... - type: task service: http taskKey: send inputs: url: https://mywebsite.com/my-webhook-endpoint data: foo: bar headers: authorization: 'Bearer xxxxx' - ...
The result of the task returns the following information about the data.
|status||Status code returned by the request.|
|statusText||Status text returned by the request.|
|data||Data returned in the response.|
|headers||Headers sent in the response.|