curl --request POST \
--url https://api.browserbase.com/v1/functions/{id}/invoke \
--header 'Content-Type: application/json' \
--header 'X-BB-API-Key: <api-key>' \
--data '
{
"params": {},
"sessionCreateParams": {
"extensionId": "<string>",
"browserSettings": {
"context": {
"id": "<string>",
"persist": true
},
"extensionId": "<string>",
"viewport": {
"width": 123,
"height": 123
},
"blockAds": true,
"solveCaptchas": true,
"recordSession": true,
"logSession": true,
"advancedStealth": true,
"captchaImageSelector": "<string>",
"captchaInputSelector": "<string>",
"os": "windows",
"size": "small",
"enableNativeSelectPolyfill": true,
"enablePdfViewer": true,
"headful": true,
"extensions": [],
"allowedDomains": []
},
"timeout": 10830,
"proxies": [
{
"type": "browserbase",
"geolocation": {
"country": "<string>",
"city": "<string>",
"state": "<string>"
},
"domainPattern": "<string>"
}
],
"proxySettings": {
"caCertificates": []
},
"userMetadata": {}
}
}
'