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

# Refresh access token

> Exchange a valid refresh token for a new access + refresh token pair (rotation). The presented refresh token is revoked.



## OpenAPI

````yaml https://api.voxo.co/v2/docs/openapi.json post /v2/authentication/refresh
openapi: 3.1.0
info:
  title: VOXO API
  description: VOXO Communication Platform API
  version: 2.0.0
servers:
  - url: https://api.voxo.co
security:
  - bearerAuth: []
paths:
  /v2/authentication/refresh:
    post:
      tags:
        - Authentication
      summary: Refresh access token
      description: >-
        Exchange a valid refresh token for a new access + refresh token pair
        (rotation). The presented refresh token is revoked.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                refreshToken:
                  type: string
                  description: Opaque refresh token to exchange
              required:
                - refreshToken
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  user:
                    type: object
                    properties:
                      id:
                        type: number
                        description: User ID
                      email:
                        type: string
                        description: User email
                      userRole:
                        type: number
                        description: User role ID
                      avatarPath:
                        description: Avatar image URL
                        type:
                          - string
                          - 'null'
                      avatarThumbnailPath:
                        description: Avatar thumbnail URL
                        type:
                          - string
                          - 'null'
                      tenantId:
                        type: number
                        description: Tenant ID
                      partnerId:
                        description: Partner ID
                        type:
                          - number
                          - 'null'
                      timezone:
                        type: string
                        description: User timezone
                      coverPhoto:
                        description: Cover photo URL
                        type:
                          - string
                          - 'null'
                      darkMode:
                        type: number
                        description: Dark mode enabled (0/1)
                      mobileDarkMode:
                        type: number
                        description: Mobile dark mode enabled (0/1)
                      otp:
                        type: string
                        description: One-time password
                      mfaEnabled:
                        type: number
                        description: MFA enabled (0/1)
                      mfaMode:
                        type: string
                        description: MFA mode (email, sms, app)
                      mfaPhoneNumber:
                        type: string
                        description: MFA phone number
                      mfaSmsVerified:
                        type: number
                        description: MFA SMS verified (0/1)
                      mfaAppSecret:
                        type: string
                        description: MFA app secret
                      mfaAppVerified:
                        type: number
                        description: MFA app verified (0/1)
                      mfaEmailVerified:
                        type: number
                        description: MFA email verified (0/1)
                      title:
                        description: User title
                        type:
                          - string
                          - 'null'
                      enableCallNotifications:
                        type: number
                        description: Call notifications enabled (0/1)
                      enableChatNotifications:
                        type: number
                        description: Chat notifications enabled (0/1)
                      enableAllNewMessageNotifications:
                        type: number
                        description: All new message notifications (0/1)
                      enableDirectMessageNotifications:
                        type: number
                        description: Direct message notifications (0/1)
                      enableTextNotifications:
                        type: number
                        description: Text notifications enabled (0/1)
                      enablePostCallNotifications:
                        type: number
                        description: Post-call notifications (0/1)
                      enableMobileTextNotifications:
                        type: number
                        description: Mobile text notifications (0/1)
                      enableMobileCallNotifications:
                        type: number
                        description: Mobile call notifications (0/1)
                      enableMobileChatNotifications:
                        type: number
                        description: Mobile chat notifications (0/1)
                      enableBusyLights:
                        type: number
                        description: Busy lights enabled (0/1)
                      isGoogleCalendarAuthorized:
                        description: Google Calendar authorized (0/1)
                        type:
                          - number
                          - 'null'
                      isOutlookCalendarAuthorized:
                        type: number
                        description: Outlook Calendar authorized (0/1)
                      extId:
                        description: Extension ID
                        type:
                          - number
                          - 'null'
                      extName:
                        description: Extension name
                        type:
                          - string
                          - 'null'
                      extNum:
                        description: Extension number
                        type:
                          - string
                          - 'null'
                      callerIdNumber:
                        description: Caller ID number
                        type:
                          - string
                          - 'null'
                      dnd:
                        description: Do not disturb
                        type:
                          - string
                          - 'null'
                      outboundRecord:
                        description: Outbound recording setting
                        type:
                          - string
                          - 'null'
                      peerName:
                        description: SIP peer name
                        type:
                          - string
                          - 'null'
                      peerSecret:
                        description: SIP peer secret
                        type:
                          - string
                          - 'null'
                      enableMeetings:
                        description: Meetings enabled
                        type:
                          - number
                          - 'null'
                      enableTranscription:
                        description: Transcription enabled
                        type:
                          - number
                          - 'null'
                      branchId:
                        description: Branch ID
                        type:
                          - number
                          - 'null'
                      branchName:
                        description: Branch name
                        type:
                          - string
                          - 'null'
                      permissions:
                        type: array
                        items:
                          type: string
                        description: User permission names
                    required:
                      - id
                      - email
                      - userRole
                      - avatarPath
                      - avatarThumbnailPath
                      - tenantId
                      - partnerId
                      - timezone
                      - coverPhoto
                      - darkMode
                      - mobileDarkMode
                      - otp
                      - mfaEnabled
                      - mfaMode
                      - mfaPhoneNumber
                      - mfaSmsVerified
                      - mfaAppSecret
                      - mfaAppVerified
                      - mfaEmailVerified
                      - title
                      - enableCallNotifications
                      - enableChatNotifications
                      - enableAllNewMessageNotifications
                      - enableDirectMessageNotifications
                      - enableTextNotifications
                      - enablePostCallNotifications
                      - enableMobileTextNotifications
                      - enableMobileCallNotifications
                      - enableMobileChatNotifications
                      - enableBusyLights
                      - isGoogleCalendarAuthorized
                      - isOutlookCalendarAuthorized
                      - extId
                      - extName
                      - extNum
                      - callerIdNumber
                      - dnd
                      - outboundRecord
                      - peerName
                      - peerSecret
                      - enableMeetings
                      - enableTranscription
                      - branchId
                      - branchName
                      - permissions
                    additionalProperties: false
                    description: Authenticated user
                  accessToken:
                    type: string
                    description: JWT access token
                  refreshToken:
                    description: Opaque refresh token (login/MFA flows only)
                    type: string
                required:
                  - user
                  - accessToken
                additionalProperties: false
        '400':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  message:
                    type: string
                  code:
                    type: number
                  validationErrors:
                    type: array
                    items:
                      type: string
                required:
                  - name
                  - message
                  - code
                additionalProperties: false
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  message:
                    type: string
                  code:
                    type: number
                  validationErrors:
                    type: array
                    items:
                      type: string
                required:
                  - name
                  - message
                  - code
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.