{"swagger":"2.0","host":"api.salesflare.com","basePath":"/","schemes":["https"],"info":{"title":"Salesflare API","version":"1.0.0","description":"# Introduction\n\n## Getting Started\n\nThe Salesflare API allows you to access and build your own applications or integrations that interact with Salesflare.\n\nThe Salesflare API provides a RESTful interface with JSON-formatted responses to access most Salesflare resources.\n\n## Authentication\n\nThe Salesflare API uses bearer token based authentication, which means you need to use the key-value pair \"Authorization : Bearer APIKEY\" in the header to authenticate.\n\nYou can make an API key in [\"Settings\" > \"API keys\"](https://app.salesflare.com/#/settings/apikeys).\n\nClick on the large orange \"+\" button on the bottom right of the screen to create an API key.\n\n![Screenshot API Key Settings](https://lib.salesflare.com/api_docs/screenshot_settings_apikeys.png?v=2)\n\n## Requests\n\nAll requests must be sent using HTTPS with TLS 1.2 or higher. Please make sure your developer tools support this version of TLS as older versions or SSL are not supported for security reasons.\n\nFor PUT or POST requests (e.g. create, update), the payload must be provided as JSON in the request body.\n\n## Responses\n\nResponses use HTTP status codes, with the most typical ones being:\n\n| Code                   | Meaning               |\n|------------------------|-----------------------|\n| Successful Responses                           |\n| 200                    | OK                    |\n| Error Responses                                |\n| 400                    | Bad Request           |\n| 401                    | Unauthorized          |\n| 404                    | Not Found             |\n| 429                    | Too Many Requests     |\n| 500                    | Internal Server Error |\n\n## Testing\n\nWe recommend testing our API with Postman.\n\n### Download specification\n\nOur API is documented following the OpenAPI specification. You can download it [here](https://api.salesflare.com/openapi.json)\n\n### Import in Postman\n\nTo import the collection, open Postman and click Import, then select \"Import From Link\"\n\nCopy & Paste the following link and press the \"Import\" button:\n\n> https://api.salesflare.com/openapi.json\n\n![Screenshot Postman Import](https://lib.salesflare.com/api_docs/screenshot_postman_import.png)\n\n## Support\n\nFor API questions and support, please email support@salesflare.com or click the chat bubble below.","contact":{"email":"support@salesflare.com"},"x-logo":{"url":"https://lib.salesflare.com/api_docs/sf-logo-inverted.svg","backgroundColor":"#0f1528","altText":"Salesflare logo"}},"x-tagGroups":[{"name":"General","tags":["Tasks","Accounts","Contacts","Opportunities","Workflows","Insights"]},{"name":"Interactions","tags":["Calls","Meetings","Internal Notes"]},{"name":"User Management","tags":["Users","Groups"]},{"name":"Configuration","tags":["Regional Settings","Pipelines","Custom Fields","Email Data Sources","Tags","Filter Fields","Persons"]}],"tags":[],"paths":{"/accounts":{"get":{"summary":"List accounts","operationId":"getAccounts","description":"Request a list of accounts with optional filters and pagination","parameters":[{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"id","in":"query"},{"type":"boolean","default":true,"name":"details","in":"query"},{"type":"string","name":"search","in":"query"},{"type":"string","name":"name","in":"query"},{"type":"string","format":"date-time","name":"creation_after","in":"query"},{"type":"string","format":"date-time","name":"creation_before","in":"query"},{"type":"number","minimum":0,"name":"min_size","in":"query"},{"type":"number","name":"max_size","in":"query"},{"type":"array","x-constraint":{"unique":true,"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"domain","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"tag","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"tag.name","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.country","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.city","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.state_region","in":"query"},{"type":"number","description":"Hotness level. Allowed values: 1 (Room temp), 2 (Hot), 3 (On fire).","enum":[1,2,3],"name":"hotness","in":"query"},{"type":"number","name":"offset","in":"query"},{"type":"string","name":"custom","in":"query","x-type":"object"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"number","default":10,"minimum":1,"name":"limit","in":"query"},{"type":"string","name":"export","in":"query"}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Create an account","operationId":"postAccounts","description":"Create an account","parameters":[{"type":"boolean","default":false,"name":"update_if_exists","in":"query"},{"x-alternatives":[{"type":"object","properties":{"owner":{"type":"number","description":"The ID of the user who owns the account."},"name":{"type":"string","description":"The account name."},"domain":{"type":"string","description":"The account domain."},"picture":{"type":"string","description":"The account logo URL."},"size":{"type":"number","description":"The account employee count."},"website":{"type":"string","description":"The account website URL.","x-format":{"uri":{"allowRelative":true,"allowQuerySquareBrackets":true}}},"description":{"type":"string","description":"The account description."},"address":{"type":"object","description":"The primary address of the account."},"addresses":{"type":"array","description":"List of addresses associated with the account.","items":{"type":"object","properties":{"city":{"type":"string","description":"The address city."},"country":{"type":"string","description":"The address country.","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string","description":"The address state or region."},"street":{"type":"string","description":"The address street."},"zip":{"type":"string","description":"The address ZIP/postal code."},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"email":{"type":"string","description":"The account email address.","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"email_addresses":{"type":"array","description":"List of email addresses associated with the account.","items":{"type":"object","properties":{"email":{"type":"string","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}},"required":["email"]}},"phone_number":{"type":"string","description":"The primary phone number of the account."},"phone_numbers":{"type":"array","description":"List of phone numbers associated with the account.","items":{"type":"object","properties":{"number":{"type":"string"},"type":{"type":"string"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}},"required":["number"]}},"social_profiles":{"type":"array","description":"List of social profiles associated with the account.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string"},"url":{"type":"string"},"username":{"type":"string"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}]}},"tags":{"type":"array","description":"List of tags associated with the account.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"team":{"type":"number"},"creation_date":{"type":"string"},"modification_date":{"type":"string"},"_deleted":{"type":"boolean"},"_dirty":{"type":"string","description":"Deprecated. This field is ignored."}}}]}},"links":{"type":"string"},"customers":{"type":"array","description":"List of customers associated with the account.","items":{"type":"object","properties":{"id":{"type":"number"},"email":{"type":"string","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower"}},"name":{"type":"string"}},"required":["id"]}},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."},"parent_account":{"type":"number","x-alternatives":[{"type":"number"},{"type":"object","properties":{"id":{"type":"number"}}}]},"custom":{"type":"object","description":"Custom field values associated with the account."}}},{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"email":{"type":"string","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower"}},"name":{"type":"string"}},"required":["id"]}}],"in":"body","name":"body","schema":{"type":"object","properties":{"owner":{"type":"number","description":"The ID of the user who owns the account."},"name":{"type":"string","description":"The account name."},"domain":{"type":"string","description":"The account domain."},"picture":{"type":"string","description":"The account logo URL."},"size":{"type":"number","description":"The account employee count."},"website":{"type":"string","description":"The account website URL.","x-format":{"uri":{"allowRelative":true,"allowQuerySquareBrackets":true}}},"description":{"type":"string","description":"The account description."},"address":{"type":"object","description":"The primary address of the account."},"addresses":{"type":"array","description":"List of addresses associated with the account.","items":{"type":"object","properties":{"city":{"type":"string","description":"The address city."},"country":{"type":"string","description":"The address country.","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string","description":"The address state or region."},"street":{"type":"string","description":"The address street."},"zip":{"type":"string","description":"The address ZIP/postal code."},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"email":{"type":"string","description":"The account email address.","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"email_addresses":{"type":"array","description":"List of email addresses associated with the account.","items":{"type":"object","properties":{"email":{"type":"string","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}},"required":["email"]}},"phone_number":{"type":"string","description":"The primary phone number of the account."},"phone_numbers":{"type":"array","description":"List of phone numbers associated with the account.","items":{"type":"object","properties":{"number":{"type":"string"},"type":{"type":"string"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}},"required":["number"]}},"social_profiles":{"type":"array","description":"List of social profiles associated with the account.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string"},"url":{"type":"string"},"username":{"type":"string"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}]}},"tags":{"type":"array","description":"List of tags associated with the account.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"team":{"type":"number"},"creation_date":{"type":"string"},"modification_date":{"type":"string"},"_deleted":{"type":"boolean"},"_dirty":{"type":"string","description":"Deprecated. This field is ignored."}}}]}},"links":{"type":"string"},"customers":{"type":"array","description":"List of customers associated with the account.","items":{"type":"object","properties":{"id":{"type":"number"},"email":{"type":"string","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower"}},"name":{"type":"string"}},"required":["id"]}},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."},"parent_account":{"type":"number","x-alternatives":[{"type":"number"},{"type":"object","properties":{"id":{"type":"number"}}}]},"custom":{"type":"object","description":"Custom field values associated with the account."}}}}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/contacts":{"get":{"summary":"List contacts","operationId":"getContacts","description":"Request a list of contacts with optional filters and pagination","parameters":[{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"id","in":"query"},{"type":"string","name":"name","in":"query"},{"type":"string","name":"email","in":"query"},{"type":"string","name":"phone_number","in":"query"},{"type":"string","name":"domain","in":"query"},{"type":"string","format":"date-time","name":"modification_after","in":"query"},{"type":"string","format":"date-time","name":"modification_before","in":"query"},{"type":"string","format":"date-time","name":"creation_after","in":"query"},{"type":"string","format":"date-time","name":"creation_before","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"account","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"tag","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"tag.name","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"position.role","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.country","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.state_region","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.city","in":"query"},{"type":"boolean","name":"includeArchived","in":"query"},{"type":"string","name":"search","in":"query"},{"type":"string","enum":["customer","mycontacts"],"name":"type","in":"query"},{"type":"number","default":20,"minimum":1,"name":"limit","in":"query"},{"type":"number","default":0,"name":"offset","in":"query"},{"type":"string","name":"custom","in":"query","x-type":"object"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"string","name":"export","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}}],"tags":["Contacts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Create a contact","operationId":"postContacts","description":"Create a contact. When payload is an array you will get an array back, if just an object or an array with 1 item you get an object back.","parameters":[{"type":"boolean","description":"When `force` is `false`, the contact is not created if a contact with the same email address previously existed.","default":true,"name":"force","in":"query"},{"in":"body","name":"body","schema":{"type":"array","x-constraint":{"single":true},"items":{"type":"object","properties":{"owner":{"type":"number","description":"The ID of the user who owns the contact."},"domain":{"type":"string","description":"The contact domain."},"email":{"type":"string","description":"The contact email address.","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"prefix":{"type":"string","description":"The contact name prefix."},"firstname":{"type":"string","description":"The contact first name."},"middle":{"type":"string","description":"The contact middle name."},"lastname":{"type":"string","description":"The contact last name."},"suffix":{"type":"string","description":"The contact name suffix."},"name":{"type":"string","description":"The full name of the contact."},"picture":{"type":"string","description":"The profile picture URL of the contact.","maxLength":500},"account":{"type":"number","description":"The Salesflare ID of the account to link to this contact. If you explicitly pass `null`, any existing linked account is removed."},"birth_date":{"type":"string","format":"date-time","description":"The contact birth date (ISO 8601 date-time)."},"opt-out":{"type":"boolean","description":"Whether the contact has opted out of communications."},"opt-out_date":{"type":"string","format":"date-time","description":"The date and time the contact opted out of communications (ISO 8601 date-time)."},"opt-out_campaign":{"type":"string"},"bounced":{"type":"boolean","description":"Whether emails to this contact have bounced."},"bounced_date":{"type":"string","format":"date-time","description":"The date and time emails to this contact bounced (ISO 8601 date-time)."},"files":{"type":"array","description":"List of files associated with the contact.","items":{"type":"object"}},"tags":{"type":"array","description":"List of tags associated with the contact.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"team":{"type":"number"},"creation_date":{"type":"string"},"modification_date":{"type":"string"},"_deleted":{"type":"boolean"},"_dirty":{"type":"string","description":"Deprecated. This field is ignored."}}}]}},"address":{"type":"object","description":"The primary address of the contact.","properties":{"city":{"type":"string"},"country":{"type":"string","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string"},"street":{"type":"string"},"type":{"type":"string"},"zip":{"type":"string"}}},"addresses":{"type":"array","description":"List of addresses associated with the contact.","items":{"type":"object","properties":{"city":{"type":"string"},"country":{"type":"string","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string"},"street":{"type":"string"},"type":{"type":"string"},"zip":{"type":"string"}}}},"phone_number":{"type":"string","description":"The primary phone number of the contact."},"mobile_phone_number":{"type":"string","description":"The mobile phone number of the contact."},"home_phone_number":{"type":"string","description":"The home phone number of the contact."},"fax_number":{"type":"string","description":"The fax number of the contact."},"phone_numbers":{"type":"array","description":"List of phone numbers associated with the contact.","items":{"type":"object","properties":{"number":{"type":"string"},"type":{"type":"string"}},"required":["number"]}},"position":{"type":"object","description":"The primary position of the contact.","properties":{"organisation":{"type":"string"},"role":{"type":"string"}}},"positions":{"type":"array","description":"List of positions associated with the contact.","items":{"type":"object","properties":{"end_date":{"type":"string","format":"date-time"},"start_date":{"type":"string","format":"date-time"},"current":{"type":"boolean"},"primary":{"type":"boolean"},"organisation":{"type":"string"},"role":{"type":"string"}}}},"social_profiles":{"type":"array","description":"List of social profiles associated with the contact.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string"},"url":{"type":"string"},"username":{"type":"string"}}}]}},"custom":{"type":"object","description":"Custom field values associated with the contact."}}}}}],"tags":["Contacts"],"responses":{"200":{"schema":{"type":"array","x-constraint":{"single":true},"items":{"type":"object","properties":{"id":{"type":"number"}}}},"description":"Successful"}}}},"/currencies":{"get":{"summary":"List supported currencies","operationId":"getCurrencies","tags":["Regional Settings"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"iso":{"type":"string","x-constraint":{"length":3}},"html":{"type":"string"}}}},"description":"Successful"}}}},"/groups":{"get":{"summary":"List groups","operationId":"getGroups","tags":["Groups"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/me":{"get":{"summary":"Get current user's details","operationId":"getMe","tags":["Users"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"},"team":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"tracking_token":{"type":"string"},"days_until_account_inactive":{"type":"number"},"total_user_count":{"type":"number"},"enabled_user_count":{"type":"number"},"paid_user_count":{"type":"number"},"free_users":{"type":"number"},"subscribed":{"type":"boolean"},"payment_type":{"type":"string","enum":["stripe","free","appstack"]},"discount_code":{"type":"string"},"discount_type":{"type":"string"},"promo_description":{"type":"string"},"promo_redeem_by":{"type":"string","format":"date-time"},"promo_code":{"type":"string"},"plan":{"type":"number"},"currency":{"type":"object","properties":{"id":{"type":"number"},"html":{"type":"string"},"iso":{"type":"string"}}},"billing_currency":{"type":"object","properties":{"id":{"type":"number"},"html":{"type":"string"},"iso":{"type":"string"}}},"billing_frequency":{"type":"string","enum":["monthly","annually"]},"creation_date":{"type":"string","format":"date-time"},"time_zone":{"type":"string"},"stripe_customer_id":{"type":"string"},"stripe_subscription_date":{"type":"string","format":"date-time"},"campaign":{"type":"string"},"credit_usage":{"type":"number"},"credit_quota":{"type":"number"},"credit_package":{"type":"string","enum":["S","M","L","XL"]},"input_token_usage":{"type":"number"},"output_token_usage":{"type":"number"},"ai_inference_usage":{"type":"number"},"ai_inference_quota":{"type":"number"},"email_tracking_subdomain":{"type":"string"},"email_tracking_domain":{"type":"object","properties":{"url":{"type":"string"},"enabled":{"type":"boolean"},"timeZones":{"type":"array","items":{"type":"string"}}},"required":["url","enabled"]},"automated_tagging":{"type":"boolean"},"domain":{"type":"string"}}},"group":{"type":"number"},"amount_of_trial_days_earned":{"type":"number"},"setup_completion_percentage":{"type":"number"},"has_received_account_suggestions":{"type":"boolean"},"has_archived_contacts":{"type":"boolean"},"notification_channel_id":{"type":"string"},"needs_password":{"type":"boolean"},"disabled":{"type":"boolean"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"},"prefix":{"type":"string"},"firstname":{"type":"string"},"middle":{"type":"string"},"lastname":{"type":"string"},"suffix":{"type":"string"},"name":{"type":"string"},"email":{"type":"string","x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}}},"domain":{"type":"string"},"picture":{"type":"string"},"type":{"type":"string"},"is_admin":{"type":"boolean"},"credit_usage":{"type":"number"},"is_importing":{"type":"boolean"},"sync_status":{"type":"string"},"calendar_sync_status":{"type":"string"},"first_calendar_sync_done":{"type":"boolean"},"trial_expired":{"type":"boolean"},"trial_expiry_date":{"type":"string","format":"date-time"},"trial_extended":{"type":"boolean"},"restricted":{"type":"boolean"},"restricted_reason":{"type":"string"},"team_discount_code":{"type":"string"},"is_delinquent":{"type":"boolean"},"input_token_usage":{"type":"number"},"output_token_usage":{"type":"number"},"ai_inference_usage":{"type":"number"},"social_profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"},"url":{"type":"string"},"type":{"type":"string"}}}},"phone_numbers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"number":{"type":"string"},"type":{"type":"string"}}}},"positions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"organisation":{"type":"string"},"role":{"type":"string"}}}},"addresses":{"type":"array","items":{"type":"object"}},"tags":{"type":"array","items":{"type":"object"}},"intercom_hash":{"type":"string","x-format":{"hex":{"byteAligned":false,"prefix":false}}},"first_day_of_week":{"type":"number"},"theme":{"type":"string","enum":["system","light","dark"]},"language":{"type":"string","enum":["en","nl","fr","de","pt","br","it","es"]},"am_pm_notation":{"type":"boolean"},"auto_find_email_linkedin":{"type":"boolean"},"data_sources_to_reconnect":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"email":{"type":"string"},"type":{"type":"string"}}}},"data_sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"email":{"type":"string"},"type":{"type":"string"},"sync_status":{"type":"string"},"status":{"type":"string","enum":["ERROR","RECONNECT","OK"]},"status_message":{"type":"string"}}}},"plan_flags":{"type":"object"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"flag":{"type":"number"},"name":{"type":"string"},"state":{"type":"boolean"},"user":{"type":"number"},"plan":{"type":"number"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"}},"required":["flag","name","state"]}},"role":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"permissions":{"type":"object","properties":{"view":{"type":"string","enum":["CED","VIEW"]},"ced":{"type":"string","enum":["CED","VIEW"]}}}}},"call_log_sync_date":{"type":"string","format":"date-time"},"two_fa_enabled":{"type":"boolean"},"has_recently_failed_workflows":{"type":"boolean"},"amount_of_failed_workflows":{"type":"number"}}},"description":"Successful"}}}},"/opportunities":{"get":{"summary":"List opportunities","operationId":"getOpportunities","description":"Request a list of opportunities with optional filters and pagination<br/><br/>default date filter (from/to) is on close_date<br/><br/>setting scope to user gives back all opportunities from the user","parameters":[{"type":"string","name":"search","in":"query"},{"type":"number","x-alternatives":[{"type":"number"},{"type":"array","items":{"type":"number"},"collectionFormat":"multi","name":"id"}],"name":"id","in":"query"},{"type":"string","name":"name","in":"query"},{"type":"string","description":"Deprecated. Do not use this field.","name":"status","in":"query"},{"type":"number","x-alternatives":[{"type":"number"},{"type":"array","items":{"type":"number"},"collectionFormat":"multi","name":"stage"}],"name":"stage","in":"query"},{"type":"string","x-alternatives":[{"type":"string"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"stage.name"}],"name":"stage.name","in":"query"},{"type":"number","name":"owner","in":"query"},{"type":"number","name":"team_member","in":"query"},{"type":"number","name":"owner_group","in":"query"},{"type":"number","name":"assignee_group","in":"query"},{"type":"number","name":"team_member_group","in":"query"},{"type":"number","name":"account","in":"query"},{"type":"number","name":"assignee","in":"query"},{"type":"number","minimum":0,"name":"min_value","in":"query"},{"type":"number","name":"max_value","in":"query"},{"type":"string","format":"date-time","name":"close_after","in":"query"},{"type":"string","format":"date-time","name":"close_before","in":"query"},{"type":"string","format":"date-time","name":"creation_after","in":"query"},{"type":"string","format":"date-time","name":"creation_before","in":"query"},{"type":"boolean","name":"closed","in":"query"},{"type":"boolean","name":"done","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"tag","in":"query"},{"type":"string","x-alternatives":[{"type":"string"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"tag.name"}],"name":"tag.name","in":"query"},{"type":"number","description":"Hotness level. Allowed values: 1 (Room temp), 2 (Hot), 3 (On fire).","enum":[1,2,3],"name":"hotness","in":"query"},{"type":"number","name":"limit","in":"query"},{"type":"number","name":"offset","in":"query"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"number","name":"pipeline","in":"query"},{"type":"string","name":"custom","in":"query","x-type":"object"},{"type":"boolean","name":"details","in":"query"},{"type":"string","name":"export","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}}],"tags":["Opportunities"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Create an opportunity","operationId":"postOpportunities","description":"Create an opportunity","parameters":[{"in":"body","name":"body","schema":{"type":"object","properties":{"owner":{"type":"number","description":"The ID of the user who owns the opportunity.","x-alternatives":[{"type":"number","description":"The ID of the user who owns the opportunity."},{"type":"object","description":"The user object for the opportunity owner."},{"type":"string"}]},"account":{"type":"number","x-alternatives":[{"type":"number"},{"type":"object"}]},"stage":{"type":"number","description":"The Salesflare ID of the stage.","x-alternatives":[{"type":"number","description":"The Salesflare ID of the stage."},{"type":"object","description":"The current stage of the opportunity.","properties":{"id":{"type":"number","description":"The Salesflare ID of the stage.","x-constraint":{"sign":"positive"}},"order":{"type":"number","description":"The order of the stage within the pipeline."},"probability":{"type":"number","description":"The probability that the opportunity will be won."},"fixed_stage":{"type":"number","description":"The Salesflare ID of the fixed/default stage."}},"required":["id","order","probability"]},{"type":"string"}]},"lost_reason":{"type":"number","description":"The reason the opportunity was lost.","x-alternatives":[{"type":"number","description":"The reason the opportunity was lost."},{"type":"object","description":"The reason the opportunity was lost.","properties":{"id":{"type":"number"},"name":{"type":"string"}}},{"type":"string"}]},"files":{"type":"array","description":"List of files associated with the opportunity.","items":{"type":"object"}},"lead_source":{"type":"number","description":"The source of the opportunity.","x-alternatives":[{"type":"number","description":"The source of the opportunity."},{"type":"object","description":"The source of the opportunity.","properties":{"id":{"type":"number"},"name":{"type":"string"}}}]},"start_date":{"type":"string","format":"date-time","description":"The start date of the opportunity (ISO 8601 date-time)."},"probability":{"type":"number","description":"The probability that the opportunity will be won.","minimum":0},"assignee":{"type":"number","description":"The ID of the user assigned to the opportunity.","x-alternatives":[{"type":"number","description":"The ID of the user assigned to the opportunity."},{"type":"object","description":"The user object for the opportunity assignee."},{"type":"string"}]},"creator":{"type":"number","description":"The ID of the user who created the opportunity.","x-alternatives":[{"type":"number","description":"The ID of the user who created the opportunity."},{"type":"object","description":"The user object for the opportunity creator."},{"type":"string"}]},"status":{"type":"string","description":"Deprecated. Do not use this field."},"name":{"type":"string","description":"The opportunity name."},"value":{"type":"number","description":"The monetary value of the opportunity.","minimum":0},"currency":{"type":"number","description":"The currency ID of the opportunity."},"status_date":{"type":"string","description":"Deprecated. Do not use this field."},"close_date":{"type":"string","format":"date-time","description":"The date the opportunity was closed (ISO 8601 date-time)."},"closed":{"type":"boolean","description":"Whether the opportunity is closed."},"tags":{"type":"array","description":"List of tags associated with the opportunity.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"team":{"type":"number"},"creation_date":{"type":"string"},"modification_date":{"type":"string"},"_deleted":{"type":"boolean"},"_dirty":{"type":"string","description":"Deprecated. This field is ignored."}}}]}},"recurring_price_per_unit":{"type":"number","description":"The recurring price per unit of the opportunity.","minimum":0},"frequency":{"type":"string","description":"The recurrence frequency of the opportunity. Allowed values: annually, weekly, monthly, daily.","enum":["annually","weekly","monthly","daily"],"x-convert":{"case":"lower"}},"units":{"type":"number","description":"The number of units for the opportunity.","minimum":0},"contract_start_date":{"type":"string","format":"date-time","description":"The contract start date (ISO 8601 date-time)."},"contract_end_date":{"type":"string","format":"date-time","description":"The contract end date (ISO 8601 date-time)."},"main_contact":{"type":"number","x-alternatives":[{"type":"number"},{"type":"object","properties":{"id":{"type":"number"}}}]},"custom":{"type":"object","description":"Custom field values associated with the opportunity."}},"required":["account"]}}],"tags":["Opportunities"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"}}},"description":"Successful"}}}},"/persons":{"get":{"summary":"List persons","operationId":"getPersons","parameters":[{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"id","in":"query"},{"type":"string","name":"name","in":"query"},{"type":"string","name":"email","in":"query"},{"type":"string","name":"search","in":"query"}],"tags":["Persons"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/pipelines":{"get":{"summary":"List pipelines","operationId":"getPipelines","description":"Request a list of pipelines with optional filters and pagination","parameters":[{"type":"string","name":"search","in":"query"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}}],"tags":["Pipelines"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"team":{"type":"number"},"name":{"type":"string"},"currency":{"type":"object","properties":{"id":{"type":"number"},"html":{"type":"string"},"iso":{"type":"string"}}},"follows_default_team_currency":{"type":"boolean"},"order":{"type":"number"},"stages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"color":{"type":"string"},"probability":{"type":"number"},"name":{"type":"string"},"fixed_stage":{"type":"number"},"days_until_account_inactive":{"type":"number"},"order":{"type":"number"}},"required":["name"]}},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"recurring":{"type":"boolean","default":false},"default_pipeline":{"type":"boolean"},"expected_customer_lifetime_months":{"type":"number"},"standard_price_per_unit_annually":{"type":"number"},"standard_price_per_unit_monthly":{"type":"number"},"standard_price_per_unit_weekly":{"type":"number"},"standard_price_per_unit_daily":{"type":"number"},"archived":{"type":"boolean"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"}}}},"description":"Successful"}}}},"/stages":{"get":{"summary":"List stages","operationId":"getStages","parameters":[{"type":"number","name":"id","in":"query"},{"type":"string","name":"name","in":"query"},{"type":"number","name":"pipeline.id","in":"query"},{"type":"string","name":"pipeline.name","in":"query"},{"type":"string","x-alternatives":[{"type":"string"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"order_by"}],"name":"order_by","in":"query"}],"tags":["Pipelines"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/tags":{"get":{"summary":"List tags","operationId":"getTags","description":"Request a list of tags with optional filters and pagination","parameters":[{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"id","in":"query"},{"type":"string","description":"Deprecated. Use `q.search` instead. When both are provided, `q.search` is used.","name":"name","in":"query"},{"type":"number","default":20,"minimum":1,"name":"limit","in":"query"},{"type":"number","default":0,"minimum":0,"name":"offset","in":"query"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}}],"tags":["Tags"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"team":{"type":"number"},"name":{"type":"string"},"modification_date":{"type":"string","format":"date-time"},"creation_date":{"type":"string","format":"date-time"},"account_count":{"type":"number"},"person_count":{"type":"number"},"opportunity_count":{"type":"number"},"total_count":{"type":"number"},"automated":{"type":"boolean"}}}},"description":"Successful"}}},"post":{"summary":"Create a tag","operationId":"postTags","parameters":[{"in":"body","name":"body","schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}],"tags":["Tags"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"}},"required":["id"]},"description":"Successful"}}}},"/tasks":{"get":{"summary":"List tasks","operationId":"getTasks","description":"Request a list of tasks with optional filters and pagination","parameters":[{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"id","in":"query"},{"type":"string","description":"Search tasks by name or description.","name":"search","in":"query"},{"type":"array","description":"List of user IDs from the team. Defaults to the authenticated user's ID.","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"assignees","in":"query"},{"type":"array","description":"A list of task type ids.","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"type","in":"query"},{"type":"array","description":"A list of account ids.","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"account","in":"query"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"number","description":"The number of tasks to return. Defaults to 20.","name":"limit","in":"query"},{"type":"number","description":"The number of tasks to skip.","name":"offset","in":"query"},{"type":"string","name":"export","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}}],"tags":["Tasks"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Create a task","operationId":"postTasks","description":"Create a task","parameters":[{"in":"body","name":"body","schema":{"type":"array","x-constraint":{"single":true},"items":{"type":"object","properties":{"account":{"type":"number","description":"The ID of the account linked to the task."},"description":{"type":"string","description":"The task description."},"reminder_date":{"type":"string","format":"date","description":"The task due date and time (ISO 8601 date-time).","default":"2026-07-27T22:53:02.184Z"},"assignees":{"type":"array","description":"List of user IDs assigned to the task.","x-constraint":{"single":true},"items":{"type":"number"}}},"required":["description"]}}}],"tags":["Tasks"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"}}},"description":"Successful"}}}},"/users":{"get":{"summary":"List users","operationId":"getUsers","description":"Request a list of users with optional filters and pagination","parameters":[{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"id","in":"query"},{"type":"string","name":"name","in":"query"},{"type":"string","name":"email","in":"query"},{"type":"string","name":"search","in":"query"},{"type":"number","minimum":1,"name":"limit","in":"query"},{"type":"number","name":"offset","in":"query"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"boolean","name":"onlyEnabled","in":"query"}],"tags":["Users"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/workflows":{"get":{"summary":"List workflows","operationId":"getWorkflows","parameters":[{"type":"number","default":20,"minimum":1,"name":"limit","in":"query"},{"type":"number","default":0,"minimum":0,"name":"offset","in":"query"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"string","name":"search","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}}],"tags":["Workflows"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"filter":{"x-alternatives":[{"type":"object","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]}],"type":"object","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},"individual_record_filter":{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"team":{"type":"number"},"status":{"type":"string","enum":["draft","live","paused","finished","failed","scheduled"]},"status_message":{"type":"string"},"record_type":{"type":"string","enum":["contact"]},"goal":{"type":"string","enum":["opened","clicked","replied"]},"continuous":{"type":"boolean"},"exit_after_days":{"type":"number"},"schedule_date":{"type":"string","format":"date-time"},"schedule_time_start":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_time_end":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_days":{"type":"array","items":{"type":"number","minimum":0,"maximum":6}},"analytics":{"type":"object","properties":{"total":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"in":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"exited":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"met_goal":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}}}},"archived":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"number"},"filter":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"trigger_step":{"type":"number"},"trigger_step_index":{"type":"number"},"trigger_after_days":{"type":"number"},"trigger":{"type":"string","enum":["sent","opened","clicked","replied","not_opened","not_replied","not_clicked"]},"action_type":{"type":"string","enum":["send_email"]},"action_config":{"type":"object"},"action_status":{"type":"string"},"action_source":{"type":"number"},"action_source_email":{"type":"string","x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}}},"analytics":{"type":"object","properties":{"total":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"sent":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"interacted":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"replied":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"failed":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}}}},"metrics_data":{"type":"object"},"id":{"type":"number"},"workflow":{"type":"number"},"team":{"type":"number"},"archived":{"type":"boolean"},"archived_by":{"type":"number"},"archived_date":{"type":"string","format":"date-time"},"created_by":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"}},"required":["id"]},"last_modified_by":{"type":"number"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"}},"required":["order","id"]}},"creator_name":{"type":"string"},"created_by":{"type":"number"},"last_modified_by":{"type":"number"},"can_edit":{"type":"boolean"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"},"step_amount":{"type":"number"},"multi_step_before_pro_release":{"type":"boolean"},"scheduled_before_pro_release":{"type":"boolean"}},"required":["id","team"]}},"description":"Successful"}}},"post":{"summary":"Create a workflow","operationId":"postWorkflows","parameters":[{"in":"body","name":"body","schema":{"type":"object","properties":{"name":{"type":"string"},"filter":{"x-alternatives":[{"type":"object","description":"When you provide `ids`, all other filter options are ignored.","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]}],"type":"object","description":"When you provide `ids`, all other filter options are ignored.","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},"individual_record_filter":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"status":{"type":"string","enum":["live","paused","scheduled","draft"]},"status_message":{"type":"string"},"record_type":{"type":"string","enum":["contact"]},"goal":{"type":"string","enum":["opened","clicked","replied"]},"continuous":{"type":"boolean"},"exit_after_days":{"type":"number"},"schedule_date":{"type":"string","format":"date-time"},"schedule_time_start":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_time_end":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_days":{"type":"array","items":{"type":"number","minimum":0,"maximum":6}},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"filter":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"trigger_step":{"type":"number"},"trigger_step_index":{"type":"number"},"trigger_after_days":{"type":"number"},"trigger":{"type":"string","enum":["sent","opened","clicked","replied","not_opened","not_replied","not_clicked"]},"action_type":{"type":"string","enum":["send_email"]},"action_config":{"type":"object"},"action_status":{"type":"string"},"action_source":{"type":"number"},"action_source_email":{"type":"string","x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}}},"analytics":{"type":"object","properties":{"total":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"sent":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"interacted":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"replied":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"failed":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}}}},"metrics_data":{"type":"object"}},"required":["order"]}}},"required":["name"]}}],"tags":["Workflows"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"}}},"description":"Successful"}}}},"/accounts/{account_id}":{"get":{"summary":"Get account details","operationId":"getAccountsAccount_id","parameters":[{"type":"number","name":"account_id","in":"path","required":true}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"put":{"summary":"Update an account","operationId":"putAccountsAccount_id","description":"Update an account","parameters":[{"type":"number","name":"account_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"name":{"type":"string","description":"The account name."},"domain":{"type":"string","description":"The account domain."},"picture":{"type":"string","description":"The account logo URL."},"size":{"type":"number","description":"The account employee count."},"website":{"type":"string","description":"The account website URL.","x-format":{"uri":{"allowRelative":true,"allowQuerySquareBrackets":true}}},"description":{"type":"string","description":"The account description."},"address":{"type":"object","description":"The primary address of the account.","properties":{"id":{"type":"number","description":"The address ID."},"city":{"type":"string","description":"The address city."},"country":{"type":"string","description":"The address country.","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string","description":"The address state or region."},"street":{"type":"string","description":"The address street."},"zip":{"type":"string","description":"The address ZIP/postal code."},"archived":{"type":"boolean","description":"Whether this address is archived."},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}},"addresses":{"type":"array","items":{"type":"object","description":"List of addresses associated with the account.","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"email":{"type":"string","description":"The account email address.","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"email_addresses":{"type":"array","description":"List of email addresses associated with the account.","items":{"type":"object","properties":{"id":{"type":"number"},"email":{"type":"string","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"phone_number":{"type":"string","description":"The primary phone number of the account."},"phone_numbers":{"type":"array","description":"List of phone numbers associated with the account.","items":{"type":"object","properties":{"id":{"type":"number"},"number":{"type":"string"},"type":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"social_profiles":{"type":"array","description":"List of social profiles associated with the account.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"type":{"type":"string"},"url":{"type":"string"},"username":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}]}},"tags":{"type":"array","description":"List of tags associated with the account.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"team":{"type":"number"},"creation_date":{"type":"string"},"modification_date":{"type":"string"},"_deleted":{"type":"boolean"},"_dirty":{"type":"string","description":"Deprecated. This field is ignored."}}}]}},"links":{"type":"string","description":"Account links."},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."},"parent_account":{"type":"number","required":["parent_account"],"x-alternatives":[{"type":"number"},{"type":"object","properties":{"id":{"type":"number"}},"required":["id"]}]},"custom":{"type":"object","description":"Custom field values associated with the account."},"q":{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]}}}}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"delete":{"summary":"Delete an account","operationId":"deleteAccountsAccount_id","parameters":[{"type":"number","name":"account_id","in":"path","required":true}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/campaigns/mergefields":{"get":{"summary":"Get a workflow's merge fields","operationId":"getCampaignsMergefields","description":"Note that this route is currently still under `/campaigns` but might be moved in the future.","tags":["Workflows"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"entity_type":{"type":"string","enum":["account","contact"]},"display_name":{"type":"string"},"api_field":{"type":"string"},"is_custom":{"type":"boolean"},"custom_type":{"type":"string"}},"required":["entity_type","display_name"]}},"description":"Successful"}}}},"/conferences/{conference_id}":{"get":{"summary":"Get meeting details by conference id","operationId":"getConferencesConference_id","parameters":[{"type":"string","name":"conference_id","in":"path","required":true}],"tags":["Meetings"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/contacts/{contact_id}":{"get":{"summary":"Get contact details","operationId":"getContactsContact_id","parameters":[{"type":"number","name":"contact_id","in":"path","required":true}],"tags":["Contacts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"put":{"summary":"Update a contact","operationId":"putContactsContact_id","description":"Update a contact","parameters":[{"type":"number","name":"contact_id","in":"path","required":true},{"type":"boolean","description":"When `force` is `false`, the contact name is not updated if the provided name only matches the first part of the email address.","default":true,"name":"force","in":"query"},{"in":"body","name":"body","schema":{"type":"object","properties":{"prefix":{"type":"string","description":"The contact name prefix."},"firstname":{"type":"string","description":"The contact first name."},"middle":{"type":"string","description":"The contact middle name."},"lastname":{"type":"string","description":"The contact last name."},"suffix":{"type":"string","description":"The contact name suffix."},"email":{"type":"string","description":"The contact email address.","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower","trim":true}},"role":{"type":"string","description":"The contact role at their organization."},"name":{"type":"string","description":"The full name of the contact."},"owner":{"type":"number","description":"The ID of the user who owns the contact.","x-alternatives":[{"type":"number","description":"The ID of the user who owns the contact."},{"type":"object","properties":{"id":{"type":"number","description":"The ID of the user who owns the contact."}},"required":["id"]},{"type":"string"}]},"picture":{"type":"string","description":"The profile picture URL of the contact."},"account":{"type":"number","description":"The Salesflare ID of the account linked to this contact. If you explicitly pass `null`, any existing linked account is removed."},"birth_date":{"type":"string","format":"date-time","description":"The contact birth date (ISO 8601 date-time)."},"opt-out":{"type":"boolean","description":"Whether the contact has opted out of communications."},"opt-out_date":{"type":"string","format":"date-time","description":"The date and time the contact opted out of communications (ISO 8601 date-time)."},"opt-out_campaign":{"type":"string","description":"The campaign from which the contact opted out."},"bounced":{"type":"boolean","description":"Whether emails to this contact have bounced."},"bounced_date":{"type":"string","format":"date-time","description":"The date and time emails to this contact bounced (ISO 8601 date-time)."},"files":{"type":"array","description":"List of files associated with the contact.","items":{"type":"object"}},"tags":{"type":"array","description":"List of tags associated with the contact.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"team":{"type":"number"},"creation_date":{"type":"string"},"modification_date":{"type":"string"},"_deleted":{"type":"boolean"},"_dirty":{"type":"string","description":"Deprecated. This field is ignored."}}}]}},"address":{"type":"object","properties":{"id":{"type":"number","description":"The address ID."},"city":{"type":"string","description":"The address city."},"country":{"type":"string","description":"The address country.","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string","description":"The address state or region."},"street":{"type":"string","description":"The address street."},"type":{"type":"string"},"zip":{"type":"string","description":"The address ZIP/postal code."},"archived":{"type":"boolean","description":"Whether this address is archived."},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}},"addresses":{"type":"array","description":"List of addresses associated with the contact.","items":{"type":"object","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string","maxLength":50},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string"},"street":{"type":"string"},"type":{"type":"string"},"zip":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"phone_number":{"type":"string","description":"The primary phone number of the contact."},"mobile_phone_number":{"type":"string","description":"The mobile phone number of the contact."},"home_phone_number":{"type":"string","description":"The home phone number of the contact."},"fax_number":{"type":"string","description":"The fax number of the contact."},"phone_numbers":{"type":"array","description":"List of phone numbers associated with the contact.","items":{"type":"object","properties":{"id":{"type":"number"},"number":{"type":"string"},"type":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"position":{"type":"object","description":"The primary position of the contact.","properties":{"id":{"type":"number"},"organisation":{"type":"string"},"role":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}},"positions":{"type":"array","description":"List of positions associated with the contact.","items":{"type":"object","properties":{"id":{"type":"number"},"organisation":{"type":"string"},"role":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}},"social_profiles":{"type":"array","description":"List of social profiles associated with the contact.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"type":{"type":"string"},"url":{"type":"string"},"username":{"type":"string"},"archived":{"type":"boolean"},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."}}}]}},"custom":{"type":"object","description":"Custom field values associated with the contact."},"_dirty":{"type":"boolean","description":"Deprecated. This field is ignored."},"archived":{"type":"boolean"}}}}],"tags":["Contacts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"delete":{"summary":"Delete a contact","operationId":"deleteContactsContact_id","parameters":[{"type":"number","name":"contact_id","in":"path","required":true}],"tags":["Contacts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/customfields/types":{"get":{"summary":"List custom field types","operationId":"getCustomfieldsTypes","tags":["Custom Fields"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/customfields/{itemClass}":{"get":{"summary":"List custom fields of a type","operationId":"getCustomfieldsItemclass","parameters":[{"type":"string","enum":["accounts","contacts","opportunities"],"name":"itemClass","in":"path","required":true},{"type":"boolean","name":"includeDisabled","in":"query"},{"type":"number","name":"pipeline","in":"query"},{"type":"string","name":"name","in":"query"}],"tags":["Custom Fields"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Create a custom field of a type","operationId":"postCustomfieldsItemclass","parameters":[{"type":"string","enum":["accounts","contacts","opportunities"],"name":"itemClass","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"type":{"type":"number"},"name":{"type":"string"},"enabled":{"type":"boolean"},"archived":{"type":"boolean"},"required":{"type":"boolean"},"pipeline":{"type":"number"},"predefined_customfield":{"type":"number"},"users_can_add_options":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"order":{"type":"number"},"archived":{"type":"boolean"},"name":{"type":"string"}},"required":["name"]}},"order_alphabetically":{"type":"boolean","default":false},"min_number":{"type":"number"},"max_number":{"type":"number"},"min_date":{"type":"string","format":"date-time"},"max_date":{"type":"string","format":"date-time"},"default_boolean_value":{"type":"boolean"}}}}],"tags":["Custom Fields"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"}}},"description":"Successful"}}}},"/datasources/email":{"get":{"summary":"List email data sources","operationId":"getDatasourcesEmail","parameters":[{"type":"boolean","description":"Team data sources will only be included when the session user is an admin.","default":false,"name":"includeTeamDataSources","in":"query"}],"tags":["Email Data Sources"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"aliases":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower"}},"display_name":{"type":"string"}},"required":["email","display_name"]}},"email":{"type":"string"},"type":{"type":"string","enum":["google","office365","nylas","imap"]},"name":{"type":"string"},"team":{"type":"number"},"user":{"type":"number"},"email_signature":{"type":"string"},"add_signature_to_campaign":{"type":"boolean"},"add_signature_to_replies":{"type":"boolean"},"max_emails_day":{"type":"number"},"max_emails_hour":{"type":"number"},"primary":{"type":"boolean"},"host":{"type":"string"},"port":{"type":"number"},"smtp_host":{"type":"string"},"smtp_port":{"type":"number"},"store_sent_emails":{"type":"boolean"},"status":{"type":"string","enum":["OK","RECONNECT","ERROR"]},"sync_status":{"type":"string","enum":["initial","cache","sync","enrich","done"]}},"required":["id","aliases","email","type","name","team","user","add_signature_to_campaign","add_signature_to_replies","max_emails_day","max_emails_hour","primary","status","sync_status"]}},"description":"Successful"}}}},"/filterfields/{entity}":{"get":{"summary":"List filter fields for an entity","operationId":"getFilterfieldsEntity","parameters":[{"type":"string","name":"entity","in":"path","required":true},{"type":"number","name":"pipeline","in":"query"},{"type":"boolean","default":true,"name":"includePipelineSpecificPredefinedFilterFields","in":"query"}],"tags":["Filter Fields"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"input":{"type":"string"},"values":{"type":"object"},"validation":{"type":"object"},"operators":{"type":"array","items":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]}},"fixed_operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}},"order":{"type":"number"},"name":{"type":"string"}},"required":["name"]}},"sortable":{"type":"boolean"},"pipeline":{"type":"number"},"enabled":{"type":"string"},"param_less":{"type":"boolean"}},"required":["id","customfield_id","label","type","enabled"]}},"description":"Successful"}}}},"/groups/{id}":{"get":{"summary":"Get a group","operationId":"getGroupsId","tags":["Groups"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/me/contacts":{"get":{"summary":"List current user's contacts","operationId":"getMeContacts","parameters":[{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"id","in":"query"},{"type":"string","name":"name","in":"query"},{"type":"string","name":"email","in":"query"},{"type":"string","name":"phone_number","in":"query"},{"type":"string","name":"domain","in":"query"},{"type":"string","format":"date-time","name":"modification_after","in":"query"},{"type":"string","format":"date-time","name":"modification_before","in":"query"},{"type":"string","format":"date-time","name":"creation_after","in":"query"},{"type":"string","format":"date-time","name":"creation_before","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"account","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"tag","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"tag.name","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"position.role","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.country","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.state_region","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"address.city","in":"query"},{"type":"boolean","name":"includeArchived","in":"query"},{"type":"string","name":"search","in":"query"},{"type":"string","enum":["customer","mycontacts"],"name":"type","in":"query"},{"type":"number","default":20,"minimum":1,"name":"limit","in":"query"},{"type":"number","default":0,"name":"offset","in":"query"},{"type":"string","name":"custom","in":"query","x-type":"object"},{"type":"array","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending.","x-constraint":{"single":true},"items":{"type":"string"},"collectionFormat":"multi","name":"order_by","in":"query"},{"type":"string","name":"export","in":"query"},{"type":"string","x-alternatives":[{"type":"object","required":["condition","rules"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}},{"type":"array","items":{"type":"object","required":["condition"],"x-alternatives":[{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}}],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}},"collectionFormat":"multi","name":"q"}],"name":"q","in":"query","x-type":"object","x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},{"type":"object","required":["id","operator","value","raw_value"],"x-properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]},"collectionFormat":"multi","name":"value"},"raw_value":{"type":"array","items":{"type":"object"},"collectionFormat":"multi","name":"raw_value"},"pipeline":{"type":"number"}}},{"type":"object","required":["condition"],"x-properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","required":["id","customfield_id","operator","enabled"],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"not":{"type":"boolean"},"valid":{"type":"boolean"}}}],"x-properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","x-properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]},"collectionFormat":"multi","name":"value"},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}}},"collectionFormat":"multi","name":"rules"},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}}}],"tags":["Users"],"responses":{"200":{"schema":{"type":"array","items":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"number"},"picture":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"}},"required":["id"]},"id":{"type":"number"},"prefix":{"type":"string"},"firstname":{"type":"string"},"middle":{"type":"string"},"lastname":{"type":"string"},"suffix":{"type":"string"},"name":{"type":"string"},"email":{"type":"string","maxLength":1000,"x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}},"x-convert":{"case":"lower"}},"domain":{"type":"string"},"birth_date":{"type":"string"},"opt-out":{"type":"boolean"},"opt-out_date":{"type":"string","format":"date-time"},"opt-out_campaign":{"type":"string"},"bounced":{"type":"boolean"},"bounced_date":{"type":"string","format":"date-time"},"files":{"type":"array","items":{"type":"object"}},"owner":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"}},"required":["id"]},"picture":{"type":"string"},"archived":{"type":"boolean"},"not_viewed":{"type":"boolean"},"can_edit":{"type":"boolean"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"},"type":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id"]}},"addresses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"region":{"type":"string","description":"Deprecated. Use `state_region` instead."},"state_region":{"type":"string"},"street":{"type":"string"},"type":{"type":"string"},"zip":{"type":"string"}},"required":["id"]}},"phone_number":{"type":"string"},"mobile_phone_number":{"type":"string"},"home_phone_number":{"type":"string"},"fax_number":{"type":"string"},"phone_numbers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"number":{"type":"string"},"type":{"type":"string"}},"required":["id"]}},"positions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"organisation":{"type":"string"},"role":{"type":"string"}}}},"social_profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"type":{"type":"string"},"url":{"type":"string"},"username":{"type":"string"}},"required":["id"]}},"organisation":{"type":"string"},"role":{"type":"string"},"custom":{"type":"object"},"last_email_date":{"type":"string","format":"date-time"},"last_meeting_date":{"type":"string","format":"date-time"},"connection_strength":{"type":"number"}},"required":["id"]}},"description":"Successful"}}}},"/meetings/{meeting_id}":{"get":{"summary":"Get meeting details","operationId":"getMeetingsMeeting_id","parameters":[{"type":"number","name":"meeting_id","in":"path","required":true}],"tags":["Meetings"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"put":{"summary":"Update a meeting","operationId":"putMeetingsMeeting_id","parameters":[{"type":"number","name":"meeting_id","in":"path","required":true},{"x-alternatives":[{"type":"object","properties":{"calendar_id":{"type":"string"},"external_id":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string","description":"The only property you can modify on calendar meetings."},"edited_by":{"type":"number"}},"required":["calendar_id","external_id","notes"]},{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"subject":{"type":"string","maxLength":200},"description":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string"},"edited_by":{"type":"number"},"type":{"type":"string","enum":["meeting-live","meeting-phone"]},"phone_type":{"type":"string"},"participants":{"type":"array","minItems":1,"items":{"type":"number"}}},"required":["participants"]}],"in":"body","name":"body","schema":{"type":"object","properties":{"calendar_id":{"type":"string"},"external_id":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string","description":"The only property you can modify on calendar meetings."},"edited_by":{"type":"number"}},"required":["calendar_id","external_id","notes"]}}],"tags":["Meetings"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"delete":{"summary":"Delete a meeting","operationId":"deleteMeetingsMeeting_id","parameters":[{"type":"number","name":"meeting_id","in":"path","required":true}],"tags":["Meetings"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/opportunities/{id}":{"get":{"summary":"Get opportunity details","operationId":"getOpportunitiesId","parameters":[{"type":"number","name":"id","in":"path","required":true}],"tags":["Opportunities"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"},"owner":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"},"disabled":{"type":"boolean"}},"required":["id"]},"account":{"type":"object","properties":{"id":{"type":"number"},"picture":{"type":"string"},"name":{"type":"string"},"hotness":{"type":"number"},"owner":{"type":"number"}},"required":["id"]},"name":{"type":"string"},"stage":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"color":{"type":"string"},"fixed_stage":{"type":"number"},"order":{"type":"number"},"probability":{"type":"number"},"pipeline":{"type":"number"}},"required":["id"]},"assignee":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"}},"required":["id"]},"value":{"type":"number"},"calculated_value":{"type":"number"},"frequency":{"type":"string"},"units":{"type":"number"},"contract_start_date":{"type":"string"},"contract_end_date":{"type":"string"},"recurring_price_per_unit":{"type":"number"},"currency":{"type":"object","properties":{"id":{"type":"number"},"iso":{"type":"string"},"html":{"type":"string"}},"required":["id"]},"close_date":{"type":"string"},"done":{"type":"boolean"},"creator":{"type":"number"},"last_modified_by":{"type":"number"},"can_edit":{"type":"boolean"},"modification_date":{"type":"string","format":"date-time"},"creation_date":{"type":"string","format":"date-time"},"pipeline":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}},"last_interaction":{"type":"object","properties":{"type":{"type":"string"},"description":{"type":"string"},"date":{"type":"string","format":"date-time"},"person":{"type":"object","properties":{"id":{"type":"number"},"picture":{"type":"string"},"name":{"type":"string"}}}}},"stage_updates":{"type":"array","items":{"type":"object","properties":{"duration_in_seconds":{"type":"number"},"stage":{"type":"object","properties":{"id":{"type":"number"},"order":{"type":"number"},"name":{"type":"string"},"color":{"type":"string"}},"required":["id","order","name","color"]}},"required":["duration_in_seconds"]}},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id"]}},"probability":{"type":"number"},"lost_reason":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"}},"required":["id"]},"files":{"type":"array","items":{"type":"object"}},"lead_source":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id"]},"start_date":{"type":"string"},"custom":{"type":"object"},"main_contact":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"},"entity":{"type":"string","enum":["contact"]}},"required":["id"]}},"required":["id"]},"description":"Successful"}}},"put":{"summary":"Update an opportunity","operationId":"putOpportunitiesId","description":"Update an opportunity","parameters":[{"type":"number","name":"id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"owner":{"type":"number","description":"The ID of the user who owns the opportunity.","x-alternatives":[{"type":"number","description":"The ID of the user who owns the opportunity."},{"type":"object","description":"The user object for the opportunity owner."}]},"account":{"type":"number","description":"The Salesflare ID of the account linked to the opportunity.","x-alternatives":[{"type":"number","description":"The Salesflare ID of the account linked to the opportunity."},{"type":"object","description":"The account object linked to the opportunity."}]},"stage":{"type":"number","description":"The Salesflare ID of the stage.","x-constraint":{"sign":"positive"},"x-alternatives":[{"type":"number","description":"The Salesflare ID of the stage.","x-constraint":{"sign":"positive"}},{"type":"object","description":"The current stage of the opportunity.","properties":{"id":{"type":"number","description":"The Salesflare ID of the stage."},"order":{"type":"number","description":"The order of the stage within the pipeline."},"probability":{"type":"number","description":"The probability that the opportunity will be won."},"fixed_stage":{"type":"number","description":"The Salesflare ID of the fixed/default stage."}},"required":["id","order","probability"]}]},"lost_reason":{"type":"number","description":"The reason the opportunity was lost.","x-alternatives":[{"type":"number","description":"The reason the opportunity was lost."},{"type":"object","description":"The reason the opportunity was lost.","properties":{"id":{"type":"number"},"name":{"type":"string"}}}]},"files":{"type":"array","description":"List of files associated with the opportunity.","items":{"type":"object"}},"lead_source":{"type":"number","description":"The source of the opportunity.","x-alternatives":[{"type":"number","description":"The source of the opportunity."},{"type":"object","description":"The source of the opportunity.","properties":{"id":{"type":"number"},"name":{"type":"string"}}}]},"start_date":{"type":"string","format":"date-time","description":"The start date of the opportunity (ISO 8601 date-time)."},"probability":{"type":"number","description":"The probability that the opportunity will be won.","minimum":0},"assignee":{"type":"number","description":"The ID of the user assigned to the opportunity.","x-alternatives":[{"type":"number","description":"The ID of the user assigned to the opportunity."},{"type":"object","description":"The user object for the opportunity assignee."},{"type":"string"}]},"creator":{"type":"number","description":"The ID of the user who created the opportunity.","x-alternatives":[{"type":"number","description":"The ID of the user who created the opportunity."},{"type":"object","description":"The user object for the opportunity creator."},{"type":"string"}]},"name":{"type":"string","description":"The opportunity name."},"value":{"type":"number","description":"The monetary value of the opportunity.","minimum":0},"close_date":{"type":"string","format":"date-time","description":"The date the opportunity was closed (ISO 8601 date-time)."},"closed":{"type":"boolean","description":"Whether the opportunity is closed."},"done":{"type":"boolean","description":"Whether the opportunity is marked as done."},"tags":{"type":"array","description":"List of tags associated with the opportunity.","items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"team":{"type":"number"},"creation_date":{"type":"string"},"modification_date":{"type":"string"},"_deleted":{"type":"boolean"},"_dirty":{"type":"string","description":"Deprecated. This field is ignored."}}}]}},"recurring_price_per_unit":{"type":"number","description":"The recurring price per unit of the opportunity.","minimum":0},"frequency":{"type":"string","description":"The recurrence frequency of the opportunity. Allowed values: annually, weekly, monthly, daily.","enum":["annually","weekly","monthly","daily"],"x-convert":{"case":"lower"}},"units":{"type":"number","description":"The number of units for the opportunity.","minimum":0},"contract_start_date":{"type":"string","format":"date-time","description":"The contract start date (ISO 8601 date-time)."},"contract_end_date":{"type":"string","format":"date-time","description":"The contract end date (ISO 8601 date-time)."},"main_contact":{"type":"number","description":"The Salesflare ID of the main contact associated with the opportunity.","x-alternatives":[{"type":"number","description":"The Salesflare ID of the main contact associated with the opportunity."},{"type":"object","properties":{"id":{"type":"number"}}}]},"custom":{"type":"object","description":"Custom field values associated with the opportunity."}}}}],"tags":["Opportunities"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"delete":{"summary":"Delete an opportunity","operationId":"deleteOpportunitiesId","parameters":[{"type":"number","name":"id","in":"path","required":true}],"tags":["Opportunities"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/settings/ai":{"get":{"summary":"Get AI Settings","operationId":"getSettingsAi","tags":["AISetings"],"responses":{"200":{"schema":{"type":"object","properties":{"company":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"},"generated":{"type":"boolean"}}},"user":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"}}}}},"description":"Successful"}}},"put":{"summary":"Update AI Settings","operationId":"putSettingsAi","parameters":[{"in":"body","name":"body","schema":{"type":"object","properties":{"company":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"},"generated":{"type":"boolean"}}},"user":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"}}}}}}],"tags":["AISettings"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/stages/{stage_id}":{"get":{"summary":"Get stage details","operationId":"getStagesStage_id","parameters":[{"type":"number","name":"stage_id","in":"path","required":true}],"tags":["Pipelines"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/tags/{tag_id}":{"get":{"summary":"Get tag details","operationId":"getTagsTag_id","parameters":[{"type":"number","name":"tag_id","in":"path","required":true}],"tags":["Tags"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"put":{"summary":"Update a tag","operationId":"putTagsTag_id","parameters":[{"type":"number","name":"tag_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}],"tags":["Tags"],"responses":{"200":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}},"description":"Successful"}}},"delete":{"summary":"Delete a tag","operationId":"deleteTagsTag_id","parameters":[{"type":"number","name":"tag_id","in":"path","required":true}],"tags":["Tags"],"responses":{"200":{"schema":{"type":"object","properties":{"success":{"type":"string","enum":[true]}}},"description":"Successful"}}}},"/users/{id}":{"get":{"summary":"Get user details","operationId":"getUsersId","parameters":[{"type":"number","name":"id","in":"path","required":true}],"tags":["Users"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/workflows/{id}":{"get":{"summary":"Get workflow details","operationId":"getWorkflowsId","parameters":[{"type":"number","name":"id","in":"path","required":true}],"tags":["Workflows"],"responses":{"200":{"schema":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"filter":{"x-alternatives":[{"type":"object","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]}],"type":"object","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},"individual_record_filter":{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"},"archived":{"type":"boolean"},"options":{"type":"array","items":{"type":"object"}},"group":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"raw_value":{"type":"array","items":{"type":"object"}},"search_entity":{"type":"string","enum":["account","contact","user","tag","pipeline","workflow","lead"]},"sortable":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"team":{"type":"number"},"status":{"type":"string","enum":["draft","live","paused","finished","failed","scheduled"]},"status_message":{"type":"string"},"record_type":{"type":"string","enum":["contact"]},"goal":{"type":"string","enum":["opened","clicked","replied"]},"continuous":{"type":"boolean"},"exit_after_days":{"type":"number"},"schedule_date":{"type":"string","format":"date-time"},"schedule_time_start":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_time_end":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_days":{"type":"array","items":{"type":"number","minimum":0,"maximum":6}},"analytics":{"type":"object","properties":{"total":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"in":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"exited":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"met_goal":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}}}},"archived":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"number"},"filter":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"trigger_step":{"type":"number"},"trigger_step_index":{"type":"number"},"trigger_after_days":{"type":"number"},"trigger":{"type":"string","enum":["sent","opened","clicked","replied","not_opened","not_replied","not_clicked"]},"action_type":{"type":"string","enum":["send_email"]},"action_config":{"type":"object"},"action_status":{"type":"string"},"action_source":{"type":"number"},"action_source_email":{"type":"string","x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}}},"analytics":{"type":"object","properties":{"total":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"sent":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"interacted":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"replied":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"failed":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}}}},"metrics_data":{"type":"object"},"id":{"type":"number"},"workflow":{"type":"number"},"team":{"type":"number"},"archived":{"type":"boolean"},"archived_by":{"type":"number"},"archived_date":{"type":"string","format":"date-time"},"created_by":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"}},"required":["id"]},"last_modified_by":{"type":"number"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"}},"required":["order","id"]}},"creator_name":{"type":"string"},"created_by":{"type":"number"},"last_modified_by":{"type":"number"},"can_edit":{"type":"boolean"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"},"step_amount":{"type":"number"},"multi_step_before_pro_release":{"type":"boolean"},"scheduled_before_pro_release":{"type":"boolean"},"workflow_steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"number"},"filter":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"trigger_step":{"type":"number"},"trigger_step_index":{"type":"number"},"trigger_after_days":{"type":"number"},"trigger":{"type":"string","enum":["sent","opened","clicked","replied","not_opened","not_replied","not_clicked"]},"action_type":{"type":"string","enum":["send_email"]},"action_config":{"type":"object"},"action_status":{"type":"string"},"action_source":{"type":"number"},"action_source_email":{"type":"string","x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}}},"analytics":{"type":"object","properties":{"total":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"sent":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"interacted":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"replied":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"failed":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}}}},"metrics_data":{"type":"object"},"id":{"type":"number"},"workflow":{"type":"number"},"team":{"type":"number"},"archived":{"type":"boolean"},"archived_by":{"type":"number"},"archived_date":{"type":"string","format":"date-time"},"created_by":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"}},"required":["id"]},"last_modified_by":{"type":"number"},"creation_date":{"type":"string","format":"date-time"},"modification_date":{"type":"string","format":"date-time"}},"required":["order","id"]}}},"required":["id","team"]},"description":"Successful"}}},"put":{"summary":"Update a workflow","operationId":"putWorkflowsId","parameters":[{"type":"number","name":"id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"name":{"type":"string"},"filter":{"x-alternatives":[{"type":"object","description":"When you provide `ids`, all other filter options are ignored.","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]}],"type":"object","description":"When you provide `ids`, all other filter options are ignored.","properties":{"ids":{"type":"array","x-constraint":{"single":true},"items":{"type":"number"}}}},"individual_record_filter":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"status":{"type":"string","enum":["live","paused","scheduled","draft"]},"status_message":{"type":"string"},"record_type":{"type":"string","enum":["contact"]},"goal":{"type":"string","enum":["opened","clicked","replied"]},"continuous":{"type":"boolean"},"exit_after_days":{"type":"number"},"schedule_date":{"type":"string","format":"date-time"},"schedule_time_start":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_time_end":{"type":"string","pattern":"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:\\d{2}$"},"schedule_days":{"type":"array","items":{"type":"number","minimum":0,"maximum":6}},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"filter":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},{"type":"array","items":{"x-alternatives":[{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]},{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}}],"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"x-alternatives":[{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]},{"type":"object","properties":{"id":{"type":"string"},"operator":{"type":"string","description":"`is_empty`, `is_not_empty`, `is_null`, `is_not_null`, `true` and `false` are Deprecated. Do not use this field. and should not be used.","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"}]}},"raw_value":{"type":"array","items":{"type":"object"}},"pipeline":{"type":"number"}},"required":["id","operator","value","raw_value"]},{"type":"object","properties":{"condition":{"type":"string","enum":["AND","OR"]},"rules":{"type":"array","items":{"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"not":{"type":"boolean"},"valid":{"type":"boolean"}},"required":["condition"]}],"type":"object","description":"Deprecated. Use the slim version with only `id`, `operator`, and `value`.","properties":{"id":{"type":"string"},"query_builder_id":{"type":"string"},"customfield_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["integer","double","boolean","tri_state_boolean","string","long_string","select","date","datetime","file"]},"input":{"type":"string"},"operator":{"type":"string","enum":["equal","not_equal","in","not_in","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty","is_null","is_not_null","true","false","past_less","past_exactly","past_more_than","future_less","future_exactly","future_more_than","after","on","before","is","is_not"]},"value":{"type":"array","x-constraint":{"single":true},"items":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"boolean"},{"type":"object","properties":{"value1":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]},"value2":{"type":"string","x-alternatives":[{"type":"string"},{"type":"number"}]}}}]}},"entity":{"type":"string","enum":["account","person","opportunity","campaign","tag","task","workflow","workflow_record","workflow_step_record","lead"]},"display_entity":{"type":"string","enum":["Account","Contact","Opportunity","Campaign","Tag","Task","Workflow","Lead"]},"pipeline":{"type":"number"},"enabled":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","customfield_id","operator","enabled"]}},"order_by":{"type":"string","description":"Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call."},"not":{"type":"boolean"},"valid":{"type":"boolean"},"search":{"type":"string"}},"required":["condition","rules"]},"trigger_step":{"type":"number"},"trigger_step_index":{"type":"number"},"trigger_after_days":{"type":"number"},"trigger":{"type":"string","enum":["sent","opened","clicked","replied","not_opened","not_replied","not_clicked"]},"action_type":{"type":"string","enum":["send_email"]},"action_config":{"type":"object"},"action_status":{"type":"string"},"action_source":{"type":"number"},"action_source_email":{"type":"string","x-format":{"email":{"ignoreLength":true,"tlds":{"allow":false},"minDomainSegments":1}}},"analytics":{"type":"object","properties":{"total":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"sent":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"interacted":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"replied":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}},"failed":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"type":{"type":"string","enum":["absolute","percentage"]}}}}},"metrics_data":{"type":"object"}},"required":["order"]}}},"required":["name"]}}],"tags":["Workflows"],"responses":{"200":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}},"description":"Successful"}}}},"/accounts/{account_id}/feed":{"get":{"summary":"Get an account's feed","operationId":"getAccountsAccount_idFeed","description":"Get an account's feed which includes emails, messages, meetings, and other activities","parameters":[{"type":"number","name":"account_id","in":"path","required":true},{"type":"string","format":"date-time","name":"before","in":"query"},{"type":"string","format":"date-time","default":"1970-01-01T00:00:00.000Z","name":"after","in":"query"},{"type":"number","default":10,"minimum":1,"name":"limit","in":"query"},{"type":"array","x-constraint":{"single":true},"items":{"type":"string","enum":["email","message","meeting-live","meeting-phone","forward","webpage","user_added","user_removed","account_created"]},"collectionFormat":"multi","name":"types","in":"query"},{"type":"array","description":"List of contacts to filter the account feed on. Empty array means no contacts and if key not present then all contacts will be used.","x-constraint":{"single":true},"items":{"type":"number"},"collectionFormat":"multi","name":"contacts","in":"query"}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/accounts/{account_id}/messages":{"get":{"summary":"List an account's messages","operationId":"getAccountsAccount_idMessages","parameters":[{"type":"number","name":"account_id","in":"path","required":true},{"type":"string","format":"date-time","name":"before","in":"query"},{"type":"string","format":"date-time","default":"1970-01-01T00:00:00.000Z","name":"after","in":"query"},{"type":"number","default":10,"minimum":1,"name":"limit","in":"query"}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/customfields/{itemClass}/{id}":{"get":{"summary":"Get custom field details","operationId":"getCustomfieldsItemclassId","parameters":[{"type":"string","enum":["accounts","contacts","opportunities"],"name":"itemClass","in":"path","required":true},{"type":"number","name":"id","in":"path","required":true}],"tags":["Custom Fields"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"put":{"summary":"Update a custom field","operationId":"putCustomfieldsItemclassId","parameters":[{"type":"string","enum":["accounts","contacts","opportunities"],"name":"itemClass","in":"path","required":true},{"type":"number","name":"id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"id":{"type":"number"},"type":{"type":"number","description":"Deprecated. Do not use this field."},"name":{"type":"string"},"enabled":{"type":"boolean"},"archived":{"type":"boolean"},"required":{"type":"boolean"},"pipeline":{"type":"number"},"pipelineName":{"type":"string"},"order":{"type":"number"},"predefined_customfield":{"type":"number"},"users_can_add_options":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"order":{"type":"number"},"archived":{"type":"boolean"},"name":{"type":"string"}},"required":["name"]}},"order_alphabetically":{"type":"boolean"},"min_number":{"type":"number"},"max_number":{"type":"number"},"min_date":{"type":"string","format":"date-time"},"max_date":{"type":"string","format":"date-time"}},"required":["id"]}}],"tags":["Custom Fields"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"delete":{"summary":"Delete a custom field","operationId":"deleteCustomfieldsItemclassId","parameters":[{"type":"string","enum":["accounts","contacts","opportunities"],"name":"itemClass","in":"path","required":true},{"type":"number","name":"id","in":"path","required":true}],"tags":["Custom Fields"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/tags/{tag_id}/usage":{"get":{"summary":"Get tag details on usage in workflows, saved filters & reports","operationId":"getTagsTag_idUsage","parameters":[{"type":"number","name":"tag_id","in":"path","required":true}],"tags":["Tags"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/customfields/{itemClass}/{customFieldApiField}/options":{"get":{"summary":"List a custom field's options","operationId":"getCustomfieldsItemclassCustomfieldapifieldOptions","parameters":[{"type":"string","enum":["accounts","contacts","opportunities"],"name":"itemClass","in":"path","required":true},{"type":"string","name":"customFieldApiField","in":"path","required":true},{"type":"string","name":"searchString","in":"query"}],"tags":["Custom Fields"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/calls":{"post":{"summary":"Create a call","operationId":"postCalls","parameters":[{"in":"body","name":"body","schema":{"type":"array","x-constraint":{"single":true},"items":{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"subject":{"type":"string","maxLength":200},"description":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string"},"phone_type":{"type":"string"},"phone_number_hash":{"type":"string"},"participants":{"type":"array","description":"No participants are possible for call log sync.","items":{"type":"number"}}},"required":["date","participants"]}}}],"tags":["Calls"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/meetings":{"post":{"summary":"Create a meeting","operationId":"postMeetings","parameters":[{"in":"body","name":"body","schema":{"type":"array","x-constraint":{"single":true},"items":{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"subject":{"type":"string","maxLength":200},"description":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string"},"phone_type":{"type":"string"},"phone_number_hash":{"type":"string"},"participants":{"type":"array","description":"No participants are possible for call log sync.","items":{"type":"number"}},"type":{"type":"string","default":"meeting-live","enum":["meeting-live","meeting-phone"]}},"required":["date","participants"]}}}],"tags":["Meetings"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/messages":{"post":{"summary":"Create an internal note","operationId":"postMessages","parameters":[{"in":"body","name":"body","schema":{"type":"object","properties":{"account":{"type":"number"},"body":{"type":"string"},"mentions":{"type":"array","items":{"type":"number"}},"date":{"type":"string","format":"date-time"}},"required":["account","body"]}}],"tags":["Internal Notes"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/accounts/{account_id}/users":{"post":{"summary":"Update an account's users","operationId":"postAccountsAccount_idUsers","parameters":[{"type":"number","name":"account_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"array","minItems":1,"x-constraint":{"single":true},"items":{"type":"object","properties":{"id":{"type":"number"},"_dirty":{"type":"boolean"},"_deleted":{"type":"boolean"}}}}}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"put":{"summary":"Update an account's users","operationId":"putAccountsAccount_idUsers","parameters":[{"type":"number","name":"account_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"array","minItems":1,"x-constraint":{"single":true},"items":{"type":"object","properties":{"id":{"type":"number"},"_dirty":{"type":"boolean"},"_deleted":{"type":"boolean"}}}}}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/accounts/{account_id}/contacts":{"post":{"summary":"Update an account's contacts","operationId":"postAccountsAccount_idContacts","parameters":[{"type":"number","name":"account_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"array","minItems":1,"x-constraint":{"single":true},"items":{"type":"object","properties":{"id":{"type":"number"},"_dirty":{"type":"boolean"},"_deleted":{"type":"boolean"}}}}}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"put":{"summary":"Update an account's contacts","operationId":"putAccountsAccount_idContacts","parameters":[{"type":"number","name":"account_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"array","minItems":1,"x-constraint":{"single":true},"items":{"type":"object","properties":{"id":{"type":"number"},"_dirty":{"type":"boolean"},"_deleted":{"type":"boolean"}}}}}],"tags":["Accounts"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/message/{message_id}/feedback":{"post":{"summary":"Create an internal note","operationId":"postMessageMessage_idFeedback","parameters":[{"type":"number","name":"message_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"feedback":{"type":"string"}},"required":["feedback"]}}],"tags":["AI Message Feedbacks"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/messages/{message_id}/feedback":{"post":{"summary":"Create an internal note","operationId":"postMessagesMessage_idFeedback","parameters":[{"type":"number","name":"message_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"feedback":{"type":"string"}},"required":["feedback"]}}],"tags":["AI Message Feedbacks"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/calls/{meeting_id}":{"put":{"summary":"Update a call","operationId":"putCallsMeeting_id","parameters":[{"type":"number","name":"meeting_id","in":"path","required":true},{"x-alternatives":[{"type":"object","properties":{"calendar_id":{"type":"string"},"external_id":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string","description":"The only property you can modify on calendar meetings."},"edited_by":{"type":"number"}},"required":["calendar_id","external_id","notes"]},{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"subject":{"type":"string","maxLength":200},"description":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string"},"edited_by":{"type":"number"},"type":{"type":"string","enum":["meeting-live","meeting-phone"]},"phone_type":{"type":"string"},"participants":{"type":"array","minItems":1,"items":{"type":"number"}}},"required":["participants"]}],"in":"body","name":"body","schema":{"type":"object","properties":{"calendar_id":{"type":"string"},"external_id":{"type":"string"},"minutes":{"type":"string","description":"Deprecated. Use the `notes` property instead."},"notes":{"type":"string","description":"The only property you can modify on calendar meetings."},"edited_by":{"type":"number"}},"required":["calendar_id","external_id","notes"]}}],"tags":["Calls"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/messages/{message_id}":{"put":{"summary":"Update an internal note","operationId":"putMessagesMessage_id","parameters":[{"type":"number","name":"message_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"account":{"type":"number"},"body":{"type":"string"},"mentions":{"type":"array","items":{"type":"number"}},"date":{"type":"string","format":"date-time"}},"required":["account","body"]}}],"tags":["Internal Notes"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"delete":{"summary":"Delete an internal note","operationId":"deleteMessagesMessage_id","parameters":[{"type":"number","name":"message_id","in":"path","required":true}],"tags":["Internal Notes"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/tasks/{id}":{"put":{"summary":"Update a task","operationId":"putTasksId","description":"Update a task","parameters":[{"in":"body","name":"body","schema":{"type":"object","properties":{"account":{"type":"number","description":"The ID of the account linked to the task."},"description":{"type":"string","description":"The task description."},"reminder_date":{"type":"string","format":"date","description":"The task due date and time (ISO 8601 date-time)."},"assignees":{"type":"array","description":"List of user IDs assigned to the task.","x-constraint":{"single":true},"items":{"type":"number"}},"completed":{"type":"boolean","description":"Whether the task is completed."}}}}],"tags":["Tasks"],"responses":{"200":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}},"description":"Successful"}}},"delete":{"summary":"Delete a task","operationId":"deleteTasksId","tags":["Tasks"],"responses":{"200":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}},"description":"Successful"}}}},"/datasources/email/{id}":{"put":{"summary":"Update an email data source","operationId":"putDatasourcesEmailId","parameters":[{"type":"number","name":"id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"email_signature":{"type":"string"},"add_signature_to_campaign":{"type":"boolean"},"add_signature_to_replies":{"type":"boolean"},"max_emails_day":{"type":"number","minimum":0,"maximum":2000},"max_emails_hour":{"type":"number","minimum":0,"maximum":200}}}}],"tags":["Email Data Sources"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/workflows/{id}/audience/{record_id}":{"put":{"summary":"Re-enter or exit an entity from a workflow","operationId":"putWorkflowsIdAudienceRecord_id","parameters":[{"type":"number","name":"id","in":"path","required":true},{"type":"number","description":"This is the entity id. For email workflows this should be the contact id.","name":"record_id","in":"path","required":true},{"in":"body","name":"body","schema":{"type":"object","properties":{"exited":{"type":"boolean","description":"Setting `exited` to `true` will exit the entity from the workflow. Setting `exited` to `false` will re-enter the entity into the workflow."},"met_goal":{"type":"boolean","description":"Setting `met_goal` of a workflow record to `false` is currently not possible."}}}}],"tags":["Workflows"],"responses":{"200":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}},"description":"Successful"}}}}}}