{
  "opencollection": "1.0.0",
  "info": {
    "name": "Keap REST API",
    "version": "2.70.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://accounts.infusionsoft.com/app/oauth/authorize",
      "accessTokenUrl": "https://api.infusionsoft.com/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/contacts",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List contacts"
        },
        {
          "info": {
            "name": "Create a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.infusionsoft.com/crm/rest/v2/contacts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a contact"
        },
        {
          "info": {
            "name": "Get a contact by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/contacts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a contact by ID"
        },
        {
          "info": {
            "name": "Patch a contact",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.infusionsoft.com/crm/rest/v2/contacts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Patch a contact"
        },
        {
          "info": {
            "name": "Delete a contact",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.infusionsoft.com/crm/rest/v2/contacts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a contact"
        }
      ]
    },
    {
      "info": {
        "name": "Companies",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List companies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/companies",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List companies"
        },
        {
          "info": {
            "name": "Create a company",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.infusionsoft.com/crm/rest/v2/companies",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a company"
        },
        {
          "info": {
            "name": "Get a company by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/companies/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a company by ID"
        }
      ]
    },
    {
      "info": {
        "name": "Opportunities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List opportunities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/opportunities",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List opportunities"
        },
        {
          "info": {
            "name": "Create an opportunity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.infusionsoft.com/crm/rest/v2/opportunities",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an opportunity"
        },
        {
          "info": {
            "name": "Get an opportunity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/opportunities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get an opportunity"
        },
        {
          "info": {
            "name": "Patch an opportunity",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.infusionsoft.com/crm/rest/v2/opportunities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Patch an opportunity"
        }
      ]
    },
    {
      "info": {
        "name": "Orders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/orders",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List orders"
        },
        {
          "info": {
            "name": "Create an order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.infusionsoft.com/crm/rest/v2/orders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an order"
        },
        {
          "info": {
            "name": "Get an order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/orders/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get an order"
        }
      ]
    },
    {
      "info": {
        "name": "Products",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List products",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/products",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List products"
        },
        {
          "info": {
            "name": "Create a product",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.infusionsoft.com/crm/rest/v2/products",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a product"
        },
        {
          "info": {
            "name": "Get a product",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/products/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a product"
        }
      ]
    },
    {
      "info": {
        "name": "Tasks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List tasks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/tasks",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List tasks"
        },
        {
          "info": {
            "name": "Create a task",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.infusionsoft.com/crm/rest/v2/tasks",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a task"
        },
        {
          "info": {
            "name": "Get a task",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/tasks/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a task"
        }
      ]
    },
    {
      "info": {
        "name": "Campaigns",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List campaigns",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/campaigns",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List campaigns"
        },
        {
          "info": {
            "name": "Get a campaign",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/campaigns/:campaign_id",
            "params": [
              {
                "name": "campaign_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a campaign"
        }
      ]
    },
    {
      "info": {
        "name": "Tags",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List tags",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/tags",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List tags"
        },
        {
          "info": {
            "name": "Create a tag",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.infusionsoft.com/crm/rest/v2/tags",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a tag"
        },
        {
          "info": {
            "name": "Get a tag",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.infusionsoft.com/crm/rest/v2/tags/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a tag"
        }
      ]
    }
  ],
  "bundled": true
}