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

# Send USDC from the app resolved by the API key

> Resolve recipient and amount from context, then spend USDC through the app associated with the calling API key. This is the app-id-free transfer route used by the current HEVN CLI.



## OpenAPI

````yaml /openapi.json post /api/v1/apps/transfer
openapi: 3.1.0
info:
  title: HEVN API
  description: Backend API for HEVN mobile neobank
  version: 0.1.2
servers:
  - url: https://api.hevn.finance
    description: Production
security: []
paths:
  /api/v1/apps/transfer:
    post:
      tags:
        - apps
        - apps-transfer
      summary: Send USDC from the app resolved by the API key
      description: >-
        Resolve recipient and amount from context, then spend USDC through the
        app associated with the calling API key. This is the app-id-free
        transfer route used by the current HEVN CLI.
      operationId: transfer_api_v1_apps_transfer_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
        - name: x-api-key
          in: header
          required: false
          schema:
            type: string
            title: X-Api-Key
          description: >-
            Alternative API key header. Use Authorization Bearer by default, or
            X-Api-Key when that header mode is configured.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppTransferContext'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppTransferResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
        - ApiKeyAuth: []
components:
  schemas:
    AppTransferContext:
      properties:
        contactId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Contactid
        quoteId:
          anyOf:
            - type: string
            - type: 'null'
          title: Quoteid
        invoiceId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Invoiceid
        amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Amount
        memo:
          anyOf:
            - type: string
            - type: 'null'
          title: Memo
      type: object
      title: AppTransferContext
      description: |-
        Body of POST /apps/transfer.

        Exactly one of ``contactId`` / ``quoteId`` / ``invoiceId`` MUST be set
        (mirrors the /mcp/transfer body). ``amount`` is required when
        ``contactId`` is the dispatch path; otherwise it's derived from the
        referenced invoice / quote.
    AppTransferResponse:
      properties:
        txHash:
          type: string
          title: Txhash
      type: object
      required:
        - txHash
      title: AppTransferResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      x-default: Bearer <token>
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Alternative HEVN API key header. The CLI defaults to Authorization
        Bearer unless configured with HEVN_API_KEY_HEADER=X-Api-Key.

````