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

# Refresh OAuth access token

> 🔓 PUBLIC ENDPOINT: Exchanges a refresh token for a new access token and refresh token pair. The old refresh token is automatically revoked. Rate limit: 20 requests per minute.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json post /oauth/token/refresh
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /oauth/token/refresh:
    post:
      tags:
        - oauth
      summary: Refresh OAuth access token
      description: >-
        🔓 PUBLIC ENDPOINT: Exchanges a refresh token for a new access token and
        refresh token pair. The old refresh token is automatically revoked. Rate
        limit: 20 requests per minute.
      operationId: OAuthController_refreshToken
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshTokenDto'
      responses:
        '201':
          description: >-
            Token refreshed successfully. Returns new access_token,
            refresh_token, token_type (Bearer), expiration time, and scopes.
        '400':
          description: Invalid request. Refresh token is required.
        '401':
          description: >-
            Invalid or expired refresh token. The refresh token may have been
            used already or has expired.
        '429':
          description: >-
            Rate limit exceeded. Maximum 20 requests per minute for token
            refresh.
components:
  schemas:
    RefreshTokenDto:
      type: object
      properties:
        refreshToken:
          type: string
          description: Refresh token obtained from token generation
          example: rt_abc123xyz...
      required:
        - refreshToken

````