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

# Check token allowance

> Check if token allowance is sufficient for a DEX swap

Returns true if the current allowance is enough to proceed with the swap,
or false if an approval transaction is needed first.



## OpenAPI

````yaml https://api-partner.houdiniswap.com/v2/openapi.json post /dex/allowance
openapi: 3.0.0
info:
  title: houdiniswap-backend
  version: 2.1.1
  description: Houdiniswap Backend
  license:
    name: ISC
  contact: {}
servers:
  - url: https://api-partner.houdiniswap.com/v2
security: []
paths:
  /dex/allowance:
    post:
      tags:
        - DEX
      summary: Check token allowance
      description: >-
        Check if token allowance is sufficient for a DEX swap


        Returns true if the current allowance is enough to proceed with the
        swap,

        or false if an approval transaction is needed first.
      operationId: Allowance
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AllowanceRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: boolean
        '422':
          description: Validation Failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKey: []
components:
  schemas:
    AllowanceRequest:
      properties:
        quoteId:
          type: string
          description: Quote ID from a prior quote response.
          example: 69a02882f48d56c923119d95
        addressFrom:
          type: string
          description: Address from which the amount will be deducted (EVM or Tron)
          example: '0xb7dE6b6eEBF7401aFea5a49D6405C9048fEf2d40'
          pattern: ^(0x[0-9a-fA-F]{40}|T[1-9A-HJ-NP-Za-km-z]{33})$
        usePermit:
          type: boolean
          description: >-
            Whether to use permit instead of approve. Defaults to true for swaps
            that support it.
          example: false
      required:
        - quoteId
        - addressFrom
      type: object
      additionalProperties: false
    ValidationError:
      properties:
        message:
          type: string
        code:
          type: string
        requestId:
          type: string
        fields:
          $ref: '#/components/schemas/FieldErrors'
      required:
        - message
        - code
        - fields
      type: object
      additionalProperties: false
    ErrorResponse:
      properties:
        message:
          type: string
        code:
          type: string
        requestId:
          type: string
      required:
        - message
        - code
      type: object
      additionalProperties: false
    FieldErrors:
      properties: {}
      type: object
      additionalProperties:
        properties:
          value: {}
          message:
            type: string
        required:
          - message
        type: object
  securitySchemes:
    apiKey:
      type: apiKey
      name: Authorization
      in: header

````