CollabVM API v2

Here are various endpoints that can be used to pull data from CollabVM

All endpoints can be accessed at https://cvmapi.elijahr.dev

VM List

GET /api/v2/list

Get a list of VMs the bot has access to, and their node IDs.

VM Info

GET /api/v1/vms/{vm}

Pull some data about the current state of the VM.

Returns the following data, in JSON format:

Screenshot

GET /api/v1/vms/{vm}/screenshot

Grab a screenshot of the VM. Returns it as a WEBP image.

Chat Logs

GET /api/v1/chat

Grab chats from the logs. Data goes back to 06/30/2022.

Accepts the following optional query parameters:

If you do not provide any query parameters it simply returns the last 100 messages logged.

Returns a JSON array with an entry for each message. A message is represented by an object with the following properties: