{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Search using segment conditions without actually creating a segment.\nBody contains a JSON object with `conditions`, a list of conditions as described below, and an optional `list_id`, which is a valid list ID for a list to limit the search on.\n\nValid operators for create and update depend on the type of the field for which you are searching.\n\n- Dates:\n  - `\"eq\"`, `\"ne\"`, `\"lt\"` (before), `\"gt\"` (after)\n    - You may use MM/DD/YYYY for day granularity or an epoch for second granularity.\n  - `\"empty\"`, `\"not_empty\"`\n  - `\"is within\"`\n    - You may use an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date format or the # of days.\n- Text: `\"contains\"`, `\"eq\"` (is - matches the full field), `\"ne\"` (is not - matches any field where the entire field is not the condition value), `\"empty\"`, `\"not_empty\"`\n- Numbers: `\"eq\"`, `\"lt\"`, `\"gt\"`, `\"empty\"`, `\"not_empty\"`\n- Email Clicks and Opens: `\"eq\"` (opened), `\"ne\"` (not opened)\n\nField values must all be a string.\n\nSearch conditions using `\"eq\"` or `\"ne\"` for email clicks and opens should provide a \"field\" of either `clicks.campaign_identifier` or `opens.campaign_identifier`.\n\nThe condition value should be a string containing the id of a completed campaign.\n\nSearch conditions list may contain multiple conditions, joined by an `\"and\"` or `\"or\"` in the `\"and_or\"` field.\n\nThe first condition in the conditions list must have an empty `\"and_or\"`, and subsequent conditions must all specify an `\"and_or\"`.","properties":{"body":{"type":"object","properties":{"list_id":{"type":"integer"},"conditions":{"type":"array","description":"The conditions by which this segment should be created.","items":{"$ref":"#/definitions/ContactdbSegmentsConditions"}}},"required":["list_id","conditions"],"examples":[{"list_id":-27497588,"conditions":[{"and_or":"","field":"birthday","value":"01/12/1985","operator":"eq"},{"and_or":"","field":"birthday","value":"01/12/1985","operator":"eq"},{"and_or":"","field":"birthday","value":"01/12/1985","operator":"eq"},{"and_or":"","field":"birthday","value":"01/12/1985","operator":"eq"}]}]}},"required":[],"additionalProperties":false,"definitions":{"ContactdbSegmentsConditions":{"title":"ContactDB: Segments: Conditions","type":"object","properties":{"field":{"type":"string"},"value":{"type":"string"},"operator":{"allOf":[{"$ref":"#/definitions/Operator"},{"type":"string"}]},"and_or":{"allOf":[{"$ref":"#/definitions/AndOr"},{"type":"string"}]}},"required":["field","value","operator"]},"Operator":{"type":"string","enum":["eq","ne","lt","gt","contains"]},"AndOr":{"type":"string","enum":["and","or",""]}}},"name":"Search recipients","id":"sendgrid.lmc_contactdb.searchrecipient","example":{},"maxRequests":1,"summary":false}}