浏览器档案
管理持久化浏览器状态 — cookies、本地存储与登录会话。
登录态或客户级浏览器上下文需要跨会话保留时,附加浏览器档案。
不要让无关任务共享同一份档案;隔离能让恢复和权限更清楚。
普通会话会自动同步。手动 blob 和锁操作属于高级路径。
API 使用边界:先按账号、客户或工作流拆分档案;普通会话负责自动同步下载和写回;手动 blob、写锁和解锁属于迁移、备份或异常恢复路径,不是常规会话流程。
列出浏览器档案
GET/v1/profiles查看接口细节收起接口细节
/v1/profiles鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
curl -X GET "https://api.hivebrowser.ai/v1/profiles" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/profiles", { headers: { "Authorization": "Bearer <token>" }});浏览器档案列表
响应示例
{
"data": {
"items": [
{
"id": "string",
"teamId": "string",
"name": "string",
"description": "string",
"mode": "READ_ONLY",
"status": "READY",
"fingerprintConfig": {
"property1": null,
"property2": null
},
"proxyConfig": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"generatorProfileConfig": {
"os": "string",
"user_agent": "string",
"webgl_vendor": "string",
"webgl_renderer": "string",
"languages": "string",
"language_mode": "string",
"timezone_mode": "string",
"timezone": "string",
"geolocation_mode": "string",
"geolocation_latitude": 0,
"geolocation_longitude": 0,
"geolocation_accuracy": 0,
"webrtc_mode": "string",
"google_services_enabled": true,
"fonts_masking": true,
"media_devices_masking": true,
"video_inputs": 0,
"audio_inputs": 0,
"audio_outputs": 0,
"canvas_mode": "string",
"client_rects_mode": "string",
"audio_context_mode": "string",
"webgl_image_mode": "string",
"webgl_meta_mode": "string",
"cpu_threads": 1,
"ram": 1,
"screen_resolution": "string",
"proxy_type": "string",
"proxy_host": "string",
"proxy_port": "string",
"proxy_user": "string",
"proxy_pass": "string"
},
"latestStorageKey": "string",
"latestVersion": 0,
"latestBlobSizeBytes": "string",
"lockedBySessionId": "string",
"lockMode": "string",
"lockAcquiredAt": "string",
"lastUsedAt": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"total": 0,
"page": 1,
"pageSize": 0
}
}API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}创建浏览器档案
POST/v1/profiles查看接口细节收起接口细节
/v1/profiles鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
请求体
application/json必填name必填字符串浏览器档案显示名称
1最大长度: 120description字符串可选档案描述
500mode字符串默认访问模式
"READ_ONLY"可选值: "READ_ONLY" | "READ_WRITE"fingerprintConfig对象原始指纹配置
查看属性
[key: string]unknownproxyConfig对象此浏览器档案的代理配置
查看属性
server必填字符串代理服务器 URL(例如 http://proxy.example.com:8080)
1username字符串代理鉴权用户名
1password字符串代理鉴权密码
1bypass数组<字符串>不走代理的主机列表
generatorProfileConfig对象指纹生成配置
查看属性
os字符串指纹使用的操作系统
user_agent字符串自定义 User-Agent 字符串
webgl_vendor字符串WebGL 厂商字符串
webgl_renderer字符串WebGL 渲染器字符串
languages字符串 | 数组<字符串>浏览器语言
查看属性
element数组<字符串>language_mode字符串timezone_mode字符串timezone字符串IANA 时区标识符
geolocation_mode字符串geolocation_latitude数字geolocation_longitude数字geolocation_accuracy整数0webrtc_mode字符串google_services_enabled布尔值fonts_masking布尔值media_devices_masking布尔值video_inputs整数0audio_inputs整数0audio_outputs整数0canvas_mode字符串client_rects_mode字符串audio_context_mode字符串webgl_image_mode字符串webgl_meta_mode字符串cpu_threads整数1ram整数1screen_resolution字符串proxy_type字符串proxy_host字符串proxy_port字符串 | 整数proxy_user字符串proxy_pass字符串[key: string]anyseedState对象初始档案状态(cookies、localStorage 等)
查看属性
[key: string]unknowncurl -X POST "https://api.hivebrowser.ai/v1/profiles" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "description": "string", "mode": "READ_ONLY", "fingerprintConfig": { "property1": null, "property2": null }, "proxyConfig": { "server": "string", "username": "string", "password": "string", "bypass": [ "string" ] }, "generatorProfileConfig": { "os": "string", "user_agent": "string", "webgl_vendor": "string", "webgl_renderer": "string", "languages": "string", "language_mode": "string", "timezone_mode": "string", "timezone": "string", "geolocation_mode": "string", "geolocation_latitude": 0, "geolocation_longitude": 0, "geolocation_accuracy": 0, "webrtc_mode": "string", "google_services_enabled": true, "fonts_masking": true, "media_devices_masking": true, "video_inputs": 0, "audio_inputs": 0, "audio_outputs": 0, "canvas_mode": "string", "client_rects_mode": "string", "audio_context_mode": "string", "webgl_image_mode": "string", "webgl_meta_mode": "string", "cpu_threads": 1, "ram": 1, "screen_resolution": "string", "proxy_type": "string", "proxy_host": "string", "proxy_port": "string", "proxy_user": "string", "proxy_pass": "string" }, "seedState": { "property1": null, "property2": null } }'fetch("https://api.hivebrowser.ai/v1/profiles", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "name": "string", "description": "string", "mode": "READ_ONLY", "fingerprintConfig": { "property1": null, "property2": null }, "proxyConfig": { "server": "string", "username": "string", "password": "string", "bypass": [ "string" ] }, "generatorProfileConfig": { "os": "string", "user_agent": "string", "webgl_vendor": "string", "webgl_renderer": "string", "languages": "string", "language_mode": "string", "timezone_mode": "string", "timezone": "string", "geolocation_mode": "string", "geolocation_latitude": 0, "geolocation_longitude": 0, "geolocation_accuracy": 0, "webrtc_mode": "string", "google_services_enabled": true, "fonts_masking": true, "media_devices_masking": true, "video_inputs": 0, "audio_inputs": 0, "audio_outputs": 0, "canvas_mode": "string", "client_rects_mode": "string", "audio_context_mode": "string", "webgl_image_mode": "string", "webgl_meta_mode": "string", "cpu_threads": 1, "ram": 1, "screen_resolution": "string", "proxy_type": "string", "proxy_host": "string", "proxy_port": "string", "proxy_user": "string", "proxy_pass": "string" }, "seedState": { "property1": null, "property2": null } })});浏览器档案已创建
响应示例
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"description": "string",
"mode": "READ_ONLY",
"status": "READY",
"fingerprintConfig": {
"property1": null,
"property2": null
},
"proxyConfig": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"generatorProfileConfig": {
"os": "string",
"user_agent": "string",
"webgl_vendor": "string",
"webgl_renderer": "string",
"languages": "string",
"language_mode": "string",
"timezone_mode": "string",
"timezone": "string",
"geolocation_mode": "string",
"geolocation_latitude": 0,
"geolocation_longitude": 0,
"geolocation_accuracy": 0,
"webrtc_mode": "string",
"google_services_enabled": true,
"fonts_masking": true,
"media_devices_masking": true,
"video_inputs": 0,
"audio_inputs": 0,
"audio_outputs": 0,
"canvas_mode": "string",
"client_rects_mode": "string",
"audio_context_mode": "string",
"webgl_image_mode": "string",
"webgl_meta_mode": "string",
"cpu_threads": 1,
"ram": 1,
"screen_resolution": "string",
"proxy_type": "string",
"proxy_host": "string",
"proxy_port": "string",
"proxy_user": "string",
"proxy_pass": "string"
},
"latestStorageKey": "string",
"latestVersion": 0,
"latestBlobSizeBytes": "string",
"lockedBySessionId": "string",
"lockMode": "string",
"lockAcquiredAt": "string",
"lastUsedAt": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"latestBlobState": {},
"recentVersions": [
{
"id": "string",
"teamId": "string",
"profileId": "string",
"version": 1,
"objectKey": "string",
"sizeBytes": "string",
"checksum": "string",
"createdBySessionId": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}
}请求载荷无效
响应示例
{
"error": "string",
"message": "string"
}API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}浏览器档案配额已超出
响应示例
{
"error": "string",
"message": "string"
}查询浏览器档案
GET/v1/profiles/{id}查看接口细节收起接口细节
/v1/profiles/{id}鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
路径参数
id必填字符串浏览器档案 ID
curl -X GET "https://api.hivebrowser.ai/v1/profiles/string" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/profiles/string", { headers: { "Authorization": "Bearer <token>" }});浏览器档案详情
响应示例
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"description": "string",
"mode": "READ_ONLY",
"status": "READY",
"fingerprintConfig": {
"property1": null,
"property2": null
},
"proxyConfig": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"generatorProfileConfig": {
"os": "string",
"user_agent": "string",
"webgl_vendor": "string",
"webgl_renderer": "string",
"languages": "string",
"language_mode": "string",
"timezone_mode": "string",
"timezone": "string",
"geolocation_mode": "string",
"geolocation_latitude": 0,
"geolocation_longitude": 0,
"geolocation_accuracy": 0,
"webrtc_mode": "string",
"google_services_enabled": true,
"fonts_masking": true,
"media_devices_masking": true,
"video_inputs": 0,
"audio_inputs": 0,
"audio_outputs": 0,
"canvas_mode": "string",
"client_rects_mode": "string",
"audio_context_mode": "string",
"webgl_image_mode": "string",
"webgl_meta_mode": "string",
"cpu_threads": 1,
"ram": 1,
"screen_resolution": "string",
"proxy_type": "string",
"proxy_host": "string",
"proxy_port": "string",
"proxy_user": "string",
"proxy_pass": "string"
},
"latestStorageKey": "string",
"latestVersion": 0,
"latestBlobSizeBytes": "string",
"lockedBySessionId": "string",
"lockMode": "string",
"lockAcquiredAt": "string",
"lastUsedAt": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"latestBlobState": {},
"recentVersions": [
{
"id": "string",
"teamId": "string",
"profileId": "string",
"version": 1,
"objectKey": "string",
"sizeBytes": "string",
"checksum": "string",
"createdBySessionId": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}
}API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}资源不存在
响应示例
{
"error": "string",
"message": "string"
}删除浏览器档案
DELETE/v1/profiles/{id}查看接口细节收起接口细节
/v1/profiles/{id}鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
路径参数
id必填字符串浏览器档案 ID
curl -X DELETE "https://api.hivebrowser.ai/v1/profiles/string" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/profiles/string", { headers: { "Authorization": "Bearer <token>" }});浏览器档案已删除
API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}资源不存在
响应示例
{
"error": "string",
"message": "string"
}浏览器档案已锁定或正在使用
响应示例
{
"error": "string",
"message": "string"
}持久化浏览器档案 Blob
POST/v1/profiles/{id}/blob查看接口细节收起接口细节
/v1/profiles/{id}/blob鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
请求体
application/json必填state必填对象要持久化的浏览器档案状态数据
查看属性
[key: string]unknownsourceSessionId字符串产生此状态的会话
1路径参数
id必填字符串浏览器档案 ID
curl -X POST "https://api.hivebrowser.ai/v1/profiles/string/blob" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "state": { "property1": null, "property2": null }, "sourceSessionId": "string" }'fetch("https://api.hivebrowser.ai/v1/profiles/string/blob", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "state": { "property1": null, "property2": null }, "sourceSessionId": "string" })});浏览器档案 Blob 已持久化
响应示例
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"description": "string",
"mode": "READ_ONLY",
"status": "READY",
"fingerprintConfig": {
"property1": null,
"property2": null
},
"proxyConfig": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"generatorProfileConfig": {
"os": "string",
"user_agent": "string",
"webgl_vendor": "string",
"webgl_renderer": "string",
"languages": "string",
"language_mode": "string",
"timezone_mode": "string",
"timezone": "string",
"geolocation_mode": "string",
"geolocation_latitude": 0,
"geolocation_longitude": 0,
"geolocation_accuracy": 0,
"webrtc_mode": "string",
"google_services_enabled": true,
"fonts_masking": true,
"media_devices_masking": true,
"video_inputs": 0,
"audio_inputs": 0,
"audio_outputs": 0,
"canvas_mode": "string",
"client_rects_mode": "string",
"audio_context_mode": "string",
"webgl_image_mode": "string",
"webgl_meta_mode": "string",
"cpu_threads": 1,
"ram": 1,
"screen_resolution": "string",
"proxy_type": "string",
"proxy_host": "string",
"proxy_port": "string",
"proxy_user": "string",
"proxy_pass": "string"
},
"latestStorageKey": "string",
"latestVersion": 0,
"latestBlobSizeBytes": "string",
"lockedBySessionId": "string",
"lockMode": "string",
"lockAcquiredAt": "string",
"lastUsedAt": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}请求载荷无效
响应示例
{
"error": "string",
"message": "string"
}API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}资源不存在
响应示例
{
"error": "string",
"message": "string"
}Blob 持久化冲突
响应示例
{
"error": "string",
"message": "string"
}更新生成器配置
POST/v1/profiles/{id}/generator-config查看接口细节收起接口细节
/v1/profiles/{id}/generator-config鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
请求体
application/json必填generatorProfileConfig必填对象新的生成器配置;传 null 表示清空
查看属性
os字符串指纹使用的操作系统
user_agent字符串自定义 User-Agent 字符串
webgl_vendor字符串WebGL 厂商字符串
webgl_renderer字符串WebGL 渲染器字符串
languages字符串 | 数组<字符串>浏览器语言
查看属性
element数组<字符串>language_mode字符串timezone_mode字符串timezone字符串IANA 时区标识符
geolocation_mode字符串geolocation_latitude数字geolocation_longitude数字geolocation_accuracy整数0webrtc_mode字符串google_services_enabled布尔值fonts_masking布尔值media_devices_masking布尔值video_inputs整数0audio_inputs整数0audio_outputs整数0canvas_mode字符串client_rects_mode字符串audio_context_mode字符串webgl_image_mode字符串webgl_meta_mode字符串cpu_threads整数1ram整数1screen_resolution字符串proxy_type字符串proxy_host字符串proxy_port字符串 | 整数proxy_user字符串proxy_pass字符串[key: string]any路径参数
id必填字符串浏览器档案 ID
curl -X POST "https://api.hivebrowser.ai/v1/profiles/string/generator-config" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "generatorProfileConfig": { "os": "string", "user_agent": "string", "webgl_vendor": "string", "webgl_renderer": "string", "languages": "string", "language_mode": "string", "timezone_mode": "string", "timezone": "string", "geolocation_mode": "string", "geolocation_latitude": 0, "geolocation_longitude": 0, "geolocation_accuracy": 0, "webrtc_mode": "string", "google_services_enabled": true, "fonts_masking": true, "media_devices_masking": true, "video_inputs": 0, "audio_inputs": 0, "audio_outputs": 0, "canvas_mode": "string", "client_rects_mode": "string", "audio_context_mode": "string", "webgl_image_mode": "string", "webgl_meta_mode": "string", "cpu_threads": 1, "ram": 1, "screen_resolution": "string", "proxy_type": "string", "proxy_host": "string", "proxy_port": "string", "proxy_user": "string", "proxy_pass": "string" } }'fetch("https://api.hivebrowser.ai/v1/profiles/string/generator-config", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "generatorProfileConfig": { "os": "string", "user_agent": "string", "webgl_vendor": "string", "webgl_renderer": "string", "languages": "string", "language_mode": "string", "timezone_mode": "string", "timezone": "string", "geolocation_mode": "string", "geolocation_latitude": 0, "geolocation_longitude": 0, "geolocation_accuracy": 0, "webrtc_mode": "string", "google_services_enabled": true, "fonts_masking": true, "media_devices_masking": true, "video_inputs": 0, "audio_inputs": 0, "audio_outputs": 0, "canvas_mode": "string", "client_rects_mode": "string", "audio_context_mode": "string", "webgl_image_mode": "string", "webgl_meta_mode": "string", "cpu_threads": 1, "ram": 1, "screen_resolution": "string", "proxy_type": "string", "proxy_host": "string", "proxy_port": "string", "proxy_user": "string", "proxy_pass": "string" } })});生成器配置已更新
响应示例
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"description": "string",
"mode": "READ_ONLY",
"status": "READY",
"fingerprintConfig": {
"property1": null,
"property2": null
},
"proxyConfig": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"generatorProfileConfig": {
"os": "string",
"user_agent": "string",
"webgl_vendor": "string",
"webgl_renderer": "string",
"languages": "string",
"language_mode": "string",
"timezone_mode": "string",
"timezone": "string",
"geolocation_mode": "string",
"geolocation_latitude": 0,
"geolocation_longitude": 0,
"geolocation_accuracy": 0,
"webrtc_mode": "string",
"google_services_enabled": true,
"fonts_masking": true,
"media_devices_masking": true,
"video_inputs": 0,
"audio_inputs": 0,
"audio_outputs": 0,
"canvas_mode": "string",
"client_rects_mode": "string",
"audio_context_mode": "string",
"webgl_image_mode": "string",
"webgl_meta_mode": "string",
"cpu_threads": 1,
"ram": 1,
"screen_resolution": "string",
"proxy_type": "string",
"proxy_host": "string",
"proxy_port": "string",
"proxy_user": "string",
"proxy_pass": "string"
},
"latestStorageKey": "string",
"latestVersion": 0,
"latestBlobSizeBytes": "string",
"lockedBySessionId": "string",
"lockMode": "string",
"lockAcquiredAt": "string",
"lastUsedAt": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}请求载荷无效
响应示例
{
"error": "string",
"message": "string"
}API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}资源不存在
响应示例
{
"error": "string",
"message": "string"
}获取写锁
POST/v1/profiles/{id}/locks/write查看接口细节收起接口细节
/v1/profiles/{id}/locks/write鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
请求体
application/json必填sessionId必填字符串请求写锁的会话 ID
1路径参数
id必填字符串浏览器档案 ID
curl -X POST "https://api.hivebrowser.ai/v1/profiles/string/locks/write" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string" }'fetch("https://api.hivebrowser.ai/v1/profiles/string/locks/write", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "sessionId": "string" })});写锁已获取
响应示例
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"description": "string",
"mode": "READ_ONLY",
"status": "READY",
"fingerprintConfig": {
"property1": null,
"property2": null
},
"proxyConfig": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"generatorProfileConfig": {
"os": "string",
"user_agent": "string",
"webgl_vendor": "string",
"webgl_renderer": "string",
"languages": "string",
"language_mode": "string",
"timezone_mode": "string",
"timezone": "string",
"geolocation_mode": "string",
"geolocation_latitude": 0,
"geolocation_longitude": 0,
"geolocation_accuracy": 0,
"webrtc_mode": "string",
"google_services_enabled": true,
"fonts_masking": true,
"media_devices_masking": true,
"video_inputs": 0,
"audio_inputs": 0,
"audio_outputs": 0,
"canvas_mode": "string",
"client_rects_mode": "string",
"audio_context_mode": "string",
"webgl_image_mode": "string",
"webgl_meta_mode": "string",
"cpu_threads": 1,
"ram": 1,
"screen_resolution": "string",
"proxy_type": "string",
"proxy_host": "string",
"proxy_port": "string",
"proxy_user": "string",
"proxy_pass": "string"
},
"latestStorageKey": "string",
"latestVersion": 0,
"latestBlobSizeBytes": "string",
"lockedBySessionId": "string",
"lockMode": "string",
"lockAcquiredAt": "string",
"lastUsedAt": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}请求载荷无效
响应示例
{
"error": "string",
"message": "string"
}API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}资源不存在
响应示例
{
"error": "string",
"message": "string"
}浏览器档案已被锁定
响应示例
{
"error": "string",
"message": "string"
}释放写锁
POST/v1/profiles/{id}/unlock查看接口细节收起接口细节
/v1/profiles/{id}/unlock鉴权
Authorization必填Bearer <token>在 Authorization 请求头中以 Bearer 令牌形式传入 API 密钥。
位置:header
x-hivebrowser-api-key<token>也可以直接通过 x-hivebrowser-api-key 请求头传入 API 密钥。
位置:header
请求体
application/json必填sessionId必填字符串请求写锁的会话 ID
1路径参数
id必填字符串浏览器档案 ID
curl -X POST "https://api.hivebrowser.ai/v1/profiles/string/unlock" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string" }'fetch("https://api.hivebrowser.ai/v1/profiles/string/unlock", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "sessionId": "string" })});写锁已释放
响应示例
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"description": "string",
"mode": "READ_ONLY",
"status": "READY",
"fingerprintConfig": {
"property1": null,
"property2": null
},
"proxyConfig": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"generatorProfileConfig": {
"os": "string",
"user_agent": "string",
"webgl_vendor": "string",
"webgl_renderer": "string",
"languages": "string",
"language_mode": "string",
"timezone_mode": "string",
"timezone": "string",
"geolocation_mode": "string",
"geolocation_latitude": 0,
"geolocation_longitude": 0,
"geolocation_accuracy": 0,
"webrtc_mode": "string",
"google_services_enabled": true,
"fonts_masking": true,
"media_devices_masking": true,
"video_inputs": 0,
"audio_inputs": 0,
"audio_outputs": 0,
"canvas_mode": "string",
"client_rects_mode": "string",
"audio_context_mode": "string",
"webgl_image_mode": "string",
"webgl_meta_mode": "string",
"cpu_threads": 1,
"ram": 1,
"screen_resolution": "string",
"proxy_type": "string",
"proxy_host": "string",
"proxy_port": "string",
"proxy_user": "string",
"proxy_pass": "string"
},
"latestStorageKey": "string",
"latestVersion": 0,
"latestBlobSizeBytes": "string",
"lockedBySessionId": "string",
"lockMode": "string",
"lockAcquiredAt": "string",
"lastUsedAt": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}请求载荷无效
响应示例
{
"error": "string",
"message": "string"
}API 密钥缺失或无效
响应示例
{
"error": "string",
"message": "string"
}资源不存在
响应示例
{
"error": "string",
"message": "string"
}