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.
- Log in to your Macrometa account.
- Click Compute > Stream Workers.
- Write and save stream worker as described in Create a Stream Worker.
- 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.
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.