{
  "opencollection": "1.0.0",
  "info": {
    "name": "Brale Accounts Automations API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Automations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Automation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.brale.xyz/accounts/:account_id/automations/:automation_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "automation_id",
                "value": "",
                "type": "path",
                "description": "Automation ID"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.brale.xyz/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get Automation"
        },
        {
          "info": {
            "name": "Update Automation Status",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.brale.xyz/accounts/:account_id/automations/:automation_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "automation_id",
                "value": "",
                "type": "path",
                "description": "Automation ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.brale.xyz/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Disable or archive an Automation"
        },
        {
          "info": {
            "name": "Get Automations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.brale.xyz/accounts/:account_id/automations",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.brale.xyz/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get Automations"
        },
        {
          "info": {
            "name": "Create Automation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.brale.xyz/accounts/:account_id/automations",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.brale.xyz/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create Automation"
        }
      ]
    }
  ],
  "bundled": true
}