n8n-nodes-browser-use
Version:
n8n node to control browser-use AI-powered browser automation with Nodes-as-Tools support
43 lines • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BrowserUseCloudApi = void 0;
class BrowserUseCloudApi {
constructor() {
this.name = 'browserUseCloudApi';
this.displayName = 'Browser Use Cloud API';
this.documentationUrl = 'https://docs.browser-use.com/cloud/quickstart';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: 'API key from Browser Use Cloud',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '={{`Bearer ${$credentials.apiKey}`}}',
},
},
};
this.test = {
request: {
baseURL: 'https://api.browser-use.com/api/v1',
url: '/ping',
method: 'GET',
headers: {
Authorization: '={{`Bearer ${$credentials.apiKey}`}}',
},
},
};
}
}
exports.BrowserUseCloudApi = BrowserUseCloudApi;
//# sourceMappingURL=BrowserUseCloudApi.credentials.js.map