> ## 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 an Operation Task



## OpenAPI

````yaml POST /automation/agents/operations
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/operations:
    post:
      tags:
        - Misc
      summary: Create a Agent Task
      operationId: CreateaAgentTask
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CreateaAgentTaskRequest'
                - example:
                    name: 'Test Job '
                    repeat: 5000
                    times: 1
                    task: send
                    payload:
                      transfers:
                        - token: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F'
                          to: '0x958543756A4c7AC6fB361f0efBfeCD98E4D297Db'
                          amount: '0.001'
            example:
              name: 'Test Job '
              repeat: 5000
              times: 1
              task: send
              payload:
                transfers:
                  - token: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F'
                    to: '0x958543756A4c7AC6fB361f0efBfeCD98E4D297Db'
                    amount: '0.001'
        required: true
      responses:
        '200':
          description: ''
          headers: {}
      deprecated: false
      security:
        - bearer: []
components:
  schemas:
    CreateaAgentTaskRequest:
      title: CreateaAgentTaskRequest
      required:
        - name
        - repeat
        - times
        - task
        - payload
      type: object
      properties:
        name:
          type: string
        repeat:
          type: integer
          format: int32
        times:
          type: integer
          format: int32
        task:
          type: string
        payload:
          allOf:
            - $ref: '#/components/schemas/Payload1'
            - {}
      example:
        name: 'Test Job '
        repeat: 5000
        times: 1
        task: send
        payload:
          transfers:
            - token: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F'
              to: '0x958543756A4c7AC6fB361f0efBfeCD98E4D297Db'
              amount: '0.001'
    Payload1:
      title: Payload1
      required:
        - transfers
      type: object
      properties:
        transfers:
          type: array
          items:
            $ref: '#/components/schemas/Transfer'
          description: ''
      example:
        transfers:
          - token: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F'
            to: '0x958543756A4c7AC6fB361f0efBfeCD98E4D297Db'
            amount: '0.001'
    Transfer:
      title: Transfer
      required:
        - token
        - to
        - amount
      type: object
      properties:
        token:
          type: string
        to:
          type: string
        amount:
          type: string
      example:
        token: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F'
        to: '0x958543756A4c7AC6fB361f0efBfeCD98E4D297Db'
        amount: '0.001'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````