{
  "opencollection": "1.0.0",
  "info": {
    "name": "Root Applications Leads API",
    "version": "1.0.1"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Leads",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all leads",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.uk.rootplatform.com/v1/insurance/leads",
            "params": [
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The maximum number of items that will be contained in a single page, between 1 and 100 (inclusive)."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page number of the entities to fetch. Must be a minimum of 1."
              }
            ]
          },
          "docs": "List all leads"
        },
        {
          "info": {
            "name": "Create a lead",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.uk.rootplatform.com/v1/insurance/leads",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint requires a single lead object defined as follows:"
        },
        {
          "info": {
            "name": "Create or update a lead",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://sandbox.uk.rootplatform.com/v1/insurance/leads",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint requires a single lead object defined as follows:"
        },
        {
          "info": {
            "name": "Archive leads",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.uk.rootplatform.com/v1/insurance/leads/archive"
          },
          "docs": "This archives all leads loaded for the organization. Returns a HTTP `200 OK` response on success."
        }
      ]
    }
  ],
  "bundled": true
}