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

# Exchange token

> Exchange a refresh token for a new access token.



## OpenAPI

````yaml https://developer.api.receiptor.ai/openapi.json post /token
openapi: 3.0.0
info:
  title: Receiptor AI API
  description: >-
    API for Receiptor AI — automates financial document extraction,
    categorization, and integration with accounting systems. All capabilities
    are available via `POST /v1/capabilities/{slug}` with a JSON request body.
  version: 1.0.0
  contact:
    name: Receiptor AI
    url: https://receiptor.ai
    email: info@receiptor.ai
servers:
  - url: https://developer.api.receiptor.ai/v1
    description: Production
security: []
tags:
  - name: Capabilities
    description: Execute product capabilities
  - name: Discovery
    description: Discover available capabilities
  - name: OAuth2
    description: OAuth 2.0 authorization flow
paths:
  /token:
    post:
      tags:
        - OAuth2
      summary: Exchange token
      description: Exchange a refresh token for a new access token.
      operationId: oauthToken
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
                - client_id
                - client_secret
                - grant_type
                - refresh_token
              properties:
                client_id:
                  type: string
                client_secret:
                  type: string
                grant_type:
                  type: string
                  default: refresh_token
                  enum:
                    - refresh_token
                refresh_token:
                  type: string
      responses:
        '200':
          description: New access token
      security: []

````