Restore browser profiles from the recycle bin
Restore profiles from the current team recycle bin in a batch. Duplicate IDs are removed automatically. The backend is called only after all IDs pass validation. If restoring the profiles would exceed the plan quota, the endpoint returns 40915. This operation preserves the local profile cache.
Request parameters
Authorization Bearer Token
Include your API Key as a Bearer token in the Authorization request header.
Authorization: Bearer <api-key>Body parameters
requiredapplication/jsonRecycleBinMutationRequestminItems: 1maxItems: 100Generated from the schema; not a live response.
{
"env_ids": [
"env_01JABCDEF1234567890"
]
}Request code examples
JavaScript / TypeScript: Node.js 18+ with fetch; PHP: cURL extension; Go: 1.16+; Java: JDK 11+. Replace the token and example parameter values before running.
curl -X POST -H 'Authorization: Bearer <TOKEN>' -H 'Content-Type: application/json' -d '{
"env_ids": [
"env_01JABCDEF1234567890"
]
}' 'http://local.zhongyibrowser.com:39025/api/v1/recycle-bin/restore'Responses
Success: code = 0. Failure: code > 0. Select a status to view its fields and example. Expand objects to inspect nested fields. Optional fields may be omitted.
Browser profile restoration result
Body
application/jsonRecycleBinRestoreSuccessResponseobjectrequiredEndpoint business dataAdditional fields are not allowed.
Additional fields are not allowed.
Generated from the schema; not a live response.
{
"code": 0,
"message": "success",
"data": {
"status": "restored",
"env_ids": [
"env_01JABCDEF1234567890"
],
"count": 0
}
}