{
  "opencollection": "1.0.0",
  "info": {
    "name": "ServiceTitan CRM API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://auth.servicetitan.io/connect/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Customers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Customers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/customers",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "includeTotal",
                "value": "",
                "type": "query"
              },
              {
                "name": "ids",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of IDs"
              },
              {
                "name": "modifiedBefore",
                "value": "",
                "type": "query"
              },
              {
                "name": "modifiedOnOrAfter",
                "value": "",
                "type": "query"
              },
              {
                "name": "createdBefore",
                "value": "",
                "type": "query"
              },
              {
                "name": "createdOnOrAfter",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a paginated list of customers matching the provided filters."
        },
        {
          "info": {
            "name": "Create Customer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/customers",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new customer record in the tenant."
        },
        {
          "info": {
            "name": "Get Customer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/customers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Customer"
        },
        {
          "info": {
            "name": "Update Customer",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/customers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update Customer"
        }
      ]
    },
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Customer Contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/customers/:id/contacts",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List Customer Contacts"
        },
        {
          "info": {
            "name": "Create Customer Contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/customers/:id/contacts",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Customer Contact"
        }
      ]
    },
    {
      "info": {
        "name": "Locations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Locations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/locations",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "customerId",
                "value": "",
                "type": "query"
              },
              {
                "name": "modifiedOnOrAfter",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List Locations"
        },
        {
          "info": {
            "name": "Create Location",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/locations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Location"
        },
        {
          "info": {
            "name": "Get Location",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/locations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Location"
        },
        {
          "info": {
            "name": "Update Location",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/locations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update Location"
        }
      ]
    },
    {
      "info": {
        "name": "Leads",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Leads",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/leads",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "status",
                "value": "",
                "type": "query"
              },
              {
                "name": "modifiedOnOrAfter",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List Leads"
        },
        {
          "info": {
            "name": "Create Lead",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/leads",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Lead"
        },
        {
          "info": {
            "name": "Dismiss Lead",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/leads/:id/dismiss",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Dismiss Lead"
        }
      ]
    },
    {
      "info": {
        "name": "Bookings",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Bookings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/bookings",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "modifiedOnOrAfter",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List Bookings"
        },
        {
          "info": {
            "name": "Create Booking",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/bookings",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Booking"
        }
      ]
    },
    {
      "info": {
        "name": "Tags",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Tag Types",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicetitan.io/crm/v2/{tenant}/tagtypes"
          },
          "docs": "List Tag Types"
        }
      ]
    }
  ],
  "bundled": true
}