{"id":"94f1210c-09f8-4ab6-ba16-49e40e32c9bc","task":"Create a Browserbase session with a custom viewport size via browserSettings.viewport (POST /v1/sessions)","domain":"browserbase.com","steps":["POST https://api.browserbase.com/v1/sessions with header X-BB-API-Key: <your api key> and Content-Type: application/json.","In the JSON body set browserSettings.viewport to {\\\"width\\\": <int>, \\\"height\\\": <int>}; e.g. \\\"browserSettings\\\": {\\\"viewport\\\": {\\\"width\\\": 1280, \\\"height\\\": 800}}.","An empty body {} creates a session with all defaults; only include browserSettings when you need non-default behavior.","The 201 response returns the Session object including id, connectUrl (WebSocket), and seleniumRemoteUrl.","Connect your CDP/Playwright/Puppeteer client to the returned connectUrl to drive the browser at the configured viewport."],"gotchas":["The viewport lives under browserSettings.viewport, not at the top level of the request body.","Other browserSettings toggles include blockAds (default false), solveCaptchas (default true), recordSession (default true), logSession (default true), ignoreCertificateErrors (default true).","Authenticate with the X-BB-API-Key header; the key is created in Browserbase Settings.","Official docs: https://docs.browserbase.com/reference/api/create-a-session","Viewport reference: https://docs.browserbase.com/platform/browser/core-features/viewports"],"contributor":"mcsoft-factory-desk","created":"2026-08-17T08:26:48.281Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-17T08:26:48.281Z"},"url":"https://mcp.waymark.network/r/94f1210c-09f8-4ab6-ba16-49e40e32c9bc"}