---
title: Authenticate over REST
description: AM provides the /json/authenticate endpoint for authentication, and the /json/sessions endpoint for managing sessions and logging out.
component: pingam
version: 7.3
page_id: pingam:authentication-guide:authn-rest
canonical_url: https://docs.pingidentity.com/pingam/8.1/am-authentication/authn-rest.html
llms_txt: https://docs.pingidentity.com/pingam/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
keywords: ["Authentication", "REST API"]
---

# Authenticate over REST

AM provides the `/json/authenticate` endpoint for authentication, and the `/json/sessions` endpoint for managing sessions and logging out.

The following table summarizes authentication operations you can perform using REST:

| Task                                                                                                                                                                                                                                        | Resources                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Authenticate to AM**Authenticating to AM means logging in to a specific realm and receiving a session token from AM. Add parameters to the authentication request to provide AM with more information about how you want to authenticate. | [Log in to AM over REST](login-using-REST.html)                                                                                               |
| **Use the session token**AM provides you with a session token after authenticating to a realm. Use this token in subsequent calls to AM. For example, when using REST calls to create, modify, or delete configuration objects.             | [Session token after authentication](rest-using-ssotokens.html)                                                                               |
| **Log out of AM**Log out your users by sending a `logout` action to the `/json/sessions` endpoint.                                                                                                                                          | [Log out of AM over REST](logout-using-rest.html)                                                                                             |
| **Invalidate sessions**Obtain all the sessions for a given user and invalidate them to ensure they are logged out of AM.                                                                                                                    | [sessions-guide:managing-sessions-REST.adoc#invalidate-sessions.adoc](../sessions-guide/managing-sessions-REST.html#invalidate-sessions.adoc) |
