> ## Documentation Index
> Fetch the complete documentation index at: https://qg.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Refresh Token

> Refresh an access token using a valid refresh token

## Refresh Token

This endpoint refreshes your access token using a valid refresh token.

### Request Body

You must provide a valid refresh token to obtain a refreshed access token.

```json theme={null}
{
  "refresh": "string"
}
```


## OpenAPI

````yaml POST /api/token/refresh/
openapi: 3.0.1
info:
  title: Post-Quantum Cryptography API
  description: >-
    API for post-quantum cryptographic operations, including key generation and
    encryption
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: http://localhost:8000
security:
  - bearerAuth: []
paths:
  /api/token/refresh/:
    post:
      tags:
        - Authentication
      summary: Refresh token
      description: Refresh an access token using a valid refresh token
      operationId: refreshToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                refresh:
                  type: string
              required:
                - refresh
      responses:
        '200':
          description: Token refreshed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  access:
                    type: string
        '400':
          description: Invalid refresh token or input
        '500':
          description: Internal server error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````