---
title: "Refresh a token"
method: POST
path: "/api/token/refresh/"
tags: ["token"]
---

# Refresh a token

`POST /api/token/refresh/`

## Request

- Base URL: `https://docs.blindinsight.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.blindinsight.io/api/token/refresh/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/docs/api/token/refresh/post.ts> (a function with typed inputs; its response is checked against the schema)

Refresh an existing token. On success, returns a JSON web token which can be
used in the `Authorization` header to make API requests.

The response will be an JSON object with the new access token.

**On the command line:**

```bash
blind token refresh --data '{"refresh": "<refresh-token>"}'
```

## Request body

- TokenRefresh
  - `access` string, required
  - `refresh` string, required

## Response `200`

- TokenRefresh
  - `access` string, required
  - `refresh` string, required

---

[API](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api.md) - [All operations](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/revisions/0ac902401cea?raw)
