# tooling.tokens.rotate

> Trade a configuration refresh token (slk-cfr-…, once) for a new token pair.

Source: https://slaiky.xyz/docs/reference/methods/tooling.tokens.rotate

No Authorization header.

`POST https://app.slaiky.xyz/api/methods/tooling.tokens.rotate` · needs no token

## Arguments

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `refreshToken` | string | yes | 1–128 characters. |

## Answer

`{ "ok": true, … }` with: token: string, refreshToken: string, expiresAt: string. A refusal is `{ "ok": false, "error": { "code", "message" } }` ([errors](/docs/errors)).

## Example

The required arguments, with placeholders in angle brackets.

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/tooling.tokens.rotate \
  -H 'content-type: application/json' \
  -d '{"refreshToken":"<refreshToken>"}'

```
