POST
/
automation
/
agents
/
operations
Create a Agent Task
curl --request POST \
  --url https://api.brewit.money/automation/agents/operations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Test Job ",
  "repeat": 5000,
  "times": 1,
  "task": "send",
  "payload": {
    "transfers": [
      {
        "token": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
        "to": "0x958543756A4c7AC6fB361f0efBfeCD98E4D297Db",
        "amount": "0.001"
      }
    ]
  }
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
repeat
integer
required
times
integer
required
task
string
required
payload
object
required
Example:
{
"transfers": [
{
"token": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"to": "0x958543756A4c7AC6fB361f0efBfeCD98E4D297Db",
"amount": "0.001"
}
]
}