{
  "opencollection": "1.0.0",
  "info": {
    "name": "Zendesk Sell (Sales CRM) API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://api.getbase.com/oauth2/authorize",
      "accessTokenUrl": "https://api.getbase.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Leads",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List leads",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getbase.com/v2/leads",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query"
              },
              {
                "name": "ids",
                "value": "",
                "type": "query"
              },
              {
                "name": "creator_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "owner_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "source_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "first_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "last_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "organization_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "status",
                "value": "",
                "type": "query"
              },
              {
                "name": "email",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns leads available to the authenticated user."
        },
        {
          "info": {
            "name": "Create a lead",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getbase.com/v2/leads",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a lead"
        },
        {
          "info": {
            "name": "Retrieve a lead",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getbase.com/v2/leads/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a lead"
        },
        {
          "info": {
            "name": "Update a lead",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getbase.com/v2/leads/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a lead"
        },
        {
          "info": {
            "name": "Delete a lead",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getbase.com/v2/leads/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a lead"
        },
        {
          "info": {
            "name": "Upsert a lead",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getbase.com/v2/leads/upsert",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Upsert a lead"
        }
      ]
    },
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getbase.com/v2/contacts",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "ids",
                "value": "",
                "type": "query"
              },
              {
                "name": "creator_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "owner_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "is_organization",
                "value": "",
                "type": "query"
              },
              {
                "name": "email",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List contacts"
        },
        {
          "info": {
            "name": "Create a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getbase.com/v2/contacts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a contact"
        },
        {
          "info": {
            "name": "Retrieve a contact",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getbase.com/v2/contacts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a contact"
        },
        {
          "info": {
            "name": "Update a contact",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getbase.com/v2/contacts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a contact"
        },
        {
          "info": {
            "name": "Delete a contact",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getbase.com/v2/contacts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a contact"
        },
        {
          "info": {
            "name": "Upsert a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getbase.com/v2/contacts/upsert"
          },
          "docs": "Upsert a contact"
        }
      ]
    },
    {
      "info": {
        "name": "Deals",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List deals",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getbase.com/v2/deals",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query"
              },
              {
                "name": "ids",
                "value": "",
                "type": "query"
              },
              {
                "name": "owner_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "contact_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "stage_id",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List deals"
        },
        {
          "info": {
            "name": "Create a deal",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getbase.com/v2/deals",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a deal"
        },
        {
          "info": {
            "name": "Retrieve a deal",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getbase.com/v2/deals/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a deal"
        },
        {
          "info": {
            "name": "Update a deal",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getbase.com/v2/deals/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a deal"
        },
        {
          "info": {
            "name": "Delete a deal",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getbase.com/v2/deals/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a deal"
        },
        {
          "info": {
            "name": "Upsert a deal",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getbase.com/v2/deals/upsert"
          },
          "docs": "Upsert a deal"
        }
      ]
    }
  ],
  "bundled": true
}