{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesflare Accounts Workflows API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Workflows",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List workflows",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.salesflare.com/workflows",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending."
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              },
              {
                "name": "q",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List workflows"
        },
        {
          "info": {
            "name": "Create a workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.salesflare.com/workflows",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a workflow"
        },
        {
          "info": {
            "name": "Get a workflow's merge fields",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.salesflare.com/campaigns/mergefields"
          },
          "docs": "Note that this route is currently still under `/campaigns` but might be moved in the future."
        },
        {
          "info": {
            "name": "Get workflow details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.salesflare.com/workflows/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get workflow details"
        },
        {
          "info": {
            "name": "Update a workflow",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.salesflare.com/workflows/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a workflow"
        },
        {
          "info": {
            "name": "Re-enter or exit an entity from a workflow",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.salesflare.com/workflows/:id/audience/:record_id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "record_id",
                "value": "",
                "type": "path",
                "description": "This is the entity id. For email workflows this should be the contact id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Re-enter or exit an entity from a workflow"
        }
      ]
    }
  ],
  "bundled": true
}