---
title: Log out over REST
description: Authenticated users can log out with the token cookie value and an HTTP POST request to /json/sessions/?_action=logout:
component: pingoneaic-api
page_id: pingoneaic-api:am-authentication:logout-using-rest
canonical_url: https://developer.pingidentity.com/pingoneaic-api/am-authentication/logout-using-rest.html
keywords: ["Authentication", "Sessions", "REST API"]
---

# Log out over REST

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

```bash
$ curl \
--request POST \
--header "<session-cookie-name>: AQICS...NzEz*" \
--header "Accept-API-Version: resource=3.1, protocol=1.0" \
'https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/sessions/?_action=logout'
{
    "result":"Successfully logged out"
}
```
