Skip to main content
Build an HTTP-triggered automation that returns a JSON response.

Before you begin

1

Create a project directory

2

Sign in

The CLI opens your browser to authorize the device.
3

Initialize the project

Select or create a project when prompted. The command installs the package and creates an example automation in automations/example.automation.ts.
4

Review the automation

The generated example responds to an HTTP request:
automations/example.automation.ts
5

Deploy

The CLI prints the URL for the deployed HTTP trigger.
6

Invoke the automation

Send a request to the URL printed by the deploy command:
The automation responds with: