v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
user session

Invalidate user sessions

Invalidate user sessions that match a query. To use this API, you must be a superuser.

post/api/security/session/_invalidate

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

match'all' | 'query' required

The method Kibana uses to determine which sessions to invalidate. If it is all, all existing sessions will be invalidated. If it is query, only the sessions that match the query will be invalidated.

Response

Indicates a successful call

totalinteger

The number of sessions that were successfully invalidated.