---
title: Log out of AM over REST
description: Authenticated users can log out with the token cookie value and an HTTP POST to /json/sessions/?_action=logout:
component: pingam
version: 7.2
page_id: pingam:authentication-guide:action-logout
canonical_url: https://docs.pingidentity.com/pingam/7.2/authentication-guide/action-logout.html
keywords: ["Authentication", "Sessions", "REST API"]
---

# Log out of AM over REST

Authenticated users can log out with the token cookie value and an HTTP POST to `/json/sessions/?_action=logout`:

```bash
$ curl \
--request POST \
--header "Content-type: application/json" \
--header "iPlanetDirectoryPro: AQICS…​NzEz*" \
--header "Accept-API-Version: resource=3.1, protocol=1.0" \
'https://openam.example.com:8443/openam/json/realms/root/realms/alpha/sessions/?_action=logout'
{
    "result": "Successfully logged out"
}
```

For information about using an administrator token to force the logout of other authenticated users, refer to [Invalidate sessions](../sessions-guide/managing-sessions-REST.html#invalidate-sessions).
