Browserbase

关闭浏览器会话

关闭浏览器会话

POST /browserbase/v1/sessions/{id}● 支持

Browserbase

请求参数

  • idstring必填
  • statusstring必填

    Set to `REQUEST_RELEASE` to request that the session complete. Use before session's timeout to avoid additional charges.

    取值 REQUEST_RELEASE

返回

200

仅支持服务指南列出的能力;部分官方请求参数不可用。

错误含 statusCode、error、message;自有面另含 code。请求 ID 见 X-Request-Id。 错误

连接与使用指南

代理、反检测、扩展和 Selenium 不可用。region 和 solveCaptchas 接受但忽略;不提供区域选择或验证码代解。

响应

HTTP 200

The request has succeeded.

application/json

名称类型说明
idstring
createdAtstring
updatedAtstring
projectIdstringThe Project ID linked to the Session.
startedAtstring
endedAtstring
expiresAtstring
statusstring
proxyBytesintegerBytes used via the Proxy
keepAlivebooleanIndicates if the Session was created to be kept alive upon disconnections
contextIdstringOptional. The Context linked to the Session.
regionstringThe region where the Session is running.
userMetadataobjectArbitrary user metadata to attach to the session. To learn more about user metadata, see User Metadata.