{
  "x402Version": 2,
  "id": 38685,
  "slug": "38685",
  "resource": "https://gateway.spraay.app/api/v1/cron/create",
  "description": "Schedule a recurring trigger: 5-field cron in UTC, at least 1 hour between runs, 100 runs included. On each run the gateway POSTs a signed cron.triggered webhook to your https callback_url; your agent then calls batch/execute or payroll/execute itself and pays for it as usual. Actions: batch.execute, payroll.execute, webhook.trigger.",
  "type": "http",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xAd62f03C7514bb8c51f1eA70C2b75C37404695c8",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "100000",
      "amountUsd": 0.1,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "8WhWE8YgY5QBWyLowEHuaZiWdwDM3SrgDk36xYBNvYNS",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "100000",
      "amountUsd": 0.1,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:4663",
      "payTo": "0xdAA0fb4fb470AA8fb53A0c301EF9AADC89949F33",
      "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
      "amount": "100000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "callback": {
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "nextRun": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "action": "batch.execute",
            "callback_url": "https://agent.example.com/spraay/cron",
            "maxRuns": 52,
            "payload": {
              "amounts": [
                "1000000"
              ],
              "recipients": [
                "0x..."
              ],
              "token": "USDC"
            },
            "schedule": "0 9 * * 1"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "callback": {
              "event": "cron.triggered",
              "signature_header": "X-Spraay-Signature",
              "timestamp_header": "X-Spraay-Timestamp",
              "url": "https://agent.example.com/spraay/cron",
              "webhook_secret": "whsec_..."
            },
            "id": "cron_123",
            "maxRuns": 52,
            "nextRun": "2026-10-12T09:00:00.000Z",
            "status": "active",
            "timezone": "UTC"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "action": {
                    "type": "string"
                  },
                  "callback_url": {
                    "type": "string"
                  },
                  "maxRuns": {
                    "type": "number"
                  },
                  "metadata": {
                    "type": "object"
                  },
                  "payload": {
                    "type": "object"
                  },
                  "schedule": {
                    "type": "string"
                  }
                },
                "required": [
                  "action",
                  "schedule",
                  "payload",
                  "callback_url"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "callback": {
                    "type": "object"
                  },
                  "id": {
                    "type": "string"
                  },
                  "nextRun": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "gateway.spraay.app",
  "lastUpdated": "2026-10-08T21:28:10.99Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-08T21:28:10.767Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "action": "batch.execute",
              "callback_url": "https://agent.example.com/spraay/cron",
              "maxRuns": 52,
              "payload": {
                "amounts": [
                  "1000000"
                ],
                "recipients": [
                  "0x..."
                ],
                "token": "USDC"
              },
              "schedule": "0 9 * * 1"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "callback": {
                "event": "cron.triggered",
                "signature_header": "X-Spraay-Signature",
                "timestamp_header": "X-Spraay-Timestamp",
                "url": "https://agent.example.com/spraay/cron",
                "webhook_secret": "whsec_..."
              },
              "id": "cron_123",
              "maxRuns": 52,
              "nextRun": "2026-10-12T09:00:00.000Z",
              "status": "active",
              "timezone": "UTC"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "action": {
                      "type": "string"
                    },
                    "callback_url": {
                      "type": "string"
                    },
                    "maxRuns": {
                      "type": "number"
                    },
                    "metadata": {
                      "type": "object"
                    },
                    "payload": {
                      "type": "object"
                    },
                    "schedule": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "action",
                    "schedule",
                    "payload",
                    "callback_url"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "callback": {
                      "type": "object"
                    },
                    "id": {
                      "type": "string"
                    },
                    "nextRun": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "gateway.spraay.app",
    "manifest_name": "gateway.spraay.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "callback": {
      "event": "cron.triggered",
      "signature_header": "X-Spraay-Signature",
      "timestamp_header": "X-Spraay-Timestamp",
      "url": "https://agent.example.com/spraay/cron",
      "webhook_secret": "whsec_..."
    },
    "id": "cron_123",
    "maxRuns": 52,
    "nextRun": "2026-10-12T09:00:00.000Z",
    "status": "active",
    "timezone": "UTC"
  }
}