Upload Extension
Upload a Manifest V3 extension as a ZIP file with manifest.json at its root.
POST
/
extensions
Upload Extension
const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.browser-use.com/api/v4/extensions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v4/extensions \
--header 'Content-Type: multipart/form-data' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--form file=@example-fileimport requests
url = "https://api.browser-use.com/api/v4/extensions"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}Was this page helpful?
⌘I
Upload Extension
const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.browser-use.com/api/v4/extensions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v4/extensions \
--header 'Content-Type: multipart/form-data' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--form file=@example-fileimport requests
url = "https://api.browser-use.com/api/v4/extensions"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}