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

# Create a Monad Agent task



## OpenAPI

````yaml POST /automation/agents/monad
openapi: 3.0.0
info:
  title: Brewit API
  contact: {}
  version: '1.0'
servers:
  - url: https://api.brewit.money
    variables: {}
security: []
tags:
  - name: Misc
    description: ''
paths:
  /automation/agents/monad:
    post:
      tags:
        - Misc
      summary: Create a Monad Agent task
      operationId: CreateaMonadAgenttask
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CreateaMonadAgenttaskRequest'
                - example:
                    name: 'Monad Agent Job '
                    repeat: 5000
                    times: 1
                    task: swap
                    payload:
                      toToken: '0x0000000000000000000000000000000000000000'
                      fromToken: '0xf817257fed379853cDe0fa4F97AB987181B1E5Ea'
                      validatorSalt: >-
                        0xde0c462c50d03af8df0bc14018a482cf470d99fb581ba4e94a52047988eed2c9
                      amount: '0.1234'
                      callbackFunc: autoSwap
                      accountAddress: '0x67D29520c6F9579fe4B32dCbA346620846eF98d2'
                    enabled: true
            example:
              name: 'Monad Agent Job '
              repeat: 5000
              times: 1
              task: swap
              payload:
                toToken: '0x0000000000000000000000000000000000000000'
                fromToken: '0xf817257fed379853cDe0fa4F97AB987181B1E5Ea'
                validatorSalt: >-
                  0xde0c462c50d03af8df0bc14018a482cf470d99fb581ba4e94a52047988eed2c9
                amount: '0.1234'
                callbackFunc: autoSwap
                accountAddress: '0x67D29520c6F9579fe4B32dCbA346620846eF98d2'
              enabled: true
        required: true
      responses:
        '200':
          description: ''
          headers: {}
      deprecated: false
components:
  schemas:
    CreateaMonadAgenttaskRequest:
      title: CreateaMonadAgenttaskRequest
      required:
        - name
        - repeat
        - times
        - task
        - payload
        - enabled
      type: object
      properties:
        name:
          type: string
        repeat:
          type: integer
          format: int32
        times:
          type: integer
          format: int32
        task:
          type: string
        payload:
          allOf:
            - $ref: '#/components/schemas/Payload'
            - {}
        enabled:
          type: boolean
      example:
        name: 'Monad Agent Job '
        repeat: 5000
        times: 1
        task: swap
        payload:
          toToken: '0x0000000000000000000000000000000000000000'
          fromToken: '0xf817257fed379853cDe0fa4F97AB987181B1E5Ea'
          validatorSalt: '0xde0c462c50d03af8df0bc14018a482cf470d99fb581ba4e94a52047988eed2c9'
          amount: '0.1234'
          callbackFunc: autoSwap
          accountAddress: '0x67D29520c6F9579fe4B32dCbA346620846eF98d2'
        enabled: true
    Payload:
      title: Payload
      required:
        - toToken
        - fromToken
        - validatorSalt
        - amount
        - callbackFunc
        - accountAddress
      type: object
      properties:
        toToken:
          type: string
        fromToken:
          type: string
        validatorSalt:
          type: string
        amount:
          type: string
        callbackFunc:
          type: string
        accountAddress:
          type: string
      example:
        toToken: '0x0000000000000000000000000000000000000000'
        fromToken: '0xf817257fed379853cDe0fa4F97AB987181B1E5Ea'
        validatorSalt: '0xde0c462c50d03af8df0bc14018a482cf470d99fb581ba4e94a52047988eed2c9'
        amount: '0.1234'
        callbackFunc: autoSwap
        accountAddress: '0x67D29520c6F9579fe4B32dCbA346620846eF98d2'

````