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

# Refresh

> Refreshes an existing token using a refresh token



## OpenAPI

````yaml post /jwt-auth/v1/token/refresh
openapi: 3.0.1
info:
  title: JWT Auth Pro API
  description: JWT Authentication endpoints
  license:
    name: Commercial
  version: 1.0.0
servers:
  - url: https://{your-domain}/wp-json
    description: Production environment
    variables:
      your-domain:
        default: example.com
        description: Your WordPress site domain
security: []
paths:
  /jwt-auth/v1/token/refresh:
    post:
      description: Refreshes an existing token using a refresh token
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshRequest'
      responses:
        '200':
          description: Token refreshed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '403':
          description: Refresh failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RefreshRequest:
      type: object
      required:
        - refresh_token
      properties:
        refresh_token:
          type: string
          description: The refresh token obtained from the initial authentication
    TokenResponse:
      type: object
      properties:
        token:
          type: string
          description: JWT access token
        user_id:
          type: integer
          description: WordPress user ID
        user_email:
          type: string
          description: User's email address
        user_nicename:
          type: string
          description: User's URL-friendly name
        user_display_name:
          type: string
          description: User's display name
        refresh_token:
          type: string
          description: Token used to obtain new access tokens
    Error:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: jwt_auth_invalid_token
        message:
          type: string
          description: Error message
        data:
          type: object
          properties:
            status:
              type: integer
              description: HTTP status code

````