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

# client.projects.revokeCurrentToken()

> Revoke the current token.

Revoke the token sent in `X-Scoped-Token` and return 204. Returns 403 if the request uses another authentication method.

## Signature

Method signature on `client.projects`:

```ts theme={null}
revokeCurrentToken(): Promise<void>;
```

## Parameters

This method takes no arguments.

## Returns

`Promise<void>`

Resolves without a return value.

## Errors

HTTP errors throw [`PotatoApiError`](https://docs.platform.toloka.ai/docs/sdk/errors). The endpoint documents these error responses:

| Status | Description |
| - | - |
| 403 | The request was not authenticated with a scoped token |
| 429 | Rate limit exceeded |

HTTP endpoint: [`DELETE /tokens/current`](https://docs.platform.toloka.ai/docs/api-reference/projects/revoke-current-token).

```ts revokeCurrentToken() theme={null}
import { createClient } from "@toloka-platform/sdk";

const client = createClient({
  baseUrl: "https://platform.toloka.ai",
  scopedToken: process.env.TOLOKA_SCOPED_TOKEN!,
});

await client.projects.revokeCurrentToken();
```

This method resolves without a return value.


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