Documentation

API V6 Documentation

A comprehensive documentation of the Browser.lol V6 API for creating and managing workspaces

Avatar
Author
BROWSER.LOL
Published at May 22, 2024
5 min read

To be able to use the API, you need an API key. Contact us to discuss the available options.

The API makes it possible to start a session with certain parameters directly without the user having to start it manually. The required end points and their parameters are listed below. The API is designed to be as simple as possible and can be used by any programming language.

GETapp.browser.lol/api/v6/getKey

Response Body on Success:

{"success":true,"token":"SAMPLECODE","quota":100,"count":100,"remaining":100}

Important: The request must always be made on the server side and the API key must be kept secret.

This endpoint can be used to retrieve a session key which can then be used to start a session on the client. The number of requests to this endpoint is unlimited. Once a key has been created, it is valid for 2 hours. A session is only added to the quota when it is started in the next step.

Request Parameters:

key: The API key assigned to your organization.

GETDeprecatedapp.browser.lol/api/v6/getUsage

Response Body on Success:

{"success":true,"quota":100,"count":100,"remaining":100}

Important: The request must always be made on the server side and the API key must be kept secret.

As all quota data is also displayed in the getKey endpoint since the API V6 update, this endpoint is no longer required. We recommend using the endpoint above /api/v6/getKey for the quota query instead.

Request Parameters:

key: The API key assigned to your organization.

Possible Errorsapp.browser.lol/api/v6/*

All errors that could occur are listed below.

Wrong Credentials:

{"success":false,"message":"auth-failed"}

Quota Exceeded:

{"success":false,"message":"quota-exceeded","quota":100,"count":100,"remaining":100}

Serverside Error:

{"success":false,"message":"srv-error"}
GETapp.browser.lol/b

Called directly from the client browser.

This endpoint can be started directly on the client with all the necessary parameters. After calling the URL in the client's browser, the process of creating the browser is displayed. As soon as this has been created, the session is automatically redirected.

Attention: If this URL is called and an old session is still active on the client, it is deleted and a new one is automatically started.

Request Parameters:

key: The key that was generated with the /getKey endpoint.

browser: A browser in which the session is subsequently opened. The following browsers are currently available: Chrome, Edge, Firefox, Tor, Brave, Opera. If this parameter is not specified, Chrome is used by default.

url: The url to be opened in the virtual browser.

callbackUrl: If a URL is specified, the user is redirected to it after the session has been ended manually. If none is specified, the application itself is referred to by default.