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

# Refresh access token



## OpenAPI

````yaml /openapi.json post /auth/refresh
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /auth/refresh:
    post:
      tags:
        - Authentication
      summary: Refresh access token
      operationId: AuthController_refresh
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshTokenDto'
      responses:
        '200':
          description: Token refresh successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponseDto'
        '401':
          description: Invalid token
components:
  schemas:
    RefreshTokenDto:
      type: object
      properties:
        refresh_token:
          type: string
          example: refresh-token-uuid
      required:
        - refresh_token
    AuthResponseDto:
      type: object
      properties:
        access_token:
          type: string
        refresh_token:
          type: string
        user:
          type: object
          example:
            id: uuid
            email: user@example.com
            roles:
              - user
            firstName: John
            lastName: Doe
            image: https://example.com/image.jpg
      required:
        - access_token
        - refresh_token
        - user

````