---
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: 8.1
page_id: pingam:am-authentication:logout-using-rest
canonical_url: https://docs.pingidentity.com/pingam/8.1/am-authentication/logout-using-rest.html
keywords: ["Authentication", "Sessions", "REST API"]
page_aliases: ["authentication-guide:logout-using-rest.adoc"]
---

# 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://am.example.com:8443/am/json/realms/root/realms/alpha/sessions/?_action=logout'
{
     "result": "Successfully logged out"
 }
```

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