Reference
Node SDK
The Beam Node SDK gives web developers an easy way to interact with their Beam apps.
Installation
Install the package with npm
:
…or using yarn
:
Importing
Import the package:
Then, initialize the Beam Client, passing your Beam Token as a parameter:
You can find your Beam Token in the API Keys section of the dashboard.
Usage
Deployments
list
Retrieves a list of all deployments.
get
Fetches a deployment by ID.
delete
Deletes a deployment by ID.
refresh
Reloads the deployment data.
call
Makes an API request to the deployment.
realtime
Opens a WebSocket connection for real-time updates.
Here’s a more complete example:
Tasks
list
Retrieves a list of all tasks.
get
Fetches a specific task by ID.
delete
Deletes a task by ID.
cancel
Cancel a task.
refresh
Reloads the task data.
Was this page helpful?