---
title: "Turn automatic reuse of kept sign-ins off (or back on) for this workspace"
method: PUT
path: "/api/v1/workspace/session-reuse"
tags: ["Account"]
---

# Turn automatic reuse of kept sign-ins off (or back on) for this workspace

`PUT /api/v1/workspace/session-reuse`

## Request

- Base URL: `https://unbrowse.ai`
- URL: `https://unbrowse.ai/api/v1/workspace/session-reuse`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://unbrowse.ai/authorize`, token URL `https://unbrowse.ai/oauth/token`, scopes: `unbrowse`)
  - HTTP bearer

## Request body

- object
  - `reuse` boolean, required

## Response `200`

The effective setting

- SessionReuse
  - `workspaceId` string, required
  - `reuse` boolean, required: Effective: whether kept signed-in sessions are reused automatically (sites set to Never or Ask me excepted).
  - `explicit` boolean, nullable: What the workspace set; null when it never chose (on by default).
  - `reason` string, required
  - `never` string[]: Sites set to Never: their kept sign-in is never reused.
  - `ask` string[]: Sites set to Ask me: each reuse needs your approval.
  - `change` string

## Other responses

- `400`: An error
- `401`: Missing or invalid credentials. The WWW-Authenticate header names the protected-resource metadata.
- `402`: An error
- `404`: An error
- `429`: An error

---

[API](https://skmtc.dev/unbrowse/apis/unbrowse-api.md) · [All operations](https://skmtc.dev/unbrowse/apis/unbrowse-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unbrowse/apis/unbrowse-api/revisions/f49034a1fbff?raw)
