{
  "opencollection": "1.0.0",
  "info": {
    "name": "Nutshell Sources API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Sources",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Delete a Source",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.nutshell.com/rest/sources/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Ids are of the form 'n-sources', where n is an integer."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Delete a source by ID. Deleted sources are removed from the sources tab, and can be restored from the trash within 30 days of deletion via the undelete endpoint."
        },
        {
          "info": {
            "name": "Undelete a Source",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.nutshell.com/rest/sources/:id/undelete",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Ids are of the form 'n-sources', where n is an integer."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Undelete a source by id."
        },
        {
          "info": {
            "name": "Get a list of sources",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.nutshell.com/rest/sources",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query",
                "description": "Query for sources that match a specific string"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Returns a list of all possible sources for leads in your Nutshell instance."
        },
        {
          "info": {
            "name": "Create a new source",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.nutshell.com/rest/sources",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Create a new source for leads in your Nutshell instance. Sources are used to track how leads arrive at your website and learn about your business."
        }
      ]
    }
  ],
  "bundled": true
}