---
agentTools:
  projectIndex: https://clientsuccess.readme.io/llms.txt
---

# /workato/client/filter/hubspot/records

Filter records from CS for Workato Hubspot integration

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "ClientSuccess API",
    "description": "ClientSuccess CNS API",
    "version": "v2.0.0"
  },
  "servers": [
    {
      "url": "https://api.clientsuccess.com/v2"
    }
  ],
  "security": [
    {
      "gen-auth": []
    }
  ],
  "paths": {
    "/workato/client/filter/hubspot/records": {
      "post": {
        "tags": [
          "Client"
        ],
        "description": "Filter records from CS for Workato Hubspot integration",
        "operationId": "filterWorkatoHubspotRecords",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkatoFilterHubspotRecordRequestTenantClientSearch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/WorkatoV3PushHubspotValidatedRecordsTenantClientSearch"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "TenantClientSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "uuid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "externalId": {
            "type": "string"
          },
          "clientTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "managedByEmployeeId": {
            "type": "integer",
            "format": "int64"
          },
          "regionId": {
            "type": "integer",
            "format": "int64"
          },
          "externalSystems": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "TenantEmployeeSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "firstname": {
            "type": "string"
          },
          "lastname": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "reportTo": {
            "type": "integer",
            "format": "int64"
          },
          "picture": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ]
          },
          "name": {
            "type": "string"
          }
        }
      },
      "AccTeamingRole": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "tenantId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "sequence": {
            "type": "integer",
            "format": "int32"
          },
          "used": {
            "type": "integer",
            "format": "int64"
          },
          "primary": {
            "type": "boolean"
          },
          "placeholder": {
            "type": "boolean"
          }
        }
      },
      "AccTeamingRoleMap": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "tenantId": {
            "type": "integer",
            "format": "int64"
          },
          "clientId": {
            "type": "integer",
            "format": "int64"
          },
          "roleId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeId": {
            "type": "integer",
            "format": "int64"
          },
          "employee": {
            "$ref": "#/components/schemas/TenantEmployeeSummary"
          },
          "role": {
            "$ref": "#/components/schemas/AccTeamingRole"
          }
        },
        "description": "Account Teaming Roles",
        "example": "John Doe"
      },
      "Region": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "tenantId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "used": {
            "type": "integer",
            "format": "int64"
          }
        },
        "description": "Region",
        "example": {
          "id": 2,
          "tenantId": 35,
          "name": "Japan",
          "used": 7
        }
      },
      "ClientContactSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          }
        }
      },
      "ClientTypeSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string"
          },
          "key": {
            "type": "string"
          }
        }
      },
      "FieldMapping": {
        "type": "object",
        "properties": {
          "fieldSchemaName": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "FieldRecordMapping": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldMapping"
            }
          }
        }
      },
      "HubspotFieldSchema": {
        "type": "object",
        "properties": {
          "updatedAt": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "fieldType": {
            "type": "string",
            "enum": [
              "BOOLEANCHECKBOX",
              "CHECKBOX",
              "DATE",
              "NUMBER",
              "SELECT",
              "PHONENUMBER",
              "RADIO",
              "TEXT",
              "TEXTAREA",
              "HTML",
              "UNKNOWN"
            ]
          },
          "description": {
            "type": "string"
          },
          "groupName": {
            "type": "string"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "calculated": {
            "type": "boolean"
          },
          "externalOptions": {
            "type": "boolean"
          },
          "hasUniqueValue": {
            "type": "boolean"
          },
          "hidden": {
            "type": "boolean"
          },
          "hubspotDefined": {
            "type": "boolean"
          },
          "modificationMetadata": {
            "$ref": "#/components/schemas/ModificationMetadata"
          },
          "formField": {
            "type": "boolean"
          },
          "dataSensitivity": {
            "type": "string"
          },
          "createdUserId": {
            "type": "string"
          },
          "updatedUserId": {
            "type": "string"
          },
          "archived": {
            "type": "boolean"
          },
          "showCurrencySymbol": {
            "type": "boolean"
          },
          "dateDisplayHint": {
            "type": "string"
          },
          "calculationFormula": {
            "type": "string"
          }
        }
      },
      "ModificationMetadata": {
        "type": "object",
        "properties": {
          "archivable": {
            "type": "boolean"
          },
          "readOnlyDefinition": {
            "type": "boolean"
          },
          "readOnlyValue": {
            "type": "boolean"
          },
          "readOnlyOptions": {
            "type": "boolean"
          }
        }
      },
      "Option": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "hidden": {
            "type": "boolean"
          }
        }
      },
      "ValidationFieldRuleSchema": {
        "type": "object",
        "properties": {
          "propertyName": {
            "type": "string"
          },
          "propertyValidationRules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationRule"
            }
          }
        }
      },
      "ValidationRule": {
        "type": "object",
        "properties": {
          "ruleType": {
            "type": "string",
            "enum": [
              "MAX_LENGTH",
              "MIN_LENGTH",
              "ALPHANUMERIC",
              "SPECIAL_CHARACTERS",
              "WHITESPACE",
              "REGEX",
              "URL_ALLOWED_DOMAINS",
              "URL_BLOCKED_DOMAINS",
              "URL",
              "DECIMAL",
              "MAX_NUMBER",
              "MIN_NUMBER",
              "PHONE_NUMBER_WITH_EXPLICIT_COUNTRY_CODE",
              "START_DATE",
              "END_DATE",
              "BEFORE_DURATION",
              "AFTER_DURATION",
              "UNKNOWN"
            ]
          },
          "ruleArguments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TenantClientSearch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "createdTime": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedTime": {
            "type": "string",
            "format": "date-time"
          },
          "uuid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "siteUrl": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE",
              "TRIAL",
              "TERMINATED"
            ]
          },
          "parentClientId": {
            "type": "integer",
            "format": "int64"
          },
          "inceptionDate": {
            "type": "string",
            "format": "date-time"
          },
          "assignedSalesRep": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "successScore": {
            "type": "integer",
            "format": "int32"
          },
          "activeClientSuccessCycleId": {
            "type": "integer",
            "format": "int64"
          },
          "zendeskId": {
            "type": "string"
          },
          "terminatedDate": {
            "type": "string",
            "format": "date-time"
          },
          "salesforceAccountId": {
            "type": "string"
          },
          "usageId": {
            "type": "string"
          },
          "stripeId": {
            "type": "string"
          },
          "regionId": {
            "type": "integer",
            "format": "int64"
          },
          "street": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "externalId": {
            "type": "string"
          },
          "npsScore": {
            "type": "integer",
            "format": "int32"
          },
          "note": {
            "type": "string"
          },
          "createdByEmployeeId": {
            "type": "integer",
            "format": "int64"
          },
          "modifiedByEmployeeId": {
            "type": "integer",
            "format": "int64"
          },
          "entityType": {
            "type": "string"
          },
          "parentClient": {
            "$ref": "#/components/schemas/TenantClientSummary"
          },
          "clientType": {
            "$ref": "#/components/schemas/ClientTypeSummary"
          },
          "region": {
            "$ref": "#/components/schemas/Region"
          },
          "managedByEmployee": {
            "$ref": "#/components/schemas/TenantEmployeeSummary"
          },
          "assignedSalesRepAssociation": {
            "$ref": "#/components/schemas/TenantEmployeeSummary"
          },
          "primaryContact": {
            "$ref": "#/components/schemas/ClientContactSummary"
          },
          "accTeamingRoles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccTeamingRoleMap"
            }
          },
          "dynamicAccountTeamingRoles": {
            "type": "object"
          }
        }
      },
      "WorkatoFilterHubspotRecordRequestTenantClientSearch": {
        "type": "object",
        "properties": {
          "fieldSchema": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HubspotFieldSchema"
            }
          },
          "validationRuleSchema": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationFieldRuleSchema"
            }
          },
          "createRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantClientSearch"
            }
          },
          "updateRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantClientSearch"
            }
          },
          "forCreateRecordMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldRecordMapping"
            }
          },
          "forUpdateRecordMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldRecordMapping"
            }
          }
        }
      },
      "WorkatoV3PushHubspotValidatedRecordsTenantClientSearch": {
        "type": "object",
        "properties": {
          "recordsForCreate": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantClientSearch"
            }
          },
          "recordsForUpdate": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantClientSearch"
            }
          },
          "filteredRecordsForCreate": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantClientSearch"
            }
          },
          "filteredRecordsForUpdate": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantClientSearch"
            }
          },
          "failedIds": {
            "type": "string"
          },
          "createErrors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "updateErrors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "gen-auth": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 113,
      "2": 164,
      "3": 150,
      "4": 249,
      "5": 175,
      "6": 252,
      "7": 0,
      "8": 77,
      "9": 217,
      "10": 148,
      "11": 207
    }
  }
}
```