Requirements
The examples require:- An organization account with Cybr Labs
- An organization API key
- A server runtime with
fetch, such as Node.js 18 or later.
Install the SDK
The public SDK package is coming soon. We will add installation instructions here when the package is available.
@cybr/labs-sdk import. They document the integration flow without assuming that you can install the package yet.
For a direct HTTP integration, see the REST API quickstart.
Create a server client
Read the API key from secure server configuration. Pass that value asapiKey:
Launch a lab
- List the available labs:
- Select an activated lab from your catalog.
- Resolve the learner ID from your server session.
- Launch the lab:
- Store
deployment.idwith the learner session. - Wait for the environment:
- Return the required connection details from
ready.outputsto that learner.
End the lab
When the learner selects your end action, calldestroy():
