API Hello World

Here's a high-level overview of the steps required to activate the Hello World code sample using the EdgeWorkers API.

For instructions on how to return detailed debugging information about your EdgeWorkers, go to the Enhanced debug headers section.

Refer to the comprehensive API documentation for a complete list of endpoints.





Create an EdgeWorker ID

Create an EdgeWorker ID to activate and manage your Hello World code bundle.


Add the EdgeWorkers behavior

Select the EdgeWorker ID you created for the Hello World tutorial when you add the EdgeWorkers behavior.


Create the Hello World code bundle

Go to the EdgeWorkers GitHub repository and download the main.js and bundle.json files from the hello-world project.


Deploy Hello World

To deploy your Hello World code bundle you need to create a version and activate it on the staging or production network.


Test Hello World

To test the Hello World code sample make a request to exercise the EdgeWorker and note the response.

Did this page help you?