> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cocoondata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# <access-service>/api/v1/users/me/expire

## URL structure&#x20;

```text theme={null}
https://access-service.xy-company.com/api/v1/users/me/expire
```

## Supported methods and overview&#x20;

* `PUT` - [invalidates all valid refresh tokens](/CS1.2/user/managing-your-account.md#terminating-your-user-accounts-sessions) associated with the [Cocoon Data user](/CS1.2/api/authentication-and-authorisation.md) whose [access token is submitted in the request](/CS1.2/api/access-service-api-v1-users-me-expire.md#access-service-api-v1-users-me-expire-supported-roles) to this endpoint.

> [!NOTE]
>
> This method takes no parameters.

## Detailed description&#x20;

This API endpoint invalidates all valid refresh tokens associated with the Cocoon Data user whose access token is submitted in the request to this endpoint.

If this request succeeds, all valid refresh tokens associated with this Cocoon Data user are invalidated. Every other active session this Cocoon Data user has with the Cocoon Data Platform will terminate once these sessions' access tokens expire.

Passing any invalidated access token in the header of requests to any Cocoon Data API endpoint will cause these requests to fail.

## Supported roles&#x20;

This API endpoint supports requests utilising Cocoon Data user accounts with the following roles (as described in the [SafeShare Administrator's](/CS1.2/admin-platform/administering-platform-administrator-users.md#platform-administrators-and-user-roles) and [Organisation Administrator's](/CS1.2/admin-org/administering-users-within-an-organisation.md#an-organisation-users-roles) Guides):

* [Originator](/CS1.2/admin-org/administering-users-within-an-organisation.md#originator-role)
* [Collaborator](/CS1.2/admin-org/administering-users-within-an-organisation.md#collaborator-role)
* [Ad hoc](/CS1.2/admin-org/administering-users-within-an-organisation.md#adhoc-role)
* [SafeShare administrator](/CS1.2/admin-platform/administering-platform-administrator-users.md#platform-administrator-role)
* [Organisation administrator](/CS1.2/admin-org/administering-users-within-an-organisation.md#organisation-administrator-role)

The Cocoon Data Platform's resources available to one of these Cocoon Data users (above) is determined by the access token submitted in the [header](/CS1.2/api/access-service-api-v1-users-me-expire.md#access-service-api-v1-users-me-expire-required-headers) of requests to this endpoint.

## Required headers&#x20;

The appropriate access token as the `Bearer` token:

* `Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...`

## Returns&#x20;

If the request succeeded, then an HTTP response status `200 OK` is returned.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.