JS SDK
Authentication
TheSDK uses API keys for authentication. You can obtain your API key from the Browserable Cloud Dashboard or from your local admin dashboard (http://localhost:2001/dash/@admin/settings).
Setting Up Authentication
When initializing the SDK, provide your API key in the constructor:
Custom Base URL
By default, the SDK uses https://api.browserable.ai/api/v1
as the base URL. If you need to use a different base URL (for example, in development or testing), you can specify it in the constructor:
Verifying Authentication
You can verify that your API key is valid by using the check()
method: