Skip to main content

Create an API Endpoint

Any stream worker can be used as an API endpoint.

Create an API Endpoint

You can create a REST API endpoint from a stream worker.

  1. Log in to your Macrometa account.
  2. Click Compute > Stream Workers.
  3. Write and save stream worker as described in Create a Stream Worker.
  4. Click API Endpoint.

Macrometa displays the cURL (Client URL) command that you can use in the terminal or command line to make an API call and run the query.

API Endpoint

Stream Worker Endpoints

The generated cURL command provides an easy way to get a JavaScript Web Token (JWT) and the URL to the API endpoint. This can be especially useful to call the API for testing purposes.