SDK
HttpEndpoint
HttpEndpoint
allows you to create and HttpTrigger, which means you can trigger your Jobs from any webhooks
There are two steps to using an HttpEndpoint
:
- Use client.defineHttpEndpoint() to create an
HttpEndpoint
. - Use onRequest() to create an
HttpTrigger
. This method is shown below.
You can see a complete example on this page.
Creating an HttpEndpoint
Use client.defineHttpEndpoint() to create an HttpEndpoint
.
Methods
onRequest()
You don’t need to provide any options to onRequest()
. But you can provide a filter – if an incoming request matches the filter then the Job will run.
options
object
filter
RequestFilter
Only Requests that match this filter will cause the corresponding function to run. For example, you can use this to only allow GET
Requests.
Was this page helpful?