# Refresh API Token

`POST https://api.torbox.app/v1/api/user/refreshtoken`

- Operation ID: `refresh_api_token`
- Group: User
- Auth: API key, `Authorization: Bearer <api key>` (Sign in with TorBox gives the same key)

### Overview

If you want a new API token, or your old one has been compromised, you may request a new one. If you happen to forget the token, go the [TorBox settings page ](https://torbox.app/settings) and copy the current one. If this still doesn't work, you may contact us at our support email for a new one.

### Authorization

Requires an API key using the Authorization Bearer Header as well as passing the `session_token` from the website to be passed in the body. You can find the `session_token` in the localStorage of your browser on any TorBox.app page under the key `torbox_session_token`. This is a temporary token that only lasts for 1 hour, which is why it is used here to verify the identity of a user as well as their API token.

## Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `session_token` | string | yes | you can get this by logging into https://torbox.app and finding the torbox_session_token in local storage |

## Responses

- `200` Successful Response
- `401` Unauthorized
- `403` Forbidden
- `404` Not Found
- `422` Validation Error
- `429` Too Many Requests
- `500` Internal Server Error
- `503` Service Unavailable
