# Sign out everywhere else

End every other session on this account. This one stays signed in.

DELETE `/api/v1/session/others`

**cURL**

```shell
curl -X DELETE 'https://www.prufy.dev/api/v1/session/others' \
  -b cookies.txt
```

**Node.js**

```javascript
// `cookie` is the session cookie that Create a claim returned.
const response = await fetch("https://www.prufy.dev/api/v1/session/others", {
  method: "DELETE",
  headers: { cookie },
})
const data = await response.json()
```

**Python**

```python
import requests

# `session` is the requests.Session() that created the claim.
response = session.delete("https://www.prufy.dev/api/v1/session/others")
data = response.json()
```

Response 200 OK

```json
{
  "signedOut": 1
}
```

For a lost phone or a token that leaked. `signedOut` says how many sessions were ended.

## Authentication

Send the session cookie. Without it the answer is `unauthorized`. [How sessions work](https://www.prufy.dev/docs/authentication.md).

## Response

`200 OK`, with every field below present. Times are ISO 8601 strings in UTC.

- `signedOut` integer

  How many other devices were signed out.

## Errors

| Status | Kind | When |
| --- | --- | --- |
| 401 | `unauthorized` | The request has no session cookie, or one we don't recognise. |

Any route can also answer `500` with `internal_error`. Every error has the same shape, described in [Errors](https://www.prufy.dev/docs/errors.md).

---

Every page of these docs, as a list: https://www.prufy.dev/llms.txt
