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

# Refresh access token

> Refresh the access token using a valid refresh token. The refresh token must be provided in the Authorization header.



## OpenAPI

````yaml /swagger.json post /v1/auth/{app_id}/tokens/refresh
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/auth/{app_id}/tokens/refresh:
    parameters:
      - name: app_id
        in: path
        required: true
        description: App ID
        schema:
          type: string
    post:
      tags:
        - Tokens
      summary: Refresh access token
      description: >-
        Refresh the access token using a valid refresh token. The refresh token
        must be provided in the Authorization header.
      operationId: refreshAccessToken
      responses:
        '200':
          description: token refreshed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  access:
                    type: string
                    description: New JWT access token
                  csrf:
                    type: string
                    description: CSRF token for protected operations
                  access_expires_at:
                    type: string
                    format: date-time
                    description: Access token expiration timestamp
                  user_id:
                    type: string
                    description: App user ID
                  key_id:
                    type: string
                    description: App key ID for JWT verification
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
        '500':
          description: no payload found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: No payload
components:
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````