Refresh API Token
POST /v1/api/user/refreshtoken
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 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
200Successful Response401Unauthorized403Forbidden404Not Found422Validation Error429Too Many Requests500Internal Server Error503Service Unavailable