{"components":{"responses":{},"schemas":{"CreateLinkParams":{"additionalProperties":false,"description":"Create Link request body","example":{"description":"Forklift hiring landing page","short_key":"whippy-it","url":"https://whippy.ai/products/campaigns","use_custom_card":false,"utm_medium":"sms","utm_source":"whippy"},"properties":{"custom_card_description":{"example":"Earn competitive compensation. Click for details.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_card_image":{"nullable":true,"properties":{"content_type":{"example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_card_title":{"example":"Join the team","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"example":"Forklift hiring landing page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"domain_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"short_key":{"example":"whippy-it","nullable":true,"type":"string","x-struct":null,"x-validate":null},"url":{"description":"Destination URL","example":"https://whippy.ai/products/campaigns","type":"string","x-struct":null,"x-validate":null},"use_custom_card":{"default":false,"type":"boolean","x-struct":null,"x-validate":null},"utm_campaign":{"example":"hire_forklift_drivers","nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_content":{"example":"join_our_team","nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_medium":{"example":"sms","nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_source":{"example":"whippy","nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_term":{"example":"forklift","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["url"],"title":"CreateLinkParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.CreateParams","x-validate":null},"CreateTeamMemberResponse":{"description":"Create TeamMember Response schema","example":{"data":{"id":"0f3f226b-b62a-4ba3-94de-80955f94d8a3","inserted_at":"2023-06-22T07:13:31","team_id":"4f52953b-6e0f-494e-ac86-822b344c95da","updated_at":"2023-06-22T07:13:31","user_id":1,"user_organization_id":3,"work_schedules":[]}},"properties":{"data":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateTeamMemberResponse","type":"object","x-struct":null,"x-validate":null},"ShowKnowledgeBaseResponse":{"additionalProperties":false,"description":"Response schema for knowledge base records.","example":{"data":{"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"created_at":"2026-08-07T09:00:00Z","description":"Answers common product questions","embedding_status":"completed","id":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","item_versions":[{"content":"Employees receive 15 days of PTO per year.","created_at":"2026-08-17T09:00:00Z","id":"6b63aba1-88c3-4e92-bd58-8fc407c07533","knowledge_base_item":{"id":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","name":"Vacation policy","type":"text"},"metadata":{},"settings":null,"url":null}],"name":"Product FAQ","published_at":"2026-08-07T10:00:00Z"},"draft_version":null,"id":"08171713-e2ca-4b5d-a499-7200394aacb5","organization":{"ai_context":null,"id":"f214c1a8-4d58-495c-98a4-113c2cc8152b","name":"Hello Inc."},"status":"active","updated_at":"2026-08-07T10:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}}},"properties":{"data":{"additionalProperties":false,"example":{"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"created_at":"2026-08-07T09:00:00Z","description":"Answers common product questions","embedding_status":"completed","id":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","item_versions":[{"content":"Employees receive 15 days of PTO per year.","created_at":"2026-08-17T09:00:00Z","id":"6b63aba1-88c3-4e92-bd58-8fc407c07533","knowledge_base_item":{"id":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","name":"Vacation policy","type":"text"},"metadata":{},"settings":null,"url":null}],"name":"Product FAQ","published_at":"2026-08-07T10:00:00Z"},"draft_version":null,"id":"08171713-e2ca-4b5d-a499-7200394aacb5","organization":{"ai_context":null,"id":"f214c1a8-4d58-495c-98a4-113c2cc8152b","name":"Hello Inc."},"status":"active","updated_at":"2026-08-07T10:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}},"properties":{"created_at":{"description":"Knowledge base creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"item_versions":{"description":"Top-level item versions in this knowledge base version","items":{"additionalProperties":false,"properties":{"content":{"description":"Extracted or authored content","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Item version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Item version ID","example":"6b63aba1-88c3-4e92-bd58-8fc407c07533","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_item":{"additionalProperties":false,"properties":{"id":{"description":"Knowledge base item ID","example":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Knowledge base item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Server-fetched file metadata for document, audio, and video items.\nTypical keys: filename, extension, size_kb.\n","example":{"extension":".pdf","filename":"handbook.pdf","size_kb":1024.0},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"url":{"description":"Source URL when applicable","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"item_versions":{"description":"Top-level item versions in this knowledge base version","items":{"additionalProperties":false,"properties":{"content":{"description":"Extracted or authored content","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Item version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Item version ID","example":"6b63aba1-88c3-4e92-bd58-8fc407c07533","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_item":{"additionalProperties":false,"properties":{"id":{"description":"Knowledge base item ID","example":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Knowledge base item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Server-fetched file metadata for document, audio, and video items.\nTypical keys: filename, extension, size_kb.\n","example":{"extension":".pdf","filename":"handbook.pdf","size_kb":1024.0},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"url":{"description":"Source URL when applicable","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base ID","example":"08171713-e2ca-4b5d-a499-7200394aacb5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"additionalProperties":false,"nullable":true,"properties":{"ai_context":{"description":"Organization AI context","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Organization ID","example":"f214c1a8-4d58-495c-98a4-113c2cc8152b","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Knowledge base status","enum":["draft","active","archived"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Knowledge base update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["id","status","created_at","updated_at"],"title":"KnowledgeBase","type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowKnowledgeBaseResponse","type":"object","x-struct":null,"x-validate":null},"CreateCustomPropertyParams":{"description":"Request schema for creating CustomProperties.","example":{"ai_context":"This property stores the customer's city for location-based services","default":"Atlanta","key":"city","label":"City","required":true,"type":"text"},"properties":{"ai_context":{"description":"Additional context information for AI features","example":"This property stores the customer's city for location-based services","type":"string","x-struct":null,"x-validate":null},"default":{"description":"The default value of the CustomProperty","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the CustomProperty in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the CustomProperty","example":"City","type":"string","x-struct":null,"x-validate":null},"required":{"description":"Whether the CustomProperty is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"The type of the CustomProperty","enum":["text","number","float","boolean","date","list","map"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"required":["key","label","type","required","state"],"title":"CreateCustomPropertyParams","type":"object","x-struct":null,"x-validate":null},"ShowDeveloerApplicationResponse":{"description":"Response schema for an individual developer application.","example":{"data":{"active":true,"api_key":{"active":true,"created_at":"2021-06-22T07:45:45","id":"893ae901-107e-4122-ba5c-24ac072f5898","name":"Zapier Integration Key","updated_at":"2021-06-22T07:45:45"},"created_at":"2021-06-22T07:45:45","deleted":false,"description":"Application for space travel with Whippy.","endpoints":[{"active":true,"created_at":"2021-06-22T07:45:45","developer_application_id":"70c5c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","campaign.created","campaign.updated"],"id":"143ebc90-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.spacetravel.com/webhooks"},{"active":true,"created_at":"2021-06-22T07:45:45","developer_application_id":"70c5c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","lead.new"],"id":"143ebc90-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.Interdimensionaltravel.com/webhooks"}],"id":"70c5c186-107e-4122-ba5c-24ac072f5898","name":"Space Application","organization_id":"89ca0f43db-107e-4122-ba5c-24ac072f5898","updated_at":"2021-06-22T07:45:45"}},"properties":{"data":{"description":"Single developer application data.","properties":{"active":{"description":"Activated status of the developer applicaiton","example":true,"type":"boolean","x-struct":null,"x-validate":null},"api_key":{"description":"API Key that the application belongs to.","properties":{"active":{"description":"Activated status of the key","example":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Date the API key is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"API Key ID","example":"893ae901-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"API Key name","example":"Zapier Integration Key","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the API key was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_at":{"description":"Date the developer application is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description of the developer application","example":"Application for space travel with Whippy.","type":"string","x-struct":null,"x-validate":null},"endpoints":{"description":"List of developer endpoints belonging to the application","items":{"description":"Data for a single endpoint in the application","properties":{"active":{"description":"Activated status of the endpoint","example":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Date the developer endpoint is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"developer_application_id":{"description":"Developer Application ID","example":"70c5c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"event_types":{"description":"List of events the developer endpoint is subscribed to","example":["message.created","message.updated","campaign.created","campaign.updated"],"items":{"description":"Single event subscribed to. Includes the name of a resource and an action separated by a period.","example":"message.created","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Developer Endpoint ID","example":"143ebc90-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"method":{"description":"HTTP method the webhook would be sent with","enum":["POST"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the developer endpoint was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the endpoint that would receive webhooks","example":"https://www.spacetravel.com/webhooks","format":"url","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Develoer Application ID","example":"70c5c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Name of the developer application","example":"Space Application","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID of the developer application organization","example":"89ca0f43db-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the developer application was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowDeveloerApplicationResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Application.ShowResponse","x-validate":null},"TeamWorkScheduleBadRequestErrorResponse":{"description":"Work Schedule Bad Request Error Response schema for showing, updating, and deleting team schedules","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Work Schedule 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null","Invalid path param Team ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamWorkScheduleBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.WorkSchedule.Errors.TeamBadRequest","x-validate":null},"ShowWorkflowConnectionResponse":{"example":{"data":{"app_id":"660e8400-e29b-41d4-a716-446655440001","app_version_id":"770e8400-e29b-41d4-a716-446655440002","auth_type":"oauth2","id":"550e8400-e29b-41d4-a716-446655440000","inserted_at":"2026-08-07T12:00:00Z","label":"user@example.com","name":"Work account","status":"active","updated_at":"2026-08-07T12:00:00Z"}},"properties":{"data":{"properties":{"app_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"app_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"auth_type":{"description":"App authentication type (oauth2, custom, api_key, session, …)","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"label":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","active","needs_reconnect","stale"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","app_id","status"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowWorkflowConnectionResponse","type":"object","x-struct":null,"x-validate":null},"ShowAgentVersionResponse":{"example":{"data":{"agent":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"created_at":"2024-04-30T08:56:24.260121Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"Law Agent","id":"9e058899-c35d-4720-be9c-80ec2497784f","llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"name":"Adrian","notes":"Updated the greeting and escalation instructions","organization":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}}},"properties":{"data":{"description":"Agent version record","example":{"agent":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"created_at":"2024-04-30T08:56:24.260121Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"Law Agent","id":"9e058899-c35d-4720-be9c-80ec2497784f","llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"name":"Adrian","notes":"Updated the greeting and escalation instructions","organization":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent":{"additionalProperties":false,"description":"Agent that the version belongs to","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version_id":{"description":"ID of the current agent version","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"default_call_flow_id":{"description":"ID of the agent default call flow","example":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the agent in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft agent version","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent ID","example":"6e9116b4-5536-4662-903a-4b40767d1ed1","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the agent belongs to","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Agent status","enum":["draft","active","archived","deleted"],"example":"archived","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"usage_mode":{"description":"Usage mode of the Agent","enum":["ai_minutes","completed_calls"],"example":"ai_minutes","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","usage_mode","created_by_id","deleted_at","current_version_id","default_call_flow_id","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"User that created the agent version","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm":{"additionalProperties":false,"description":"LLM used by the agent version","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the LLM in ISO 8601 format","example":"2024-02-28T12:33:40Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version_id":{"description":"ID of the current LLM version","example":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the LLM in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft LLM version","example":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"LLM ID","example":"04556aab-0865-482e-91b6-afaa09b40a7e","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the LLM belongs to","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"LLM status","enum":["draft","active","archived"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the LLM in ISO 8601 format","example":"2024-02-28T12:38:32Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","created_by_id","deleted_at","current_version_id","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Organization that the agent version belongs to","example":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"nullable":true,"properties":{"id":{"description":"Organization ID","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowAgentVersionResponse","type":"object","x-struct":null,"x-validate":null},"UpdateAgentSkillParams":{"description":"Update Agent Skill params. Scope and ownership fields are ignored.","example":{"content":"# My org playbook\n\nAlways call list_workflow_apps.","description":"How this workspace handles workflow apps discovery.","enabled":true,"keywords":["workflow","apps"],"name":"My org playbook","slug":"my-org-playbook","sort_order":100},"properties":{"content":{"description":"Markdown playbook body loaded via get_skill","example":"# My org playbook\n\nAlways call list_workflow_apps.","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Short description used in the agent skill index","example":"How this workspace handles workflow apps discovery.","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Whether the skill is available to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null},"keywords":{"description":"Optional search keywords","example":["workflow","apps"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"My org playbook","type":"string","x-struct":null,"x-validate":null},"slug":{"description":"Lowercase kebab-case slug unique within the skill's scope boundary","example":"my-org-playbook","type":"string","x-struct":null,"x-validate":null},"sort_order":{"description":"Sort order in listings","example":100,"type":"integer","x-struct":null,"x-validate":null}},"title":"UpdateAgentSkillParams","type":"object","x-struct":null,"x-validate":null},"TeamMemberWorkScheduleIndexCreateBadRequestErrorResponse":{"description":"Work Schedule Bad Request Error Response schema for listing and creating team schedules","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Work Schedule 400 error","items":{"properties":{"description":{"enum":["Invalid path param Team Member ID: null","Invalid path param Team ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamMemberWorkScheduleIndexCreateBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.WorkSchedule.Errors.TeamMemberIndexCreateBadRequest","x-validate":null},"PressDigitToolSettings":{"additionalProperties":false,"example":{"delay_ms":1000},"properties":{"delay_ms":{"description":"Delay before pressing the digit in milliseconds. Must be at least 0.","example":1000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"title":"PressDigitToolSettings","type":"object","x-struct":null,"x-validate":null},"KnowledgeBaseItem":{"additionalProperties":false,"example":{"created_at":"2026-08-17T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"id":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","name":"Vacation policy","type":"text","updated_at":"2026-08-17T09:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"versions":[{"content":"Employees receive 15 days of PTO per year.","created_at":"2026-08-17T09:00:00Z","id":"6b63aba1-88c3-4e92-bd58-8fc407c07533","metadata":{},"settings":null,"url":null}]},"properties":{"created_at":{"description":"Item creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base item ID","example":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Knowledge base item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Item update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"versions":{"description":"Item versions","items":{"additionalProperties":false,"properties":{"content":{"description":"Extracted or authored content","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Item version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Item version ID","example":"6b63aba1-88c3-4e92-bd58-8fc407c07533","format":"uuid","type":"string","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Server-fetched file metadata for document, audio, and video items.\nTypical keys: filename, extension, size_kb.\n","example":{"extension":".pdf","filename":"handbook.pdf","size_kb":1024.0},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"url":{"description":"Source URL when applicable","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["id","name","type","created_at","updated_at","versions"],"title":"KnowledgeBaseItem","type":"object","x-struct":null,"x-validate":null},"SendSMSCampaignResponse":{"description":"Response schema for sending SMS campaigns.","example":{"data":{"id":"44eea983-40c6-43cd-afc3-bf6cdeaab7e5","message":"Campaign is being processed","status":"queued"}},"properties":{"data":{"description":"Response for a newly created campaign.","properties":{"id":{"description":"Campaign ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Message that campaign is successfully queued.","example":"Campaign is being processed","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Initial campaign status","example":"queued","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"SendSMSCampaignResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.CreateResponse","x-validate":null},"ShowWorkflowRunResponse":{"description":"Response schema for retrieving a single workflow run.","example":{"data":{"completed_at":"2026-07-28T14:10:08Z","id":"69312aa3-d7ac-472e-80ca-a54ea72fa739","started_at":"2026-07-28T14:10:00Z","status":"failed","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","workflow_name":"Process inbound lead"}},"properties":{"data":{"properties":{"completed_at":{"description":"When the run completed, failed, or was filtered. Null while in progress.","example":"2026-07-28T14:10:08Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"The workflow run ID","example":"69312aa3-d7ac-472e-80ca-a54ea72fa739","format":"uuid","type":"string","x-struct":null,"x-validate":null},"started_at":{"description":"When the run started","example":"2026-07-28T14:10:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"The workflow run status","enum":["in_progress","completed","failed","filtered"],"example":"failed","type":"string","x-struct":null,"x-validate":null},"workflow_id":{"description":"The workflow ID","example":"99b01875-dc57-45cd-a045-aefdcabf96aa","format":"uuid","type":"string","x-struct":null,"x-validate":null},"workflow_name":{"description":"The workflow display name","example":"Process inbound lead","type":"string","x-struct":null,"x-validate":null}},"required":["id","workflow_id","workflow_name","status","started_at","completed_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowWorkflowRunResponse","type":"object","x-struct":null,"x-validate":null},"ContactFilterParams":{"description":"Request schema for filtering Contacts with WQL.","example":{"filter":[{"column":"location_id","comparison":"==","resource":"conversation","value":"228628ff-e8c9-46a3-989d-10c1e83902e8"},{"and":[{"and":[{"column":"date","comparison":">","resource":"interview","value":"2024-02-13"}],"column":"key","comparison":"==","on":[{"child":"interview","child_column":"appointment_data_id","parent":"appointment_data","parent_column":"id"}],"resource":"join_custom_data","value":"interview"}],"column":"key","comparison":"==","resource":"join_custom_data","value":"appointment_data"}],"limit":50,"offset":0},"properties":{"filter":{"description":"Apply multiple filters to the result set using AND logic","items":{"properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"clicked_link","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"on":{"description":"  List of on items that should be used to join parent resource with child resource.\n  The logic is as follows (parent_resource JOIN child_resource ON parent_resource.parent_column = child_resource.child_column).\n","items":{"properties":{"child":{"description":"The child resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"employee","type":"string","x-struct":null,"x-validate":null},"child_column":{"description":"The column on the child resource on which the comparison should be executed","example":"id","type":"string","x-struct":null,"x-validate":null},"parent":{"description":"The parent resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"assignment","type":"string","x-struct":null,"x-validate":null},"parent_column":{"description":"The column on the parent resource on which the comparison should be executed","example":"employee_id","type":"string","x-struct":null,"x-validate":null}},"required":["parent","child","parent_column","child_column"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"campaign_contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"limit":{"default":50,"description":"Limit the number of results","example":10,"maximum":500,"type":"integer","x-struct":null,"x-validate":null},"offset":{"default":0,"description":"Offset the results","example":10,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Sort by multiple resources and their columns","items":{"properties":{"column":{"example":"inserted_at","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"example":"asc","type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["campaign","campaign_contact","campaign_message","communication_preference","contact","contact_message","conversation","join_custom_data","list","message","segment","sequence_run","step_contact","tag"],"example":"contact","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null}},"title":"ContactFilterParams","type":"object","x-struct":null,"x-validate":null},"UnprocessableContentResponse":{"description":"Unprocessable Content Response schema","example":{"errors":[{"description":"Form List is_active is invalid"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"List of validation errors","items":{"properties":{"description":{"description":"Error description","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"description":"HTTP status code","example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"UnprocessableContentResponse","type":"object","x-struct":null,"x-validate":null},"ConfirmDomainPurchaseIntentParams":{"example":{"idempotencyKey":"purchase-acme-links-2026-11-05"},"properties":{"idempotencyKey":{"description":"Used only when the `Idempotency-Key` header is absent. One unique key per purchase; reuse the same key to retry safely.","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null}},"title":"ConfirmDomainPurchaseIntentParams","type":"object","x-struct":null,"x-validate":null},"ShowStepContactBadRequestErrorResponse":{"description":"Step Contact Bad Request Error Response schema when showing a step contact","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Step contacts 400 error","items":{"properties":{"description":{"enum":["Invalid path param Sequence ID: null","Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"ShowStepContactBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.StepContact.Errors.ShowBadRequest","x-validate":null},"CreateMetricRequest":{"description":"A metric definition.","example":{"chart":"bar","events":[{"filter":[{"column":"duration","comparison":">=","field_type":"integer","filter_type":"seconds","value":30}],"group_by":[{"field":"channel_id"}],"name":"call.analyzed","type":"whippy_event"}],"title":"AI calls by channel","type":"custom"},"properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null}},"required":["title","events","chart"],"title":"CreateMetricRequest","type":"object","x-struct":null,"x-validate":null},"ContactListListUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Contact List index (list) pagination params.\n","example":{"errors":[{"description":"Offset parameter is not compatible with cursor-based pagination"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact List list 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactListListUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.Errors.ListUnprocessableContent","x-validate":null},"Domain":{"description":"An organization-scoped custom domain and its per-purpose setup state","example":{"apexDomain":"acme.com","createdAt":"2026-11-03T19:00:00Z","expiresAt":null,"id":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","name":"mail.acme.com","purchase":null,"purchasedAt":null,"purposes":{"email":{"provider":"mailgun","requiredDnsRecords":[],"setupState":"awaiting_dns","status":"pending","verificationRecords":[{"name":"smtp._domainkey.mail","priority":null,"ttl":null,"type":"TXT","value":"k=rsa; p=MIGfMA0..."}]},"links":{"requiredDnsRecords":[{"name":"mail","priority":null,"ttl":null,"type":"CNAME","value":"cname.vercel-dns.com"}],"setupState":"active","status":"active","verificationRecord":null}},"renew":null,"setupType":"add","status":"active","updatedAt":"2026-11-03T19:00:00Z"},"properties":{"apexDomain":{"example":"acme.com","type":"string","x-struct":null,"x-validate":null},"createdAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"example":"mail.acme.com","type":"string","x-struct":null,"x-validate":null},"purchase":{"nullable":true,"properties":{"status":{"enum":["pending","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null}},"required":["status"],"type":"object","x-struct":null,"x-validate":null},"purchasedAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"purposes":{"properties":{"email":{"properties":{"provider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["status","setupState","provider","verificationRecords","requiredDnsRecords"],"title":"DomainEmailPurpose","type":"object","x-struct":null,"x-validate":null},"links":{"properties":{"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecord":{"nullable":true,"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null}},"required":["status","setupState","verificationRecord","requiredDnsRecords"],"title":"DomainLinksPurpose","type":"object","x-struct":null,"x-validate":null}},"required":["links","email"],"type":"object","x-struct":null,"x-validate":null},"renew":{"description":"Auto-renewal, only for `buy` domains","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"setupType":{"description":"`add`: caller-owned domain; `buy`: registered through Whippy; `managed`: provisioned by Whippy","enum":["add","buy","managed"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","active","cancelled","expired","deleted"],"type":"string","x-struct":null,"x-validate":null},"updatedAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","apexDomain","setupType","status","renew","purchase","purchasedAt","expiresAt","purposes","createdAt","updatedAt"],"title":"Domain","type":"object","x-struct":null,"x-validate":null},"ToolExecutionSort":{"description":"Sort for recorded agent tool executions.","properties":{"column":{"description":"Column to sort by.","enum":["tool_name","status","latency_ms","started_at","inserted_at"],"example":"started_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","order"],"title":"ToolExecutionSort","type":"object","x-struct":null,"x-validate":null},"CampaignNotFoundErrorResponse":{"description":"Campaign Not Found Error Response schema","example":{"errors":[{"description":"Campaign not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Campaign 404 error","items":{"properties":{"description":{"enum":["Campaign not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"CampaignNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.Errors.NotFound","x-validate":null},"DomainResponse":{"description":"A single domain","example":{"data":{"apexDomain":"acme.com","createdAt":"2026-11-03T19:00:00Z","expiresAt":null,"id":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","name":"mail.acme.com","purchase":null,"purchasedAt":null,"purposes":{"email":{"provider":"mailgun","requiredDnsRecords":[],"setupState":"awaiting_dns","status":"pending","verificationRecords":[{"name":"smtp._domainkey.mail","priority":null,"ttl":null,"type":"TXT","value":"k=rsa; p=MIGfMA0..."}]},"links":{"requiredDnsRecords":[{"name":"mail","priority":null,"ttl":null,"type":"CNAME","value":"cname.vercel-dns.com"}],"setupState":"active","status":"active","verificationRecord":null}},"renew":null,"setupType":"add","status":"active","updatedAt":"2026-11-03T19:00:00Z"}},"properties":{"data":{"description":"An organization-scoped custom domain and its per-purpose setup state","example":{"apexDomain":"acme.com","createdAt":"2026-11-03T19:00:00Z","expiresAt":null,"id":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","name":"mail.acme.com","purchase":null,"purchasedAt":null,"purposes":{"email":{"provider":"mailgun","requiredDnsRecords":[],"setupState":"awaiting_dns","status":"pending","verificationRecords":[{"name":"smtp._domainkey.mail","priority":null,"ttl":null,"type":"TXT","value":"k=rsa; p=MIGfMA0..."}]},"links":{"requiredDnsRecords":[{"name":"mail","priority":null,"ttl":null,"type":"CNAME","value":"cname.vercel-dns.com"}],"setupState":"active","status":"active","verificationRecord":null}},"renew":null,"setupType":"add","status":"active","updatedAt":"2026-11-03T19:00:00Z"},"properties":{"apexDomain":{"example":"acme.com","type":"string","x-struct":null,"x-validate":null},"createdAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"example":"mail.acme.com","type":"string","x-struct":null,"x-validate":null},"purchase":{"nullable":true,"properties":{"status":{"enum":["pending","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null}},"required":["status"],"type":"object","x-struct":null,"x-validate":null},"purchasedAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"purposes":{"properties":{"email":{"properties":{"provider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["status","setupState","provider","verificationRecords","requiredDnsRecords"],"title":"DomainEmailPurpose","type":"object","x-struct":null,"x-validate":null},"links":{"properties":{"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecord":{"nullable":true,"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null}},"required":["status","setupState","verificationRecord","requiredDnsRecords"],"title":"DomainLinksPurpose","type":"object","x-struct":null,"x-validate":null}},"required":["links","email"],"type":"object","x-struct":null,"x-validate":null},"renew":{"description":"Auto-renewal, only for `buy` domains","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"setupType":{"description":"`add`: caller-owned domain; `buy`: registered through Whippy; `managed`: provisioned by Whippy","enum":["add","buy","managed"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","active","cancelled","expired","deleted"],"type":"string","x-struct":null,"x-validate":null},"updatedAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","apexDomain","setupType","status","renew","purchase","purchasedAt","expiresAt","purposes","createdAt","updatedAt"],"title":"Domain","type":"object","x-struct":null,"x-validate":null}},"title":"DomainResponse","type":"object","x-struct":null,"x-validate":null},"QueuedCustomEventResponse":{"description":"Response schema when a custom event is queued for asynchronous processing.","example":{"data":{"message":"Custom event queued for processing"}},"properties":{"data":{"description":"Response data","properties":{"message":{"description":"Status message","example":"Custom event queued for processing","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"QueuedCustomEventResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomEvents.CustomEvent.QueuedResponse","x-validate":null},"ToolExecutionUnprocessableContentErrorResponse":{"description":"Invalid tool execution search.","example":{"errors":[{"description":"Filter is invalid"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"enum":["Search parameters are invalid","Filter is invalid","Filter ids must be UUIDs","Tool names are invalid","Status is invalid","Channel type is invalid","Tool name is invalid","Search text is invalid","Knowledge base filter is invalid","Sort is invalid","limit is invalid","offset is invalid"],"example":"Filter is invalid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"ToolExecutionUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"CreateLink":{"example":{"data":{"created_at":"2026-11-03T19:00:00Z","custom_card_description":"Earn competitive compensation. Click for details.","custom_card_image":{"content_type":"image/jpeg","url":"https://cdn.example.com/cards/hiring.jpg"},"custom_card_title":"Join the team","description":"Forklift hiring landing page","domain":null,"id":"dd840673-d544-44b9-99f1-f6438471d2f3","short_key":"whippy-it","short_url":"https://m.whippy.co/whippy-it","status":"active","updated_at":"2026-11-03T19:00:00Z","url":"https://whippy.ai/products/campaigns","use_custom_card":true,"utm_campaign":"hire_forklift_drivers","utm_content":"join_our_team","utm_medium":"sms","utm_source":"whippy","utm_term":"forklift"}},"properties":{"data":{"properties":{"created_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_card_description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_card_image":{"nullable":true,"properties":{"content_type":{"type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_card_title":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"domain":{"nullable":true,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"short_key":{"type":"string","x-struct":null,"x-validate":null},"short_url":{"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null},"use_custom_card":{"type":"boolean","x-struct":null,"x-validate":null},"utm_campaign":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_medium":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_source":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_term":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateLink","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.CreateResponse","x-validate":null},"ShowLLMResponse":{"additionalProperties":false,"description":"Response schema for LLM records.","example":{"data":{"created_at":"2024-02-28T12:33:40Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"deleted_at":null,"deleted_by":null,"draft_version":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"id":"3efa05f8-3dde-40bf-9271-e1b721092b10","organization":{"id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","name":"Hello Inc."},"status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"versions":[{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}}]}},"properties":{"data":{"description":"LLM record","properties":{"created_at":{"description":"Time of creation of the LLM in ISO 8601 format","example":"2024-02-28T12:33:40Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the LLM","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"description":"Current version of the LLM","example":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Created by user ID","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"83b1daa2-e882-4ad8-9306-85a22a020327","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"ca6368b9-b98e-4169-ac43-3dafe252f2c0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of LLM the LLM Version belongs to","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the LLM in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by":{"description":"Data for the user that deleted the LLM","nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"description":"Draft version of the LLM","example":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Created by user ID","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"83b1daa2-e882-4ad8-9306-85a22a020327","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"ca6368b9-b98e-4169-ac43-3dafe252f2c0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of LLM the LLM Version belongs to","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"LLM ID","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Data for the organization that the LLM belongs to","example":{"id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","name":"Hello Inc."},"properties":{"id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"LLM status","enum":["draft","active","archived","deleted"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the LLM in ISO 8601 format","example":"2024-02-28T12:38:32Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that updated the LLM","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"versions":{"description":"Versions of the LLM","example":[{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}}],"items":{"description":"LLM Version of the LLM","example":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Created by user ID","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"83b1daa2-e882-4ad8-9306-85a22a020327","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"ca6368b9-b98e-4169-ac43-3dafe252f2c0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of LLM the LLM Version belongs to","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowLLMResponse","type":"object","x-struct":null,"x-validate":null},"ContactListBadRequestErrorResponse":{"description":"Contact List Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact List 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactListBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.Errors.BadRequest","x-validate":null},"ListContactLists":{"description":"List Response for Contact Lists","example":{"data":[{"color":"#ffeb3b","created_at":"2021-06-22T10:36:07Z","id":"a7423956-a2e5-4f47-ad87-f6517c274254","name":"contact-list-name","organization_id":"0a6207d3-2754-4b0e-aa3b-8dec729ba4f6","state":"active","updated_at":"2021-06-22T10:36:07Z"}],"metadata":{"cursor_reset":false,"next_cursor":"eyJpbnNlcnRlZF9hdCI6IjIwMjEtMDYtMjJUMTA6MzY6MDdaIiwiaWQiOiI5YjRjMzAxMC0zNjVhLTQ1MmYtODY5Yi1kNGRiNDI3NGY1NDYifQ"},"total":1},"properties":{"data":{"description":"List of contact lists for the organization.","items":{"description":"Data for a single contact list.","properties":{"color":{"description":"Color of the contact list tag in RGB format","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the contact list in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact list ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Name of the contact list","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization the list belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the contact list","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the contact list in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Metadata for cursor-based pagination. Present only on cursor-paginated responses.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total count of contact lists.","type":"integer","x-struct":null,"x-validate":null}},"title":"ListContactLists","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.ListResponse","x-validate":null},"RemoveSequenceContactsResponse":{"description":"Response schema for removing sequence contacts.","example":{"data":{"message":"Sequence contacts removal are being processed"}},"properties":{"data":{"description":"Sequence contact removal","properties":{"message":{"description":"Message of confirmation that sequence contact removal is being processed","example":"Sequence contacts removal are being processed","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"RemoveSequenceContactsResponse","type":"object","x-struct":null,"x-validate":null},"CampaignDraftIncludedAudience":{"description":"Whippy Query filter items for the contacts to include.","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"nullable":true,"title":"CampaignDraftIncludedAudience","type":"array","x-struct":null,"x-validate":null},"ContactSegmentFilters":{"description":"The segment's contact filter in Whippy Query Language (WQL). Uses the same `filter` (and optional `sort`) structure as the request body of `POST /v1/contacts/filter`.","example":{"filter":[{"column":"source","comparison":"==","resource":"contact","value":"import"}]},"properties":{"filter":{"description":"Apply multiple filters to the result set using AND logic","items":{"properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"clicked_link","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"on":{"description":"  List of on items that should be used to join parent resource with child resource.\n  The logic is as follows (parent_resource JOIN child_resource ON parent_resource.parent_column = child_resource.child_column).\n","items":{"properties":{"child":{"description":"The child resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"employee","type":"string","x-struct":null,"x-validate":null},"child_column":{"description":"The column on the child resource on which the comparison should be executed","example":"id","type":"string","x-struct":null,"x-validate":null},"parent":{"description":"The parent resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"assignment","type":"string","x-struct":null,"x-validate":null},"parent_column":{"description":"The column on the parent resource on which the comparison should be executed","example":"employee_id","type":"string","x-struct":null,"x-validate":null}},"required":["parent","child","parent_column","child_column"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"campaign_contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"sort":{"description":"Sort by multiple resources and their columns","items":{"properties":{"column":{"example":"inserted_at","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"example":"asc","type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["campaign","campaign_contact","campaign_message","communication_preference","contact","contact_message","conversation","join_custom_data","list","message","segment","sequence_run","step_contact","tag"],"example":"contact","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"title":"ContactSegmentFilters","type":"object","x-struct":null,"x-validate":null},"AgentTestFixProposal":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null},"SearchKnowledgeBasesParams":{"additionalProperties":false,"description":"Request schema for searching knowledge bases.","properties":{"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"Case-insensitive partial match against current or draft version name","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Knowledge base status filter","enum":["draft","active","archived"],"type":"string","x-struct":null,"x-validate":null}},"title":"SearchKnowledgeBasesParams","type":"object","x-struct":null,"x-validate":null},"AgentTestValidationError":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null},"ShowWorkflowResponse":{"description":"Response schema for a single workflow, including draft/current version steps when present.","example":{"data":{"current_version":null,"current_version_id":null,"description":"Routes inbound leads to recruiters","draft_version":{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","steps":[]},"draft_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","id":"99b01875-dc57-45cd-a045-aefdcabf96aa","inserted_at":"2026-07-28T14:10:00Z","name":"Process inbound lead","state":"draft","updated_at":"2026-07-28T14:10:00Z"}},"properties":{"data":{"description":"Workflow with nested draft_version and/or current_version","type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowWorkflowResponse","type":"object","x-struct":null,"x-validate":null},"ConversationIndexUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Conversation PUT requests.\n","example":{"errors":[{"description":"Invalid Channel ID: \"invalid-id\""}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Conversation 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid Channel ID: \"invalid-id\"","Invalid Contact ID: \"invalid-id\"","Invalid Last Message Date before time: \"invalid-time\"","Invalid Last Message Date after time: \"invalid-time\"","Invalid Created At before time: \"invalid-time\"","Invalid Created At after time: \"invalid-time\"","Invalid Updated At before time: \"invalid-time\"","Invalid Updated At after time: \"invalid-time\""],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ConversationIndexUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Conversations.Conversation.Errors.IndexUnprocessableContent","x-validate":null},"LLMNotFoundErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the LLM record doesn't exist","example":{"errors":[{"description":"LLM not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"LLM 404 error","items":{"additionalProperties":false,"description":"Single 404 error","properties":{"description":{"enum":["LLM not found"],"example":"LLM not found","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"LLMNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"MetricEventNotFoundErrorResponse":{"description":"Response that occurs when the event isn't one a metric can use: a `non_custom` report outside `GET /v1/metrics/events`, or a `whippy_event` name that isn't `resource.type`","example":{"errors":[{"description":"Event not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Event 404 error","items":{"description":"Single 404 error","properties":{"description":{"enum":["Event not found"],"example":"Event not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"MetricEventNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"UpdateLink":{"example":{"data":{"created_at":"2026-11-03T19:00:00Z","custom_card_description":"Earn competitive compensation. Click for details.","custom_card_image":{"content_type":"image/jpeg","url":"https://cdn.example.com/cards/hiring.jpg"},"custom_card_title":"Join the team","description":"Forklift hiring landing page","domain":null,"id":"dd840673-d544-44b9-99f1-f6438471d2f3","short_key":"whippy-it","short_url":"https://m.whippy.co/whippy-it","status":"active","updated_at":"2026-11-03T19:00:00Z","url":"https://whippy.ai/products/campaigns","use_custom_card":true,"utm_campaign":"hire_forklift_drivers","utm_content":"join_our_team","utm_medium":"sms","utm_source":"whippy","utm_term":"forklift"}},"properties":{"data":{"properties":{"created_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_card_description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_card_image":{"nullable":true,"properties":{"content_type":{"type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_card_title":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"domain":{"nullable":true,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"short_key":{"type":"string","x-struct":null,"x-validate":null},"short_url":{"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null},"use_custom_card":{"type":"boolean","x-struct":null,"x-validate":null},"utm_campaign":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_medium":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_source":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_term":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateLink","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.UpdateResponse","x-validate":null},"MoveToStepAction":{"description":"Move TO Step Action params used when processing the action.","example":{"sequence_id":"104884e5-deb5-4ae8-b62b-89b10856ac62","step_id":"578b379e-c788-4e40-b780-66ce7c397856"},"properties":{"sequence_id":{"description":"Sequence ID","example":"286c75b6-bc82-4356-8fe3-5e0c45b5fbf1","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"c23f0661-6fd4-4b90-9c6f-60bc95354743","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id","step_id"],"title":"MoveToStepAction","type":"object","x-struct":null,"x-validate":null},"WorkflowAppActionInputOptionsResponse":{"description":"Dynamic dropdown / search options. Always a flat `{data: rows}` array —\ndouble-wrapped upstream invoke payloads are unwrapped by the public API.\n","example":{"data":[{"id":"C01","label":"#general"},{"id":"C02","label":"#random"}]},"properties":{"data":{"description":"Option rows from the app (shape depends on the action)","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["data"],"title":"WorkflowAppActionInputOptionsResponse","type":"object","x-struct":null,"x-validate":null},"CustomObjectRecordIndexBadRequestErrorResponse":{"description":"Custom Object Record Bad Request Error Response schema for listing Custom Object Records","example":{"errors":[{"description":"Invalid path param Custom Object ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object Record Value 400 error","items":{"properties":{"description":{"enum":["Invalid path param Custom Object ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectRecordIndexBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomData.Errors.IndexBadRequest","x-validate":null},"CampaignUnprocessableContentUpdateErrorResponse":{"description":"List of error responses for invalid Campaign POST requests.\n","example":{"errors":[{"description":"Title is over 255 characters"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Campaign update 422 errors","items":{"description":"Single 422 error","properties":{"description":{"description":"One of:\n- Title is over 255 characters\n- Title is invalid\n- Campaign could not be updated before being preprocessed\n- Scheduling time is in the past\n- Scheduling time should be in ISO 8601 format\n- Campaign must be draft, scheduled, recurring, or recurring_paused to be updated\n- A recurring series must be started or stopped in Whippy\n- Missing included audience filter\n- Missing recurring_settings cron_expression, timezone, or start_date\n- Invalid From number\n- Body is over 1000 characters\n- Campaign could not be updated\n- No more than 50 automation templates can be attached at once\n- Automation templates should be a list of automation template IDs\n- Automation templates not found: <IDs that are unknown, global, archived or belong to another organization>\n","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CampaignUnprocessableContentUpdateErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.Errors.UnprocessableContentUpdate","x-validate":null},"ShowOrganizationResponse":{"description":"Response schema for an individual organization.","example":{"data":{"ai_context":"Enterprise software company providing legal tech solutions","id":"70c5c186-107e-4122-ba5c-24ac072f5898","name":"Wayne Enterprises"}},"properties":{"data":{"description":"Data for the organization the request belongs to","properties":{"id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowOrganizationResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Organizations.Organization.ShowResponse","x-validate":null},"AgentTestAttachmentsPendingError":{"example":{"errors":[{"attachment_status":{"transcript":"pending"},"code":"attachments_pending","description":"Call attachments are not ready yet.","redaction_status":"redacted","source_trust":"production_call"}],"status":422},"properties":{"errors":{"items":{"properties":{"attachment_status":{"type":"object","x-struct":null,"x-validate":null},"code":{"example":"attachments_pending","type":"string","x-struct":null,"x-validate":null},"description":{"example":"Call attachments are not ready yet.","type":"string","x-struct":null,"x-validate":null},"redaction_status":{"example":"redacted","type":"string","x-struct":null,"x-validate":null},"source_trust":{"example":"production_call","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestAttachmentsPendingError","type":"object","x-struct":null,"x-validate":null},"ContactListsUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Contact List POST or PUT requests.\n","example":{"errors":[{"description":"Invalid Opt In To channels provided"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact List 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid Opt In To channels provided","Contact list name should be at most 35 characters","Contact list with this name already exists","Contact list state is invalid","All Contacts numbers are invalid","The length of the Contacts field should not be more than 4000","The length of the Opt In To field should not be more than 1000","Contact list converted is invalid"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactListsUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.Errors.UnprocessableContent","x-validate":null},"PublishFormParams":{"description":"Optional labels for the published version.","properties":{"notes":{"example":"Added CDL disqualification branch","maxLength":2000,"type":"string","x-struct":null,"x-validate":null},"title":{"example":"Launch questionnaire","maxLength":80,"type":"string","x-struct":null,"x-validate":null}},"title":"PublishFormParams","type":"object","x-struct":null,"x-validate":null},"CreateConversationNoteResponse":{"description":"Response schema for creating Notes.","example":{"data":{"contact_id":"12aa09b8-5b8f-4b43-82ee-0053538faef3","conversation_id":"4196b85a-84ef-498d-ad8f-e2dad51b88fc","id":"4a454dd5-c2f2-4457-a94b-4e7a6a3c5289","source_type":"NOTE"}},"properties":{"data":{"description":"Response for a newly created note.","properties":{"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"source_type":{"description":"Type of message","example":"NOTE","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateConversationNoteResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Note.ShowResponse","x-validate":null},"RemoveFromSequenceAction":{"description":"Remove From Sequence Action params used when processing the action.","example":{"sequence_id":"f29e9f11-48b8-4abe-94c3-2d3736a9816d"},"properties":{"sequence_id":{"description":"ID of the Sequence to remove the contact from","example":"4dd7c3be-ae4c-4edb-8ebe-7fbfbddabd56","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"RemoveFromSequenceAction","type":"object","x-struct":null,"x-validate":null},"LinkTracking":{"additionalProperties":false,"description":"Link tracking settings:\n  * `disabled`: Should link tracking be disabled for the location?\n  * `default_domain_id`: Default domain that will be used for the location (default: nil).\n\nThe `disabled` setting only applies when link tracking is enabled for the organization.\n\nThe `default_domain_id` setting applies for 1-1 messages, and campaign/sequence messages\nin case the domain is not set for the campaign or sequence.\n","example":{"default_domain_id":null,"disabled":false},"properties":{"default_domain_id":{"description":"Default domain ID used for the location when not set explicitly.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"disabled":{"default":false,"description":"Disable link tracking at the location level.","type":"boolean","x-struct":null,"x-validate":null}},"title":"LinkTracking","type":"object","x-struct":null,"x-validate":null},"CreateContactParams":{"description":"Request schema for creating a contact in an organization.","example":{"email":"john.doe@gmail.com","name":"John","opt_in_to":[{"id":"2be1f3fd-210d-4cec-b175-c6d21e2f4d69"},{"id":"e54e8655-4d78-412c-a634-e7eb69ab65c6","phone":"+15155552672"},{"phone":"+15165552681"},{"address":{"address_line_one":null,"address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"name":"Arleen","phone":"818-981-0606"},{"birth_date":{"day":1,"month":1,"year":1980}},{"external_id":"4321","name":"Shamsi Asheriyan","phone":"818-708-3971"}],"opt_in_to_all_channels":false,"phone":"+14155552671"},"properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"required":["phone"],"title":"CreateContactParams","type":"object","x-struct":null,"x-validate":null},"CreateContactsParams":{"description":"Request schema for adding contacts to a sequence.\n\nProvide `to` or `included_audience`, not both. `to` creates a contact when none matches.\n`included_audience` enrolls contacts that already exist and does not create contacts.\n`custom_data` and `voice_options` apply only when `to` is sent.\n","example":{"from":"+14155552672","schedule_at":"2026-11-26T16:38:00.550303Z","step_id":"d9df4182-0907-4fd4-a8ae-06c1333c6156","to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}],"voice_options":{"default_call_flow_id":"7871d173-532b-4db9-8213-f57722980576","step_overrides":null}},"properties":{"custom_data":{"description":"Optional field used to indicate that the contacts from the `to` list should be associated with a custom object. In combination with the `custom_data` field, there should be a `properties` field for each item in the `to` list, that contains the actual custom data to be associated with the contacts.","example":{"custom_object_id":"135d32a6-a703-4b4b-af9b-9e603aff6233","resource":"contact"},"properties":{"custom_object_id":{"description":"The ID of the custom object that the custom data belongs to.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource type that the custom data will be associated with. Must be one of: contact, step_contact","enum":["contact","step_contact"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"from":{"description":"Phone number or email address of an existing channel in your organization. Must match the step's channel type (for example, a fax channel number for a fax step).","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"The existing contacts to enroll. Each item uses the same fields as an item in the `filter`\narray of `POST /v1/contacts/filter`. An empty list is rejected.\n\nThis selects contacts already in the organization. It does not create contacts.\n","example":[{"column":"id","comparison":"==","resource":"list","value":"adbbeac2-ac46-4517-af7b-a3b6165ad5c6"}],"items":{"properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"clicked_link","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"on":{"description":"  List of on items that should be used to join parent resource with child resource.\n  The logic is as follows (parent_resource JOIN child_resource ON parent_resource.parent_column = child_resource.child_column).\n","items":{"properties":{"child":{"description":"The child resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"employee","type":"string","x-struct":null,"x-validate":null},"child_column":{"description":"The column on the child resource on which the comparison should be executed","example":"id","type":"string","x-struct":null,"x-validate":null},"parent":{"description":"The parent resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"assignment","type":"string","x-struct":null,"x-validate":null},"parent_column":{"description":"The column on the parent resource on which the comparison should be executed","example":"employee_id","type":"string","x-struct":null,"x-validate":null}},"required":["parent","child","parent_column","child_column"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"campaign_contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"title":"SequenceIncludedAudience","type":"array","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the sequence contacts activation. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"ID of an existing step of the sequence.\n\nDefaults to the first step of the sequence.\n","type":"string","x-struct":null,"x-validate":null},"to":{"description":"List of contacts that would be added to the sequence. Creates contacts that do not already exist.","items":{"description":"Data for a contact that would be added to the sequence.","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"required":["phone"],"type":"object","x-struct":null,"x-validate":null},"maxItems":4000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"voice_options":{"description":"Optional field used to indicate the default call flow id to use for answering inbound calls from the contacts that are a response to a sequence message","example":{"default_call_flow_id":"aea3aa94-6989-405d-813b-6420f4f70182","step_overrides":null},"properties":{"default_call_flow_id":{"description":"Optional default call flow id of the contacts in the steps.\n\n**Can be `nil`.**\n\n- **Used to answer inbound calls from the contact that are a response to a sequence message.**\n- **When provided, it takes priority over the sequence settings default call flow ID.**\n","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_overrides":{"description":"Optional field used to describe step-specific voice options overrides for contacts in sequence steps.\n\n**Can be either a map, a list or `nil`.**\n\n- **When it's a map it will override all voice step settings in case the optional `step_id` is not provided.**\n- **When it's a list it will override the voice step settings for the specified `step_id`, which is required.**\n","properties":{"agent_id":{"description":"ID of the agent to use for the voice step.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Optional custom placeholders data sent to the agent used for the voice step.","type":"object","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the step to apply overrides to.\n\n**Optional when step overrides is a map, required when it's a list.**\n","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateContactsParams","type":"object","x-struct":null,"x-validate":null},"CreateTagsParams":{"description":"Create Tag Params","example":{"color":"ff0000","name":"first-tag","type":"standard"},"properties":{"color":{"description":"Hex color code for the tag","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name. It is important to notice that any extra spaces are removed from it, e.g. \" Tag   name  \" -> \"Tag name\".","type":"string","x-struct":null,"x-validate":null},"type":{"default":"standard","description":"Tag type. Defaults to \"standard\" (contact tags). Use segment / sequence / form / workflow for those resources. List/upload types are not creatable here.","enum":["standard","segment","sequence","form","workflow"],"type":"string","x-struct":null,"x-validate":null}},"title":"CreateTagsParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.CreateParams","x-validate":null},"DashboardDefinitionResponse":{"description":"Response schema for a written dashboard: its definition, without generated data.","example":{"data":{"created_at":"2026-01-15T07:45:45.353788Z","default_filters":[],"default_timeframe":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"description":"Inbound and outbound conversation volume over time","id":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","metrics":[{"metric_id":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","size":"medium"}],"source":"organization","title":"Conversations Overview","updated_at":"2026-02-10T07:45:45.353788Z"}},"properties":{"data":{"description":"Dashboard summary record","properties":{"created_at":{"description":"Date the dashboard was created at in ISO 8601 format. `null` for Whippy built-in dashboards.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"default_filters":{"description":"Filters the dashboard applies to every chart, on top of each metric's own filters, when Show Dashboard is called without `filters`. Always empty for Whippy built-in dashboards. At most one filter per column. `agent_id`, `agent_version_id` and `channel_id` take `in` and a list of IDs of the organization's agents, agent versions or channels. `source_type` (a call's direction) takes `in` and `INBOUND` and/or `OUTBOUND`, and `call_completion_rating` takes `in` and `Complete` and/or `Incomplete`. `duration` takes `>=` or `<=` and a whole number of seconds: calls lasting at least or at most that long, with each call's duration rounded up to the second. A chart whose events don't carry a filter's column (a message chart under a duration filter, say) is left unfiltered by it, and its result lists the column in `dashboard_filters_not_applied`.","example":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_timeframe":{"additionalProperties":false,"description":"The relative interval the dashboard runs over when a request gives no `start`/`end` (e.g. the last 4 weeks). `null` when the dashboard has none: it then runs over the trailing four weeks.","example":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"nullable":true,"properties":{"interval_length":{"description":"Number of interval units.","type":"integer","x-struct":null,"x-validate":null},"interval_type":{"description":"Interval unit, e.g. `day`, `week`, `month`.","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the interval is evaluated in.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Dashboard description.","example":"Inbound and outbound conversation volume over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Dashboard ID","example":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","format":"uuid","type":"string","x-struct":null,"x-validate":null},"metrics":{"description":"The dashboard's layout: the metrics it shows, in order.","items":{"additionalProperties":false,"properties":{"metric_id":{"description":"ID of the metric (see `/v1/metrics`).","format":"uuid","type":"string","x-struct":null,"x-validate":null},"size":{"description":"Display size of the chart. On a Whippy built-in dashboard, the size the app shows it at, or `null` for a built-in dashboard the app doesn't render from this layout.","enum":["small","medium","large"],"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"description":"Dashboard origin. `whippy` for built-in dashboards (stable reserved IDs, not persisted), `organization` for dashboards saved in the organization.","enum":["whippy","organization"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"tags":{"description":"Tags on the dashboard. Always empty for Whippy built-in dashboards.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Dashboard title","example":"Conversations Overview","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the dashboard was last updated at in ISO 8601 format. `null` for Whippy built-in dashboards.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"DashboardDefinitionResponse","type":"object","x-struct":null,"x-validate":null},"StartAgentChatParams":{"description":"Request schema for starting a chat agent session.","example":{"from":"(415) 802-0402","send_initial_message":false,"to":"(323) 745-2021","type":"phone"},"properties":{"from":{"description":"Channel identifier (phone number or email) to be used for the chat session.\n\n**Channel must:**\n  * Be enabled.\n  * Be of type phone, whatsapp, or email.\n","example":"(415) 802-0402","type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the agent chat session.\n\n**When informed, must:**\n  * Be in the ISO 8601 format, e.g. \"2026-04-25T10:00:00Z\".\n  * Be a valid time strictly in the future.\n\nAttention, even when scheduled, the API responds with `202 Accepted` instead of `201 Created`.\n","example":"2026-04-25T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether the agent should send an initial message to the contact after starting the chat session.\n\nWhen set to `true`, the agent will automatically send the first message without waiting for the contact to message first.\nWhen set to `false` or not provided, only the chat session will be created and the agent will only send a message after the contact messages first.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"to":{"description":"Contact phone number or email address","example":"(323) 745-2021","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of chat communication","enum":["phone","whatsapp","email"],"example":"phone","type":"string","x-struct":null,"x-validate":null}},"required":["to","from","type"],"title":"StartAgentChatParams","type":"object","x-struct":null,"x-validate":null},"DuplicateFormsResponse":{"description":"Copied forms.","properties":{"data":{"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"title":"DuplicateFormsResponse","type":"object","x-struct":null,"x-validate":null},"KnowledgeBaseNotFoundErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the knowledge base record doesn't exist.","example":{"errors":[{"description":"Knowledge Base not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Knowledge base 404 error","items":{"additionalProperties":false,"description":"Single 404 error","properties":{"description":{"description":"Human-readable explanation that the knowledge base doesn't exist.","enum":["Knowledge Base not found"],"example":"Knowledge Base not found","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"KnowledgeBaseNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"ShowContactResponse":{"description":"Response schema for an individual contact.","example":{"data":{"address":{"address_line_one":"1234 Main St","address_line_two":"Apt 101","city":"Anytown","country":"US","postal_code":"12345","state":"NY"},"birth_date":{"day":1,"month":1,"year":1990},"blocked":false,"communication_preferences":[{"channel_id":"39414a7d-5ce0-4584-8154-d35ddd371238","created_at":"2021-06-22T10:36:07Z","id":"da4172f1-d162-426a-9015-247152d5b7f3","last_campaign_date":"2022-11-03T19:39:23Z","opt_in":true,"opt_in_date":"2022-10-01T19:39:23Z","opt_out_date":"2022-12-08T19:39:23Z","updated_at":"2021-06-22T10:36:07Z"}],"contact_tags":[{"contact_id":"70c5c186-107e-4122-ba5c-24ac072f5898","created_at":"2022-10-01T19:39:23Z","id":"9dddbae1-d676-4ba3-a614-6fe5dbca4bae","tag":{"color":"#00bcd4","created_at":"2022-10-01T19:39:23Z","created_by":{"email":"user.email@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"id":"b41d3a52-b3dd-4aba-9983-5c3fde6774cc","name":"lead","organization_id":"d0b556be-d3bc-4621-a56d-a2f62f2302c4","state":"active","type":"standard","updated_at":"2022-10-01T19:39:23Z","updated_by":{"email":"user.email@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}},"tag_id":"b41d3a52-b3dd-4aba-9983-5c3fde6774cc","updated_at":"2022-10-01T19:39:23Z"}],"conversations":[{"assigned_team_id":"0003c6fe-e469-4e59-8a73-be8ce58f6d53","assigned_user_id":1,"channel_id":"d93eb36c-56d2-40dd-bb9e-bf46092a2b94","channel_type":"phone","contact_id":"70c5c186-107e-4122-ba5c-24ac072f5898","contact_language":"es","created_at":"2021-06-22T07:45:45","id":"70c5c186-107e-4122-ba5c-24ac072f5898","language":"en","last_message_date":"2021-06-22T07:45:45","status":"open","unread_count":3,"updated_at":"2021-06-22T07:45:45"},{"assigned_team_id":"0003c6fe-e469-4e59-8a73-be8ce58f6d53","assigned_user_id":1,"channel_id":"936a1381-6c8e-4605-a446-06f6177eaa9c","channel_type":"phone","contact_id":"70c5c186-107e-4122-ba5c-24ac072f5898","contact_language":"es","created_at":"2021-06-22T07:45:45","id":"70c5c186-107e-4122-ba5c-24ac072f5898","language":"en","last_message_date":"2021-06-22T07:45:45","status":"open","unread_count":3,"updated_at":"2021-06-22T07:45:45"}],"created_at":"2021-06-22T07:45:45","email":"johndoe@example.com","external_id":"fca6902b-4747-4908-9ebe-f8166ca0d640","id":"70c5c186-107e-4122-ba5c-24ac072f5898","language":"es","name":"John Doe","notes":[{"body":"Sample note.","created_at":"2022-10-01T19:39:23Z","id":"a78fdbe1-cf29-47f1-848a-f8e70795ef7e","updated_at":"2022-10-01T19:39:23Z","user":{"email":"user.email@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}}],"opt_in_email":true,"opt_in_sms":true,"opt_out_of_all":false,"phone":"+14155552671","state":"open","updated_at":"2021-06-22T07:45:45"}},"properties":{"data":{"description":"Data for a single contact.","properties":{"address":{"description":"Address of the contact","properties":{"address_line_one":{"description":"Address line 1","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"Address line 2","type":"string","x-struct":null,"x-validate":null},"city":{"description":"City","type":"string","x-struct":null,"x-validate":null},"country":{"description":"Country","type":"string","x-struct":null,"x-validate":null},"postal_code":{"description":"Postal code","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Date of birth of the contact","properties":{"day":{"description":"Day of birth","type":"integer","x-struct":null,"x-validate":null},"month":{"description":"Month of birth","type":"integer","x-struct":null,"x-validate":null},"year":{"description":"Year of birth","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"blocked":{"description":"Contact blocked status","type":"boolean","x-struct":null,"x-validate":null},"communication_preferences":{"description":"List of communication preferences for the contact for different channels.","items":{"description":"Communication preference for the contact for a specific channel","properties":{"channel_id":{"description":"ID of the channel the preference refers to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the preference belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the communication preference","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Communication preference ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_campaign_date":{"description":"Date of the last campaign the contact received from this channel. In ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_in":{"description":"Opted in/out state of the contact for the channel","type":"boolean","x-struct":null,"x-validate":null},"opt_in_date":{"description":"Date the contact last opted in","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_out_date":{"description":"Date the contact last opted out","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the preference","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"contact_tags":{"description":"List of contact tags. They determine which tags the contact is tagged with. Each contact lists creates a new tag and tags contacts with it automatically, but they can have more tags eventually.","items":{"description":"Single contact tag for the contact","properties":{"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of tagging the contact and creation of the contact tag association","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the contact tag association","format":"uuid","type":"string","x-struct":null,"x-validate":null},"tag":{"description":"Data for the tag for this current contact association.","properties":{"color":{"description":"Tag color in RGB format","type":"string","x-struct":null,"x-validate":null},"converted":{"description":"Boolean value indicating the system tag was converted to a user tag","enum":[true,false],"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the tag","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"ID of the tag","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization the tag belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the tag","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"system_created":{"description":"Boolean value indicating the tag was created by the system or not","enum":[true,false],"example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Type of the tag","enum":["standard","upload"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that last updated the tag","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"tag_id":{"description":"Tag ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time the contact tag association was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"conversations":{"description":"Conversations of the contact","items":{"description":"Single contact conversation","properties":{"assigned_team_id":{"description":"ID of the team assigned to the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"assigned_user_id":{"description":"ID of the user assigned to the conversation","type":"integer","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the conversation belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_type":{"description":"Type of channel for the conversation","enum":["phone","email"],"type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact in the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the conversation is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_message_date":{"description":"Date of the last message belonging to the conversation","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Status of the conversation","enum":["open","closed","automated","spam"],"type":"string","x-struct":null,"x-validate":null},"unread_count":{"description":"Number of unread messages in the conversation","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the conversation was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","format":"email","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"Custom unique identifier for the contact","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"Preferred language of the contact as a language code (e.g. `en`, `es`). Defaults to `en`.","enum":["aa","ab","ace","ach","af","sq","alz","am","ar","hy","as","awa","ay","az","ban","bm","ba","eu","btx","bts","bbc","be","bem","bn","bew","bho","bik","bs","br","bg","bua","yue","ca","ceb","ny","zh-CN","zh","zh-TW","cv","co","crh","hr","cs","da","din","dv","doi","dov","nl","dz","en","eo","et","ee","fj","fil","tl","fi","fr","fr-FR","fr-CA","fy","ff","gaa","gl","lg","ka","de","el","gn","gu","ht","cnh","ha","haw","iw","he","hil","hi","hmn","hu","hrx","is","ig","ilo","id","ga","it","ja","jw","jv","kn","pam","kk","km","cgg","rw","ktu","gom","ko","kri","ku","ckb","ky","lo","ltg","la","lv","lij","li","ln","lt","lmo","luo","lb","mk","mai","mak","mg","ms","ms-Arab","ml","mt","mi","mr","chm","mni-Mtei","min","lus","mn","my","nr","new","ne","nso","no","nus","oc","or","om","pag","pap","ps","fa","pl","pt","pt-PT","pt-BR","pa","pa-Arab","qu","rom","ro","rn","ru","sm","sg","sa","gd","sr","st","crs","shn","sn","scn","szl","sd","si","sk","sl","so","es","su","sw","ss","sv","tg","ta","tt","te","tet","th","ti","ts","tn","tr","tk","ak","uk","ur","ug","uz","vi","cy","xh","yi","yo","yua","zu"],"example":"en","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Full name of the contact","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"List of notes for the contact.","items":{"description":"Single note for the contact","properties":{"body":{"description":"Text of the note","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the note in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the note","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user":{"description":"Data for the user that created the note","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the contact","enum":["open","archived","blocked"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowContactResponse","type":"object","x-struct":null,"x-validate":null},"UpdateDashboardRequest":{"description":"Fields to change. Omitted fields keep their stored values; `metrics` replaces the whole layout when sent.","example":{"default_filters":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"default_timeframe":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"description":"Inbound calls by channel and AI call outcomes","metrics":[{"metric_id":"5b1d6f0e-2c7a-4c55-9e3f-7a9f1c2d4b6e","size":"large"},{"metric_id":"8e4c2a19-7f3b-4d6e-a1c5-0b9d8e7f6a52","size":"medium"}],"tags":["c3a9e1f4-6b2d-4e8a-9f7c-1d5b3a2e4c6f","f7d2b8a1-3e5c-4a9b-8d6f-2c1e9b7a5d3e"],"title":"Calls overview"},"properties":{"default_filters":{"description":"Filters the dashboard applies to every chart when Show Dashboard is called without `filters`. Replaces the saved filters when sent; `[]` clears them. At most one filter per column. `agent_id`, `agent_version_id` and `channel_id` take `in` and a list of IDs of the organization's agents, agent versions or channels. `source_type` (a call's direction) takes `in` and `INBOUND` and/or `OUTBOUND`, and `call_completion_rating` takes `in` and `Complete` and/or `Incomplete`. `duration` takes `>=` or `<=` and a whole number of seconds: calls lasting at least or at most that long, with each call's duration rounded up to the second. A chart whose events don't carry a filter's column (a message chart under a duration filter, say) is left unfiltered by it, and its result lists the column in `dashboard_filters_not_applied`.","items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_timeframe":{"description":"The relative interval the dashboard runs over when a request gives no `start`/`end`. `null` clears it, and the dashboard then runs over the trailing four weeks. On update, the fields sent change and the others keep their stored values; a dashboard without a stored timeframe needs both `interval_type` and `interval_length`.","nullable":true,"properties":{"interval_length":{"description":"Number of interval units.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"interval_type":{"description":"Interval unit.","enum":["hour","day","week","month","year"],"type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the interval is evaluated in. Defaults to `America/Chicago`.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Dashboard description. `null` clears it.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metrics":{"description":"The dashboard's layout: the metrics it shows, in order. Each is a metric saved in the organization, or a built-in metric of type `custom` (`source: whippy` and `type: custom` in List Metrics). The same metric can appear more than once, at different sizes.","items":{"properties":{"metric_id":{"description":"ID of the metric (see `/v1/metrics`).","format":"uuid","type":"string","x-struct":null,"x-validate":null},"size":{"description":"Display size of the chart.","enum":["small","medium","large"],"type":"string","x-struct":null,"x-validate":null}},"required":["metric_id","size"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"tags":{"description":"IDs of the organization's `report` tags. Replaces the dashboard's tags when sent; `[]` clears them. The `{id, name}` objects reads return are accepted too.","items":{"oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"additionalProperties":true,"description":"A tag as reads return it: `{id, name}`.","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Dashboard title","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateDashboardRequest","type":"object","x-struct":null,"x-validate":null},"FormResponse":{"description":"Response schema for retrieving a form.","example":{"data":{"form":{"id":"2caf5f93-b78a-48f0-86d8-424fc61fc116","name":"Customer Feedback Form"},"form_version":{"endings":[{"description":"Thanks for the feedback.","id":"ending-thanks","title":"Nice work!"}],"form_elements":[{"id":"first_name","label":"First Name","placeholder":"Enter your first name","required":true,"type":"text"},{"id":"feedback","label":"Your Feedback","placeholder":"Please share your thoughts...","required":true,"type":"text-area"},{"id":"rating","label":"Rating","options":[{"label":"Excellent","value":"5"},{"label":"Good","value":"4"},{"label":"Average","value":"3"},{"label":"Poor","value":"2"},{"label":"Very Poor","value":"1"}],"required":true,"type":"select"}],"form_id":"2caf5f93-b78a-48f0-86d8-424fc61fc116","id":"b3a8cf68-242b-4594-8a2c-7ca4b94a639d","logic":[{"actions":[{"ending_id":"ending-thanks","type":"end_form"}],"conditions":{"clauses":[{"field":"rating","operator":"equals","value":"5"}],"combinator":"and"},"id":"rule-1","trigger_element_id":"rating"}],"settings":{"submit_button_text":"Submit Feedback","subtitle":"Please share your thoughts with us","success_message":"Thank you for your feedback!","theme":{"background_color":"#ffffff","primary_color":"#4299e1"},"title":"Customer Feedback"},"variables":[{"default":"web","key":"utm_source","source":"param"}],"version_number":1}}},"properties":{"data":{"properties":{"form":{"properties":{"id":{"description":"Form ID","example":"2caf5f93-b78a-48f0-86d8-424fc61fc116","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Form name","example":"Customer Feedback Form","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"form_version":{"properties":{"endings":{"description":"Alternate ending screens referenced by end_form actions.","items":{"description":"Alternate ending screen (builder Endings panel), referenced by `end_form` actions via `ending_id`.\nDistinct from settings.thank_you_* (the default thank-you when ending_id is null/omitted).\ntitle / description / redirect_url support {{…}} piping. redirect_url must be absolute http(s).\nredirect_delay_ms (0–30000) holds the copy on screen before navigating — omit/0 redirects immediately.\n","example":{"description":"Thanks for taking the quiz.","id":"ending-pass","redirect_delay_ms":2000,"redirect_url":"https://example.com/thanks","title":"Nice work!"},"properties":{"description":{"description":"Ending body copy (builder Description). Supports {{…}} piping.","example":"You finished the quiz.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Stable ending id referenced by logic actions end_form.ending_id.","example":"ending-pass","type":"string","x-struct":null,"x-validate":null},"redirect_delay_ms":{"description":"Milliseconds to show title/description before following redirect_url (builder delay).","example":2000,"maximum":30000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"redirect_url":{"description":"Optional absolute http(s) URL to open after this ending (builder Redirect). Query string may use {{…}} piping.","example":"https://example.com/next","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Ending headline (builder Title). Supports {{…}} piping.","example":"Nice work!","type":"string","x-struct":null,"x-validate":null}},"required":["id"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"form_elements":{"description":"Form elements configuration","items":{"properties":{"default_value":{"description":"Default field value","nullable":true,"oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"id":{"description":"Element ID","example":"first_name","type":"string","x-struct":null,"x-validate":null},"label":{"description":"Element label","example":"First Name","type":"string","x-struct":null,"x-validate":null},"options":{"description":"Options for select-type fields","items":{"properties":{"label":{"example":"Option 1","type":"string","x-struct":null,"x-validate":null},"value":{"example":"option_1","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"placeholder":{"description":"Field placeholder text","example":"Enter your first name","nullable":true,"type":"string","x-struct":null,"x-validate":null},"required":{"description":"Whether the field is required","example":true,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Element type (text, select, checkbox, etc.)","example":"text","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"form_id":{"description":"Form ID","example":"2caf5f93-b78a-48f0-86d8-424fc61fc116","format":"uuid","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Form version ID","example":"b3a8cf68-242b-4594-8a2c-7ca4b94a639d","format":"uuid","type":"string","x-struct":null,"x-validate":null},"logic":{"description":"Conditional logic rules. Combinators: and, or. Actions: jump_to, show, hide, set_variable, end_form.","items":{"description":"Evaluated when the walk reaches `trigger_element_id`. Multiple rules may share a trigger;\nonly the first matching rule in array order fires. Do not use `element_id` — use `trigger_element_id`.\nSee GET /v1/forms/field-types `logic_rule_shape`.\n","example":{"actions":[{"target":"fetch-animation","type":"jump_to"}],"conditions":{"clauses":[{"field":"interest","operator":"equals","value":"Animation"}],"combinator":"and"},"id":"rule-1","trigger_element_id":"interest"},"properties":{"actions":{"items":{"description":"Use `type` (not `action_type`). Required fields by type:\n- jump_to / show / hide → `target` (element id)\n- end_form → `ending_id` (ending id, or null/omit for default thank-you)\n- set_variable → `variable` + `value` (number|string); optional `op` set|add|subtract\n","example":{"ending_id":"ending-pass","type":"end_form"},"properties":{"ending_id":{"description":"Ending id for end_form. Null/omit = default thank-you.","example":"ending-pass","nullable":true,"type":"string","x-struct":null,"x-validate":null},"op":{"enum":["set","add","subtract"],"example":"set","type":"string","x-struct":null,"x-validate":null},"target":{"description":"Element id for jump_to / show / hide","example":"q-followup","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["jump_to","show","hide","set_variable","end_form"],"example":"end_form","type":"string","x-struct":null,"x-validate":null},"value":{"description":"set_variable value (number or string).","example":1,"x-struct":null,"x-validate":null},"variable":{"description":"Name written to {{vars.*}}","example":"score_bonus","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"conditions":{"description":"Must be a map (not a list). clauses is a non-empty list.","example":{"clauses":[{"field":"q-capital","operator":"equals","value":"Paris"}],"combinator":"and"},"properties":{"clauses":{"items":{"description":"`field` is an element id (usually the trigger or an earlier answer). `value` is required except for unary operators always / is_answered / is_not_answered. `is_one_of` requires a list value.","example":{"field":"q-capital","operator":"equals","value":"Paris"},"properties":{"field":{"example":"q-capital","type":"string","x-struct":null,"x-validate":null},"operator":{"enum":["always","equals","not_equals","contains","not_contains","greater_than","less_than","is_answered","is_not_answered","is_one_of"],"example":"equals","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Comparison value. String/number/boolean, or a list for is_one_of.","example":"Paris","x-struct":null,"x-validate":null}},"required":["field","operator"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"combinator":{"enum":["and","or"],"example":"and","type":"string","x-struct":null,"x-validate":null}},"required":["combinator","clauses"],"type":"object","x-struct":null,"x-validate":null},"id":{"example":"rule-pass","type":"string","x-struct":null,"x-validate":null},"trigger_element_id":{"example":"q-capital","type":"string","x-struct":null,"x-validate":null}},"required":["id","trigger_element_id","conditions","actions"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"settings":{"description":"Form settings","properties":{"submit_button_text":{"description":"Text for the submit button","example":"Submit Feedback","type":"string","x-struct":null,"x-validate":null},"subtitle":{"description":"Form subtitle","example":"Please share your thoughts with us","nullable":true,"type":"string","x-struct":null,"x-validate":null},"success_message":{"description":"Message shown after successful submission","example":"Thank you for your feedback!","type":"string","x-struct":null,"x-validate":null},"theme":{"description":"Form theme settings","nullable":true,"properties":{"background_color":{"example":"#ffffff","type":"string","x-struct":null,"x-validate":null},"primary_color":{"example":"#4299e1","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Form title","example":"Customer Feedback","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"variables":{"description":"Declared {{params.*}} / {{vars.*}} keys for piping.","items":{"description":"Declared URL param or calculated key for {{params.*}} / {{vars.*}}. Answer/step tokens come from elements — list via GET /v1/variables?form_id= after authoring.","example":{"default":"web","key":"utm_source","source":"param"},"properties":{"default":{"description":"Optional string, number, or null default.","example":"web","nullable":true,"x-struct":null,"x-validate":null},"key":{"example":"utm_source","type":"string","x-struct":null,"x-validate":null},"source":{"enum":["param","calculated"],"example":"param","type":"string","x-struct":null,"x-validate":null}},"required":["key","source"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"version_number":{"description":"Form version number","example":1,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"FormResponse","type":"object","x-struct":null,"x-validate":null},"SendCampaignParams":{"description":"Request schema for creating an SMS campaign at `POST /v1/campaigns/sms`.\n\nOne of `body` or `attachments` is required.\n\nOmit `status` with a `to` list to create contacts as needed and send. `schedule_at` delays that\nsend. Pass `status: \"draft\"` without `to` to save a draft. Pass `status: \"scheduled\"` with\n`schedule_at` and `included_audience` to send once later. Pass `status: \"recurring\"` without `to`\nto start a recurring series.\n\nEmail, WhatsApp, and fax campaigns use `POST /v1/campaigns/email`, `POST /v1/campaigns/whatsapp`,\nand `POST /v1/campaigns/fax`.\n","example":{"attachments":["https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"],"automation_template_ids":["1193b013-6ebc-422d-8ae5-c25bc039cc9f","86c8b18a-763d-4e97-83dc-34982036f5a9"],"body":"Greetings, earthlings!","exclude":{"contacts_with_open_conversations":true,"time_since_last_campaign":30},"from":"+14155552672","schedule_at":"2026-11-26T16:38:00.421083Z","title":"Space Campaign","to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}]},"properties":{"attachments":{"description":"List of attachment URLs for the campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of IDs of automation templates. At most 50.\nTemplates of type `\"duplicate\"` will have their triggers, actions, and keywords duplicated for the campaign.\nTemplates of type `\"as-is\"` would be associated with the campaign and their triggers, actions, and keywords will be reused.\n","items":{"description":"Automation Template ID","example":"cfba2fea-8aa0-4df4-96b2-4d5c3ec83549","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Limited to 1000 characters.","type":"string","x-struct":null,"x-validate":null},"custom_data":{"description":"Optional field used to indicate that the contacts from the campaign should be associated with a custom object. In combination with the `custom_data` field, there should be a `properties` field that contains the actual custom data to be associated with the contacts. Ignored for drafts.","example":{"custom_object_id":"857c16ea-60b9-4318-addf-03fa7dfd9235","resource":"contact"},"properties":{"custom_object_id":{"description":"The ID of the custom object that the custom data belongs to.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource type that the custom data will be associated with. Must be one of: contact, campaign_contact","enum":["contact","campaign_contact"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"exclude":{"description":"Optional settings to exclude contacts from a send. Ignored for drafts.","properties":{"contacts_with_open_conversations":{"description":"Exclude contacts who have open conversations at the time the campaign is processed","type":"boolean","x-struct":null,"x-validate":null},"time_since_last_campaign":{"description":"Exclude contacts who have last received a campaign in the specified number of days in the past from the time the current campaign is processed","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Each item is a column comparison or a\n`logical_group`. A logical group sets `resource` to `logical_group` and includes `and` or `or`\ninstead of `column`, `comparison`, and `value`. Nested arrays must contain at least one item.\nOptional. When omitted on a draft, scheduled, or recurring campaign, the default campaign\nexclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignExcludedAudience","type":"array","x-struct":null,"x-validate":null},"from":{"description":"Phone number of the phone channel the SMS campaign sends from.","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Each item is a column comparison or a\n`logical_group`. A logical group sets `resource` to `logical_group` and includes `and` or `or`\ninstead of `column`, `comparison`, and `value`. Nested arrays must contain at least one item.\nOptional for a draft. Required when `status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["af5f0974-52c0-47e0-950e-f8c004deabd3"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignIncludedAudience","type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time in ISO 8601 format. Delays a `to` list send. Required when `status` is\n`scheduled`. Not accepted on a draft or a recurring series.\n","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Pass `draft` to save a draft. Pass `scheduled` with `schedule_at` and `included_audience`\nto send once. Pass `recurring` to start a series. Omit this field to send a `to` list.\n","enum":["draft","scheduled","recurring"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null},"to":{"description":"List of contacts that would receive the campaign. Required when sending. Do not pass with\n`status: \"draft\"` or `status: \"recurring\"`.\n","items":{"description":"Data for a contact that would receive the campaign.","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"required":["phone"],"type":"object","x-struct":null,"x-validate":null},"maxItems":4000,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["from","title"],"title":"SendCampaignParams","type":"object","x-struct":null,"x-validate":null},"ShowSequenceRunBadRequestErrorResponse":{"description":"Sequence Run Bad Request Error Response schema when showing a sequence run","example":{"errors":[{"description":"Invalid path param Sequence Run ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Sequences 400 error","items":{"properties":{"description":{"enum":["Invalid path param Sequence ID: null","Invalid path param Sequence Run ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"ShowSequenceRunBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.SequenceRun.Errors.ShowBadRequest","x-validate":null},"KnowledgeBaseUnprocessableContentErrorResponse":{"additionalProperties":false,"description":"List of error responses for invalid knowledge base requests.","example":{"errors":[{"description":"Name can't be blank"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Knowledge base 422 errors","items":{"additionalProperties":false,"description":"Single 422 error","properties":{"description":{"description":"Human-readable explanation of the invalid request.","example":"Name is invalid","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"KnowledgeBaseUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"ListAutomationTemplatesResponse":{"description":"Response schema for listing automation templates","example":{"data":[{"access_level":"organization","archived":false,"created_at":"2022-10-01T19:39:23Z","created_by_id":170,"id":"6da6acdb-e982-4403-8b1d-56ef5843a62e","organization_id":"33ecb4c7-c480-49b0-a0b2-1f46b464421f","title":"Ford Prefect's Automation Template","triggers":[{"actions":[{"created_at":"2023-06-22T07:13:31.878764Z","enabled":true,"id":"541f815c-a069-4a87-a365-995b4d48d51d","organization_id":"33ecb4c7-c480-49b0-a0b2-1f46b464421f","params":{"body":"You are lucky! This automated response is fast!"},"type":"send_message","updated_at":"2023-06-22T07:13:31.878764Z"},{"created_at":"2023-06-22T07:13:31.885825Z","enabled":true,"id":"a86559a5-e73e-46e5-8817-fd9d41a9bb0e","organization_id":"33ecb4c7-c480-49b0-a0b2-1f46b464421f","params":{"location_ids":["3ca6fe98-e1a4-49e3-863d-2036329e81fb"]},"type":"opt_in","updated_at":"2023-06-22T07:13:31.885825Z"}],"id":"0b19ce69-78a1-4aa0-a2c4-4917e8c740af","keyword":{"created_at":"2023-06-22T07:13:31.870985Z","enabled":false,"exact_match":true,"id":"9a746125-69bc-4241-991d-5c1c04ed30b0","keywords":["INTERESTED"],"negate_keywords":["NOT INTERESTED"],"organization_id":"0df613df-9ff4-4133-a045-fdefac3f0e67","updated_at":"2023-06-22T07:13:31.870985Z"},"schedule_options":{},"type":"reply_containing_keyword"}],"updated_at":"2022-10-01T19:39:23Z","updated_by_id":155,"usage":"duplicate"}],"organization_id":"33ecb4c7-c480-49b0-a0b2-1f46b464421f","total":5},"properties":{"data":{"description":"List of automation templates.","items":{"description":"Data for a specific automation template.","properties":{"access_level":{"description":"Automation Template access level","enum":["user","location","organization"],"type":"string","x-struct":null,"x-validate":null},"archived":{"description":"Automation Template archived state","type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the automation template in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Automation Template created by user ID","type":"integer","x-struct":null,"x-validate":null},"id":{"description":"Automation Template ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"274aacb6-0906-4016-8aa3-74875fe53dda","format":"uuid","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Automation Template title","example":"Ford Prefect's Title","type":"string","x-struct":null,"x-validate":null},"triggers":{"description":"List of automation template triggers","items":{"description":"Individual automation template trigger","properties":{"actions":{"description":"Actions associated with the trigger","items":{"description":"Single action","example":{"approval_required":false,"approval_required_by_id":null,"created_at":"2024-04-24T10:35:30.128623Z","enabled":true,"id":"a384dbe0-c594-4e64-bd37-7830526ffcc9","organization_id":"3df5997f-6261-4697-9ab4-606a8e894a01","params":{"body":"response for keyword"},"type":"send_message","updated_at":"2024-04-24T10:35:30.128623Z"},"properties":{"approval_required":{"default":false,"description":"Action require approval","type":"boolean","x-struct":null,"x-validate":null},"approval_required_by_id":{"description":"Action required approval by user ID","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Action enabled state","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Action ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"3ebc1234-037b-4eef-aedc-ae3c7039c4a0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"params":{"description":"Action params - they can vary depending on the action type.","oneOf":[{"description":"Send Message Action params used when processing the action.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Automated message, yay!"},"properties":{"attachment_urls":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments with content type","example":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"items":{"description":"Attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Body of a message action","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null}},"title":"SendMessageAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add Tags Action params used when processing the action.","example":{"tag_ids":["21e97a83-6e19-4b43-bad3-ad3f4f439311","548a9263-9aba-4ccd-98d3-a18608de9122"]},"properties":{"tag_ids":{"description":"List of tags to add to the contact","items":{"description":"Tag ID","example":"44a0b5b0-6f28-497d-8517-9b8ac8f65f9a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"AddTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove Tags Action params used when processing the action.","example":{"tag_ids":["edd3a266-29c7-43bc-971a-7989a7656447","55198658-5b4c-4b33-b543-06a4d31e8c88"]},"properties":{"tag_ids":{"description":"List of tags to remove from the contact","items":{"description":"Tag ID","example":"e7536f7f-d90a-487c-9fbd-e28a68c67c80","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"RemoveTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Assign User Action params used when processing the action.","example":{"user_id":42},"properties":{"user_id":{"description":"ID of the user to assign to the conversation","example":42,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"title":"AssignUserAction","type":"object","x-struct":null,"x-validate":null},{"description":"Unassign User Action params used when processing the action.","example":{"user_id":null},"properties":{"user_id":{"description":"ID of the unassigned user. Can be null to use the currently assigned user for the conversation.","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"title":"UnassignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Assign Team Action params used when processing the action.","properties":{"team_id":{"description":"ID of the Team to assign","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["team_id"],"title":"AssignTeamAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign Team Action params used when processing the action.","properties":{},"title":"UnassignTeamAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add To Sequence Action params used when processing the action.","example":{"sequence_id":"534a5aec-699f-4fc4-ae83-085b5a39fda4"},"properties":{"sequence_id":{"description":"ID of the Sequence to add the contact to","example":"041ecdcd-461a-48d2-80e1-c7deb650a260","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"AddToSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove From Sequence Action params used when processing the action.","example":{"sequence_id":"979d581c-9910-43c7-bde3-79ea31055aa2"},"properties":{"sequence_id":{"description":"ID of the Sequence to remove the contact from","example":"f013316a-d0de-4487-8935-95ff51161d74","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"RemoveFromSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Move TO Step Action params used when processing the action.","example":{"sequence_id":"50c7f961-06a5-4c7e-a2d2-64c8c0efd0ab","step_id":"29e6a329-b36a-4317-8a62-8cff559104f2"},"properties":{"sequence_id":{"description":"Sequence ID","example":"f324e499-1cca-41ea-8161-66649fa70ec0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"52ec0054-a60f-4ab5-9ca5-4d7079e381f3","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id","step_id"],"title":"MoveToStepAction","type":"object","x-struct":null,"x-validate":null},{"description":"Opt In Action params used when processing the action.","example":{"location_ids":["8fdacac6-9812-4aa7-9008-79437b3b98a1"]},"properties":{"location_ids":{"description":"List of channels/locations to opt the contact in. Can be empty to use the current conversation that triggered the action.","items":{"description":"Channel/Location ID","example":"d243ad5f-281a-4cda-af28-cd57767ccba2","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"OptInAction","type":"object","x-struct":null,"x-validate":null},{"description":"Opt Out Action params used when processing the action.","example":{"location_ids":["6359e513-5c66-48c9-8f10-5f8132fef8cd"]},"properties":{"location_ids":{"description":"List of channels/locations to opt the contact out of. Can be empty to use the current conversation that triggered the action.","items":{"description":"Channel/Location ID","example":"1ddf891c-ff66-4af4-8290-8a6322c5cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"OptOutAction","type":"object","x-struct":null,"x-validate":null},{"description":"Notify Users Action params used when processing the action.","example":{"user_ids":["42","1024","2364"]},"properties":{"user_ids":{"description":"List of string user IDs","example":["42","1024","2364"],"items":{"description":"String ID of a user to be notified","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["user_ids"],"title":"NotifyUsersAction","type":"object","x-struct":null,"x-validate":null},{"description":"Update Conversation Status Action params used when processing the action.","example":{"status":"open"},"properties":{"status":{"description":"New conversation status","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null}},"required":["status"],"title":"UpdateConversationStatusAction","type":"object","x-struct":null,"x-validate":null},{"description":"Send Email Action params used when processing the action.","example":{"bcc":"john.constantine@example.com","body":"Automated email, yay!","cc":"superman@example.com","from":"","reply_to":"mycoolmail@example.com","subject":"Action Email","to":"batman@example.com"},"properties":{"bcc":{"description":"BCC email","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Email body. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"from":{"description":"From email","example":"myemail@example.com","type":"string","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"To email","example":"batman@example.com","type":"string","x-struct":null,"x-validate":null}},"title":"SendEmailAction","type":"object","x-struct":null,"x-validate":null},{"description":"AI Tagging Action params used when processing the action.","example":{"apply_to":["message"],"create_new_tags":false,"instructions":"","max_number_of_tags":1},"properties":{"apply_to":{"default":["message"],"description":"List of associations to be tagged with the AI suggestions.","example":["contact"],"items":{"description":"Association to be tagged with the AI suggestions.","enum":["message","contact"],"example":"message","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"create_new_tags":{"default":false,"description":"Indicates the AI can create new tags or only use existing ones.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"instructions":{"default":"","description":"Instructions given to the AI when generating suggestions.","example":"Tag candidates with the position they are looking for","type":"string","x-struct":null,"x-validate":null},"max_number_of_tags":{"default":1,"description":"Max number of tags suggestions by the AI.","example":2,"type":"integer","x-struct":null,"x-validate":null}},"title":"AITaggingAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Start Call Agent Action params used when processing the action.","properties":{"agent_id":{"description":"ID of the Agent to use for the call","example":"b514e377-c87f-4ab2-867c-fb7622f755e3","format":"uuid","type":"string","x-struct":null,"x-validate":null},"bypass_quiet_hours":{"default":false,"description":"Whether to bypass quiet hours restrictions","example":false,"type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Custom placeholder values passed to the Agent","type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartCallAgentAction","type":"object","x-struct":null,"x-validate":null},{"description":"Start Chat Agent Action params used when processing the action.","example":{"agent_id":"d821eecf-550d-4d27-b35f-815ce1464d65","send_initial_message":true},"properties":{"agent_id":{"description":"ID of the Agent to use for the chat","example":"9c6d0509-e2ed-48f7-a248-8849d739c553","format":"uuid","type":"string","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether to send an initial message to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"title":"StartChatAgentAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Send HTTP Request Action params used when processing the action.","properties":{"method":{"enum":["GET","POST"],"type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Optional JSON request payload","type":"object","x-struct":null,"x-validate":null},"url":{"description":"Public HTTPS endpoint; private and internal hosts are rejected","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["method","url"],"title":"SendHttpRequestAction","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":{"description":"Type of action","enum":["send_message","add_tags","remove_tags","assign_user","unassign_user","assign_team","unassign_team","add_to_sequence","remove_from_sequence","move_to_step","opt_in","opt_out","notify_users","update_conversation_status","send_email","ai_tagging","start_call_agent","start_chat_agent","send_http_request"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Trigger ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"keyword":{"description":"Keyword associated with the trigger","properties":{"created_at":{"description":"Time of creation of the keyword in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Keyword enabled state","type":"boolean","x-struct":null,"x-validate":null},"exact_match":{"description":"Keyword exact match setting","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Keyword ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"keywords":{"description":"List of keywords","items":{"description":"Body of a single keyword phrase","example":"INTERESTED","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"negate_keywords":{"description":"List of keywords for negation","items":{"description":"Body of a single keyword phrase","example":"NOT INTERESTED","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"23f619e9-1590-4850-b05b-60b58b7fc3ff","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the keyword in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_options":{"description":"Schedule options for a trigger with type \"no_reply\"","properties":{"days":{"description":"Schedule option days","type":"string","x-struct":null,"x-validate":null},"hours":{"description":"Schedule option hours","type":"string","x-struct":null,"x-validate":null},"minutes":{"description":"Schedule option minutes","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Trigger type","enum":["reply","link_click","reply_containing_keyword","no_reply","inbound_message","reply_call","no_answer_call","voicemail_reached","ai_succeeded","ai_failed"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the automation template in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"Automation Template last updated by user ID","type":"integer","x-struct":null,"x-validate":null},"usage":{"description":"Automation Template usage","enum":["duplicate","as-is"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"31911bc7-060e-4642-8c7c-9c1487439fc0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"total":{"description":"Total count without limit of automation templates based on the passed filters.","type":"integer","x-struct":null,"x-validate":null}},"title":"ListAutomationTemplatesResponse","type":"object","x-struct":null,"x-validate":null},"InviteNotFoundErrorResponse":{"description":"Invite Not Found Error Response schema","example":{"errors":[{"description":"Invite not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Invite 404 error","items":{"properties":{"description":{"enum":["Invite not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"InviteNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.Invite.Errors.NotFound","x-validate":null},"SearchKnowledgeBaseVersionsParams":{"additionalProperties":false,"description":"Request schema for searching knowledge base versions.","properties":{"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"Case-insensitive partial match against the version name","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"published":{"description":"When true, only published versions. When false, only unpublished drafts.","type":"boolean","x-struct":null,"x-validate":null}},"title":"SearchKnowledgeBaseVersionsParams","type":"object","x-struct":null,"x-validate":null},"SendFaxResponse":{"description":"Response after creating a fax send.\n\nWhen `schedule_at` was provided, the fax is queued for later and `delivery_status` is `scheduled`.\nIn that case `id` is omitted until the message is created at send time.\n\nTo list or read fax threads and individual messages afterward, use the existing Conversation APIs\n(for example show conversation and its messages); there is no separate fax-only read endpoint.\n","example":{"data":{"contact_id":"ba80b1e0-6bb5-426b-bd35-a7676f48b237","conversation_id":"b8b2bdf1-5672-4727-8e8d-d92e9e1ec823","delivery_status":"sent","id":"0f51a1e8-6f14-40d0-a9c5-6e43d7eb3fd7"}},"properties":{"data":{"description":"Newly created fax message or scheduled send confirmation.","properties":{"contact_id":{"description":"ID of the receiving contact","example":"4b2d554a-1328-4b1c-a4d6-291323d79dd6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"ID of the fax conversation","example":"84451e96-17c7-442b-9cbb-e553c8a55c34","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Initial delivery status","enum":["sent","scheduled","queued"],"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID (present when the fax is sent immediately)","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["delivery_status","contact_id","conversation_id"],"type":"object","x-struct":null,"x-validate":null}},"title":"SendFaxResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Fax.ShowResponse","x-validate":null},"DomainPurchaseQuoteParams":{"example":{"name":"acme-links.com"},"properties":{"name":{"description":"Apex domain to check","example":"acme-links.com","type":"string","x-struct":null,"x-validate":null}},"required":["name"],"title":"DomainPurchaseQuoteParams","type":"object","x-struct":null,"x-validate":null},"EmailCampaignUpdateParams":{"description":"Request schema for updating a email campaign at `PUT /v1/campaigns/email/:id`.\n\nThe campaign type is set to `email`. A campaign that is not already email must include `from`. A non-draft email campaign needs `subject`, `sender_name`, and `sender_email`. `reply_to` is optional.\n\nA `scheduled` campaign accepts `title`, `schedule_at`, `status`, and `automation_templates`.\nA `draft`, `recurring`, or `recurring_paused` campaign also accepts the message, `from`, the audience\nfilters, and `recurring_settings`. `recurring_settings` is merged with the stored schedule.\n","example":{"schedule_at":"2026-11-26T16:37:59.885730Z","title":"Email Campaign"},"properties":{"attachments":{"description":"List of attachment URLs. Accepted for a draft or recurring campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of automation template IDs. At most 50.","items":{"description":"Automation Template ID","example":"7b3b8bf1-4910-4e4d-b787-86a5c9a99a3e","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Email has no length limit here.","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Optional. When omitted, the default\ncampaign exclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"from":{"description":"The email channel's `sending_email_address`. Required when this request changes the campaign to email.\n","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Optional for a draft. Required when\n`status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["63f36921-cad2-4c16-9bee-e07d8a7e42e6"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply-to address. Optional.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the campaign. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"sender_email":{"description":"Email address shown as the sender. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sender_name":{"description":"Name shown as the sender. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"`draft` or `scheduled` for a one-time campaign. `recurring` starts or restarts a series.\n`recurring_paused` or `recurring_cancelled` stops one.\n","enum":["draft","scheduled","recurring","recurring_paused","recurring_cancelled"],"type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Optional on a draft. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null}},"title":"EmailCampaignUpdateParams","type":"object","x-struct":null,"x-validate":null},"UserIndexResponse":{"description":"Response schema for listing users. User data is sorted by date and returned in descending order.","example":{"data":[{"attachment":null,"channels":[{"address":"Test Company","id":"4588a6f8-a147-4f08-83c9-c36affdc78bf","name":"Location-1","phone":"+14252607569","state":"enabled","type":"phone"}],"email":"test@example.com","id":12,"name":"Name-1","phone":"+14288888888","role":"admin","state":"enabled"},{"attachment":null,"email":"test2@example.com","id":123,"locations":[],"name":"Name-2","phone":"+14277777777","role":"admin","state":"enabled"}],"total":2},"properties":{"data":{"description":"List of Users","items":{"properties":{"attachment":{"description":"User attachment","properties":{"content_type":{"description":"Attachment content type","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://s3.amazonaws.com/attachments/1234567890","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"channels":{"description":"List of User channels/locations","items":{"properties":{"address":{"description":"Channel address","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Channel state","example":"enabled","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Channel type","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"email":{"description":"User email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone number","type":"string","x-struct":null,"x-validate":null},"role":{"description":"User role","type":"string","x-struct":null,"x-validate":null},"state":{"description":"User state","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata. Returned for cursor-paginated responses and for default offset-paginated responses, where it provides an offset-to-cursor bootstrap so clients can transition to cursor pagination. `next_cursor` is null when there are no more results.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total number of Users","type":"integer","x-struct":null,"x-validate":null}},"title":"UserIndexResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.User.IndexResponse","x-validate":null},"NotAuthenticatedErrorResponse":{"description":"Not Authenticated Error Response schema","example":{"errors":[{"description":"Not authenticated"}],"status":401},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Not authenticated error","items":{"properties":{"description":{"enum":["Not authenticated"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[401],"type":"integer","x-struct":null,"x-validate":null}},"title":"NotAuthenticatedErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Errors.NotAuthenticated","x-validate":null},"OptInAction":{"description":"Opt In Action params used when processing the action.","example":{"location_ids":["8fdacac6-9812-4aa7-9008-79437b3b98a1"]},"properties":{"location_ids":{"description":"List of channels/locations to opt the contact in. Can be empty to use the current conversation that triggered the action.","items":{"description":"Channel/Location ID","example":"d243ad5f-281a-4cda-af28-cd57767ccba2","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"OptInAction","type":"object","x-struct":null,"x-validate":null},"PreviewMetricResponse":{"description":"Response schema for a previewed metric. `results` has the same shape as `results` from Show Metric.","example":{"data":{"results":{"chart":"total","result":[{"x":128}]},"timeframe":{"end":"2026-02-01T00:00:00Z","start":"2026-01-01T00:00:00Z","timezone":"America/Chicago"}}},"properties":{"data":{"properties":{"results":{"description":"The generated metric data.","type":"object","x-struct":null,"x-validate":null},"timeframe":{"description":"The window the preview ran over: the requested range, or the trailing four weeks.","type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"PreviewMetricResponse","type":"object","x-struct":null,"x-validate":null},"SMSUnprocessableContentErrorResponse":{"description":"List of error responses for invalid SMS POST requests.\n","example":{"errors":[{"description":"Missing one of Body or Attachments"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Messaging 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Missing one of Body or Attachments","Body is invalid","Attachments are invalid","Body is over 10_000 characters","Invalid From number","Invalid To number","Missing To number","Missing From number","Invalid To number 567-invalid","To number +19013617424 has unsubscribed","Scheduling time is in the past","Scheduling time should be in ISO 8601 format","Conversation status must be 'automated', 'open', or 'closed'"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"SMSUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Message.Errors.UnprocessableContent","x-validate":null},"UpdateFormParams":{"description":"Update form metadata only. Questionnaire edits use PUT /v1/forms/:id/draft.","properties":{"is_public":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"name":{"example":"Contact Form","type":"string","x-struct":null,"x-validate":null},"notification_emails":{"items":{"format":"email","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"response_as_inbound_message":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"slug":{"example":"contact-form","type":"string","x-struct":null,"x-validate":null},"submission_notification_enabled":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"tags":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"UpdateFormParams","type":"object","x-struct":null,"x-validate":null},"UpdateAgentVersionMetaParams":{"description":"Request schema for updating agent version metadata.","example":{"notes":"Updated the greeting and escalation instructions."},"properties":{"notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateAgentVersionMetaParams","type":"object","x-struct":null,"x-validate":null},"PatchUserParams":{"description":"Parameters for patching a user.","properties":{"assignee_user_id":{"description":"Assignee User ID (optional), if the assignee user is provided, it will move all the user's conversations to `assignee_user_id`, \n          and if the assignee user is not provided, it will unassign the user from all conversations across locations to which the user \n          has access. This is only applicable when the user's state is being set to `disabled`.","example":8,"type":"integer","x-struct":null,"x-validate":null},"state":{"description":"User's account state. Current valid values are `disabled` and `enabled`","example":"disabled","type":"string","x-struct":null,"x-validate":null}},"title":"PatchUserParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.User.PatchUserParams","x-validate":null},"AgentTestTraceResponse":{"description":"The regression trace of one test: its source, every run, fix, and publish that counted it, in\ntime order. `steps` condenses it into the improvement loop: reproduced, fix_proposed,\nfix_applied, draft_passing, published, live_passing.\n","properties":{"data":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"events":{"items":{"properties":{"at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"detail":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"ref":{"additionalProperties":true,"type":"object","x-struct":null,"x-validate":null},"title":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["flagged","created","run","fix_proposed","fix_applied","fix_dismissed","published"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"proposals":{"items":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"properties":{"call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"feedback":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation","manual"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"steps":{"items":{"properties":{"at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"key":{"enum":["reproduced","fix_proposed","fix_applied","draft_passing","published","live_passing"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["done","current","failed","pending","skipped"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestTraceResponse","type":"object","x-struct":null,"x-validate":null},"ContactMergeContactsUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Contacts 'merge_contacts' endpoint POST requests.\n","example":{"errors":[{"description":"Contact IDs cannot be the same"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Contact IDs cannot be the same","Contact phones cannot be the same","One or both contacts are not in 'open' state","At least one of the contacts is currently in the process of being merged","Invalid contact IDs or contacts not found","Invalid contact phones or contacts not found","Invalid parameters for merging contacts"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactMergeContactsUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Contact.Errors.MergeContactsUnprocessableContent","x-validate":null},"MergeContactsResponseV1":{"description":"Response schema for merging contacts.","example":{"data":{"message":"Contacts are currently being merged"}},"properties":{"data":{"description":"Response data for the contacts merging attempt","properties":{"message":{"description":"Response message confirming the merge of the contacts has begun.","example":"Contacts are currently being merged","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"MergeContactsResponseV1","type":"object","x-struct":null,"x-validate":null},"KnowledgeBaseItemNotFoundErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the knowledge base item record doesn't exist.","example":{"errors":[{"description":"Knowledge Base Item not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Knowledge base item 404 error","items":{"additionalProperties":false,"description":"Single 404 error","properties":{"description":{"description":"Human-readable explanation that the knowledge base item doesn't exist.","enum":["Knowledge Base Item not found"],"example":"Knowledge Base Item not found","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"KnowledgeBaseItemNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"UpdateContactListContactsParams":{"description":"Update Contact List Contacts Params","properties":{"action":{"description":"The action to be applied over the contacts param. Can be one of \"add\", \"remove\" or \"overwrite\".","enum":["add","remove","overwrite"],"type":"string","x-struct":null,"x-validate":null},"contacts":{"description":"List of contacts that will be processed according to the action.","items":{"description":"Data for a contact that will be processed.","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"required":["phone"],"type":"object","x-struct":null,"x-validate":null},"maxItems":4000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"opt_in_to":{"description":"Setting to opt in contacts from contacts param to specific channels","items":{"description":"Channel","properties":{"id":{"description":"Channel ID","example":"92da716b-8a09-4068-9a1a-d12366526f11","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"opt_in_to_all_channels":{"default":true,"description":"Setting to opt in contacts from contacts param to all organization channels","type":"boolean","x-struct":null,"x-validate":null}},"required":["action","contacts"],"title":"UpdateContactListContactsParams","type":"object","x-struct":null,"x-validate":null},"ChannelUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Channel requests.\n","example":{"errors":[{"description":"User does not have access to this organization"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Channel 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["User does not have access to this organization","Could not add user to channel","Could not remove user from channel","At least one of name, address, emoji, color, description, timezone, or opening_hours must be present","Channel emoji Invalid emoji","Channel emoji should be at most 64 bytes","Channel description should be at most 255 characters","Channel address can't be blank","Channel timezone must be an IANA timezone such as America/New_York","Channel opening_hours must be a list of weekday hours","Channel opening_hours must include at least one weekday","Channel opening_hours contains an unknown field","Channel opening_hours lists the same weekday more than once","Channel opening_hours weekday must be Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday","Channel opening_hours weekday is required","Channel opening_hours state must be open or closed","Channel opening_hours state is required","Channel opening_hours opens_at must be HH:MM in 24-hour time, such as 09:00","Channel opening_hours closes_at must be HH:MM in 24-hour time, such as 17:30","Channel opening_hours opens_at is required","Channel opening_hours closes_at is required"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ChannelUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Channels.Channel.Errors.UnprocessableContent","x-validate":null},"CreateCustomObjectRecordParams":{"description":"Request schema for creating Custom Object Records.","example":{"associated_resource_id":"e1cad7a3-50a1-4695-96d9-80f3aede440b","associated_resource_type":"contact","external_id":"12344212","properties":{"address":{"state":"NY","street":"123 Main St"},"city":"New York","notes":["note 1","note 2"]}},"properties":{"associated_resource_id":{"description":"The ID of the associated record","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"associated_resource_type":{"description":"The type of the associated record","enum":["contact","conversation","message","tag","contact_tag","campaign_contact","step_contact"],"example":"contact","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"A unique ID that can be used to identify the Custom Object Record when doing upserts","example":"12233124","type":"string","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"The Custom Properties of the Custom Object Record","example":{"address":{"state":"NY","street":"123 Main St"},"city":"New York","notes":["note 1","note 2"],"zip":"12345"},"type":"object","x-struct":null,"x-validate":null}},"required":["custom_object_id"],"title":"CreateCustomObjectRecordParams","type":"object","x-struct":null,"x-validate":null},"CampaignUpdateExcludedAudience":{"description":"Whippy Query filter items for the contacts to exclude. Each item is a column comparison or a\n`logical_group`. Accepted for a draft or recurring campaign.\n","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignUpdateExcludedAudience","type":"array","x-struct":null,"x-validate":null},"UpdateContactListParams":{"description":"Update Contact List Params","example":{"color":"#ffeb3b","name":"New Contact List","state":"active"},"properties":{"color":{"description":"Hex color code for the contact list tag","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact list name. It is important to notice that any extra spaces are removed from it, e.g. \" List   name  \" -> \"List name\".","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact list. Can be either \"active\" or \"archived\".","enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateContactListParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.UpdateParams","x-validate":null},"UpdateCustomObjectParams":{"description":"Request schema for updating Custom Objects.","example":{"ai_context":"This object tracks customer contact details for sales outreach","color":"#ffeb3b","description":"description","emoji":"✨","label":"Contact Details","whippy_associations":[{"source_property_key":"candidate_id","target_property_key":"external_id","target_property_key_prefix":"cont-","target_whippy_resource":"contact","type":"one_to_one"},{"delete":true,"id":"123e4567-e89b-12d3-a456-426614174000","source_property_key":"employee_id","target_property_key":"external_id","target_property_key_prefix":null,"target_whippy_resource":"contact","type":"one_to_one"}]},"properties":{"ai_context":{"description":"Additional context information for AI features","example":"This object tracks customer contact details for sales outreach","type":"string","x-struct":null,"x-validate":null},"associations":{"items":{"properties":{"delete":{"description":"Whether the Association is marked for deletion","example":false,"type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"The ID of the existing Association","example":"123e4567-e89b-12d3-a456-426614174000","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Optional relationship name that makes this association individually addressable when a type has multiple associations to the same target type (e.g. approving_client vs backup_client). Referenced by placeholders and segment joins.","example":"approving_client","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"The key of the source property in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"target_data_type_id":{"description":"The ID of the target data type","example":"123e4567-e89b-12d3-a456-426614174000","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"The key of the target property in snake case","example":"shop","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the Association","example":"one_to_one","type":"string","x-struct":null,"x-validate":null}},"required":["type","source_property_key","target_property_key","target_data_type_id"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"The color of the Custom Object","example":"#000000","type":"string","x-struct":null,"x-validate":null},"custom_properties":{"description":"The Custom Properties of the Custom Object","items":{"properties":{"default":{"description":"The default value of the CustomProperty","type":"string","x-struct":null,"x-validate":null},"editable":{"description":"Whether the CustomProperty is editable","example":true,"type":"boolean","x-struct":null,"x-validate":null},"key":{"description":"The key of the CustomProperty in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the CustomProperty","example":"City","type":"string","x-struct":null,"x-validate":null},"required":{"description":"Whether the CustomProperty is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"state":{"description":"The state of the CustomProperty","example":"active","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the CustomProperty","enum":["text","number","float","boolean","date","list","map"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"required":["type","label","key","required"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"description":{"description":"The label description of the Custom Object","example":"label description","type":"string","x-struct":null,"x-validate":null},"editable":{"description":"Whether the Custom Object is editable","example":true,"type":"boolean","x-struct":null,"x-validate":null},"emoji":{"description":"The emoji of the Custom Object","example":"✨","type":"string","x-struct":null,"x-validate":null},"hidden":{"description":"Whether the Custom Object is hidden","example":false,"type":"boolean","x-struct":null,"x-validate":null},"integration_id":{"description":"The ID of the integration this Custom Object belongs to. Nullable.","example":"01934a59-2ef2-7903-bddc-284413538f41","format":"uuid","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Object in snake case","example":"contact_details","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Object","example":"Contact Details","type":"string","x-struct":null,"x-validate":null},"whippy_associations":{"description":"Whippy associations for this Custom Object","example":[{"source_property_key":"candidate_id","target_property_key":"external_id","target_property_key_prefix":"cont-","target_whippy_resource":"contact","type":"one_to_one"}],"items":{"properties":{"delete":{"description":"Whether the WhippyAssociation should be deleted","example":false,"type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"The ID of the existing WhippyAssociation","example":"123e4567-e89b-12d3-a456-426614174000","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Optional relationship name that makes this whippy association individually addressable when a type links to the same Whippy resource more than once.","example":"candidate_contact","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"Source property key","example":"candidate_id","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"Target property key on the Whippy resource","example":"external_id","type":"string","x-struct":null,"x-validate":null},"target_property_key_prefix":{"description":"Prefix for target property key","example":"cont-","type":"string","x-struct":null,"x-validate":null},"target_whippy_resource":{"description":"Target Whippy resource","example":"contact","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of association","example":"one_to_one","type":"string","x-struct":null,"x-validate":null}},"required":["type","target_whippy_resource","source_property_key","target_property_key"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"UpdateCustomObjectParams","type":"object","x-struct":null,"x-validate":null},"ArchiveCustomObjectInvalidParamsResponse":{"description":"Response schema for archiving a Custom Object with invalid parameters.","properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"data":{"properties":{"message":{"description":"The message of the response","example":"Invalid parameters","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"title":"ArchiveCustomObjectInvalidParamsResponse","type":"object","x-struct":null,"x-validate":null},"TemplateNotFoundErrorResponse":{"description":"Template Not Found Error Response schema","example":{"errors":[{"description":"Template not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Template 404 error","items":{"properties":{"description":{"enum":["Template not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"TemplateNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Templates.Template.Errors.NotFound","x-validate":null},"MetricUnprocessableContentErrorResponse":{"description":"List of error responses for invalid metric requests.","example":{"errors":[{"description":"Invalid cursor format"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Metric 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Offset is not supported; use cursor pagination","Direction must be forward or backward","A cursor is required when direction is backward","Type must be custom or non_custom","Start and End must be provided together","The Start datetime field should be in ISO 8601 format","The End datetime field should be in ISO 8601 format","Limit must be greater than 0","Limit must be 500 or less","Limit is invalid","Type must be whippy_event, custom_event or non_custom","Include inactive must be a boolean","Search should be at most 255 character(s)","Name can't be blank","Name should be at most 255 character(s)","Type can't be blank","Custom data type ID must be a UUID"],"example":"Invalid cursor format","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"MetricUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"ListWorkflowRunsUnprocessableContentResponse":{"description":"Unprocessable Content Response schema","example":{"errors":[{"description":"status must be one of: in_progress, completed, failed, filtered"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"List of validation errors","items":{"properties":{"description":{"description":"Error description","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"description":"HTTP status code","example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"ListWorkflowRunsUnprocessableContentResponse","type":"object","x-struct":null,"x-validate":null},"ShowTeamResponse":{"description":"Show Team Response schema","example":{"data":{"assignment_method":"round_robin","color":"#F0F0F0","description":"Description","emoji":"👨🏻‍🔧","id":"1287a6e1-e678-40b5-b5e6-cc6d039ee71e","inserted_at":"2023-06-22T07:13:31","location_ids":["59d92c9f-978d-4073-9f2e-779a14ebce21","9e8ada8e-a823-47f8-bd2a-423bfdb89e6c"],"name":"Example name","team_members":[{"id":"0f3f226b-b62a-4ba3-94de-80955f94d8a3","inserted_at":"2023-06-22T07:13:31","team_id":"4f52953b-6e0f-494e-ac86-822b344c95da","updated_at":"2023-06-22T07:13:31","user_id":1,"user_organization_id":3,"work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":null,"team_member_id":"f7556808-ab86-4a57-9d6d-986f7f26c1ec","timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}],"updated_at":"2023-06-22T07:13:31","work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":"0d53234c-112f-496e-9448-571b4d60ac57","team_member_id":null,"timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}},"properties":{"data":{"description":"An organization's team","properties":{"assignment_method":{"default":"manual","description":"  The team's assignment method. There are three options - \"manual\", \"round_robin\", \"balanced\".\n  1) Manual - Conversations are not automatically assigned\n  2) Round Robin - Conversations are assigned to teammates in sequential order\n  3) Balanced - Conversations are assigned to teammates with the fewest active conversations\n","enum":["manual","round_robin","balanced"],"example":"balanced","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Color","example":"#F0F0F0","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"Team description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","example":"🇺🇸","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"location_ids":{"description":"List of Location IDs","example":["d8a717aa-b628-4adc-a6de-a1a7c0b0946c","9ae4aad6-41f5-4f8b-99bb-bf81fe1de48a"],"items":{"description":"Location ID","example":"aa2120f7-0d62-4b41-a21c-7d03e78ba7fe","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Team name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"team_members":{"description":"List of Team's Members","items":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowTeamResponse","type":"object","x-struct":null,"x-validate":null},"UpdateCommunicationPreferenceParams":{"description":"Request schema for opting out a contact from specific channels or channel types","oneOf":[{"$ref":"#/components/schemas/Parameters-With-Specific-Channels-Opt-Out"},{"$ref":"#/components/schemas/Parameters-With-Channel-Types"}],"title":"UpdateCommunicationPreferenceParams","type":"object","x-struct":null,"x-validate":null},"ArchiveCustomObjectParams":{"description":"Request schema for archiving a Custom Object.","properties":{"filters":{"items":{"properties":{"comparison":{"description":"The comparison operator. Use '=' for equality. '==' is accepted as a compatibility alias and behaves identically.","enum":["=","==",">",">=","<","<=","!=","in","not in"],"example":"=","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Property","example":"city","type":"string","x-struct":null,"x-validate":null},"value":{"description":"The value(s) of the Custom Property. Use a scalar for single-value comparisons or an array for 'in' and 'not in'.","oneOf":[{"description":"A string value for a single-value comparison","example":"New York","type":"string","x-struct":null,"x-validate":null},{"description":"A numeric value (integer or float) for a single-value comparison","example":206837201,"type":"number","x-struct":null,"x-validate":null},{"description":"A boolean value for a single-value comparison","example":true,"type":"boolean","x-struct":null,"x-validate":null},{"description":"The values of the Custom Property (for 'in' and 'not in' comparisons)","example":["New York","Los Angeles","Chicago"],"items":{"oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Object","example":"employee","type":"string","x-struct":null,"x-validate":null}},"required":["key","filters"],"title":"ArchiveCustomObjectParams","type":"object","x-struct":null,"x-validate":null},"TestsNotPassingError":{"description":"Linked tests are not passing on Draft. Run them, or publish with `skip_test_gate`.","properties":{"errors":{"items":{"properties":{"code":{"example":"tests_not_passing","type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"status":{"example":409,"type":"integer","x-struct":null,"x-validate":null},"tests":{"items":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"TestsNotPassingError","type":"object","x-struct":null,"x-validate":null},"CreatePublicCallFlowResponse":{"description":"Response schema for creating a programmable Call Flow.","example":{"data":{"channel":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"color":"#FF0000","created_by_id":1,"description":"Programmable support IVR","emoji":"📞","flags":{"recordings":true},"id":"64801baf-1a32-4f0a-a425-4c8707aa3673","name":"Support Line","organization_id":"a89d65b1-8a13-432e-a56e-370d7d237bbb","updated_by_id":1,"voice_language":"en-US","voice_type":"woman","webhook_config":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"}}},"properties":{"data":{"description":"Programmable Call Flow record","example":{"channel":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"color":"#FF0000","created_by_id":1,"description":"Programmable support IVR","emoji":"📞","flags":{"recordings":true},"id":"64801baf-1a32-4f0a-a425-4c8707aa3673","name":"Support Line","organization_id":"a89d65b1-8a13-432e-a56e-370d7d237bbb","updated_by_id":1,"voice_language":"en-US","voice_type":"woman","webhook_config":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"}},"properties":{"channel":{"description":"Channel currently assigned to this Call Flow (1 channel ↔ 1 programmable\nCall Flow). `null` when none is assigned.\n","example":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"nullable":true,"properties":{"address":{"description":"Channel address","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","example":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone","example":"+15551234567","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Channel state","example":"enabled","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Channel type","example":"phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"color":{"description":"Call Flow color (hex)","example":"#FF0000","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"User ID that created the Call Flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Call Flow description","example":"Programmable support IVR","nullable":true,"type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call Flow emoji","example":"📞","nullable":true,"type":"string","x-struct":null,"x-validate":null},"flags":{"additionalProperties":true,"description":"Call Flow feature flags","example":{"recordings":true},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Call Flow ID","example":"64801baf-1a32-4f0a-a425-4c8707aa3673","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Call Flow name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"a89d65b1-8a13-432e-a56e-370d7d237bbb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"User ID that last updated the Call Flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"voice_language":{"description":"TTS voice language (BCP-47)","example":"en-US","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_type":{"description":"TTS voice type used by inline prompts","example":"woman","nullable":true,"type":"string","x-struct":null,"x-validate":null},"webhook_config":{"description":"Programmable webhook config. Required on create (`url` must be non-blank HTTPS).\nOptional `signing_api_key_id` HMAC-signs outbound POSTs (`X-Whippy-Signature`).\n","example":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"},"properties":{"signing_api_key_id":{"description":"Optional organization API key ID used to HMAC-sign outbound POSTs.\nOmit or null for unsigned delivery. When set, the key must be active\nand belong to the Call Flow's organization.\n","example":"0542653c-010a-4a29-afde-912a110fecb7","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"url":{"description":"HTTPS webhook URL that receives programmable call flow events","example":"https://integrator.example/call-flow-webhook","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","type":"string","x-struct":null,"x-validate":null}},"required":["url"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreatePublicCallFlowResponse","type":"object","x-struct":null,"x-validate":null},"CreateLeadResponse":{"description":"Response schema for a new contact lead.","example":{"data":{"blocked":false,"conversation_id":"382d010f-ca59-4cc9-9db3-cd09125b996d","created_at":"2021-06-22T07:45:45","email":"johndoe@example.com","id":"70c5c186-107e-4122-ba5c-24ac072f5898","name":"John Doe","phone":"+14155552671","state":"open","updated_at":"2021-06-22T07:45:45"}},"properties":{"data":{"description":"Data for a single lead contact with conversation ID.","properties":{"blocked":{"description":"Contact blocked status","type":"boolean","x-struct":null,"x-validate":null},"conversation_id":{"description":"Lead conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Full name of the contact","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the contact","enum":["open","archived","blocked"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateLeadResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Lead.CreateResponse","x-validate":null},"UpdateCampaignResponse":{"description":"Response schema for an updated campaign.","example":{"data":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"You're going to love this opportunity! Check out the link below for more information.","created_at":"2023-05-05T13:00:00Z","id":"734a18ae-ddf9-4d03-83ab-0b47ce0f887c","schedule_at":"2023-05-05T13:45:00Z","status":"scheduled","title":"Cool campaign","updated_at":"2023-05-05T13:45:00Z"}},"properties":{"data":{"description":"Campaign.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"You're going to love this opportunity! Check out the link below for more information.","created_at":"2023-05-05T13:00:00Z","id":"249f67d7-64e0-4e20-8845-dc8bfe4b159d","schedule_at":"2023-05-05T13:45:00Z","status":"scheduled","title":"Cool campaign","updated_at":"2023-05-05T13:45:00Z"},"properties":{"attachments":{"description":"List of attachments for the campaign","items":{"description":"Single attachment","properties":{"content_type":{"description":"Campaign attachment MIME type","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Campaign attachment URL","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Message body for the campaign","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the campaign in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Campaign ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"ISO 8601 time when the campaign is scheduled to run","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Campaign status","enum":["queued","draft","scheduled","in_progress","paused","complete","archived","deleted","template","failed","recurring","recurring_scheduled","recurring_paused","recurring_cancelled"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the campaign in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateCampaignResponse","type":"object","x-struct":null,"x-validate":null},"WorkScheduleNotFoundErrorResponse":{"description":"Work Schedule Not Found Error Response schema","example":{"errors":[{"description":"Work Schedule not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Work Schedule 404 error","items":{"properties":{"description":{"enum":["Work Schedule not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"WorkScheduleNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.WorkSchedule.Errors.NotFound","x-validate":null},"CampaignAudienceFilterItem":{"description":"A column comparison or a logical group of filter items.","oneOf":[{"description":"Comparison against a resource column. Nested `and` and `or` arrays must contain at least one item.\n","properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"clicked_link","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"on":{"description":"  List of on items that should be used to join parent resource with child resource.\n  The logic is as follows (parent_resource JOIN child_resource ON parent_resource.parent_column = child_resource.child_column).\n","items":{"properties":{"child":{"description":"The child resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"employee","type":"string","x-struct":null,"x-validate":null},"child_column":{"description":"The column on the child resource on which the comparison should be executed","example":"id","type":"string","x-struct":null,"x-validate":null},"parent":{"description":"The parent resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"assignment","type":"string","x-struct":null,"x-validate":null},"parent_column":{"description":"The column on the parent resource on which the comparison should be executed","example":"employee_id","type":"string","x-struct":null,"x-validate":null}},"required":["parent","child","parent_column","child_column"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"campaign_contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},{"anyOf":[{"required":["and"],"x-struct":null,"x-validate":null},{"required":["or"],"x-struct":null,"x-validate":null}],"description":"Group of filter items combined with `and` or `or`. Does not use `column`, `comparison`, or `value`.\nNested arrays must contain at least one item. Provide at least one of `and` or `or`.\n","properties":{"and":{"description":"Filter items combined with AND. Must contain at least one item when present.","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"Filter items combined with OR. Must contain at least one item when present.","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"Identifies this item as a logical group","enum":["logical_group"],"type":"string","x-struct":null,"x-validate":null}},"required":["resource"],"type":"object","x-struct":null,"x-validate":null}],"title":"CampaignAudienceFilterItem","x-struct":null,"x-validate":null},"ShowAgentTestVersionResponse":{"example":{"data":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}}},"properties":{"data":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowAgentTestVersionResponse","type":"object","x-struct":null,"x-validate":null},"CreateCustomObjectParams":{"description":"Request schema for creating Custom Objects.","example":{"ai_context":"This object tracks customer contact details for sales outreach","color":"#ffeb3b","custom_properties":[{"default":null,"key":"city","label":"City","required":false,"state":"active","type":"text"}],"description":"description","emoji":"✨","key":"contact_details","label":"Contact Details"},"properties":{"associations":{"items":{"properties":{"name":{"description":"Optional relationship name that makes this association individually addressable when a type has multiple associations to the same target type (e.g. approving_client vs backup_client). Referenced by placeholders and segment joins.","example":"approving_client","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"The key of the source property in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"target_data_type_id":{"description":"The ID of the target data type","example":"123e4567-e89b-12d3-a456-426614174000","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"The key of the target property in snake case","example":"shop","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the Association","example":"one_to_one","type":"string","x-struct":null,"x-validate":null}},"required":["type","source_property_key","target_property_key","target_data_type_id"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"The color of the Custom Object","example":"#000000","type":"string","x-struct":null,"x-validate":null},"custom_properties":{"description":"The Custom Properties of the Custom Object","items":{"properties":{"default":{"description":"The default value of the Custom Property","type":"string","x-struct":null,"x-validate":null},"editable":{"description":"Whether the Custom Property is editable","example":true,"type":"boolean","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Property in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Property","example":"City","type":"string","x-struct":null,"x-validate":null},"required":{"description":"Whether the Custom Property is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"state":{"description":"The state of the Custom Property","example":"active","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the Custom Property","enum":["text","number","float","boolean","date","list","map"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"description":{"description":"The label description of the Custom Object","example":"label description","type":"string","x-struct":null,"x-validate":null},"editable":{"description":"Whether the Custom Object is editable","example":true,"type":"boolean","x-struct":null,"x-validate":null},"emoji":{"description":"The emoji of the Custom Object","example":"✨","type":"string","x-struct":null,"x-validate":null},"hidden":{"description":"Whether the Custom Object is hidden","example":false,"type":"boolean","x-struct":null,"x-validate":null},"integration_id":{"description":"The ID of the integration this Custom Object belongs to. Nullable.","example":"01934a59-2ef2-7903-bddc-284413538f41","format":"uuid","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Object in snake case","example":"contact_details","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Object","example":"Contact Details","type":"string","x-struct":null,"x-validate":null},"whippy_associations":{"description":"This is an array of objects that describe the associations between the CustomObject and Whippy resources like contacts, campaign_contacts, etc.","example":[{"source_property_key":"candidate_id","target_property_key":"external_id","target_property_key_prefix":"cont-","target_whippy_resource":"contact","type":"one_to_one"}],"items":{"properties":{"name":{"description":"Optional relationship name that makes this whippy association individually addressable when a type links to the same Whippy resource more than once. Referenced by placeholders and segment joins.","example":"candidate_contact","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"Source property key","example":"candidate_id","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"Target property key on the Whippy resource","example":"external_id","type":"string","x-struct":null,"x-validate":null},"target_property_key_prefix":{"description":"Prefix for target property key. This is usefull if the Whippy Resource's column that is used for the association contains a prefix before the actual id of the resource.","example":"cont-","type":"string","x-struct":null,"x-validate":null},"target_whippy_resource":{"description":"Target Whippy resource (contact or agent)","example":"contact","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of association","example":"one_to_one","type":"string","x-struct":null,"x-validate":null}},"required":["type","target_whippy_resource","source_property_key","target_property_key"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["label","key"],"title":"CreateCustomObjectParams","type":"object","x-struct":null,"x-validate":null},"ListDeveloperEndpointsResponse":{"description":"Response schema for listing developer endpoints for a developer application.","example":{"data":[{"active":true,"created_at":"2021-06-22T07:45:45","developer_application_id":"8935c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","campaign.created","campaign.updated"],"filter":{"body":{"data":{"created_by_id":2}}},"id":"70c5c186-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.spacetravel.com/webhooks"},{"active":true,"created_at":"2021-06-22T07:45:45","developer_application_id":"8935c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","campaign.created","campaign.updated"],"filter":null,"id":"0ba4f325-6488-4d14-b926-49deb743881a","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.Interdimensionaltravel.com/webhooks"}],"total":2},"properties":{"data":{"description":"List of developer endpoints for an application","items":{"description":"Single developer endpoint data","properties":{"active":{"description":"Activated status of the developer endpoint","example":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Date the developer endpoint is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"developer_application_id":{"description":"Developer Application ID","example":"8935c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"event_types":{"description":"List of events the developer endpoint is subscribed to","example":["message.created","message.updated","campaign.created","campaign.updated"],"items":{"description":"Single event subscribed to. Includes the name of a resource and an action separated by a period.","example":"message.created","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"filter":{"description":"Optional inclusion filter. Only events whose webhook body matches this schema are delivered. Null when not set.","example":{"body":{"data":{"created_by_id":2}}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Develoer Endpoint ID","example":"70c5c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"method":{"description":"HTTP method the webhook would be sent with","enum":["POST"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the developer endpoint was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the endpoint that would receive webhooks","example":"https://www.spacetravel.com/webhooks","format":"url","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total count of developer endpoints","type":"integer","x-struct":null,"x-validate":null}},"title":"ListDeveloperEndpointsResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Endpoint.ListResponse","x-validate":null},"TeamNotFoundErrorResponse":{"description":"Team Not Found Error Response schema","example":{"errors":[{"description":"Team not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Team 404 error","items":{"properties":{"description":{"enum":["Team not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.Team.Errors.NotFound","x-validate":null},"ShowAgentResponse":{"description":"Response schema for agent records.","example":{"data":{"assigned_call_flows":[{"channels":[{"address":"123 Main St, Anytown, USA","id":"5066e203-0abf-48d9-a3f2-1aaba436b8ab","name":"Carl Sagan","phone":"+11234567890","state":"enabled","type":"phone"}],"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1}],"created_at":"2024-02-28T12:33:40Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"default_call_flow":{"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1},"deleted_at":null,"deleted_by":null,"draft_version":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"id":"8109be5c-7e87-4345-a1c0-46047f3373f9","organization":{"id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","name":"Hello Inc."},"status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"usage_mode":"ai_minutes","versions":[{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:52:17.493485Z","created_by_id":1,"description":null,"id":"d6ecf348-2d19-4f97-b8d3-505b64f12c99","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":null,"notes":null,"organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","published_at":null,"settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}}]}},"properties":{"data":{"description":"Agent record","properties":{"assigned_call_flows":{"description":"Data for the call flows that the agent is assigned to","items":{"description":"Data for the call flow that the agent is assigned to","example":{"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1},"properties":{"channels":{"description":"Channels associated with the call flow","example":[{"address":"123 Main St, Anytown, USA","id":"5066e203-0abf-48d9-a3f2-1aaba436b8ab","name":"Carl Sagan","phone":"+11234567890","state":"enabled","type":"phone"}],"items":{"description":"Channel data","example":{"address":"123 Main St, Anytown, USA","id":"5066e203-0abf-48d9-a3f2-1aaba436b8ab","name":"Carl Sagan","phone":"+11234567890","state":"enabled","type":"phone"},"properties":{"address":{"description":"Channel address","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","example":"5066e203-0abf-48d9-a3f2-1aaba436b8ab","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Channel state","example":"enabled","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Channel type","example":"phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Call flow color","example":"#000000","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"User ID that created the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Call flow description","example":"Call flow from the AI Agent Adrian that forwards the call to him","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call flow emoji","example":"🤖","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call flow ID","example":"053a06c7-7f57-490f-a2bd-6737d20e07c6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Call flow name","example":"Forward to Agent: Adrian","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID that the call flow belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"User ID that updated the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the agent","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"description":"Agent current version","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_call_flow":{"description":"Agent default call flow","example":{"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1},"properties":{"color":{"description":"Call flow color","example":"#000000","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"User ID that created the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Call flow description","example":"Call flow from the AI Agent Adrian that forwards the call to him","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call flow emoji","example":"🤖","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call flow ID","example":"053a06c7-7f57-490f-a2bd-6737d20e07c6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Call flow name","example":"Forward to Agent: Adrian","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID that the call flow belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"User ID that updated the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the agent in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"deleted_by":{"description":"Data for the user that deleted the agent","properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"description":"Agent draft version","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"nullable":true,"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Agent ID","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Data for the organization that the agent belongs to","example":{"id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","name":"Hello Inc."},"properties":{"id":{"description":"Organization ID","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Agent status","enum":["draft","active","archived","deleted"],"example":"archived","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that updated the agent","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"usage_mode":{"description":"Usage mode of the Agent","enum":["ai_minutes","completed_calls"],"example":"ai_minutes","nullable":true,"type":"string","x-struct":null,"x-validate":null},"versions":{"description":"Data for the agent versions that belongs to the agent","example":[{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:52:17.493485Z","created_by_id":1,"description":null,"id":"046c1dca-9554-4154-ac01-820eac72273a","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":null,"notes":null,"organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","published_at":null,"settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}}],"items":{"description":"Agent version record","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:52:17.493485Z","created_by_id":1,"description":null,"id":"046c1dca-9554-4154-ac01-820eac72273a","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":null,"notes":null,"organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","published_at":null,"settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowAgentResponse","type":"object","x-struct":null,"x-validate":null},"OrganizationVariablesResponse":{"additionalProperties":false,"description":"Organization merge/piping tokens (builtins + custom.*:contact) with optional form-scoped answers/params/vars/steps when form_id is set.","example":{"data":{"attribution":{"contact_id":"Contact UUID used by personalized links and sends to resolve builtins and custom.*:contact."},"builtins":[{"group":"contact","label":"First Name","products":["messages","sequences","agents","forms","campaigns"],"source":"builtin","token":"{{first_name}}"}],"custom":[{"contact_linked":true,"object_key":"assignment","object_label":"Assignment","products":["messages","sequences","agents","forms","campaigns"],"property_key":"assignment_status","property_label":"Assignment Status","property_type":"text","source":"custom","token":"{{custom.assignment.assignment_status:contact}}"}],"form":{"answers":[{"element_id":"rating","source":"form_answers","token":"{{answers.rating}}"}],"form_id":"00000000-0000-0000-0000-000000000001","syntax":{"answers":"{{answers.<element_id>}}","logic_on_prior_answers":"Rules fire on trigger_element_id; clause field may reference earlier answers."}},"syntax":{"custom":"{{custom.<object_key>.<property_key>:contact}}","fallback":"{{token || \"fallback text\"}}","form_answers":"{{answers.<element_id>}} (forms only; pass form_id after elements exist)","when_to_pass_form_id":"Call again with form_id after create_form / update_form_draft so data.form lists concrete answer/step tokens."}}},"properties":{"data":{"additionalProperties":false,"properties":{"attribution":{"type":"object","x-struct":null,"x-validate":null},"builtins":{"items":{"additionalProperties":false,"properties":{"group":{"enum":["organization","contact","location","channel","datetime"],"example":"contact","type":"string","x-struct":null,"x-validate":null},"label":{"example":"First Name","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Optional guidance, e.g. why a token is message-only.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"products":{"description":"Surfaces where this token can resolve. Filter by product before pasting into forms.","items":{"enum":["messages","sequences","agents","forms","campaigns"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"enum":["builtin"],"example":"builtin","type":"string","x-struct":null,"x-validate":null},"token":{"example":"{{first_name}}","type":"string","x-struct":null,"x-validate":null}},"required":["token","label","group","source","products"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"custom":{"items":{"additionalProperties":false,"properties":{"contact_linked":{"description":"True when the object has a direct whippy association to contact.","type":"boolean","x-struct":null,"x-validate":null},"object_key":{"example":"assignment","type":"string","x-struct":null,"x-validate":null},"object_label":{"example":"Assignment","type":"string","x-struct":null,"x-validate":null},"products":{"description":"Surfaces where this token can resolve. Filter by product before pasting into forms.","items":{"enum":["messages","sequences","agents","forms","campaigns"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"property_key":{"example":"assignment_status","type":"string","x-struct":null,"x-validate":null},"property_label":{"example":"Assignment Status","type":"string","x-struct":null,"x-validate":null},"property_type":{"example":"text","type":"string","x-struct":null,"x-validate":null},"source":{"enum":["custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null},"token":{"example":"{{custom.assignment.assignment_status:contact}}","type":"string","x-struct":null,"x-validate":null}},"required":["token","object_key","object_label","property_key","property_label","property_type","contact_linked","source","products"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"form":{"description":"Present when form_id is provided. Includes answers/params/vars/steps token lists and syntax.answers = {{answers.<element_id>}}.","type":"object","x-struct":null,"x-validate":null},"syntax":{"description":"Token patterns including form_answers {{answers.<element_id>}}, form_steps, and when_to_pass_form_id guidance.","type":"object","x-struct":null,"x-validate":null}},"required":["builtins","custom","syntax","attribution"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"OrganizationVariablesResponse","type":"object","x-struct":null,"x-validate":null},"UpdateAgentMetaParams":{"description":"Request schema for updating agent metadata.","example":{"description":"Answers customer questions and routes requests.","name":"Customer Support"},"properties":{"description":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateAgentMetaParams","type":"object","x-struct":null,"x-validate":null},"ListTestScenariosResponse":{"example":{"data":[{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestScenariosResponse","type":"object","x-struct":null,"x-validate":null},"MessageListUnprocessableContentErrorResponse":{"description":"Error responses for invalid message list requests.","example":[{"errors":[{"description":"Invalid cursor format"}],"status":422},{"errors":[{"description":"A cursor is required when direction is backward"}],"status":422},{"errors":[{"description":"Offset is not supported; use cursor pagination"}],"status":422}],"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"MessageListUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messages.List.Errors.UnprocessableContent","x-validate":null},"TemplateListUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Template index (list) pagination params.\n","example":{"errors":[{"description":"Offset parameter is not compatible with cursor-based pagination"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Template list 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"TemplateListUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Templates.Template.Errors.ListUnprocessableContent","x-validate":null},"QueryKnowledgeBasesParams":{"additionalProperties":false,"description":"Request schema for semantically querying knowledge bases.","example":{"knowledge_base_ids":["f2faeb31-d4fe-4124-a4b2-a085c79f2049"],"max_results":5,"query":"vacation policy"},"properties":{"knowledge_base_ids":{"description":"Knowledge base IDs to search.\nAll IDs must exist in the organization, be published, and have completed embeddings.\n","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":20,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"max_results":{"default":5,"description":"Maximum number of chunks to return","maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"query":{"description":"Natural-language search query","example":"vacation policy","maxLength":2000,"minLength":1,"type":"string","x-struct":null,"x-validate":null}},"required":["knowledge_base_ids","query"],"title":"QueryKnowledgeBasesParams","type":"object","x-struct":null,"x-validate":null},"UpdateKnowledgeBaseItemParams":{"additionalProperties":false,"description":"Request schema for updating an item on a knowledge base draft.\nOmitted fields are preserved. Type cannot be changed after creation.\nIf no draft exists, one is created from the current published version.\n","example":{"content_or_url":"Employees receive 20 days of PTO per year.","name":"Vacation policy"},"properties":{"content_or_url":{"description":"Content source for the selected `type`.\n\n- `text`: Literal text content.\n- `url`: Source URL for one web page.\n- `website`: Source URL for a website whose pages are crawled.\n- `document`, `audio`, and `video`: Publicly accessible file URL. File metadata is fetched automatically by the server.\n","example":"Employees receive 20 days of PTO per year.","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateKnowledgeBaseItemParams","type":"object","x-struct":null,"x-validate":null},"MetricNotFoundErrorResponse":{"description":"Response that occurs when the metric doesn't exist","example":{"errors":[{"description":"Metric not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Metric 404 error","items":{"description":"Single 404 error","properties":{"description":{"enum":["Metric not found"],"example":"Metric not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"MetricNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"ListWorkflowStepTypesResponse":{"description":"Paginated flat catalog of workflow step type options.\n\nDefault `detail=summary` omits full `input_fields`, `dynamic_input_fields`,\n`output_fields`, `sample`, `logo_urls`, and `app_description`, but includes\n`input_field_names` and `has_dynamic_fields`. Full schemas appear only when\ncalling with `detail=full` and `id` or `ids`.\n","example":{"data":[{"description":"Make an HTTP request to an external service","has_dynamic_fields":false,"id":"action:http","input_field_names":["url","method"],"name":"HTTP Request","placement":{"can_be_root":false,"child_roles":["setup","validation","clean_up"],"placement":"action","valid_as_split_branch":false},"source":"built_in","step_template":{"data":{"actionSubtype":"http","subtype":"http"},"metadata":{"action_subtype":"http","subtype":"http"},"name":"HTTP Request","type":"action"},"step_type":"action","subtype":"http"},{"app_action_type":"create","app_id":"d9f13faa-eaaa-49b0-a7e4-a27fd53d1958","app_name":"Slack","app_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","credential_required":true,"description":"Sends a message to a Slack channel.","has_dynamic_fields":true,"id":"app:d9f13faa-eaaa-49b0-a7e4-a27fd53d1958:create:send_message","input_field_names":["channel","text"],"key":"send_message","name":"Send Message","placement":{"can_be_root":false,"child_roles":[],"placement":"action","valid_as_split_branch":false},"source":"app","step_template":{"data":{"app_action_type":"create","app_id":"d9f13faa-eaaa-49b0-a7e4-a27fd53d1958","app_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","credential_id":null,"operation":{"perform":{"action":"send_message","inputs":{}}}},"metadata":{"app_action_type":"create","app_id":"d9f13faa-eaaa-49b0-a7e4-a27fd53d1958","app_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"name":"Send Message","type":"app"},"version":"1.0.2"}],"total":2},"properties":{"data":{"description":"Selectable step type options","items":{"properties":{"access_level":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"app_action_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"app_description":{"description":"Present only when detail=full","nullable":true,"type":"string","x-struct":null,"x-validate":null},"app_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"app_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"app_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"brand_color":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"credential_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"dynamic_input_fields":{"description":"Present only when detail=full","nullable":true,"type":"object","x-struct":null,"x-validate":null},"has_dynamic_fields":{"description":"True when the action has dynamic/search fields that need input-options resolution","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable option id","type":"string","x-struct":null,"x-validate":null},"input_field_names":{"description":"Input field keys (summary and full). Not full schemas.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"input_fields":{"description":"Present only when detail=full","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"key":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"logo_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"logo_urls":{"description":"Present only when detail=full","nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"output_fields":{"description":"Present only when detail=full","items":{"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"placement":{"properties":{"can_be_root":{"type":"boolean","x-struct":null,"x-validate":null},"child_roles":{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"placement":{"enum":["trigger","action","flow_control"],"type":"string","x-struct":null,"x-validate":null},"valid_as_split_branch":{"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"sample":{"description":"Present only when detail=full","nullable":true,"type":"object","x-struct":null,"x-validate":null},"source":{"enum":["app","built_in"],"type":"string","x-struct":null,"x-validate":null},"step_template":{"description":"Create-ready shell for a new draft step","properties":{"child_role":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"data":{"type":"object","x-struct":null,"x-validate":null},"metadata":{"type":"object","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","data","metadata"],"type":"object","x-struct":null,"x-validate":null},"step_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"subtype":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","source","name","placement","step_template"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total options matching filters","type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListWorkflowStepTypesResponse","type":"object","x-struct":null,"x-validate":null},"UpsertCustomObjectRecordsParams":{"description":"Request schema for upserting Custom Object Records.","example":{"custom_object_records":[{"associated_resource_data":[{"key":"phone","value":9564602257}],"associated_resource_type":"contact","external_id":"1543657","properties":{"add_date":"2023-08-23","address_line_1":"608 W La Quinta Dr.","address_line_2":null,"datetime":"2023-12-11 00:00:28","employee_id":1543657,"state":"TX","valid_emp_stat_name":"Long Term Inactive","zip":78577}},{"associated_resource_id":"e1cad7a3-50a1-4695-96d9-80f3aede440b","associated_resource_type":"contact","external_id":"1543660","properties":{"add_date":"2023-08-23","address_line_1":"608 W La Quinta Dr.","address_line_2":"134","datetime":"2023-12-11 00:00:28","employee_id":1543660,"state":"TX","valid_emp_stat_name":"Long Term Inactive","zip":78577}},{"external_id":"1540000","properties":{"add_date":"2023-10-11","address_line_1":"608 W La Quinta Dr.","address_line_2":"134","datetime":"2023-12-11 00:00:28","employee_id":1540000,"state":"TX","valid_emp_stat_name":"Active","zip":78577}}]},"properties":{"custom_object_records":{"description":"The Custom Object Records to upsert","items":{"properties":{"associated_resource_id":{"description":"The ID of the associated resource","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"associated_resource_type":{"description":"The type of the associated resource","enum":["contact","conversation","message","tag","contact_tag","campaign_contact","step_contact"],"example":"contact","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"A unique ID that can be used to identify the Custom Data when doing upserts","example":"12233124","type":"string","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"The Custom Properties of the Custom Data","example":{"address":{"state":"NY","street":"123 Main St"},"city":"New York","notes":["note 1","note 2"],"zip":"12345"},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["custom_object_id"],"title":"UpsertCustomObjectRecordsParams","type":"object","x-struct":null,"x-validate":null},"ToolExecution":{"description":"A recorded agent tool execution.","properties":{"knowledge_bases":{"description":"Knowledge bases this execution queried.","items":{"properties":{"id":{"description":"Knowledge base ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base name.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Queried knowledge base version ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"agent_version_id":{"description":"Agent version ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"When the row was inserted.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"latency_ms":{"description":"Execution latency in milliseconds.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_id":{"description":"Tool ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"call_id":{"description":"Call ID. Same value as message_id.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"LLM ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status_code":{"description":"Upstream HTTP status, when present.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source":{"description":"Where the execution was recorded.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"message_id":{"description":"Call or message ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Execution status.","enum":["pending","success","error"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"When the row was last updated.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tool execution ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_name":{"description":"Agent name at search time.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"provider":{"description":"Voice or chat provider.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"conversation_agent_session_id":{"description":"Chat agent session ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"Whippy channel ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_name":{"description":"Whippy channel name.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_type":{"description":"Tool type.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"additionalProperties":true,"description":"Redacted tool response.","nullable":true,"type":"object","x-struct":null,"x-validate":null},"error_message":{"description":"Redacted error text.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"provider_tool_call_id":{"description":"Provider tool call ID.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"request":{"additionalProperties":true,"description":"Redacted tool request.","type":"object","x-struct":null,"x-validate":null},"tool_name":{"description":"Tool name.","example":"lookup_order","type":"string","x-struct":null,"x-validate":null},"completed_at":{"description":"When the tool call completed.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_type":{"description":"Channel type.","enum":["phone","chat"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"description":"LLM version ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_id":{"description":"Agent ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Execution metadata.","type":"object","x-struct":null,"x-validate":null},"started_at":{"description":"When the tool call started.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"ToolExecution","type":"object","x-struct":null,"x-validate":null},"StartChatAgentAction":{"description":"Start Chat Agent Action params used when processing the action.","example":{"agent_id":"d821eecf-550d-4d27-b35f-815ce1464d65","send_initial_message":true},"properties":{"agent_id":{"description":"ID of the Agent to use for the chat","example":"9c6d0509-e2ed-48f7-a248-8849d739c553","format":"uuid","type":"string","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether to send an initial message to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"title":"StartChatAgentAction","type":"object","x-struct":null,"x-validate":null},"SendMessageAction":{"description":"Send Message Action params used when processing the action.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Automated message, yay!"},"properties":{"attachment_urls":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments with content type","example":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"items":{"description":"Attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Body of a message action","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null}},"title":"SendMessageAction","type":"object","x-struct":null,"x-validate":null},"ShowSegmentResponse":{"description":"Response schema for an individual contact segment.","example":{"data":{"color":"44FFFF","description":"Contact Segment Description","emoji":"😊","filters":{"search":[{"filters":[{"attribute":"source","comparison":"in","type":"list","value":["facebook"]},{"attribute":"tag.id","comparison":"in","type":"list","value":["f32b53d8-2865-4771-8455-7d5e0e2ecae2"]}],"type":"or"}]},"name":"Local Contacts","status":"active"}},"properties":{"data":{"description":"Schema for a contact segment in the organization.","example":{"color":"44FFFF","description":"Contact Segment Description","emoji":"😊","filters":{"search":[{"filters":[{"attribute":"source","comparison":"in","type":"list","value":["facebook"]},{"attribute":"tag.id","comparison":"in","type":"list","value":["f32b53d8-2865-4771-8455-7d5e0e2ecae2"]}],"type":"or"}]},"name":"Local Contacts","status":"active"},"properties":{"color":{"description":"RGB value for the segment color","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description of the segment","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","type":"string","x-struct":null,"x-validate":null},"filters":{"description":"Filter settings for the contact segment. Always have the outer key \"search\".","properties":{"search":{"description":"List of search options for the contact segment. Currently nesting is not supported, but multiple search filters can be used on the same root level.","items":{"description":"One specific contact segment search filter","properties":{"filters":{"description":"List of attributes that map to the search type - either all should correspond to the contact or one of them, depending of the filter type.","items":{"description":"Specific attribute to be used when filterint contacts in the segment","properties":{"attribute":{"description":"Attribute name","enum":["source","tag.id"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"Method of comparison with the attribute. Currently only inclusion in list of values is supported.","enum":["in"],"example":"in","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the attribute value. Currently only list is supported.","enum":["list"],"example":"list","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value of the specific attribute with specific type. E.g. list of sources, list of tags.","example":["888213d9-40f4-46a2-88b0-c1d6c7117d3b","c82661ff-bed0-4362-b68e-ed841bc232f9"],"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the search filter. ","enum":["or","and"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"name":{"description":"Name of the segment","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Status of the segment.\n\nNote: Only 'active' segments are returned.\n","enum":["active","deleted"],"example":"active","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowSegmentResponse","type":"object","x-struct":null,"x-validate":null},"CreateDomainParams":{"description":"Adds a domain the organization already owns. To buy a new domain, use purchase quotes and intents.","example":{"emailProvider":"mailgun","name":"mail.acme.com","purposes":["links","email"]},"properties":{"emailProvider":{"description":"Required when `email` is in `purposes`","enum":["mailgun"],"example":"mailgun","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Apex domain or subdomain","example":"mail.acme.com","type":"string","x-struct":null,"x-validate":null},"purposes":{"example":["links","email"],"items":{"enum":["links","email"],"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["name","purposes"],"title":"CreateDomainParams","type":"object","x-struct":null,"x-validate":null},"PublicAuditLogSearchResponse":{"properties":{"data":{"items":{"description":"An auditable action performed in the organization.","properties":{"action":{"description":"Action that was performed","type":"string","x-struct":null,"x-validate":null},"api_key":{"description":"Organization API key that performed the action. Actor is the organization (user is null).","nullable":true,"properties":{"id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"geolocation":{"additionalProperties":true,"description":"Geolocation metadata associated with the request","nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Audit log ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"oauth_client":{"description":"OAuth application that performed the action, when applicable","nullable":true,"properties":{"id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"organization":{"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"resources":{"description":"Resources associated with this audit log","items":{"properties":{"resource_id":{"type":"string","x-struct":null,"x-validate":null},"resource_type":{"type":"string","x-struct":null,"x-validate":null}},"required":["resource_type","resource_id"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"description":"Origin of the action: dashboard UI, OAuth public API, or org API key (org is the actor)","enum":["dashboard","oauth","api_key"],"type":"string","x-struct":null,"x-validate":null},"timestamp":{"description":"When the action occurred","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user":{"nullable":true,"properties":{"email":{"format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"type":"integer","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user who performed the action","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["id","action","organization_id","timestamp","resources"],"title":"PublicAuditLog","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"PublicAuditLogSearchResponse","type":"object","x-struct":null,"x-validate":null},"OptOutAction":{"description":"Opt Out Action params used when processing the action.","example":{"location_ids":["6359e513-5c66-48c9-8f10-5f8132fef8cd"]},"properties":{"location_ids":{"description":"List of channels/locations to opt the contact out of. Can be empty to use the current conversation that triggered the action.","items":{"description":"Channel/Location ID","example":"1ddf891c-ff66-4af4-8290-8a6322c5cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"OptOutAction","type":"object","x-struct":null,"x-validate":null},"BadRequest":{"description":"Bad request error response","example":{"errors":[{"description":"events must be an array"}]},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"description":"Error description","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"title":"BadRequest","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Errors.BadRequest","x-validate":null},"PublishAgentTestParams":{"description":"Publishes the current draft as the next immutable version when it is executable and different\nfrom the current publication. Rollback uses the same body to copy a published version into the draft.\n","example":{"change_notes":"Ready for the suite.","revision":1},"properties":{"change_notes":{"maxLength":2000,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Current draft revision.","minimum":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["revision"],"title":"PublishAgentTestParams","type":"object","x-struct":null,"x-validate":null},"LinkInsufficientScopeErrorResponse":{"description":"Valid OAuth token missing the required `link_settings:*` scope.\nThis is the existing Public.Authorizer envelope (unchanged).\n","example":{"error":"Token does not have the required scope for this action."},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"error":{"example":"Token does not have the required scope for this action.","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"title":"LinkInsufficientScopeErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.Errors.InsufficientScope","x-validate":null},"UpdateTagContactsParams":{"description":"Update Tag Contacts Params","properties":{"action":{"description":"The action to be applied over the contacts param. Can be one of \"add\", \"remove\" or \"overwrite\".","enum":["add","remove","overwrite"],"type":"string","x-struct":null,"x-validate":null},"contacts":{"description":"List of contacts that will be processed according to the action.","items":{"description":"Data for a contact that will be processed.","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"required":["phone"],"type":"object","x-struct":null,"x-validate":null},"maxItems":4000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"opt_in_to":{"description":"Setting to opt in contacts from contacts param to specific channels","items":{"description":"Channel","properties":{"id":{"description":"Channel ID","example":"1130fd61-bf85-461f-8330-52f7cb665cdf","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"opt_in_to_all_channels":{"default":true,"description":"Setting to opt in contacts from contacts param to all organization channels","type":"boolean","x-struct":null,"x-validate":null}},"required":["action","contacts"],"title":"UpdateTagContactsParams","type":"object","x-struct":null,"x-validate":null},"UpdateConversationParams":{"description":"Request schema for updating a conversation in an organization.","example":{"assigned_user":80,"status":"open","unread_count":1},"properties":{"assigned_user":{"description":"Assigned user ID","type":"integer","x-struct":null,"x-validate":null},"status":{"description":"Conversation status","enum":["open","closed","spam"],"type":"string","x-struct":null,"x-validate":null},"unread_count":{"description":"Conversation unread count","enum":[0,1],"type":"integer","x-struct":null,"x-validate":null}},"title":"UpdateConversationParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Conversations.Conversation.UpdateParams","x-validate":null},"CampaignDraftExcludedAudience":{"description":"Whippy Query filter items for the contacts to exclude. Channel default exclusions are applied in addition to this list.","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignDraftExcludedAudience","type":"array","x-struct":null,"x-validate":null},"SendCampaignUpdateParams":{"description":"Request schema for updating an SMS campaign at `PUT /v1/campaigns/sms/:id`.\n\nThe campaign type is set to `sms`. A campaign that is not already SMS must include `from`.\nEmail, WhatsApp, and fax campaigns are updated at `PUT /v1/campaigns/email/:id`,\n`PUT /v1/campaigns/whatsapp/:id`, and `PUT /v1/campaigns/fax/:id`.\n\nA `scheduled` campaign accepts `title`, `schedule_at`, `status`, and `automation_templates`.\nA `draft`, `recurring`, or `recurring_paused` campaign also accepts `body`, `attachments`,\n`from`, the audience filters, and `recurring_settings`.\n\n`recurring_settings` is merged with the stored schedule. Omit a field to keep it.\nSend `end_date` as null to clear it. A caller-supplied `parent_campaign_id` is ignored.\nChanging the schedule or message does not move an occurrence that is already scheduled.\nLater occurrences use the updated series.\n\n`draft` to `recurring` starts the series. `recurring` to `recurring_paused`, `recurring_cancelled`,\nor `draft` stops it. `recurring_paused` to `recurring` restarts it.\n","example":{"schedule_at":"2026-11-26T16:37:59.792861Z","title":"Space Campaign"},"properties":{"attachments":{"description":"List of attachment URLs. Accepted for a draft or recurring campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of IDs of automation templates to add to the campaign. Templates already on the campaign are kept; nothing is replaced or removed.\nTemplates of type `\"duplicate\"` will have their triggers, actions, and keywords duplicated for the campaign.\nTemplates of type `\"as-is\"` would be associated with the campaign and their triggers, actions, and keywords will be reused.\n","items":{"description":"Automation Template ID","example":"ae736d99-425b-4bcb-88c1-2d5c51eea366","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Limited to 1000 characters.","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Each item is a column comparison or a\n`logical_group`. Accepted for a draft or recurring campaign.\n","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignUpdateExcludedAudience","type":"array","x-struct":null,"x-validate":null},"from":{"description":"Phone number of the phone channel. Accepted for a draft or recurring campaign. Required when\nthis request changes the campaign to SMS.\n","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Each item is a column comparison or a\n`logical_group`. Accepted for a draft or recurring campaign.\n","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignUpdateIncludedAudience","type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the campaign. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"`draft` or `scheduled` for a one-time campaign. `recurring` starts or restarts a series.\n`recurring_paused` or `recurring_cancelled` stops one.\n","enum":["draft","scheduled","recurring","recurring_paused","recurring_cancelled"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null}},"title":"SendCampaignUpdateParams","type":"object","x-struct":null,"x-validate":null},"CustomObjectUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Custom Object creation requests.\n","example":{"errors":[{"description":"Custom Object with that 'key' already exists"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Custom Object with that 'key' already exists","Key should be snake case","Key can't be blank","Label can't be blank","Custom Properties' Key can't be blank","Custom Properties' Key should be snake case","Custom Properties' Label can't be blank","Custom Properties' Type can't be blank","Custom Properties' Default should be of type text","Custom Properties' Keys must be unique","Custom Properties' Type should be one of: text, number, float, boolean, date, list, map","Custom Properties' Default can't be blank when the property is required"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomDataType.Errors.UnprocessableContent","x-validate":null},"BulkCreateCustomEventParams":{"description":"Request schema for creating multiple custom events in an organization.","example":{"events":[{"associated_resources":[{"id":"a4621951-0f3b-4222-b44e-ce4e471bfd2d","resource":"contact"}],"event":"order.placed","external_id":"1234567890","payload":{"amount":2,"currency":"USD","price":100.0,"user_id":"123"},"timestamp":"2025-06-15T10:30:00Z"},{"event":"order.shipped","external_id":"1234567891","payload":{"carrier":"FedEx","tracking_number":"ABC123"},"timestamp":"2025-06-16T14:20:00Z"}]},"properties":{"events":{"description":"Array of custom events to create","items":{"$ref":"#/components/schemas/CreateCustomEventParams"},"maxItems":1000,"type":"array","x-struct":null,"x-validate":null}},"required":["events"],"title":"BulkCreateCustomEventParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomEvents.CustomEvent.BulkCreateParams","x-validate":null},"ConversationMessage":{"description":"Single message data","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Give yourself a little present today!","campaign_id":"c4f6c74d-487f-4d0a-9300-e3f18fb7d1fa","channel_id":"5917d0f0-47eb-4809-8926-c4947aeb13ae","contact_id":"48505eda-90ed-4409-83b4-72e3404e8fee","created_at":"2021-06-22T07:45:45","delivery_status":"delivered","direction":"OUTBOUND","error":null,"error_code":null,"error_message":null,"from":"+14243051234","id":"10c052db-9ed0-4b8c-b063-d823bc67799b","language":"en","sequence_id":"2072b5a2-f42e-4bd5-a7de-49fee38f3090","step_contact_id":null,"step_id":"e7b916e7-42ec-4c3e-8b7d-9cf0984cd258","to":"+14243055678","translated_body":"¡Date un pequeño regalo hoy!","translation_language":"es","type":"mms","updated_at":"2021-06-22T07:45:45","user_id":1},"properties":{"attachments":{"description":"List of attachments belonging to the message","items":{"description":"Single message attachment","properties":{"content_type":{"description":"MIME type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the attachment","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Original message body","type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"ID of the campaign the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the message is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Direction of the message","enum":["INBOUND","OUTBOUND","NOTE"],"type":"string","x-struct":null,"x-validate":null},"email_html_body":{"description":"Email html body","type":"string","x-struct":null,"x-validate":null},"email_metadata":{"description":"Full email metadata","properties":{"bcc":{"description":"Email BCC recipients","items":{"description":"Email BCC recipient","example":"diamond.dog@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"cc":{"description":"Email CC recipients","items":{"description":"Email CC recipient","example":"major.tom@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reply_to":{"description":"Email reply to","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Email recipients","items":{"description":"Email recipient","example":"ziggy.stardust@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"email_subject":{"description":"Email subject","type":"string","x-struct":null,"x-validate":null},"error":{"description":"Machine-readable delivery error identifier, when the message failed","example":"unreachable_destination_handset","nullable":true,"type":"string","x-struct":null,"x-validate":null},"error_code":{"description":"Delivery error code reported by the message provider, when available","example":"30003","nullable":true,"type":"string","x-struct":null,"x-validate":null},"error_message":{"description":"Human-readable delivery error description, when available","example":"Destination handset is switched off or unavailable","nullable":true,"type":"string","x-struct":null,"x-validate":null},"from":{"description":"Address that sent the message - a phone number, or an email address on email channels. For notes, the address of the channel the note was added on.","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"ISO-639-1 code for the original language of the message","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"ID of the sequence the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_contact_id":{"description":"ID of the StepContact the message belongs to (would be nil for outbound messages)","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the sequence step the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Address that received the message - a phone number, or an email address on email channels. For notes, the address of the contact the note relates to.","example":"+14243056789","nullable":true,"type":"string","x-struct":null,"x-validate":null},"translated_body":{"description":"Translated message body","type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"ISO-639-1 code for the language the message was translated into","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the message","enum":["sms","mms","call","whatsapp","messenger","instagram","email","note","fax"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the message was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user who sent the message","type":"integer","x-struct":null,"x-validate":null}},"title":"ConversationMessage","type":"object","x-struct":null,"x-validate":null},"CustomPropertyNotFoundErrorResponse":{"description":"Custom Property Not Found Error Response schema","example":{"errors":[{"description":"Custom Property not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Property 404 error","items":{"properties":{"description":{"enum":["CustomProperty not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomPropertyNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.Property.Errors.NotFound","x-validate":null},"AgentTestFixProposalResponse":{"properties":{"data":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposalResponse","type":"object","x-struct":null,"x-validate":null},"SequenceNotFoundErrorResponse":{"description":"Sequence Not Found Error Response schema","example":{"errors":[{"description":"Sequence not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Sequences 404 error","items":{"properties":{"description":{"enum":["Sequence not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"SequenceNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.Sequence.Errors.NotFound","x-validate":null},"TagsContactsUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Tag contacts PUT requests.\n","example":{"errors":[{"description":"Invalid Action"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tag 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid Action","Missing Action","Invalid Contacts","Missing Contacts","Invalid Tag ID","Invalid Opt In To channels provided","Missing Opt In To channels","The length of the Contacts field should be at least 1","The length of the Contacts field should not be more than 4000","The length of the Opt In To field should not be more than 1000","The Tag must exist and be active","Bulk action already in progress","Convert the system Tag before trying to update its contacts"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"TagsContactsUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.Errors.UpdateContactsUnprocessableContent","x-validate":null},"SearchAgentVersionSnapshotsParams":{"description":"Request schema for searching agent version snapshots.","properties":{"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},"title":"SearchAgentVersionSnapshotsParams","type":"object","x-struct":null,"x-validate":null},"LinkNotFoundErrorResponse":{"description":"Link not found","example":{"errors":[{"description":"Link not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"enum":["Link not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"LinkNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.Errors.NotFound","x-validate":null},"ShowAgentVoicesResponse":{"example":{"data":[{"accent":"American","age":"Young","gender":"male","name":"Adrian","voice_id":"cartesia-Adrian"}]},"properties":{"data":{"items":{"properties":{"accent":{"type":"string","x-struct":null,"x-validate":null},"age":{"type":"string","x-struct":null,"x-validate":null},"gender":{"type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"voice_id":{"type":"string","x-struct":null,"x-validate":null}},"required":["voice_id","name"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"ShowAgentVoicesResponse","type":"object","x-struct":null,"x-validate":null},"Timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"ConversationNotFoundErrorResponse":{"description":"Conversation Not Found Error Response schema","example":{"errors":[{"description":"Conversation not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Conversation 404 error","items":{"properties":{"description":{"enum":["Conversation not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"ConversationNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Conversations.Conversation.Errors.NotFound","x-validate":null},"CalendarToolSettings":{"additionalProperties":false,"example":{"cal_api_key":"cal_live_example","event_type_id":60444,"timezone":"America/Los_Angeles"},"properties":{"cal_api_key":{"description":"Cal.com API key","type":"string","x-struct":null,"x-validate":null},"event_type_id":{"description":"Cal.com event type ID","type":"number","x-struct":null,"x-validate":null},"timezone":{"description":"Calendar timezone","type":"string","x-struct":null,"x-validate":null}},"required":["cal_api_key","event_type_id"],"title":"CalendarToolSettings","type":"object","x-struct":null,"x-validate":null},"SendSMSResponse":{"description":"Response schema for sending SMS messages.","example":{"data":{"contact_id":"5685886e-900e-45cf-93dc-234346e6dfe9","conversation_id":"038f50a0-b097-4ed0-b941-951b1dd713b2","delivery_status":"queued","id":"a8465bc4-a6e6-41c4-82d2-9540c95d7169"}},"properties":{"data":{"description":"Response for a newly created message.","properties":{"contact_id":{"description":"ID of the receiving contact","example":"fad18304-d8da-4e88-a61a-94391fd2f203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"ID of the conversation the message belongs to","example":"feec468a-edfd-45e4-8a53-f4c472a1e3b3","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Initial delivery status of the message","enum":["queued"],"example":"queued","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"SendSMSResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Message.ShowResponse","x-validate":null},"FormFieldTypesResponse":{"description":"Authoritative element-type catalog enforced by form validation.","example":{"data":{"address_fields_shape":{"each":{"required":"boolean?","visible":"boolean?"},"keys":["addressLine1","addressLine2","city","state","zipCode","country"],"notes":"Builder Address fields. Absent map = all visible; addressLine1/city/country required when the question is required. At least one part must stay visible."},"availability_shape":{"allowed_time_ranges":"list of {id, start HH:MM, end HH:MM} (time elements)","blocked_dates":"list of YYYY-MM-DD","blocked_time_ranges":"list of {id, start, end} (time elements)","blocked_weekdays":"list of 0–6 (0=Sun)","max_date":"same shape as min_date","min_date":{"date":"YYYY-MM-DD when type=fixed","offset":"integer when type=relative","type":"fixed|relative","unit":"days|business_days"},"notes":"Builder Availability panel for date / date-range / time. Prefer over legacy minDate/maxDate.","time_step_minutes":"1|5|10|15|30|60 (time elements)"},"chat_settings":{"allowed_keys":["bot_name","bot_avatar_url","message_delay_ms","show_typing_indicator","use_theme_colors","accent_color","bot_bubble_color","user_bubble_color","user_bubble_text_color"],"notes":"Only these keys are accepted under settings.chat. typing_indicator → show_typing_indicator; show_avatar is not a field (use bot_avatar_url string); welcome_message is not supported."},"element_shape":{"properties":"Every element must include properties as a map. Omit or null is normalized to {}. Non-maps are rejected. Select/radio/multi-select require properties.options as a non-empty list of {id, value} maps.","required":["id","type"]},"field_types":[{"answerable":true,"category":"input","required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains"],"type":"input"},{"answerable":true,"category":"input","required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains"],"type":"email"},{"answerable":true,"category":"input","property_shape":{"countryCode":"string?","defaultCountry":"string? (ISO country, e.g. US)","placeholder":"string?"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains"],"type":"phone"},{"answerable":true,"category":"input","property_shape":{"placeholder":"string?","prefix":"string?","validateOnBlur":"boolean?"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains"],"type":"url"},{"answerable":true,"category":"input","property_shape":{"max":"number?","min":"number?","placeholder":"string?","prefix":"string?","step":"number?","suffix":"string?"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","greater_than","less_than"],"type":"number"},{"answerable":true,"category":"input","property_shape":{"address_fields":{"each":{"required":"boolean?","visible":"boolean?"},"keys":["addressLine1","addressLine2","city","state","zipCode","country"],"notes":"Builder Address fields. Absent map = all visible; addressLine1/city/country required when the question is required. At least one part must stay visible."},"googlePlacesApiKey":"string?"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered"],"type":"address"},{"answerable":true,"category":"input","required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains"],"type":"text-area"},{"answerable":true,"category":"selection","grading_shape":{"correct_answers":"non-empty list of option value strings","correct_feedback":"string?","incorrect_feedback":"string?","notes":"Only on radio-buttons / select / multi-select. Ignored unless settings.quiz.is_quiz. correct_answers must match option values. Public payloads redact grading.","partial_credit":"boolean? (multi-select only)","point_value":"non-negative integer","required":["point_value","correct_answers"]},"option_shape":{"id":"string","label":"string?","value":"string"},"required_properties":["options"],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains","is_one_of"],"type":"select"},{"answerable":true,"category":"selection","grading_shape":{"correct_answers":"non-empty list of option value strings","correct_feedback":"string?","incorrect_feedback":"string?","notes":"Only on radio-buttons / select / multi-select. Ignored unless settings.quiz.is_quiz. correct_answers must match option values. Public payloads redact grading.","partial_credit":"boolean? (multi-select only)","point_value":"non-negative integer","required":["point_value","correct_answers"]},"option_shape":{"id":"string","label":"string?","value":"string"},"required_properties":["options"],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains","is_one_of"],"type":"multi-select"},{"answerable":true,"category":"selection","required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","is_one_of"],"type":"check-box"},{"answerable":true,"category":"selection","grading_shape":{"correct_answers":"non-empty list of option value strings","correct_feedback":"string?","incorrect_feedback":"string?","notes":"Only on radio-buttons / select / multi-select. Ignored unless settings.quiz.is_quiz. correct_answers must match option values. Public payloads redact grading.","partial_credit":"boolean? (multi-select only)","point_value":"non-negative integer","required":["point_value","correct_answers"]},"option_shape":{"id":"string","label":"string?","value":"string"},"required_properties":["options"],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","contains","not_contains","is_one_of"],"type":"radio-buttons"},{"answerable":true,"category":"scale","property_shape":{"end_label":"string (right)","middle_label":"string?","required":["scale_size","start_label","end_label"],"scale_size":"integer 3–10","start_label":"string (left)"},"required_properties":["scale_size","start_label","end_label"],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","greater_than","less_than"],"type":"linear-scale"},{"answerable":true,"category":"scale","property_shape":{"defaultValue":"number?","max":"number?","min":"number?","step":"number?"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","greater_than","less_than"],"type":"slider"},{"answerable":true,"category":"scale","notes":"Star scale. Optional properties.max (default 5). Prefer star-rating for new forms.","property_shape":{"allowHalf":"boolean?","defaultValue":"number?","max":"integer? (star count; default 5)","stars":"integer? (accepted alias)"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","greater_than","less_than"],"type":"rating"},{"answerable":true,"category":"scale","notes":"Star scale. Optional properties.stars (default 5), allowHalf, defaultValue.","property_shape":{"allowHalf":"boolean?","defaultValue":"number?","max":"integer? (accepted alias)","stars":"integer? (default 5)"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","greater_than","less_than"],"type":"star-rating"},{"answerable":true,"category":"datetime","property_shape":{"availability":{"allowed_time_ranges":"list of {id, start HH:MM, end HH:MM} (time elements)","blocked_dates":"list of YYYY-MM-DD","blocked_time_ranges":"list of {id, start, end} (time elements)","blocked_weekdays":"list of 0–6 (0=Sun)","max_date":"same shape as min_date","min_date":{"date":"YYYY-MM-DD when type=fixed","offset":"integer when type=relative","type":"fixed|relative","unit":"days|business_days"},"notes":"Builder Availability panel for date / date-range / time. Prefer over legacy minDate/maxDate.","time_step_minutes":"1|5|10|15|30|60 (time elements)"},"maxDate":"legacy YYYY-MM-DD — prefer availability.max_date","minDate":"legacy YYYY-MM-DD — prefer availability.min_date"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","greater_than","less_than"],"type":"date"},{"answerable":true,"category":"datetime","property_shape":{"availability":{"allowed_time_ranges":"list of {id, start HH:MM, end HH:MM} (time elements)","blocked_dates":"list of YYYY-MM-DD","blocked_time_ranges":"list of {id, start, end} (time elements)","blocked_weekdays":"list of 0–6 (0=Sun)","max_date":"same shape as min_date","min_date":{"date":"YYYY-MM-DD when type=fixed","offset":"integer when type=relative","type":"fixed|relative","unit":"days|business_days"},"notes":"Builder Availability panel for date / date-range / time. Prefer over legacy minDate/maxDate.","time_step_minutes":"1|5|10|15|30|60 (time elements)"},"dateFormat":"string? (e.g. MM/DD/YYYY)","maxDate":"legacy YYYY-MM-DD — prefer availability.max_date","minDate":"legacy YYYY-MM-DD — prefer availability.min_date"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered"],"type":"date-range"},{"answerable":true,"category":"datetime","property_shape":{"availability":{"allowed_time_ranges":"list of {id, start HH:MM, end HH:MM} (time elements)","blocked_dates":"list of YYYY-MM-DD","blocked_time_ranges":"list of {id, start, end} (time elements)","blocked_weekdays":"list of 0–6 (0=Sun)","max_date":"same shape as min_date","min_date":{"date":"YYYY-MM-DD when type=fixed","offset":"integer when type=relative","type":"fixed|relative","unit":"days|business_days"},"notes":"Builder Availability panel for date / date-range / time. Prefer over legacy minDate/maxDate.","time_step_minutes":"1|5|10|15|30|60 (time elements)"},"maxDate":"legacy YYYY-MM-DD — prefer availability.max_date","minDate":"legacy YYYY-MM-DD — prefer availability.min_date"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered","greater_than","less_than"],"type":"time"},{"answerable":true,"category":"special","property_shape":{"allowedFileTypes":"list of MIME/extension strings (e.g. image/*, application/pdf)","maxFileSize":"number (MB in builder; default 5)","multiple":"boolean?"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered"],"type":"file-upload"},{"answerable":true,"category":"special","required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered"],"type":"signature"},{"answerable":true,"category":"special","property_shape":{"captchaSiteKey":"string?"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered"],"type":"captcha"},{"answerable":true,"category":"special","property_shape":{"externalLink":"string? (optional URL)","fullTermsText":"string? (popup body)","termsText":"string (checkbox label)"},"required_properties":[],"supported_operators":["always","equals","not_equals","is_answered","is_not_answered"],"type":"terms"},{"answerable":false,"answerable_when":{"property":"display.mode","values":["select_one","select_many"]},"category":"special","notes":"Server-side API Request (builder: API Request). properties.url is required. Mirrors the builder panel groups: request (method/url/query/headers/body/connection/timeout), response (format/items_path/max_items/response_mapping), display (mode/item_template/value_fields), failure (on_error/ending_id/empty_state_text). For display.mode select_one/select_many, display.value_fields and items_path are required. For display mode, items_path and display.item_template.title are required. Public GET strips request config — only display/empty_state_text/on_error/max_items/has_connection/depends_on remain.","property_shape":{"body_template":{"notes":"POST/PUT/PATCH body template. Requires a Content-Type header when set.","type":"string|null"},"connection_id":{"notes":"Org form_connection id. Server places the secret; templates must not name it.","type":"uuid|null"},"display":{"item_template":{"allowed_keys":["title","subtitle","body","link_url","link_label","image_url"],"notes":"Card fields use {{item.*}} tokens from the mapped item.","required_when_shown":["title"]},"mode":{"default":"silent","enum":["silent","display","select_one","select_many"]},"value_fields":{"max":12,"notes":"Whitelist of item keys persisted on select answers.","required_for":["select_one","select_many"],"type":"list<string>"}},"empty_state_text":{"type":"string"},"ending_id":{"notes":"Used when on_error=end_form; must match an ending id on the version.","type":"string|null"},"headers":{"notes":"Request headers; values may use {{answers.*}}","type":"map<string,string>"},"items_path":{"notes":"JSONPath to the items list. Required for display/select_one/select_many.","type":"string"},"max_items":{"default":25,"max":100,"type":"integer"},"method":{"default":"GET","enum":["GET","POST","PUT","PATCH","DELETE"],"type":"string"},"on_error":{"default":"continue","enum":["continue","block","end_form"]},"query":{"notes":"Query params; values may use {{answers.*}}","type":"map<string,string>"},"required":["url"],"response_format":{"default":"auto","enum":["auto","json","xml"],"type":"string"},"response_mapping":{"max":25,"notes":"Maps response paths into {{steps.<id>.<variable>}}. variable is [A-Za-z_][A-Za-z0-9_]*.","type":"list<{variable,path}>"},"timeout_ms":{"default":5000,"max":15000,"min":100,"type":"integer"},"url":{"notes":"HTTPS URL. Host/authority must be literal (no {{…}} in scheme/host/port). Path/query may use {{answers.*}}. {{connections.*}} is rejected.","type":"string"}},"required_properties":["url"],"supported_operators":["always"],"supported_operators_by_display_mode":{"display":["always"],"select_many":["always","is_answered","is_not_answered"],"select_one":["always","is_answered","is_not_answered"],"silent":["always"]},"type":"http-request"},{"answerable":false,"category":"display","property_shape":{"content":"string?","content_align":"left|center|right"},"required_properties":[],"supported_operators":["always"],"type":"heading-1"},{"answerable":false,"category":"display","property_shape":{"content":"string?","content_align":"left|center|right"},"required_properties":[],"supported_operators":["always"],"type":"heading-2"},{"answerable":false,"category":"display","property_shape":{"content":"string?","content_align":"left|center|right"},"required_properties":[],"supported_operators":["always"],"type":"heading-3"},{"answerable":false,"category":"display","property_shape":{"content":"string?","content_align":"left|center|right"},"required_properties":[],"supported_operators":["always"],"type":"text"},{"answerable":false,"category":"display","required_properties":[],"supported_operators":["always"],"type":"divider"},{"answerable":false,"category":"display","property_shape":{"imageSource":"url|upload","imageUrl":"string (public URL; uploads still store a URL)"},"required_properties":[],"supported_operators":["always"],"type":"image"},{"answerable":false,"category":"display","property_shape":{"videoSource":"youtube|vimeo|loom","videoUrl":"string (full watch/share URL)"},"required_properties":[],"supported_operators":["always"],"type":"video"}],"form_styles":["default","step_by_step","chat"],"grading_shape":{"correct_answers":"non-empty list of option value strings","correct_feedback":"string?","incorrect_feedback":"string?","notes":"Only on radio-buttons / select / multi-select. Ignored unless settings.quiz.is_quiz. correct_answers must match option values. Public payloads redact grading.","partial_credit":"boolean? (multi-select only)","point_value":"non-negative integer","required":["point_value","correct_answers"]},"logic":{"action_types":["jump_to","show","hide","set_variable","end_form"],"combinators":["and","or"]},"logic_rule_shape":{"example":{"actions":[{"target":"fetch-animation","type":"jump_to"}],"conditions":{"clauses":[{"field":"interest","operator":"equals","value":"Animation"},{"field":"name","operator":"is_answered"}],"combinator":"and"},"id":"rule-1","trigger_element_id":"interest"},"notes":"Branch on the last input and prior answers: trigger_element_id is when the rule evaluates; clause field may reference earlier element ids (equals, not_equals, is_answered, is_one_of, …). Actions: jump_to, end_form, set_variable, show, hide. Do not use element_id (use trigger_element_id / field). Do not use action_type (use type). conditions is a map, not a list. Piping prior answers into labels uses {{answers.<element_id>}} via list_organization_variables?form_id= — separate from logic.","required":["id","trigger_element_id","conditions","actions"]},"quiz_settings":{"allowed_keys":["is_quiz","show_score_to_respondent","show_feedback_to_respondent","shuffle_options","shuffle_questions"],"notes":"settings.quiz.is_quiz enables grading. show_score_to_respondent / show_feedback_to_respondent control public submit payload. Correct answers live on choice elements at properties.grading (see grading_shape) — not on settings.quiz."}}},"properties":{"data":{"properties":{"field_types":{"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"form_styles":{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"logic":{"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"FormFieldTypesResponse","type":"object","x-struct":null,"x-validate":null},"MetricInternalServerErrorResponse":{"description":"Response that occurs when the metric couldn't be processed","example":{"errors":[{"description":"Metric couldn't be processed"}],"status":500},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Metric 500 error","items":{"description":"Single 500 error","properties":{"description":{"enum":["Metric couldn't be processed"],"example":"Metric couldn't be processed","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[500],"example":500,"type":"integer","x-struct":null,"x-validate":null}},"title":"MetricInternalServerErrorResponse","type":"object","x-struct":null,"x-validate":null},"CreateContactListParams":{"description":"Create Contact List Params","example":{"color":"#ffeb3b","contacts":[{"address":{"address_line_one":null,"address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"birth_date":{"day":1,"month":1,"year":1980},"default_channel_id":"b9416fea-0676-402d-a112-c45a8e194203","language":"en","name":"New Name","phone":"+14258658940","properties":{"employee_id":"9876"}},{"email":"LETICIA@GMAIL.COM","name":"Leticia","phone":"818-705-2979"},{"email":"anan@example.com","name":"Anan Albarak","phone":"818-705-2977"},{"default_channel_id":"b9416fea-0676-402d-a112-c45a8e194203","name":"Taracy & Lee Allen","phone":"310-871-5565"},{"address":{"address_line_one":null,"address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"name":"Arleen","phone":"818-981-0606"},{"birth_date":{"day":1,"month":1,"year":1980},"name":"Zina Asheriyan","phone":"310-892-3339"},{"external_id":"4321","name":"Shamsi Asheriyan","phone":"818-708-3971"},{"external_id":"1234","name":"Fariba rad Asheriyan","phone":"818-469-3882","properties":{"employee_id":"1234"}}],"name":"New Contact List","opt_in_to":[{"id":"e26b39f1-6993-4d20-a986-0b811dc6641d"},{"id":"70ed1f1f-ce3f-4d23-b7f4-b928d2e5c5f3"},{"phone":"+14243183023"}],"opt_in_to_all_channels":false},"properties":{"color":{"description":"Hex color code for the contact list tag","type":"string","x-struct":null,"x-validate":null},"contacts":{"description":"List of contacts that would comprise the contact list","items":{"description":"Data for a contact included in the contact list.","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"required":["phone"],"type":"object","x-struct":null,"x-validate":null},"maxItems":4000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Contact list name. It is important to notice that any extra spaces are removed from it, e.g. \" List   name  \" -> \"List name\".","type":"string","x-struct":null,"x-validate":null},"opt_in_to":{"description":"Setting to opt in contact to specific channels","items":{"description":"Channel","properties":{"id":{"description":"Channel ID","example":"8cd25a2c-d592-4cf8-9d28-c55b3d01a3e3","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"opt_in_to_all_channels":{"description":"Setting to opt in contact from the contact list to all organization channels","type":"boolean","x-struct":null,"x-validate":null}},"title":"CreateContactListParams","type":"object","x-struct":null,"x-validate":null},"Parameters-With-Specific-Channels":{"description":"Communication preferences opt in params.","example":{"channels":[{"id":"c1597038-5aa1-4f33-aa9b-541461d98b8c"},{"id":"1ec5baa6-92d1-47bf-9aca-d06e3e25a11a","phone":"+14244193121"},{"phone":"+14244193122"}],"contacts":[{"email":"johndoe@example.com","name":"John"},{"email":"janedoe@example.com","name":"Jane","phone":"+14243183020"}]},"properties":{"channels":{"description":"List of channels that contacts be opted in to.","items":{"description":"Data for a channel to opt contacts in to.","properties":{"id":{"description":"Channel ID","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"contacts":{"description":"List of contacts that would be opted in.","items":{"description":"Data for a contact that would be opted in.\n\nProvide `phone` when opting in to SMS or WhatsApp channels, and `email`\nwhen opting in to email channels. When opting in to multiple channels,\nprovide `phone`, `email`, or both.\n","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["contacts","channels"],"title":"Parameters-With-Specific-Channels","type":"object","x-struct":null,"x-validate":null},"CreateSequenceContactsResponse":{"description":"Response schema for creating sequence contacts.","example":{"data":{"message":"Sequence contacts are being processed"}},"properties":{"data":{"description":"Sequence contact","properties":{"message":{"description":"Message of confirmation that sequence is being processed","example":"Sequence contacts are being processed","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateSequenceContactsResponse","type":"object","x-struct":null,"x-validate":null},"TeamMemberNotFoundErrorResponse":{"description":"Team Member Not Found Error Response schema","example":{"errors":[{"description":"Team Member not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Team Member 404 error","items":{"properties":{"description":{"enum":["Team Member not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamMemberNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.TeamMember.Errors.NotFound","x-validate":null},"AgentTestRateLimitError":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null},"SingleStepContactResponse":{"description":"Response schema for a single step contact","example":{"data":{"added_by_id":null,"channel_id":"70c9cc95-e78b-4acf-9079-b0531c1eeff3","clicked_link":false,"contact":{"email":"maya1921@friesen.biz","external_id":null,"id":"5aa42b1c-d68a-4312-8856-4c98a7873a4d","name":"Germaine Adams","phone":"+18679599996"},"contact_messages":[],"created_at":"2023-04-01T12:25:12","id":"344607fc-beed-4b8f-a40f-c76f6f811cbe","run_created_at":null,"run_updated_at":null,"scheduled_at":null,"sequence_id":"e4a747a3-a290-48da-b671-d3cd591f920b","sequence_run_id":"cd5f05d7-5ac9-456f-bc3f-281a5072fb20","status":"active","step_id":"5137e2c4-fe04-4c55-8810-943b33fd0f72","unsubscribed":false,"updated_at":"2023-04-01T12:25:12","voice_options":{}}},"properties":{"data":{"$ref":"#/components/schemas/StepContact"}},"title":"SingleStepContactResponse","type":"object","x-struct":null,"x-validate":null},"CreateCustomObjectResponse":{"description":"Response schema for creating Custom Objects.","example":{"data":{"ai_context":"This object tracks customer contact details for sales outreach","color":"#ffeb3b","created_at":"2023-07-27T14:49:06","created_by":{"attachment":{"content_type":"image/jpeg","url":"https://demo.twilio.com/owl.png"},"default_signature_id":null,"email":"example@whippy.co","id":"28487616-380a-4807-a419-65ab74491de1","name":null},"custom_properties":[{"created_at":"2023-07-27T14:49:06","created_by_id":42,"custom_object_id":"e1cad7a3-50a1-4695-96d9-80f3aede440b","default":null,"id":"37145b8a-051a-4ecb-9970-19690f6767a5","key":"city","label":"City","required":false,"type":"text","updated_at":"2023-07-27T14:49:06"}],"description":"description","emoji":"✨","id":"e1cad7a3-50a1-4695-96d9-80f3aede440b","integration_client":null,"integration_id":null,"key":"contact_details","label":"Contact Details","updated_at":"2023-07-27T14:49:06","updated_by":{"attachment":{"content_type":"image/jpeg","url":"https://demo.twilio.com/owl.png"},"default_signature_id":null,"email":"example@whippy.co","id":"28487616-380a-4807-a419-65ab74491de1","name":null},"whippy_associations":[{"source_property_key":"candidate_id","target_property_key":"external_id","target_property_key_prefix":"cont-","target_whippy_resource":"contact","type":"one_to_one"}]}},"properties":{"data":{"properties":{"ai_context":{"description":"Additional context information for AI features","example":"This object tracks customer contact details for sales outreach","type":"string","x-struct":null,"x-validate":null},"associations":{"items":{"properties":{"id":{"description":"The ID of the Association","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Optional relationship name that makes this association individually addressable when a type has multiple associations to the same target type.","example":"approving_client","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"The key of the Custom Property in the source Custom Object","example":"city","type":"string","x-struct":null,"x-validate":null},"target_data_type_id":{"description":"The ID of the Custom Object that contains the referenced Custom Property","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"The key of the Custom Property in the target Custom Object","example":"shop","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the Association","enum":["many_to_one","many_to_many","one_to_one","one_to_many"],"example":"one_to_many","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"The color of the Custom Object","example":"#000000","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"The date and time the Custom Object was inserted","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Created by user","example":{"attachment":{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/user.jpg"},"email":"example@whippy.co","id":1,"name":"User name"},"properties":{"attachment":{"description":"User attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"email":{"description":"User email","example":"example@whippy.co","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_properties":{"description":"The Custom Properties of the Custom Object","items":{"properties":{"created_at":{"description":"The date and time the Custom Property was inserted","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"The ID of the user who created this property. Null when an integration defined it.","example":42,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"custom_object_id":{"description":"The ID of the Custom Object","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"default":{"description":"The default value of the Custom Property","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The id of the Custom Property","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Property in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the CustomProperty","example":"City","type":"string","x-struct":null,"x-validate":null},"required":{"description":"Whether the Custom Property is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"The type of the Custom Property","enum":["text","number","float","boolean","date","list","map"],"example":"text","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Property was updated","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"description":{"description":"The label description of the Custom Object","example":"label description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"The emoji of the Custom Object","example":"✨","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Custom Object","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"integration_client":{"description":"The integration provider slug (e.g. 'aqore', 'tempworks'). Null for manually-created Custom Objects.","example":"aqore","nullable":true,"type":"string","x-struct":null,"x-validate":null},"integration_id":{"description":"The ID of the integration this Custom Object belongs to. Null for manually-created Custom Objects.","example":"01934a59-2ef2-7903-bddc-284413538f41","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Object in snake case","example":"contact_details","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Object","example":"Contact Details","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Object was updated","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Updated by user","example":{"attachment":{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/user.jpg"},"email":"example@whippy.co","id":1,"name":"User name"},"properties":{"attachment":{"description":"User attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"email":{"description":"User email","example":"example@whippy.co","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"whippy_associations":{"description":"This is an array of objects that describe the associations between the CustomObject and Whippy resources like contacts, campaign_contacts, etc.","example":[{"id":"123e4567-e89b-12d3-a456-426614174000","source_property_key":"candidate_id","target_property_key":"external_id","target_property_key_prefix":"cont-","target_whippy_resource":"contact","type":"one_to_one"}],"items":{"properties":{"id":{"description":"The ID of the WhippyAssociation","example":"123e4567-e89b-12d3-a456-426614174000","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Optional relationship name that makes this whippy association individually addressable when a type links to the same Whippy resource more than once.","example":"candidate_contact","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"Source property key","example":"candidate_id","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"Target property key on the Whippy resource","example":"external_id","type":"string","x-struct":null,"x-validate":null},"target_property_key_prefix":{"description":"Prefix for target property key","example":"cont-","type":"string","x-struct":null,"x-validate":null},"target_whippy_resource":{"description":"Target Whippy resource","example":"contact","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of association","example":"one_to_one","type":"string","x-struct":null,"x-validate":null}},"required":["type","target_whippy_resource","source_property_key","target_property_key"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateCustomObjectResponse","type":"object","x-struct":null,"x-validate":null},"UserListUnprocessableContentErrorResponse":{"description":"List of error responses for invalid User index/search (list) pagination params.\n","example":{"errors":[{"description":"Offset parameter is not compatible with cursor-based pagination"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"User list 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"UserListUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.User.Errors.ListUnprocessableContent","x-validate":null},"SearchLLMVersionsResponse":{"additionalProperties":false,"example":{"data":[{"created_at":"2024-04-30T08:56:24Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"GPT-4.1-Mini - Assistant","id":"58984c17-b73a-4561-8f3a-bc7b2080402d","knowledge_base_ids":["dbc06cc7-44f0-411b-8221-1d740add0ac9"],"llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","id":"6accb2d7-b602-4c66-b803-07383ca0a510","organization_id":"48995db9-9fd6-4858-9e32-a26150cbec0f","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"model":"gpt-4.1-mini","notes":null,"organization":{"id":"48995db9-9fd6-4858-9e32-a26150cbec0f","name":"Hello Inc."},"prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"items":{"description":"LLM version record","example":{"created_at":"2024-04-30T08:56:24Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"GPT-4.1-Mini - Assistant","id":"58984c17-b73a-4561-8f3a-bc7b2080402d","knowledge_base_ids":["dbc06cc7-44f0-411b-8221-1d740add0ac9"],"llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","id":"6accb2d7-b602-4c66-b803-07383ca0a510","organization_id":"48995db9-9fd6-4858-9e32-a26150cbec0f","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"model":"gpt-4.1-mini","notes":null,"organization":{"id":"48995db9-9fd6-4858-9e32-a26150cbec0f","name":"Hello Inc."},"prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"User that created the LLM version","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"58984c17-b73a-4561-8f3a-bc7b2080402d","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["dbc06cc7-44f0-411b-8221-1d740add0ac9"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"dbc06cc7-44f0-411b-8221-1d740add0ac9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm":{"additionalProperties":false,"description":"LLM that the version belongs to","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","id":"6accb2d7-b602-4c66-b803-07383ca0a510","organization_id":"48995db9-9fd6-4858-9e32-a26150cbec0f","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the LLM in ISO 8601 format","example":"2024-02-28T12:33:40Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version_id":{"description":"ID of the current LLM version","example":"58984c17-b73a-4561-8f3a-bc7b2080402d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the LLM in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft LLM version","example":"58984c17-b73a-4561-8f3a-bc7b2080402d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"LLM ID","example":"6accb2d7-b602-4c66-b803-07383ca0a510","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the LLM belongs to","example":"48995db9-9fd6-4858-9e32-a26150cbec0f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"LLM status","enum":["draft","active","archived","deleted"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the LLM in ISO 8601 format","example":"2024-02-28T12:38:32Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","created_by_id","deleted_at","current_version_id","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Organization that the LLM version belongs to","example":{"id":"48995db9-9fd6-4858-9e32-a26150cbec0f","name":"Hello Inc."},"nullable":true,"properties":{"id":{"description":"Organization ID","example":"48995db9-9fd6-4858-9e32-a26150cbec0f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchLLMVersionsResponse","type":"object","x-struct":null,"x-validate":null},"SequenceUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Sequence Contacts GET or POST requests.\n","example":{"errors":[{"description":"status is invalid"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Sequence 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["status is invalid","step_ids is invalid","unsubscribed is invalid","clicked_link is invalid","responded is invalid","step_id is invalid","from is invalid","to is invalid","Voice Options is invalid","Voice Options have missing or invalid value for at least one of the fields: Default Call Flow ID, Step Overrides","Step ids with one or more invalid ids","The Sequence must be active","The Sequence must have at least one Step","Invalid Step id","Invalid From number","Invalid From: must be a phone number or email address","Invalid To number","Missing To numbers","Missing From number","The length of the To list should be at least 1","The length of the To list should not be more than 4000","Scheduling time should be in ISO 8601 format"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"SequenceUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.Sequence.Errors.UnprocessableContent","x-validate":null},"ListDistinctCustomObjectPropertyValuesUnprocessableContentResponse":{"description":"The custom object, property, search, or pagination parameters are invalid.","example":{"errors":[{"description":"Property with key 'department' not found in custom object 'employee'"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"ListDistinctCustomObjectPropertyValuesUnprocessableContentResponse","type":"object","x-struct":null,"x-validate":null},"ListMessagesResponse":{"description":"Response schema for listing messages with cursor pagination.","example":{"data":[],"metadata":{"cursor_reset":false,"next_cursor":null,"prev_cursor":null},"total":0},"properties":{"data":{"description":"Messages ordered oldest to newest within the page.","items":{"description":"Single message data","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Give yourself a little present today!","campaign_id":"c4f6c74d-487f-4d0a-9300-e3f18fb7d1fa","channel_id":"5917d0f0-47eb-4809-8926-c4947aeb13ae","contact_id":"48505eda-90ed-4409-83b4-72e3404e8fee","created_at":"2021-06-22T07:45:45","delivery_status":"delivered","direction":"OUTBOUND","error":null,"error_code":null,"error_message":null,"from":"+14243051234","id":"10c052db-9ed0-4b8c-b063-d823bc67799b","language":"en","sequence_id":"2072b5a2-f42e-4bd5-a7de-49fee38f3090","step_contact_id":null,"step_id":"e7b916e7-42ec-4c3e-8b7d-9cf0984cd258","to":"+14243055678","translated_body":"¡Date un pequeño regalo hoy!","translation_language":"es","type":"mms","updated_at":"2021-06-22T07:45:45","user_id":1},"properties":{"attachments":{"description":"List of attachments belonging to the message","items":{"description":"Single message attachment","properties":{"content_type":{"description":"MIME type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the attachment","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Original message body","type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"ID of the campaign the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the message is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Direction of the message","enum":["INBOUND","OUTBOUND","NOTE"],"type":"string","x-struct":null,"x-validate":null},"email_html_body":{"description":"Email html body","type":"string","x-struct":null,"x-validate":null},"email_metadata":{"description":"Full email metadata","properties":{"bcc":{"description":"Email BCC recipients","items":{"description":"Email BCC recipient","example":"diamond.dog@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"cc":{"description":"Email CC recipients","items":{"description":"Email CC recipient","example":"major.tom@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reply_to":{"description":"Email reply to","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Email recipients","items":{"description":"Email recipient","example":"ziggy.stardust@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"email_subject":{"description":"Email subject","type":"string","x-struct":null,"x-validate":null},"error":{"description":"Machine-readable delivery error identifier, when the message failed","example":"unreachable_destination_handset","nullable":true,"type":"string","x-struct":null,"x-validate":null},"error_code":{"description":"Delivery error code reported by the message provider, when available","example":"30003","nullable":true,"type":"string","x-struct":null,"x-validate":null},"error_message":{"description":"Human-readable delivery error description, when available","example":"Destination handset is switched off or unavailable","nullable":true,"type":"string","x-struct":null,"x-validate":null},"from":{"description":"Address that sent the message - a phone number, or an email address on email channels. For notes, the address of the channel the note was added on.","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"ISO-639-1 code for the original language of the message","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"ID of the sequence the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_contact_id":{"description":"ID of the StepContact the message belongs to (would be nil for outbound messages)","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the sequence step the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Address that received the message - a phone number, or an email address on email channels. For notes, the address of the contact the note relates to.","example":"+14243056789","nullable":true,"type":"string","x-struct":null,"x-validate":null},"translated_body":{"description":"Translated message body","type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"ISO-639-1 code for the language the message was translated into","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the message","enum":["sms","mms","call","whatsapp","messenger","instagram","email","note","fax"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the message was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user who sent the message","type":"integer","x-struct":null,"x-validate":null}},"title":"ConversationMessage","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"`true` when a well-formed cursor could not be used as a position (it carries a value that can't be a position, e.g. an `id` that isn't a UUID or a `null` for a non-nullable sort key) and this page fell back to the first page; `false` otherwise — including for stale-but-valid cursors, which keep working. Malformed cursors (bad base64/JSON or wrong keys) are rejected with a 422 instead of resetting. Use this flag to detect a silent reset rather than re-reading the first page in a loop.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor referencing the last row on this page. Pass with `direction=forward` to fetch newer messages. `null` when there is no next page.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prev_cursor":{"description":"Cursor referencing the first row on this page. Pass with `direction=backward` to fetch older messages. `null` on the first page.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total count of messages matching the filters.","type":"integer","x-struct":null,"x-validate":null}},"title":"ListMessagesResponse","type":"object","x-struct":null,"x-validate":null},"CreateKnowledgeBaseParams":{"additionalProperties":false,"description":"Request schema for creating a knowledge base with an initial draft version.\nThe knowledge base is always created as `active` with a draft version; publish\npromotes the draft. Items default to `[]` when omitted.\n","example":{"description":"Answers common product questions","items":[{"content_or_url":"Employees receive 15 days of PTO per year.","name":"Vacation policy","type":"text"}],"name":"Product FAQ"},"properties":{"description":{"description":"Description of the knowledge base (stored on the draft version)","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"items":{"description":"Optional items to add to the initial draft version","example":[{"content_or_url":"Employees receive 15 days of PTO per year.","name":"Vacation policy","type":"text"}],"items":{"additionalProperties":false,"description":"Request schema for adding an item to a knowledge base draft.\nFile metadata (`filename`, `extension`, `size_kb`) is fetched automatically\nfor document, audio, and video items and is not client-writable.\n","example":{"content_or_url":"Employees receive 15 days of PTO per year.","name":"Vacation policy","type":"text"},"properties":{"content_or_url":{"description":"Content source for the selected `type`.\n\n- `text`: Literal text content.\n- `url`: Source URL for one web page.\n- `website`: Source URL for a website whose pages are crawled.\n- `document`, `audio`, and `video`: Publicly accessible file URL. File metadata is fetched automatically by the server.\n","example":"Employees receive 15 days of PTO per year.","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"required":["name","type","content_or_url"],"title":"CreateKnowledgeBaseItemParams","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Name of the knowledge base (stored on the draft version)","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null}},"required":["name"],"title":"CreateKnowledgeBaseParams","type":"object","x-struct":null,"x-validate":null},"UpdateTeamParams":{"description":"Update Team Params schema","example":{"assignment_method":"round_robin","color":"#F0F0F0","description":"Description","emoji":"👨🏻‍🔧","locations":["44504503-f31f-406c-a86c-ae0c80293d1c","db1b85a9-2a0a-4b77-82c6-2ade88116ba2"],"name":"Example name","team_members":[1,2,3]},"properties":{"assignment_method":{"default":"manual","description":"  The team's assignment method. There are three options - \"manual\", \"round_robin\", \"balanced\".\n  1) Manual - Conversations are not automatically assigned\n  2) Round Robin - Conversations are assigned to teammates in sequential order\n  3) Balanced - Conversations are assigned to teammates with the fewest active conversations\n","enum":["manual","round_robin","balanced"],"example":"balanced","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Color","example":"#F0F0F0","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"Description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","example":"🇺🇸","type":"string","x-struct":null,"x-validate":null},"locations":{"description":"List of Location IDs","example":["a30ced3f-af5f-455b-a746-b6c18949ec70","09c552d3-93f0-41b7-a9ec-94d64dfa87c1"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Team name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"team_members":{"description":"Optional list of organization user IDs to add as team members. On update, this replaces the team's full member set. Every ID must belong to the organization, otherwise the request is rejected and nothing is changed.","example":[1,2,3],"items":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"UpdateTeamParams","type":"object","x-struct":null,"x-validate":null},"UpsertContactParams":{"example":{"channels":[{"id":"b9416fea-0676-402d-a112-c45a8e194203"}],"contacts":[{"address":{"address_line_one":null,"address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"birth_date":{"day":1,"month":1,"year":1980},"default_channel_id":"b9416fea-0676-402d-a112-c45a8e194203","language":"en","name":"New Name","phone":"+14258658940","properties":{"employee_id":"9876"}},{"email":"LETICIA@GMAIL.COM","name":"Leticia","phone":"818-705-2979"},{"email":"anan@example.com","name":"Anan Albarak","phone":"818-705-2977"},{"default_channel_id":"b9416fea-0676-402d-a112-c45a8e194203","name":"Taracy & Lee Allen","phone":"310-871-5565"},{"address":{"address_line_one":null,"address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"name":"Arleen","phone":"818-981-0606"},{"birth_date":{"day":1,"month":1,"year":1980},"name":"Zina Asheriyan","phone":"310-892-3339"},{"external_id":"4321","name":"Shamsi Asheriyan","phone":"818-708-3971"},{"external_id":"1234","name":"Fariba rad Asheriyan","phone":"818-469-3882","properties":{"employee_id":"1234"}}],"custom_data":{"custom_object_id":"ad4dd52e-127e-4173-a7be-c729ac66f5b8","resource":"contact"},"opt_in_to_all_channels":true},"properties":{"contacts":{"description":"List of contacts that would comprise the contact list","items":{"description":"Data for a contact included in the contact list.","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":4000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"custom_data":{"description":"An object containing the ID of the custom object with which the contact should be associated.\nThe resource should always be `contact`.\n","example":{"custom_object_id":"ad4dd52e-127e-4173-a7be-c729ac66f5b8","resource":"contact"},"properties":{"custom_object_id":{"description":"The ID of the custom object with which the contact should be associated.","example":"ad4dd52e-127e-4173-a7be-c729ac66f5b8","format":"uuid","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource with which the custom object should be associated.","example":"contact","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"opt_in_to":{"description":"Setting to opt in contacts from contacts param to specific channels","items":{"description":"Channel","properties":{"id":{"description":"Channel ID","example":"96fa619b-ada2-447d-b8d8-5fd856b681dc","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"opt_in_to_all_channels":{"default":true,"description":"Setting to opt in contacts from contacts param to all organization channels","type":"boolean","x-struct":null,"x-validate":null}},"required":["contacts"],"title":"UpsertContactParams","type":"object","x-struct":null,"x-validate":null},"NotFoundErrorResponse":{"description":"Not Found Error Response schema","example":{"errors":[{"description":"Not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"List of errors","items":{"properties":{"description":{"description":"Error description","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"description":"HTTP status code","example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"NotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"WorkflowConnectionNotFound":{"example":{"errors":[{"description":"Workflow connection not found"}]},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"title":"WorkflowConnectionNotFound","type":"object","x-struct":null,"x-validate":null},"UpdateConversationStatusAction":{"description":"Update Conversation Status Action params used when processing the action.","example":{"status":"open"},"properties":{"status":{"description":"New conversation status","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null}},"required":["status"],"title":"UpdateConversationStatusAction","type":"object","x-struct":null,"x-validate":null},"SearchCustomObjectInvalidParamsResponse":{"description":"Response schema for searching Custom Object Records with invalid filters or pagination.","example":{"errors":[{"description":"Offset must be an integer greater than or equal to 0"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Search 422 errors","items":{"properties":{"description":{"enum":["Invalid filters","Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"SearchCustomObjectInvalidParamsResponse","type":"object","x-struct":null,"x-validate":null},"SearchAgentsParams":{"description":"Request schema for searching agents.","properties":{"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"llm_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Case-insensitive partial agent name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["draft","active","archived"],"type":"string","x-struct":null,"x-validate":null}},"title":"SearchAgentsParams","type":"object","x-struct":null,"x-validate":null},"CallNotFoundErrorResponse":{"description":"Response that occurs when the call record doesn't exist","example":{"errors":[{"description":"Call not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Call 404 error","items":{"description":"Single 404 error","properties":{"description":{"enum":["Call not found"],"example":"Call not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"CallNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"DeveloperApplicationNotFoundErrorResponse":{"description":"Developer Application Not Found Error Response schema","example":{"errors":[{"description":"Developer Application not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Developer Application 404 error","items":{"properties":{"description":{"enum":["Developer Application not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"DeveloperApplicationNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Application.Errors.NotFound","x-validate":null},"SearchMessagesParams":{"description":"Request body for searching and filtering messages with cursor pagination.","example":{"body":"hello","direction":"forward","language":["en"],"limit":50,"source_type":["INBOUND","OUTBOUND"]},"properties":{"after":{"description":"ISO 8601 datetime; messages inserted at or after this time.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"description":"ISO 8601 datetime; messages inserted at or before this time.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Partial, case-insensitive match on the message body. Max 1000 characters.","maxLength":1000,"type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"Filter by campaign ID.","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"Filter by channel ID.","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Filter by contact ID.","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Filter by conversation ID.","type":"string","x-struct":null,"x-validate":null},"cursor":{"description":"Opaque cursor from a previous response (`metadata.next_cursor` or `metadata.prev_cursor`).","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Filter by one or more delivery statuses. Any string is accepted.","items":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"direction":{"description":"Pagination direction. `forward` (default) fetches the next page toward newer messages. `backward` fetches the previous page toward older messages.","enum":["forward","backward"],"type":"string","x-struct":null,"x-validate":null},"language":{"description":"Filter by one or more message languages (ISO 639 codes, e.g. `en`, `fil`, `zh-CN`).","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Number of results to return (max 500).","example":50,"type":"integer","x-struct":null,"x-validate":null},"mode":{"description":"Filter by one or more message modes.","items":{"enum":["manual","automated","campaign","sequence","ai","imported"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"sequence_id":{"description":"Filter by sequence ID.","type":"string","x-struct":null,"x-validate":null},"source_type":{"description":"Filter by one or more message directions.","items":{"enum":["INBOUND","OUTBOUND","NOTE"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"translated_body":{"description":"Partial, case-insensitive match on the translated message body. Max 1000 characters.","maxLength":1000,"type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"Filter by one or more translation languages (ISO 639 codes, e.g. `en`, `fil`, `zh-CN`).","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Filter by one or more message types.","items":{"enum":["sms","mms","call","whatsapp","messenger","instagram","email","note","fax"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"user_id":{"description":"Filter by user ID.","type":"string","x-struct":null,"x-validate":null}},"title":"SearchMessagesParams","type":"object","x-struct":null,"x-validate":null},"WhatsappCampaignParams":{"description":"Request schema for creating a whatsapp campaign at `POST /v1/campaigns/whatsapp`.\n\nOne of `body` or `attachments` is required.\n\n`status: \"draft\"` saves a draft. `status: \"scheduled\"` sends once at `schedule_at` and requires\n`included_audience`. `status: \"recurring\"` starts a series and requires `included_audience` and\n`recurring_settings` (`cron_expression`, `timezone`, `start_date`, optional `end_date`).\nThere is no `to` list on this endpoint.\n","example":{"body":"Hello","from":"+14155552672","included_audience":[{"column":"id","comparison":"in","resource":"list","value":["077dbe66-879a-4718-820f-128ccd178b3a"]}],"status":"draft","title":"Whatsapp campaign"},"properties":{"attachments":{"description":"List of attachment URLs for the campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of automation template IDs. At most 50.","items":{"description":"Automation Template ID","example":"3cb9390b-57df-413d-8522-609a886d61a6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Limited to 1000 characters.","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Optional. When omitted, the default\ncampaign exclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"from":{"description":"Phone number of the WhatsApp channel.","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Optional for a draft. Required when\n`status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["637de7f1-3663-4b9b-bff2-ac85c50f3679"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_at":{"description":"ISO 8601 time. Required when `status` is `scheduled`.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"`draft` saves a draft and does not send. `scheduled` sends once at `schedule_at`.\n`recurring` starts a series. One of these is required.\n","enum":["draft","scheduled","recurring"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null}},"required":["from","title"],"title":"WhatsappCampaignParams","type":"object","x-struct":null,"x-validate":null},"WhatsappCampaignUpdateParams":{"description":"Request schema for updating a whatsapp campaign at `PUT /v1/campaigns/whatsapp/:id`.\n\nThe campaign type is set to `whatsapp`. A campaign that is not already whatsapp must include `from`.\n\nA `scheduled` campaign accepts `title`, `schedule_at`, `status`, and `automation_templates`.\nA `draft`, `recurring`, or `recurring_paused` campaign also accepts the message, `from`, the audience\nfilters, and `recurring_settings`. `recurring_settings` is merged with the stored schedule.\n","example":{"schedule_at":"2026-11-26T16:38:00.797239Z","title":"Whatsapp Campaign"},"properties":{"attachments":{"description":"List of attachment URLs. Accepted for a draft or recurring campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of automation template IDs. At most 50.","items":{"description":"Automation Template ID","example":"3aa8d01b-2b30-4cae-9cf5-fa0d788ff841","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Limited to 1000 characters.","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Optional. When omitted, the default\ncampaign exclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"from":{"description":"Phone number of the WhatsApp channel. Required when this request changes the campaign to whatsapp.\n","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Optional for a draft. Required when\n`status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["34906e7f-5064-4432-bf26-374dd039c169"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the campaign. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"`draft` or `scheduled` for a one-time campaign. `recurring` starts or restarts a series.\n`recurring_paused` or `recurring_cancelled` stops one.\n","enum":["draft","scheduled","recurring","recurring_paused","recurring_cancelled"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null}},"title":"WhatsappCampaignUpdateParams","type":"object","x-struct":null,"x-validate":null},"ListWorkflowConnectionsResponse":{"description":"Paginated list of workflow connections (secrets redacted).","example":{"data":[{"app_id":"660e8400-e29b-41d4-a716-446655440001","app_version_id":"770e8400-e29b-41d4-a716-446655440002","auth_type":"oauth2","id":"550e8400-e29b-41d4-a716-446655440000","inserted_at":"2026-08-07T12:00:00Z","label":"user@example.com","name":"Work account","status":"active","updated_at":"2026-08-07T12:00:00Z"}],"total":1},"properties":{"data":{"items":{"properties":{"app_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"app_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"auth_type":{"description":"App authentication type (oauth2, custom, api_key, session, …)","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"label":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","active","needs_reconnect","stale"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","app_id","status"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total matching connections","type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListWorkflowConnectionsResponse","type":"object","x-struct":null,"x-validate":null},"ContactUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Contact POST or PUT requests.\n","example":{"errors":[{"description":"Contact name should be at most 255 characters"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Contact name should be at most 255 characters","Contact email should be at most 255 characters","Email must be 255 characters or less","Contact email has invalid format","Contact phone has invalid format","At least one of Contact phone, email, external_id or meta_id must be present.","The length of the Opt In To field should not be more than 1000","Invalid Opt In To channels provided","Missing Contacts","The length of the Contacts field should not be more than 4000","All Contacts phone numbers, email addresses, external IDs and/or default channel IDs are invalid","Integration ID requires External ID","contacts integration_id requires external_id","contacts integration_id must be a valid UUID"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Contact.Errors.UnprocessableContent","x-validate":null},"UpdateContactSegmentParams":{"description":"Request schema for updating a contact segment in an organization.","example":{"color":"44FFFF","description":"Contact Segments","emoji":"😊","filters":{"filter":[{"column":"source","comparison":"==","resource":"contact","value":"import"}]},"name":"Local Contacts"},"properties":{"color":{"description":"Contact segment color","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Contact segment description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Contact segment emoji","type":"string","x-struct":null,"x-validate":null},"filters":{"description":"The segment's contact filter in Whippy Query Language (WQL). Uses the same `filter` (and optional `sort`) structure as the request body of `POST /v1/contacts/filter`.","example":{"filter":[{"column":"source","comparison":"==","resource":"contact","value":"import"}]},"properties":{"filter":{"description":"Apply multiple filters to the result set using AND logic","items":{"properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"clicked_link","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"on":{"description":"  List of on items that should be used to join parent resource with child resource.\n  The logic is as follows (parent_resource JOIN child_resource ON parent_resource.parent_column = child_resource.child_column).\n","items":{"properties":{"child":{"description":"The child resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"employee","type":"string","x-struct":null,"x-validate":null},"child_column":{"description":"The column on the child resource on which the comparison should be executed","example":"id","type":"string","x-struct":null,"x-validate":null},"parent":{"description":"The parent resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"assignment","type":"string","x-struct":null,"x-validate":null},"parent_column":{"description":"The column on the parent resource on which the comparison should be executed","example":"employee_id","type":"string","x-struct":null,"x-validate":null}},"required":["parent","child","parent_column","child_column"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"campaign_contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"sort":{"description":"Sort by multiple resources and their columns","items":{"properties":{"column":{"example":"inserted_at","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"example":"asc","type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["campaign","campaign_contact","campaign_message","communication_preference","contact","contact_message","conversation","join_custom_data","list","message","segment","sequence_run","step_contact","tag"],"example":"contact","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"title":"ContactSegmentFilters","type":"object","x-struct":null,"x-validate":null},"name":{"description":"Contact segment name","type":"string","x-struct":null,"x-validate":null}},"title":"UpdateContactSegmentParams","type":"object","x-struct":null,"x-validate":null},"ShowCampaignResponse":{"description":"Response schema for an individual campaign.","example":{"data":{"campaign_id":"be510b86-5b54-460f-b54a-b926ca21a520","campaign_title":"Festive Campaign","failed_deliveries":4,"link_clicks":35,"responses":282,"sent_messages":300,"slated_messages":300,"unsubscribes":5}},"properties":{"data":{"description":"Analytics for a single campaign","properties":{"campaign_id":{"description":"Campaign ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"campaign_title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null},"failed_deliveries":{"description":"Number of messages that failed to be delivered","type":"integer","x-struct":null,"x-validate":null},"link_clicks":{"description":"Number of times contacts clicked on the campaign link","type":"integer","x-struct":null,"x-validate":null},"responses":{"description":"Number of responses to the campaign","type":"integer","x-struct":null,"x-validate":null},"sent_messages":{"description":"Number of messages sent for the campaign","type":"integer","x-struct":null,"x-validate":null},"slated_messages":{"description":"Number of messages slated to be sent for the campaign","type":"integer","x-struct":null,"x-validate":null},"unsubscribes":{"description":"Number of contacts that unsubscribed after receiving the campaign","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowCampaignResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.ShowResponse","x-validate":null},"WorkflowAppBadRequestResponse":{"example":{"errors":[{"description":"Invalid path param ID: not-a-uuid"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Invalid path param ID: not-a-uuid","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"WorkflowAppBadRequestResponse","type":"object","x-struct":null,"x-validate":null},"ListWorkflowTagsResponse":{"description":"Response schema for listing the tags assigned to a workflow.","example":{"data":[{"color":"#ff0000","converted":null,"created_at":"2026-07-28T14:10:00Z","description":null,"emoji":"🔥","id":"28487616-380a-4807-a419-65ab74491de1","name":"critical","organization_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","state":"active","system_created":false,"type":"workflow","updated_at":"2026-07-28T14:10:00Z"}],"total":1},"properties":{"data":{"description":"Tags assigned to the workflow, same shape as the Tags API.","items":{"properties":{"color":{"description":"Tag color","type":"string","x-struct":null,"x-validate":null},"converted":{"description":"Whether the system tag was converted to a user tag","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Tag description","nullable":true,"type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Tag emoji","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tag ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Tag state","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"system_created":{"description":"Whether the tag was created by the system","type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Tag type","enum":["workflow"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time the tag was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","type"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Number of tags returned","example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListWorkflowTagsResponse","type":"object","x-struct":null,"x-validate":null},"CreateConversationNoteParams":{"description":"Request schema for creating a note.\n\nOne of `body` or `attachments` is required.\n","example":{"attachments":["https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"],"body":"This contact should be contacted by phone. @{{15}} can you please call them?","conversation_status":"open","from":"+14155552672","opt_in_to":["b165680c-2984-48cc-bff4-59cec7ab6835","2c70853c-5d4f-47e1-b976-a8abfdf0551f"],"opt_in_to_all_channels":false,"to":"+14155552671"},"properties":{"attachments":{"description":"List of attachment URLs","items":{"description":"Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Note body","maxLength":1000,"type":"string","x-struct":null,"x-validate":null},"conversation_status":{"description":"Status to set for the conversation. If not provided, the conversation status remains unchanged.","enum":["automated","open","closed"],"type":"string","x-struct":null,"x-validate":null},"from":{"description":"Phone of an existing channel belonging to your organization","type":"string","x-struct":null,"x-validate":null},"opt_in_to":{"description":"Setting to opt in contact to specific channels","items":{"description":"Channel","properties":{"id":{"description":"Channel ID","example":"33d48b7b-444c-4bc5-8bb5-f8c589f3a317","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"opt_in_to_all_channels":{"description":"Setting to opt in contact to all channels","type":"boolean","x-struct":null,"x-validate":null},"to":{"description":"Destination phone number","type":"string","x-struct":null,"x-validate":null}},"required":["to","from"],"title":"CreateConversationNoteParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Note.CreateParams","x-validate":null},"UpdatePropertyParams":{"example":{"ai_context":"This property stores the customer's city for location-based services","label":"New Label"},"properties":{"ai_context":{"description":"Additional context information for AI features","example":"This property stores the customer's city for location-based services","type":"string","x-struct":null,"x-validate":null},"default":{"description":"The default value of the Custom Property","type":"string","x-struct":null,"x-validate":null},"editable":{"description":"Whether the Custom Property is editable","example":true,"type":"boolean","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Property","example":"City","type":"string","x-struct":null,"x-validate":null},"required":{"description":"Whether the Custom Property is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"state":{"description":"The state of the Custom Property","example":"active","type":"string","x-struct":null,"x-validate":null}},"title":"UpdatePropertyParams","type":"object","x-struct":null,"x-validate":null},"SendEmailResponse":{"description":"Response schema for sending Email messages.","example":{"data":{"contact_id":"49f0b1a5-737c-47b5-b165-2ad3442674ad","conversation_id":"49813ff3-fc6d-407b-8237-8841c5701741","delivery_status":"queued","id":"ba47b057-ccf8-4f72-82d3-d803963e30a5"}},"properties":{"data":{"description":"Response for a newly created email.","properties":{"contact_id":{"description":"ID of the receiving contact","example":"1d54d765-44d5-430f-8153-497a3107aa00","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"ID of the conversation the email belongs to","example":"8e639223-3022-4067-b090-cceecef309ff","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Initial delivery status of the email","enum":["queued"],"example":"queued","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Email ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"SendEmailResponse","type":"object","x-struct":null,"x-validate":null},"NotifyUsersAction":{"description":"Notify Users Action params used when processing the action.","example":{"user_ids":["42","1024","2364"]},"properties":{"user_ids":{"description":"List of string user IDs","example":["42","1024","2364"],"items":{"description":"String ID of a user to be notified","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["user_ids"],"title":"NotifyUsersAction","type":"object","x-struct":null,"x-validate":null},"DeveloperEndpointParams":{"description":"Request schema for creating and updating a developer endpoint in an organization.","example":{"active":true,"developer_application_id":"8935c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","campaign.created","lead.new"],"filter":{"body":{"data":{"created_by_id":2}}},"method":"POST","url":"https://www.spacetravel.com/webhooks"},"properties":{"active":{"description":"Endpoint active status","example":true,"type":"boolean","x-struct":null,"x-validate":null},"developer_application_id":{"description":"ID of a Developer Application in the organization","example":"8935c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"event_types":{"description":"List of subscribed event types to receive webhooks for","example":["message.created","campaign.created","lead.new"],"items":{"description":"Event type","example":"message.created","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"filter":{"description":"Optional inclusion filter. Only events whose webhook body matches this schema are delivered. Top-level key \"body\" applies to the webhook payload (e.g. {\"body\": {\"data\": {\"created_by_id\": 2}}} to deliver only when resource data.created_by_id is 2). Send null on update to clear an existing filter.","example":{"body":{"data":{"created_by_id":2}}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"url":{"description":"URL for the Developer Endpoint, request will be sent to it","example":"https://www.example.com/webhooks","type":"string","x-struct":null,"x-validate":null}},"title":"DeveloperEndpointParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Endpoint.Params","x-validate":null},"UpsertCustomObjectRecordsResponse":{"description":"Response schema for upserting Custom Object Records.","example":{"data":{"message":"Custom Object Records are being imported","result":{"import_id":"e1cad7a3-50a1-4695-96d9-80f3aede440b","status":"pending","target":"upsert_custom_object_records"}}},"properties":{"data":{"properties":{"message":{"description":"The message of the import","example":"Custom Object Records are being imported","type":"string","x-struct":null,"x-validate":null},"result":{"properties":{"import_id":{"description":"The ID of the import","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"status":{"description":"The status of the import","example":"pending","type":"string","x-struct":null,"x-validate":null},"target":{"description":"The target of the import","example":"upsert_custom_object_records","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpsertCustomObjectRecordsResponse","type":"object","x-struct":null,"x-validate":null},"TestWorkflowStepResponse":{"description":"Response schema for a workflow step test. The nested `step_execution` always\nincludes `status`, `input`, `output`, `errors`, and `console_logs`.\n","example":{"data":{"alias":"send_slack_message","data":{},"id":"c1d2e3f4-a5b6-7890-abcd-ef1234567890","name":"Send Slack message","step_execution":{"console_logs":[],"ended_at":"2026-08-05T18:00:01Z","errors":null,"id":"e5f6a7b8-c9d0-1234-ef01-23456789abcd","input":{"channel":"#general"},"output":{"ok":true},"started_at":"2026-08-05T18:00:00Z","status":"completed","step_id":"c1d2e3f4-a5b6-7890-abcd-ef1234567890"},"type":"app","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa"}},"properties":{"data":{"description":"Step fields plus nested step_execution","properties":{"alias":{"type":"string","x-struct":null,"x-validate":null},"child_role":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"child_steps_ids":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"custom_image_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"data":{"type":"object","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"next_steps_ids":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"previous_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sample_input":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"sample_output":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"step_execution":{"description":"Result of a single step test run","properties":{"console_logs":{"description":"Console logs from code steps (empty list when none)","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"ended_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Error details when status is failed","nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"input":{"description":"Resolved input used for the test","nullable":true,"type":"object","x-struct":null,"x-validate":null},"output":{"description":"Step output when status is completed","nullable":true,"type":"object","x-struct":null,"x-validate":null},"started_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Execution status","enum":["completed","failed","pending","running"],"example":"completed","type":"string","x-struct":null,"x-validate":null},"step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["status","input","output","errors","console_logs"],"type":"object","x-struct":null,"x-validate":null},"type":{"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"version":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"workflow_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["id","step_execution"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"TestWorkflowStepResponse","type":"object","x-struct":null,"x-validate":null},"WorkflowUnprocessableContentResponse":{"description":"Unprocessable Content Response schema","example":{"errors":[{"description":"name is required"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"WorkflowUnprocessableContentResponse","type":"object","x-struct":null,"x-validate":null},"ShowWorkflowVersionResponse":{"description":"Response schema for a workflow version including steps.","example":{"data":{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","state":"draft","steps":[],"workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa"}},"properties":{"data":{"description":"Version with steps","type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowWorkflowVersionResponse","type":"object","x-struct":null,"x-validate":null},"SearchCustomObjectRequestParams":{"description":"Request schema for searching a Custom Object.","properties":{"cursor":{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","type":"string","x-struct":null,"x-validate":null},"filters":{"items":{"properties":{"comparison":{"description":"The comparison operator. Use '=' for equality. '==' is accepted as a compatibility alias and behaves identically.","enum":["=","==",">",">=","<","<=","!=","in","not in"],"example":"=","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Property","example":"city","type":"string","x-struct":null,"x-validate":null},"value":{"description":"The value(s) of the Custom Property. Use a scalar for single-value comparisons or an array for 'in' and 'not in'.","oneOf":[{"description":"A string value for a single-value comparison","example":"New York","type":"string","x-struct":null,"x-validate":null},{"description":"A numeric value (integer or float) for a single-value comparison","example":206837201,"type":"number","x-struct":null,"x-validate":null},{"description":"A boolean value for a single-value comparison","example":true,"type":"boolean","x-struct":null,"x-validate":null},{"description":"The values of the Custom Property (for 'in' and 'not in' comparisons)","example":["New York","Los Angeles","Chicago"],"items":{"oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"The limit of the search results","example":10,"type":"integer","x-struct":null,"x-validate":null},"offset":{"description":"Number of results to skip. Deprecated; cannot be combined with cursor.","example":0,"type":"integer","x-struct":null,"x-validate":null}},"title":"SearchCustomObjectRequestParams","type":"object","x-struct":null,"x-validate":null},"LinkUnprocessableContentErrorResponse":{"description":"Validation errors for link create/update/list/analytics/clicks","example":{"errors":[{"description":"URL has already been taken"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"enum":["URL has already been taken","URL is not supported","URL can't be changed","Short Key has invalid characters","Short Key has already been taken","Custom Card Title can't be blank when Use Custom Card is true","Custom Card Image can't be blank when Use Custom Card is true","Domain with that ID does not exist","Domain id is invalid","Status must be active or archived","End date cannot be before start date","Date range cannot be longer than 366 days","Start date can't be blank","End date can't be blank","Start date must be YYYY-MM-DD","End date must be YYYY-MM-DD","Invalid cursor format","Limit must be greater than 0","Limit must be 100 or less","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0","Offset parameter is not compatible with cursor-based pagination"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"LinkUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.Errors.UnprocessableContent","x-validate":null},"SearchLLMsParams":{"description":"Request schema for searching LLMs.","properties":{"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"model":{"description":"Filters by the model on the LLM's current version.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":["draft","active","archived"],"type":"string","x-struct":null,"x-validate":null}},"title":"SearchLLMsParams","type":"object","x-struct":null,"x-validate":null},"KnowledgeBaseBadRequestErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the knowledge base ID path parameter is invalid.","example":{"errors":[{"description":"Invalid path param ID: not-a-uuid"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Knowledge base 400 error","items":{"additionalProperties":false,"description":"Single 400 error","properties":{"description":{"description":"Human-readable explanation of the invalid path parameter.","example":"Invalid path param ID: not-a-uuid","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"example":400,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"KnowledgeBaseBadRequestErrorResponse","type":"object","x-struct":null,"x-validate":null},"UpdateDeveloperApplicationParams":{"description":"Request schema for updating a developer application in an organization.","example":{"active":true,"description":"API Developer Application for cosmic integrations","name":"Space Application"},"properties":{"active":{"description":"Application active status","example":true,"type":"boolean","x-struct":null,"x-validate":null},"description":{"description":"General application description","example":"Application for interstellar travel.","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Application name","example":"Space Application","type":"string","x-struct":null,"x-validate":null}},"title":"UpdateDeveloperApplicationParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Application.UpdateParams","x-validate":null},"ContactSegmentUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Contact Segment PUT requests.\n","example":{"errors":[{"description":"Contact segment filters invalid"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Segment 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Contact segment filters invalid","Contact segment name should be at most 30 characters","Contact segment emoji Invalid emoji","Contact segment emoji should be at most %{count} byte(s)","DynamicGroup description should be at most 255 characters","Contact segment DynamicGroup description should be at most 255 characters"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactSegmentUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Segment.Errors.UnprocessableContent","x-validate":null},"ListLinkClicks":{"example":{"data":[{"clicked_at":"2026-11-03T18:22:11Z","contact":null,"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","link":{"id":"dd840673-d544-44b9-99f1-f6438471d2f3","short_key":"whippy-it","short_url":"https://m.whippy.co/whippy-it","url":"https://whippy.ai/products/campaigns"},"metadata":{"created_at":"2026-11-03T18:22:11Z","organization_id":"11111111-1111-1111-1111-111111111111","tracking_data":{"referrer":null}}}],"metadata":{"cursor_reset":false,"next_cursor":null},"total":1},"properties":{"data":{"items":{"properties":{"clicked_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"contact":{"nullable":true,"properties":{"address":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"birth_date":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"blocked":{"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"email":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"external_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"type":"boolean","x-struct":null,"x-validate":null},"phone":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"state":{"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"link":{"properties":{"id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"short_key":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"short_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"properties":{"created_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"tracking_data":{"nullable":true,"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"properties":{"cursor_reset":{"type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"title":"ListLinkClicks","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.ClicksResponse","x-validate":null},"PublicAuditLogSearchParams":{"description":"Filters, sorting, and offset pagination for audit logs.","example":{"filter":[{"column":"action","comparison":"ilike","resource":"audit_log","value":"%contact%"}],"limit":50,"offset":0,"sort":[{"column":"timestamp","order":"desc","resource":"audit_log"}]},"properties":{"filter":{"description":"Filters combined using AND logic.","items":{"properties":{"cast":{"nullable":true,"properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"Column to filter","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"Comparison operator","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource containing the column","enum":["audit_log","campaign","contact","conversation","message","role","segment","sequence","user"],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. The shape depends on the operator: a scalar for `==`, `!=`, or `ilike`; a list for `in`, `not_in`, `ilike_any`, `not_ilike_all`, `between`, `in_radius`, and `not_in_radius`; and a list or map for `contains`, `not_contains`, and `is_contained`. On the `resources` column, a string matches `resource_type` or `resource_id` case-insensitively. A map or a list of maps uses JSON containment with `contains`, `not_contains`, or `is_contained`.","example":"%contact%","x-struct":null,"x-validate":null}},"required":["column","comparison","resource","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"default":50,"description":"Maximum number of records to return","maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"offset":{"default":0,"description":"Number of records to skip","minimum":0,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Sort rules applied in order.","items":{"properties":{"column":{"description":"Column to sort","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource containing the column","enum":["audit_log","campaign","contact","conversation","message","role","segment","sequence","user"],"type":"string","x-struct":null,"x-validate":null}},"required":["column","order","resource"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"PublicAuditLogSearchParams","type":"object","x-struct":null,"x-validate":null},"SearchAgentVersionSnapshotsResponse":{"example":{"data":[{"agent":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"created_at":"2024-04-30T08:56:24.260121Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"Law Agent","id":"9e058899-c35d-4720-be9c-80ec2497784f","llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"name":"Adrian","notes":"Updated the greeting and escalation instructions","organization":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"items":{"description":"Agent version record","example":{"agent":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"created_at":"2024-04-30T08:56:24.260121Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"Law Agent","id":"9e058899-c35d-4720-be9c-80ec2497784f","llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"name":"Adrian","notes":"Updated the greeting and escalation instructions","organization":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent":{"additionalProperties":false,"description":"Agent that the version belongs to","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version_id":{"description":"ID of the current agent version","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"default_call_flow_id":{"description":"ID of the agent default call flow","example":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the agent in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft agent version","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent ID","example":"6e9116b4-5536-4662-903a-4b40767d1ed1","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the agent belongs to","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Agent status","enum":["draft","active","archived","deleted"],"example":"archived","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"usage_mode":{"description":"Usage mode of the Agent","enum":["ai_minutes","completed_calls"],"example":"ai_minutes","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","usage_mode","created_by_id","deleted_at","current_version_id","default_call_flow_id","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"User that created the agent version","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm":{"additionalProperties":false,"description":"LLM used by the agent version","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the LLM in ISO 8601 format","example":"2024-02-28T12:33:40Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version":{"description":"LLM version record","example":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Created by user ID","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"83b1daa2-e882-4ad8-9306-85a22a020327","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"ca6368b9-b98e-4169-ac43-3dafe252f2c0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of LLM the LLM Version belongs to","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the LLM in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft LLM version","example":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"LLM ID","example":"04556aab-0865-482e-91b6-afaa09b40a7e","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the LLM belongs to","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"LLM status","enum":["draft","active","archived"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the LLM in ISO 8601 format","example":"2024-02-28T12:38:32Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","created_by_id","deleted_at","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Organization that the agent version belongs to","example":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"nullable":true,"properties":{"id":{"description":"Organization ID","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchAgentVersionSnapshotsResponse","type":"object","x-struct":null,"x-validate":null},"CustomObjectRecordBadRequestErrorResponse":{"description":"Custom Object Record Bad Request Error Response schema for updating a Custom Object Record","example":{"errors":[{"description":"Invalid path param Custom Object Record ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object Record 400 error","items":{"properties":{"description":{"enum":["Invalid path param Custom Object ID: null","Invalid path param Custom Object Record ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectRecordBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomData.Errors.BadRequest","x-validate":null},"InviteUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Invite requests.\n","example":{"errors":[{"description":"resource must be one of: invite"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Invite 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["resource must be one of: invite","Email can't be blank","Email is invalid","Invite email has invalid format","Token can't be blank","Inserted At can't be blank","Token is invalid","Inserted At is invalid","Accepted At is invalid","Invite has expired","Invite already accepted","An active invite already exists for this email","One or more role IDs are invalid for this organization"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"InviteUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.Invite.Errors.UnprocessableContent","x-validate":null},"MergeContactsByPhonesParamsV1":{"description":"Request schema for merging Contacts by their phone numbers.","example":{"from_contact_phone":"+1234567890","to_contact_phone":"+0987654321"},"properties":{"from_contact_phone":{"description":"Phone number of the contact to be merged into the main contact.","example":"+1234567890","type":"string","x-struct":null,"x-validate":null},"to_contact_phone":{"description":"Phone number of the contact in which the merge will be performed","example":"+0987654321","type":"string","x-struct":null,"x-validate":null},"update_name":{"default":false,"description":"Whether to update the name of the main contact with the name of the merged contact.\nDefault is false.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["from_contact_phone","to_contact_phone"],"title":"MergeContactsByPhonesParamsV1","type":"object","x-struct":null,"x-validate":null},"UpdateFormDraftParams":{"description":"Write form_elements, settings, logic, endings, and variables to the draft workspace.","properties":{"endings":{"description":"Alternate ending screens referenced by end_form actions.","items":{"description":"Alternate ending screen (builder Endings panel), referenced by `end_form` actions via `ending_id`.\nDistinct from settings.thank_you_* (the default thank-you when ending_id is null/omitted).\ntitle / description / redirect_url support {{…}} piping. redirect_url must be absolute http(s).\nredirect_delay_ms (0–30000) holds the copy on screen before navigating — omit/0 redirects immediately.\n","example":{"description":"Thanks for taking the quiz.","id":"ending-pass","redirect_delay_ms":2000,"redirect_url":"https://example.com/thanks","title":"Nice work!"},"properties":{"description":{"description":"Ending body copy (builder Description). Supports {{…}} piping.","example":"You finished the quiz.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Stable ending id referenced by logic actions end_form.ending_id.","example":"ending-pass","type":"string","x-struct":null,"x-validate":null},"redirect_delay_ms":{"description":"Milliseconds to show title/description before following redirect_url (builder delay).","example":2000,"maximum":30000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"redirect_url":{"description":"Optional absolute http(s) URL to open after this ending (builder Redirect). Query string may use {{…}} piping.","example":"https://example.com/next","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Ending headline (builder Title). Supports {{…}} piping.","example":"Nice work!","type":"string","x-struct":null,"x-validate":null}},"required":["id"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"form_elements":{"description":"Ordered form elements. Types must match GET /v1/forms/field-types.","items":{"example":{"id":"q-capital","label":"Capital of France?","properties":{"grading":{"correct_answers":["Paris"],"point_value":1},"options":[{"id":"a","value":"Paris"},{"id":"b","value":"London"}]},"required":true,"type":"radio-buttons"},"properties":{"branch_only":{"description":"Off the main path — asked only when a rule jumps here.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"description":{"description":"Helper text (supports {{…}} piping)","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Unique element ID","example":"q-capital","type":"string","x-struct":null,"x-validate":null},"label":{"description":"Element label (supports {{…}} piping)","example":"Capital of France?","type":"string","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Type-specific properties — mirrors the builder Properties panel. Always send a map (`{}` ok).\n\nShared / common: placeholder, min/max, prefix/suffix, alignment, content, options, grading (quiz).\nAddress: address_fields{addressLine1…country → {visible, required}}, googlePlacesApiKey.\nDate/time: availability{min_date,max_date,blocked_*,*_time_ranges,time_step_minutes}, dateFormat.\nLinear scale: scale_size (3–10), start_label, end_label, middle_label.\nFile upload: maxFileSize (MB in builder), allowedFileTypes, multiple.\nAPI Request (`http-request`): method, url, query, headers, body_template, connection_id, timeout_ms,\nresponse_format, items_path, max_items, response_mapping, display, on_error, ending_id, empty_state_text\n— same groups as the builder HTTP panel. Runtime enums and per-type required lists also live on\nGET /v1/forms/field-types (`property_shape` / `grading_shape` / `option_shape` per type).\nExtra keys are allowed for type-specific fields not listed here; unknown keys under nested objects\nthat reject unknowns (e.g. display.item_template, settings.quiz) still fail validation.\n","example":{"display":{"item_template":{"body":"{{item.description}}","title":"{{item.title}}"},"mode":"select_one","value_fields":["id","title","description"]},"empty_state_text":"No films matched.","items_path":"$","max_items":20,"method":"GET","on_error":"continue","response_format":"json","response_mapping":[{"path":"$.length","variable":"film_count"}],"url":"https://api.sampleapis.com/movies/animation"},"properties":{"response_mapping":{"description":"Map response paths into `{{steps.<id>.<variable>}}`.","items":{"description":"Maps a response JSONPath into `{{steps.<element_id>.<variable>}}`.","example":{"path":"$.length","variable":"drink_count"},"properties":{"path":{"description":"JSONPath subset (e.g. $.length, $.Job[*].JobTitle).","example":"$.length","type":"string","x-struct":null,"x-validate":null},"variable":{"description":"Variable name exposed under `{{steps.<id>.<variable>}}`.","example":"drink_count","pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string","x-struct":null,"x-validate":null}},"required":["variable","path"],"type":"object","x-struct":null,"x-validate":null},"maxItems":25,"type":"array","x-struct":null,"x-validate":null},"imageUrl":{"type":"string","x-struct":null,"x-validate":null},"end_label":{"description":"Required for linear-scale (right).","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Wall-clock timeout (default 5000).","example":5000,"maximum":15000,"minimum":100,"type":"integer","x-struct":null,"x-validate":null},"display":{"description":"What the respondent sees (builder: Display section).\n- silent — variables only, nothing rendered\n- display — read-only cards\n- select_one / select_many — pick becomes the step answer (requires value_fields + items_path)\n","example":{"item_template":{"body":"{{item.description}}","image_url":"{{item.image}}","subtitle":"Ingredients: {{item.ingredients}}","title":"{{item.title}}"},"mode":"select_one","value_fields":["id","title","description","ingredients","image"]},"properties":{"item_template":{"additionalProperties":false,"description":"Card template for display/select modes. Tokens use `{{item.<field>}}`. title is required when results are shown. Allowed keys only: title, subtitle, body, link_url, link_label, image_url.","example":{"body":"{{item.description}}","image_url":"{{item.image}}","subtitle":"{{item.ingredients}}","title":"{{item.title}}"},"properties":{"body":{"description":"Rendered as sanitized HTML.","example":"{{item.description}}","type":"string","x-struct":null,"x-validate":null},"image_url":{"example":"{{item.image}}","type":"string","x-struct":null,"x-validate":null},"link_label":{"example":"View details","type":"string","x-struct":null,"x-validate":null},"link_url":{"example":"{{item.detailsUrl}}","type":"string","x-struct":null,"x-validate":null},"subtitle":{"example":"Ingredients: {{item.ingredients}}","type":"string","x-struct":null,"x-validate":null},"title":{"example":"{{item.title}}","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"mode":{"description":"Default silent when omitted.","enum":["silent","display","select_one","select_many"],"example":"select_one","type":"string","x-struct":null,"x-validate":null},"value_fields":{"description":"Required for select_one/select_many. Whitelist of item keys stored on the answer.","example":["id","title","description","ingredients","image"],"items":{"type":"string","x-struct":null,"x-validate":null},"maxItems":12,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"placeholder":{"example":"Type here…","type":"string","x-struct":null,"x-validate":null},"query":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Query string map. Values may use {{answers.*}}.","example":{"zip":"{{answers.zip || \"30301\"}}"},"type":"object","x-struct":null,"x-validate":null},"response_format":{"description":"Parse hint (default auto).","enum":["auto","json","xml"],"example":"json","type":"string","x-struct":null,"x-validate":null},"middle_label":{"description":"Optional linear-scale center label.","type":"string","x-struct":null,"x-validate":null},"on_error":{"description":"Failure behaviour (default continue).","enum":["continue","block","end_form"],"example":"block","type":"string","x-struct":null,"x-validate":null},"googlePlacesApiKey":{"description":"Address autocomplete (builder).","type":"string","x-struct":null,"x-validate":null},"allowedFileTypes":{"description":"file-upload MIME/extension allow-list (e.g. image/*, application/pdf).","example":["image/*","application/pdf"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"ending_id":{"description":"Ending id when on_error=end_form (null = default thank-you).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_align":{"enum":["left","center","right"],"type":"string","x-struct":null,"x-validate":null},"fullTermsText":{"description":"terms: full text shown in popup.","type":"string","x-struct":null,"x-validate":null},"maxFileSize":{"description":"file-upload max size in MB (builder default 5).","example":5,"type":"number","x-struct":null,"x-validate":null},"validateOnBlur":{"type":"boolean","x-struct":null,"x-validate":null},"minDate":{"description":"Legacy fixed min date (YYYY-MM-DD). Prefer availability.min_date.","type":"string","x-struct":null,"x-validate":null},"availability":{"description":"Availability for `date`, `date-range`, and `time` (builder Availability panel).\nPrefer this over legacy top-level `minDate`/`maxDate` strings.\nWeekdays use JS convention: 0=Sunday … 6=Saturday.\n","example":{"blocked_weekdays":[0,6],"max_date":{"offset":30,"type":"relative","unit":"days"},"min_date":{"offset":0,"type":"relative","unit":"days"},"time_step_minutes":15},"properties":{"allowed_time_ranges":{"description":"time elements: opening hours. Empty = any time.","items":{"description":"Half-open time window (`end` is exclusive). Overnight ranges allowed.","example":{"end":"17:00","id":"hours-1","start":"09:00"},"properties":{"end":{"description":"HH:MM (exclusive)","example":"17:00","type":"string","x-struct":null,"x-validate":null},"id":{"example":"hours-1","type":"string","x-struct":null,"x-validate":null},"start":{"description":"HH:MM","example":"09:00","type":"string","x-struct":null,"x-validate":null}},"required":["id","start","end"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"blocked_dates":{"description":"Specific YYYY-MM-DD dates that cannot be selected.","example":["2026-12-25"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"blocked_time_ranges":{"description":"time elements: closures inside allowed hours (e.g. lunch).","items":{"description":"Half-open time window (`end` is exclusive). Overnight ranges allowed.","example":{"end":"17:00","id":"hours-1","start":"09:00"},"properties":{"end":{"description":"HH:MM (exclusive)","example":"17:00","type":"string","x-struct":null,"x-validate":null},"id":{"example":"hours-1","type":"string","x-struct":null,"x-validate":null},"start":{"description":"HH:MM","example":"09:00","type":"string","x-struct":null,"x-validate":null}},"required":["id","start","end"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"blocked_weekdays":{"description":"Weekdays that cannot be selected (0=Sun … 6=Sat).","example":[0,6],"items":{"maximum":6,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"max_date":{"description":"Calendar boundary for availability.min_date / max_date (flat shape — no oneOf).\n`type=fixed` → set `date` (YYYY-MM-DD). `type=relative` → set `offset` + `unit`.\n","example":{"offset":0,"type":"relative","unit":"days"},"properties":{"date":{"description":"YYYY-MM-DD when type=fixed.","example":"2026-12-31","type":"string","x-struct":null,"x-validate":null},"offset":{"description":"Signed day count from today when type=relative (negative = before today).","example":7,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["fixed","relative"],"example":"relative","type":"string","x-struct":null,"x-validate":null},"unit":{"description":"Relative unit (business_days skip weekends + blocked_dates).","enum":["days","business_days"],"example":"days","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},"min_date":{"description":"Calendar boundary for availability.min_date / max_date (flat shape — no oneOf).\n`type=fixed` → set `date` (YYYY-MM-DD). `type=relative` → set `offset` + `unit`.\n","example":{"offset":0,"type":"relative","unit":"days"},"properties":{"date":{"description":"YYYY-MM-DD when type=fixed.","example":"2026-12-31","type":"string","x-struct":null,"x-validate":null},"offset":{"description":"Signed day count from today when type=relative (negative = before today).","example":7,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["fixed","relative"],"example":"relative","type":"string","x-struct":null,"x-validate":null},"unit":{"description":"Relative unit (business_days skip weekends + blocked_dates).","enum":["days","business_days"],"example":"days","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},"time_step_minutes":{"description":"time elements: picker increment (default 1).","enum":[1,5,10,15,30,60],"example":15,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"max_items":{"description":"Cap on returned items (default 25).","example":20,"maximum":100,"type":"integer","x-struct":null,"x-validate":null},"start_label":{"description":"Required for linear-scale (left).","type":"string","x-struct":null,"x-validate":null},"defaultCountry":{"description":"Phone default country code.","example":"US","type":"string","x-struct":null,"x-validate":null},"videoSource":{"enum":["youtube","vimeo","loom"],"type":"string","x-struct":null,"x-validate":null},"dateFormat":{"description":"date-range display format (builder).","example":"MM/DD/YYYY","type":"string","x-struct":null,"x-validate":null},"address_fields":{"description":"Address subfield controls (builder: Address fields). Keys are camelCase:\naddressLine1, addressLine2, city, state, zipCode, country.\nAbsent map = historical default (all shown; line 1 / city / country required).\n","example":{"addressLine1":{"required":true,"visible":true},"addressLine2":{"required":false,"visible":true},"city":{"required":true,"visible":true},"country":{"required":true,"visible":true},"state":{"required":false,"visible":true},"zipCode":{"required":false,"visible":true}},"properties":{"addressLine1":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"addressLine2":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"city":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"country":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"state":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"zipCode":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description_align":{"enum":["left","center","right"],"type":"string","x-struct":null,"x-validate":null},"content":{"description":"Rich/plain content for text/heading elements.","type":"string","x-struct":null,"x-validate":null},"multiple":{"description":"file-upload allow multiple.","type":"boolean","x-struct":null,"x-validate":null},"videoEmbedCode":{"description":"Legacy embed; prefer videoUrl + videoSource.","type":"string","x-struct":null,"x-validate":null},"imageSource":{"enum":["url","upload"],"type":"string","x-struct":null,"x-validate":null},"scale_size":{"description":"Required for linear-scale (builder: 3–10 points).","example":5,"maximum":10,"minimum":3,"type":"integer","x-struct":null,"x-validate":null},"externalLink":{"description":"terms: optional external URL.","type":"string","x-struct":null,"x-validate":null},"countryCode":{"example":"US","type":"string","x-struct":null,"x-validate":null},"body_template":{"description":"POST/PUT/PATCH body. Requires Content-Type in headers when set.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"method":{"description":"API Request method (default GET).","enum":["GET","POST","PUT","PATCH","DELETE"],"example":"GET","type":"string","x-struct":null,"x-validate":null},"min":{"description":"Number/slider/rating lower bound.","type":"number","x-struct":null,"x-validate":null},"allowHalf":{"description":"star-rating half stars.","type":"boolean","x-struct":null,"x-validate":null},"step":{"description":"Number/slider step.","example":1,"type":"number","x-struct":null,"x-validate":null},"headers":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Request headers. Values may use {{answers.*}}. Do not put secrets here — use connection_id.","example":{"Accept":"application/json"},"type":"object","x-struct":null,"x-validate":null},"videoUrl":{"type":"string","x-struct":null,"x-validate":null},"empty_state_text":{"description":"Copy when the fetch returns no items or continues after error.","example":"No films matched.","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Required for http-request. HTTPS. Host must be literal (no {{…}} in authority). Path/query may use {{answers.*}}.","example":"https://api.sampleapis.com/movies/animation","type":"string","x-struct":null,"x-validate":null},"termsText":{"description":"terms: short checkbox label.","type":"string","x-struct":null,"x-validate":null},"prefix":{"example":"$","type":"string","x-struct":null,"x-validate":null},"maxDate":{"description":"Legacy fixed max date (YYYY-MM-DD). Prefer availability.max_date.","type":"string","x-struct":null,"x-validate":null},"timeFormat":{"description":"Legacy time display format.","type":"string","x-struct":null,"x-validate":null},"suffix":{"example":"yrs","type":"string","x-struct":null,"x-validate":null},"max":{"description":"Number/slider/rating upper bound (also rating stars).","type":"number","x-struct":null,"x-validate":null},"items_path":{"description":"JSONPath to the items list. Required for display/select modes.","example":"$","type":"string","x-struct":null,"x-validate":null},"options":{"description":"Required for select, radio-buttons, and multi-select.","items":{"description":"`id` is the authoring identity. Submitted answers and logic clauses use `value`. Optional `label` is display text (may contain {{…}} piping).","example":{"id":"opt-yes","value":"Yes"},"properties":{"id":{"example":"opt-yes","type":"string","x-struct":null,"x-validate":null},"label":{"example":"Yes","nullable":true,"type":"string","x-struct":null,"x-validate":null},"value":{"example":"Yes","type":"string","x-struct":null,"x-validate":null}},"required":["id","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"captchaSiteKey":{"type":"string","x-struct":null,"x-validate":null},"defaultValue":{"description":"Default for rating/slider.","type":"number","x-struct":null,"x-validate":null},"stars":{"description":"star-rating count (default 5).","example":5,"type":"integer","x-struct":null,"x-validate":null},"label_align":{"enum":["left","center","right"],"type":"string","x-struct":null,"x-validate":null},"connection_id":{"description":"Org form_connection id. Server injects credentials; templates must not name secrets.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"grading":{"additionalProperties":false,"description":"Quiz grading for choice elements (`radio-buttons`, `select`, `multi-select`) only.\nIgnored at score time unless `settings.quiz.is_quiz` is true.\n`correct_answers` are option `value`s (not option ids).\nRadio/select: any listed value is correct. Multi-select: selected set must match exactly\nunless `partial_credit` is true. Public show/submit redact this object.\n","example":{"correct_answers":["Paris"],"correct_feedback":"Correct!","incorrect_feedback":"Capital of France.","point_value":1},"properties":{"correct_answers":{"description":"Option value strings that count as correct.","example":["Paris"],"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"correct_feedback":{"description":"Shown when the answer is fully correct and `show_feedback_to_respondent` is true.","example":"Correct!","nullable":true,"type":"string","x-struct":null,"x-validate":null},"incorrect_feedback":{"description":"Shown when the answer is wrong or partial and feedback is enabled.","example":"Not quite.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"partial_credit":{"description":"Multi-select only. Each correct option earns an equal share; wrong options remove a share.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"point_value":{"description":"Non-negative integer points awarded when the answer is correct.","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"required":["point_value","correct_answers"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"required":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Element type. Must match GET /v1/forms/field-types.","enum":["input","email","phone","url","number","address","text-area","select","multi-select","check-box","radio-buttons","linear-scale","slider","rating","star-rating","date","date-range","time","file-upload","signature","captcha","terms","http-request","heading-1","heading-2","heading-3","text","divider","image","video"],"example":"radio-buttons","type":"string","x-struct":null,"x-validate":null}},"required":["id","type"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"logic":{"description":"Conditional logic rules. Combinators: and, or. Actions: jump_to, show, hide, set_variable, end_form.","items":{"description":"Evaluated when the walk reaches `trigger_element_id`. Multiple rules may share a trigger;\nonly the first matching rule in array order fires. Do not use `element_id` — use `trigger_element_id`.\nSee GET /v1/forms/field-types `logic_rule_shape`.\n","example":{"actions":[{"target":"fetch-animation","type":"jump_to"}],"conditions":{"clauses":[{"field":"interest","operator":"equals","value":"Animation"}],"combinator":"and"},"id":"rule-1","trigger_element_id":"interest"},"properties":{"actions":{"items":{"description":"Use `type` (not `action_type`). Required fields by type:\n- jump_to / show / hide → `target` (element id)\n- end_form → `ending_id` (ending id, or null/omit for default thank-you)\n- set_variable → `variable` + `value` (number|string); optional `op` set|add|subtract\n","example":{"ending_id":"ending-pass","type":"end_form"},"properties":{"ending_id":{"description":"Ending id for end_form. Null/omit = default thank-you.","example":"ending-pass","nullable":true,"type":"string","x-struct":null,"x-validate":null},"op":{"enum":["set","add","subtract"],"example":"set","type":"string","x-struct":null,"x-validate":null},"target":{"description":"Element id for jump_to / show / hide","example":"q-followup","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["jump_to","show","hide","set_variable","end_form"],"example":"end_form","type":"string","x-struct":null,"x-validate":null},"value":{"description":"set_variable value (number or string).","example":1,"x-struct":null,"x-validate":null},"variable":{"description":"Name written to {{vars.*}}","example":"score_bonus","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"conditions":{"description":"Must be a map (not a list). clauses is a non-empty list.","example":{"clauses":[{"field":"q-capital","operator":"equals","value":"Paris"}],"combinator":"and"},"properties":{"clauses":{"items":{"description":"`field` is an element id (usually the trigger or an earlier answer). `value` is required except for unary operators always / is_answered / is_not_answered. `is_one_of` requires a list value.","example":{"field":"q-capital","operator":"equals","value":"Paris"},"properties":{"field":{"example":"q-capital","type":"string","x-struct":null,"x-validate":null},"operator":{"enum":["always","equals","not_equals","contains","not_contains","greater_than","less_than","is_answered","is_not_answered","is_one_of"],"example":"equals","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Comparison value. String/number/boolean, or a list for is_one_of.","example":"Paris","x-struct":null,"x-validate":null}},"required":["field","operator"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"combinator":{"enum":["and","or"],"example":"and","type":"string","x-struct":null,"x-validate":null}},"required":["combinator","clauses"],"type":"object","x-struct":null,"x-validate":null},"id":{"example":"rule-pass","type":"string","x-struct":null,"x-validate":null},"trigger_element_id":{"example":"q-capital","type":"string","x-struct":null,"x-validate":null}},"required":["id","trigger_element_id","conditions","actions"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"settings":{"description":"Complete form settings document. PUT /draft replaces this map — round-trip GET /v1/forms/:id.\n`appearance` is required when settings are sent. Nested objects are validated; invented keys\nunder `chat` / `quiz` are rejected. Correct answers are on elements (`properties.grading`), not here.\n","example":{"appearance":{"background_color":"#ffffff","button_color":"#111827","button_text_color":"#ffffff","description_color":"#6b7280","form_style":"default","label_color":"#111827"},"quiz":{"is_quiz":true,"show_feedback_to_respondent":true,"show_score_to_respondent":true},"submit_button_text":"Submit","thank_you_description":"Your answers were recorded.","thank_you_title":"Thanks!"},"properties":{"appearance":{"description":"Required when settings are sent. Colors are #RGB or #RRGGBB hex.","example":{"background_color":"#ffffff","button_color":"#111827","button_text_color":"#ffffff","description_color":"#6b7280","form_style":"default","label_color":"#111827"},"properties":{"background_color":{"example":"#ffffff","type":"string","x-struct":null,"x-validate":null},"button_color":{"example":"#000000","type":"string","x-struct":null,"x-validate":null},"button_text_color":{"example":"#ffffff","type":"string","x-struct":null,"x-validate":null},"description_color":{"example":"#666666","type":"string","x-struct":null,"x-validate":null},"form_style":{"description":"Public filler layout. Legacy alias `conversational` is accepted and stored as step_by_step.","enum":["default","step_by_step","chat"],"example":"default","type":"string","x-struct":null,"x-validate":null},"label_color":{"example":"#333333","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"chat":{"additionalProperties":false,"description":"Optional chatbot branding when `appearance.form_style` is `chat`.\nOnly these keys are accepted — unknown keys are rejected. Legacy aliases such as\ntyping_indicator / welcome_message / show_avatar are ignored on save for draft round-trips.\n","properties":{"accent_color":{"example":"#2563eb","type":"string","x-struct":null,"x-validate":null},"bot_avatar_url":{"example":"https://example.com/bot.png","type":"string","x-struct":null,"x-validate":null},"bot_bubble_color":{"example":"#f3f4f6","type":"string","x-struct":null,"x-validate":null},"bot_name":{"example":"Quiz Bot","type":"string","x-struct":null,"x-validate":null},"message_delay_ms":{"description":"Delay between bot messages (0–10000).","example":400,"maximum":10000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"show_typing_indicator":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"use_theme_colors":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"user_bubble_color":{"example":"#2563eb","type":"string","x-struct":null,"x-validate":null},"user_bubble_text_color":{"example":"#ffffff","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"collection":{"description":"Progress and confirmation-email flags. Subject/body/format/design are authoring-only.\nThe public form returns `needs_confirmation_email` when the respondent must supply an address.\n","properties":{"confirmation_email_body":{"example":"We received your response.","type":"string","x-struct":null,"x-validate":null},"confirmation_email_design":{"additionalProperties":true,"description":"Optional rich-email design document (map).","nullable":true,"type":"object","x-struct":null,"x-validate":null},"confirmation_email_format":{"enum":["html","plain"],"example":"html","type":"string","x-struct":null,"x-validate":null},"confirmation_email_subject":{"example":"Thanks for submitting","type":"string","x-struct":null,"x-validate":null},"require_confirmation_email":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"send_confirmation_email":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"show_progress_bar":{"example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"quiz":{"additionalProperties":false,"description":"Quiz flags. `is_quiz` false/omitted means the form is not graded.\nCorrect answers live on choice elements at `properties.grading` (not here).\nPublic submit includes `quiz.score`/`quiz.max_score` only when `show_score_to_respondent` is true,\nand `quiz.questions` (feedback) only when `show_feedback_to_respondent` is true.\nWhen `shuffle_questions` is true but the form has logic rules or answer/step dependencies,\nquestion order remains unchanged (shuffle is skipped, not rejected).\n","example":{"is_quiz":true,"show_feedback_to_respondent":true,"show_score_to_respondent":true,"shuffle_options":false,"shuffle_questions":false},"properties":{"is_quiz":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"show_feedback_to_respondent":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"show_score_to_respondent":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"shuffle_options":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"shuffle_questions":{"example":false,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"redirect_url":{"description":"Optional post-submit redirect. Must be absolute http(s) when set.","example":"https://example.com/thanks","type":"string","x-struct":null,"x-validate":null},"submit_button_text":{"example":"Submit","type":"string","x-struct":null,"x-validate":null},"thank_you_description":{"example":"You scored well — check your results above.","type":"string","x-struct":null,"x-validate":null},"thank_you_description_align":{"enum":["left","center","right"],"example":"left","type":"string","x-struct":null,"x-validate":null},"thank_you_title":{"example":"Thanks!","type":"string","x-struct":null,"x-validate":null},"thank_you_title_align":{"enum":["left","center","right"],"example":"left","type":"string","x-struct":null,"x-validate":null}},"required":["appearance"],"type":"object","x-struct":null,"x-validate":null},"variables":{"description":"Declared {{params.*}} / {{vars.*}} keys for piping.","items":{"description":"Declared URL param or calculated key for {{params.*}} / {{vars.*}}. Answer/step tokens come from elements — list via GET /v1/variables?form_id= after authoring.","example":{"default":"web","key":"utm_source","source":"param"},"properties":{"default":{"description":"Optional string, number, or null default.","example":"web","nullable":true,"x-struct":null,"x-validate":null},"key":{"example":"utm_source","type":"string","x-struct":null,"x-validate":null},"source":{"enum":["param","calculated"],"example":"param","type":"string","x-struct":null,"x-validate":null}},"required":["key","source"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"UpdateFormDraftParams","type":"object","x-struct":null,"x-validate":null},"IndexWorkScheduleResponse":{"description":"Index WorkSchedule Response schema","example":{"data":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":"bf40ebbd-0b50-42d9-b6db-e2f0efc9c75a","team_member_id":null,"timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}],"total":1},"properties":{"data":{"description":"List of Team/TeamMember's Work Schedules","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of Team/TeamMember's Work Schedules","type":"integer","x-struct":null,"x-validate":null}},"title":"IndexWorkScheduleResponse","type":"object","x-struct":null,"x-validate":null},"SearchContactsParams":{"description":"Parameters for searching and filtering contacts.","example":{"channels":[{"id":"b1361227-6adc-4056-bcb5-5449533787c5"},{"phone":"+14155552671"}],"created_at":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"},"email":"bill@shakespeare.uk","external_id":"ext-12345","limit":50,"name":"John","offset":0,"phone":"+442829-450266","updated_at":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"}},"properties":{"channels":{"description":"Filter by channels contacts have been opted in or out of","example":[{"id":"1eeb05c3-3678-4281-b584-9fadaae57353"},{"phone":"+14155552672"}],"items":{"properties":{"id":{"description":"Channel ID","example":"c6ff7528-8a36-4c1b-93c8-6b26a2fd8452","format":"uuid","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Created At Date in ISO 8601. `before` and `after` filter `contacts.inserted_at` and must be a full datetime, such as `2026-07-17T00:00:00Z`.","example":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"},"properties":{"after":{"example":"2025-03-01T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"example":"2025-02-27T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"cursor":{"description":"Cursor for keyset pagination. Use the next_cursor value from a previous response. Cannot be combined with offset.","example":"eyJuYW1lIjogIkpvaG4gV2lsbGlhbXMiLCAiaWQiOiAiMTFhMzdlMDUtMmRjMi00ZDc2LTg3ODUtYmE4MDUwYTliMTk5In0","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Email address of the contact. Matched as a case-insensitive substring.","example":"bill@shakespeare.uk","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"Default: filter open contacts by `contacts.external_id` (exact match).\nWith `join_lookup=true`: match `contacts_integrations.external_id` (any contact state).\nRequired when `join_lookup=true`.\n","example":"ext-12345","type":"string","x-struct":null,"x-validate":null},"ids":{"description":"Filter by contact IDs","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"integration_id":{"description":"Required with `join_lookup=true`. UUID of the integration for join-table discovery.\nDistinct from `has_integration`. Ignored for join discovery unless `join_lookup=true`.\n","example":"86b8d356-ab66-42b2-8349-959541706016","format":"uuid","type":"string","x-struct":null,"x-validate":null},"join_lookup":{"description":"When true, discover contacts via `contacts_integrations` for `integration_id` +\n`external_id`, including non-open states. Requires both ids. Without this flag,\nsearch stays open-only and those params do not activate join discovery.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"limit":{"description":"Number of results to return","example":50,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"Can be set to any string or nil/null to return contacts with no name. Matched as a case-insensitive substring.","example":"John","type":"string","x-struct":null,"x-validate":null},"offset":{"description":"Number of results to skip. Cannot be combined with cursor.","example":0,"type":"integer","x-struct":null,"x-validate":null},"phone":{"description":"Phone number of the contact. A non-E.164 value is a case-insensitive substring.","example":"+442829-450266","type":"string","x-struct":null,"x-validate":null},"states":{"description":"Contact states to include. Absent means open contacts only.\n`all` returns every state (`open`, `archived`, `blocked`, `merged`).\nA single state such as `archived` limits the list to that state.\nA non-empty JSON array such as `[\"archived\", \"open\"]`, or repeated `states[]`,\nallows a subset. `[\"all\"]` is the same as `all`.\n`all` cannot be combined with specific states.\nThe state filter applies to every contact the list returns.\n","example":"all","oneOf":[{"enum":["all","open","archived","blocked","merged"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["open","archived","blocked","merged"],"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"items":{"enum":["all"],"type":"string","x-struct":null,"x-validate":null},"maxItems":1,"minItems":1,"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"updated_at":{"description":"Updated At Date in ISO 8601","example":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"},"properties":{"after":{"example":"2025-03-01T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"example":"2025-02-27T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"SearchContactsParams","type":"object","x-struct":null,"x-validate":null},"CreateInviteResponse":{"example":{"data":{"accepted":false,"channels":[{"address":"test-address","automatic_response_closed":null,"automatic_response_open":null,"automatic_response_settings":null,"delivery_options":{"messages_per_period":100,"period":30},"google_account_id":null,"google_location_id":"google_location_id","google_place_id":"place_id","id":"4cfb7735-e592-457d-9e17-169b1c118e03","name":null,"opening_hours":[],"phone":"+14252370616","provider":"telnyx","provider_auth":null,"review_link":null,"send_automatic_response_when":"never","settings":{"auto_close_conversation_after":30,"link_tracking":{"default_domain_id":null,"disabled":false}},"state":"enabled","ten_dlc_campaign_id":null,"timezone":"America/Chicago","type":"phone","widget_setting_id":null}],"email":"new_email@example.com","expired":false,"id":1036,"inserted_at":"2024-06-07T15:30:00Z","sso_enabled":false,"token":"025f8b12-2346-4d38-9a04-48809e75ee1d"}},"properties":{"data":{"description":"Single Invite","example":{"accepted":false,"channels":[{"address":"test-address","automatic_response_closed":null,"automatic_response_open":null,"automatic_response_settings":null,"delivery_options":{"messages_per_period":100,"period":30},"google_account_id":null,"google_location_id":"google_location_id","google_place_id":"place_id","id":"4cfb7735-e592-457d-9e17-169b1c118e03","name":null,"opening_hours":[],"phone":"+14252370616","provider":"telnyx","provider_auth":null,"review_link":null,"send_automatic_response_when":"never","settings":{"auto_close_conversation_after":30,"link_tracking":{"default_domain_id":null,"disabled":false}},"state":"enabled","ten_dlc_campaign_id":null,"timezone":"America/Chicago","type":"phone","widget_setting_id":null}],"email":"new_email@example.com","expired":false,"id":1036,"inserted_at":"2024-06-07T15:30:00Z","sso_enabled":false,"token":"025f8b12-2346-4d38-9a04-48809e75ee1d"},"properties":{"accepted":{"description":"Has the invite been accepted","example":false,"type":"boolean","x-struct":null,"x-validate":null},"channels":{"description":"List of Channels","example":[{"address":"test-address","automatic_response_closed":null,"automatic_response_open":null,"automatic_response_settings":null,"delivery_options":{"messages_per_period":100,"period":30},"google_account_id":null,"google_location_id":"google_location_id","google_place_id":"place_id","id":"4cfb7735-e592-457d-9e17-169b1c118e03","name":null,"opening_hours":[],"phone":"+14252370616","provider":"telnyx","provider_auth":null,"review_link":null,"send_automatic_response_when":"never","settings":{"auto_close_conversation_after":30,"link_tracking":{"default_domain_id":null,"disabled":false}},"state":"enabled","ten_dlc_campaign_id":null,"timezone":"America/Chicago","type":"phone","widget_setting_id":null}],"items":{"description":"Single Channel","example":{"address":"test-address","automatic_response_closed":null,"automatic_response_open":null,"automatic_response_settings":null,"delivery_options":{"messages_per_period":100,"period":30},"google_account_id":null,"google_location_id":"google_location_id","google_place_id":"place_id","id":"4cfb7735-e592-457d-9e17-169b1c118e03","name":null,"opening_hours":[],"phone":"+14252370616","provider":"telnyx","provider_auth":null,"review_link":null,"send_automatic_response_when":"never","settings":{"auto_close_conversation_after":30,"link_tracking":{"default_domain_id":null,"disabled":false}},"state":"enabled","ten_dlc_campaign_id":null,"timezone":"America/Chicago","type":"phone","widget_setting_id":null},"properties":{"address":{"description":"Channel address","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"automatic_response_closed":{"description":"Automated message when channel is closed","type":"string","x-struct":null,"x-validate":null},"automatic_response_open":{"description":"Automated message when channel is open","type":"string","x-struct":null,"x-validate":null},"automatic_response_settings":{"description":"Automatic response settings","properties":{"closed":{"description":"Action to perform when channel is closed (outside business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"open":{"description":"Action to perform when channel is open (business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"send_when":{"description":"When to send automatic responses","enum":["always","never","open","closed"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"google_place_id":{"description":"The channel's Google Place ID","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","type":"string","x-struct":null,"x-validate":null},"settings":{"description":"Channel Settings","properties":{"ai":{"description":"AI settings:\n  * `persist_detected_contact_language`: true | false | nil - When enabled, persist the AI-detected contact language on the contact record. The default value is `false`.\n","example":{"persist_detected_contact_language":false},"properties":{"persist_detected_contact_language":{"default":false,"description":"Persist the language detected by AI as the contact's language","nullable":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"auto_close_conversation_after":{"description":"Time period in days after which to automatically close inactive open conversations.","type":"integer","x-struct":null,"x-validate":null},"link_tracking":{"additionalProperties":false,"description":"Link tracking settings:\n  * `disabled`: Should link tracking be disabled for the location?\n  * `default_domain_id`: Default domain that will be used for the location (default: nil).\n\nThe `disabled` setting only applies when link tracking is enabled for the organization.\n\nThe `default_domain_id` setting applies for 1-1 messages, and campaign/sequence messages\nin case the domain is not set for the campaign or sequence.\n","example":{"default_domain_id":null,"disabled":false},"properties":{"default_domain_id":{"description":"Default domain ID used for the location when not set explicitly.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"disabled":{"default":false,"description":"Disable link tracking at the location level.","type":"boolean","x-struct":null,"x-validate":null}},"title":"LinkTracking","type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"state":{"description":"Channel state - open, archived, blocked","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the channel","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"Pacific/Fiji","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"email":{"description":"Invitee's email","example":"new_email@example.com","type":"string","x-struct":null,"x-validate":null},"expired":{"description":"Has the invite expired","example":false,"type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Invite ID","example":1036,"type":"integer","x-struct":null,"x-validate":null},"inserted_at":{"description":"Time when the Invite was inserted","example":"2024-06-07T15:30:00Z","type":"string","x-struct":null,"x-validate":null},"sso_enabled":{"description":"Whether SSO is enabled for the invite's organization","example":false,"type":"boolean","x-struct":null,"x-validate":null},"token":{"description":"Invite token","example":"025f8b12-2346-4d38-9a04-48809e75ee1d","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateInviteResponse","type":"object","x-struct":null,"x-validate":null},"ContactLeadUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Lead POST requests.\n","example":{"errors":[{"description":"Missing or invalid Inbound message params"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Lead 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Missing or invalid Inbound message params","Missing one of Body or Attachments for Inbound message","Invalid Contact Phone number +14244023","Invalid Phone number +14244023","Missing Contact Phone","Missing Contact params","Invalid Contact params","Missing Channel ID"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactLeadUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Lead.Errors.UnprocessableContent","x-validate":null},"ShowLLMVersionResponse":{"additionalProperties":false,"example":{"data":{"created_at":"2024-04-30T08:56:24Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"GPT-4.1-Mini - Assistant","id":"58984c17-b73a-4561-8f3a-bc7b2080402d","knowledge_base_ids":["dbc06cc7-44f0-411b-8221-1d740add0ac9"],"llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","id":"6accb2d7-b602-4c66-b803-07383ca0a510","organization_id":"48995db9-9fd6-4858-9e32-a26150cbec0f","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"model":"gpt-4.1-mini","notes":null,"organization":{"id":"48995db9-9fd6-4858-9e32-a26150cbec0f","name":"Hello Inc."},"prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}}},"properties":{"data":{"description":"LLM version record","example":{"created_at":"2024-04-30T08:56:24Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"GPT-4.1-Mini - Assistant","id":"58984c17-b73a-4561-8f3a-bc7b2080402d","knowledge_base_ids":["dbc06cc7-44f0-411b-8221-1d740add0ac9"],"llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","id":"6accb2d7-b602-4c66-b803-07383ca0a510","organization_id":"48995db9-9fd6-4858-9e32-a26150cbec0f","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"model":"gpt-4.1-mini","notes":null,"organization":{"id":"48995db9-9fd6-4858-9e32-a26150cbec0f","name":"Hello Inc."},"prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"User that created the LLM version","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"58984c17-b73a-4561-8f3a-bc7b2080402d","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["dbc06cc7-44f0-411b-8221-1d740add0ac9"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"dbc06cc7-44f0-411b-8221-1d740add0ac9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm":{"additionalProperties":false,"description":"LLM that the version belongs to","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"58984c17-b73a-4561-8f3a-bc7b2080402d","id":"6accb2d7-b602-4c66-b803-07383ca0a510","organization_id":"48995db9-9fd6-4858-9e32-a26150cbec0f","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the LLM in ISO 8601 format","example":"2024-02-28T12:33:40Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version_id":{"description":"ID of the current LLM version","example":"58984c17-b73a-4561-8f3a-bc7b2080402d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the LLM in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft LLM version","example":"58984c17-b73a-4561-8f3a-bc7b2080402d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"LLM ID","example":"6accb2d7-b602-4c66-b803-07383ca0a510","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the LLM belongs to","example":"48995db9-9fd6-4858-9e32-a26150cbec0f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"LLM status","enum":["draft","active","archived","deleted"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the LLM in ISO 8601 format","example":"2024-02-28T12:38:32Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","created_by_id","deleted_at","current_version_id","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Organization that the LLM version belongs to","example":{"id":"48995db9-9fd6-4858-9e32-a26150cbec0f","name":"Hello Inc."},"nullable":true,"properties":{"id":{"description":"Organization ID","example":"48995db9-9fd6-4858-9e32-a26150cbec0f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowLLMVersionResponse","type":"object","x-struct":null,"x-validate":null},"UnassignTeamAction":{"additionalProperties":false,"description":"Unassign Team Action params used when processing the action.","properties":{},"title":"UnassignTeamAction","type":"object","x-struct":null,"x-validate":null},"CreateCustomPropertyResponse":{"description":"Response schema for creating Custom Properties.","example":{"data":{"ai_context":"This property stores the customer's city for location-based services","created_at":"2023-07-28T07:07:50","created_by_id":42,"custom_object_id":"e4d25626-6412-43ed-abf0-692f40485326","default":"default_value","id":"9023d008-0451-412f-90da-cb5005617c1a","key":"custom_property_key","label":"Custom Property Label","references":[{"custom_object_id":"e4d25626-6412-43ed-abf0-692f40485326","custom_property_id":"4f3f2471-cb0c-41a2-88be-63e642181e03","id":"924ba317-03d4-45f2-b78b-a294fb684d7e","type":"one_to_many"}],"required":false,"type":"text","updated_at":"2023-07-28T07:07:50"}},"properties":{"data":{"properties":{"ai_context":{"description":"Additional context information for AI features","example":"This property stores the customer's city for location-based services","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"The date and time the Custom Property was inserted","example":"2023-07-28T07:07:50","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"The ID of the user who created this property. Null when an integration defined it.","example":42,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"custom_object_id":{"description":"The ID of the Custom Object","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"default":{"description":"The default value of the Custom Property","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The id of the Custom Property","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Property in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Property","example":"City","type":"string","x-struct":null,"x-validate":null},"references":{"items":{"properties":{"custom_object_id":{"description":"The ID of the Custom Object that contains the referenced Custom Property","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"custom_property_id":{"description":"The ID of the Custom Property that is referenced","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the reference","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the reference","enum":["many_to_one","many_to_many","one_to_one","one_to_many"],"example":"one_to_many","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"required":{"description":"Whether the Custom Property is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"The type of the Custom Property","enum":["text","number","float","boolean","date","list","map"],"example":"text","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Property was updated","example":"2023-07-28T07:07:50","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateCustomPropertyResponse","type":"object","x-struct":null,"x-validate":null},"TransferCallToolSettings":{"example":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"properties":{"check_availability_enabled":{"default":false,"description":"Enables live availability checks and busy-call behavior.\n\nMobile and desk phones are not supported. Users without live voice presence are treated as unavailable for direct transfers. Leave disabled for users relying on these devices.\n\nWhen omitted or false, transfer directly without checking availability or using busy-call rules.\n","type":"boolean","x-struct":null,"x-validate":null},"transfer_options":{"description":"Transfer options for the tool","items":{"properties":{"identifier":{"description":"Transfer option identifier","example":"Support","type":"string","x-struct":null,"x-validate":null},"on_call_behavior":{"default":"unavailable","description":"Behavior when no user or team member is available and at least one is on a call.\n\n* `enqueue`: Park the call in the destination channel's default queue.\n* `unavailable`: Leave the call with the agent and report the destination as unavailable.\n\nUsed only when `check_availability_enabled` is true. Ignored for agent, phone number, and PBX destinations.\n","enum":["enqueue","unavailable"],"example":"enqueue","type":"string","x-struct":null,"x-validate":null},"sip_auth":{"description":"Optional digest credentials for forward_to_sip_uri. Send username and password together. The password is encrypted at rest and responses return password_configured. Omit sip_auth when the trunk authenticates by IP.","example":{"password_configured":true,"username":"trunk"},"type":"object","x-struct":null,"x-validate":null},"target_channel_phone":{"description":"Optional E.164 channel phone number used as a transfer target. Applies to forward_to_user, forward_to_team, forward_to_agent, and forward_to_sip_uri. Uses the current call channel when omitted.","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Transfer option type","enum":["forward_to_user","forward_to_team","forward_to_agent","forward_to_phone_number","forward_to_sip_uri"],"example":"forward_to_agent","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Organization user ID, team UUID, agent UUID, E.164 phone number, or SIP URI. `forward_to_sip_uri` is a URI such as `sip:2105@pbx.example.com`.","example":"b2ed0207-6eb6-4cef-aaa4-cf2e843a0bab","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["identifier","type","value"],"type":"object","x-struct":null,"x-validate":null},"maxItems":36,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["transfer_options"],"title":"TransferCallToolSettings","type":"object","x-struct":null,"x-validate":null},"StartAgentChatResponse":{"description":"Response schema for starting a chat agent session.","example":{"data":{"agent_version":{"agent_id":"550e8400-e29b-41d4-a716-446655440003","created_at":"2023-01-01T00:00:00Z","created_by_id":"550e8400-e29b-41d4-a716-446655440005","description":"Handles customer inquiries and support requests","id":"550e8400-e29b-41d4-a716-446655440002","llm_id":"550e8400-e29b-41d4-a716-446655440004","name":"Customer Support Agent","organization_id":"550e8400-e29b-41d4-a716-446655440006","settings":{}},"chat_completion_rating":"complete","chat_summary":null,"chat_transcript":"","conversation_id":"550e8400-e29b-41d4-a716-446655440001","custom_analysis_data":null,"ended_at":null,"ended_reason":null,"id":"550e8400-e29b-41d4-a716-446655440000","language":"en","messages":[],"started_at":"2023-01-01T12:00:00Z","translated_chat_transcript":"","translation_language":"en","user_language":"en","user_sentiment":"neutral"}},"properties":{"data":{"description":"Conversation agent session data","properties":{"agent_version":{"description":"Agent Version used in the Chat","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"5351bd6b-29b6-4e2a-8509-e358b2ebdb24","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"chat_completion_rating":{"description":"Chat completion rating","enum":["complete","incomplete"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"chat_summary":{"description":"Summary of the chat conversation","nullable":true,"type":"string","x-struct":null,"x-validate":null},"chat_transcript":{"description":"Formatted chat transcript with original messages","example":"User: Hello, I need help\\nAgent: Hi! How can I assist you today?","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"ID of the conversation","example":"550e8400-e29b-41d4-a716-446655440001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_analysis_data":{"description":"Custom analysis data","nullable":true,"type":"object","x-struct":null,"x-validate":null},"ended_at":{"description":"Session end timestamp (null if active)","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"ended_reason":{"description":"Reason for session end (null if active)","enum":["agent_ended","user_ended","max_duration_timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the conversation agent session","example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"Original language","nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"description":"Messages part of the chat session","items":{"properties":{"attachments":{"description":"List of attachments belonging to the message","items":{"description":"Single message attachment","properties":{"content_type":{"description":"MIME type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the attachment","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Original message body","type":"string","x-struct":null,"x-validate":null},"campaign_contact_id":{"description":"Campaign contact ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"ID of the campaign the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the message is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Direction of the message","enum":["INBOUND","OUTBOUND"],"type":"string","x-struct":null,"x-validate":null},"from":{"description":"Phone number that sent the message","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"ISO-639-1 code for the original language of the message","type":"string","x-struct":null,"x-validate":null},"metadata":{"description":"Message metadata","nullable":true,"type":"object","x-struct":null,"x-validate":null},"mode":{"description":"Message mode","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"ID of the sequence the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_contact_id":{"description":"ID of the StepContact the message belongs to (would be nil for outbound messages)","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the sequence step the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Phone number that received the message","example":"+14243056789","type":"string","x-struct":null,"x-validate":null},"translated_body":{"description":"Translated message body","type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"ISO-639-1 code for the language the message was translated into","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the message","enum":["sms","mms","call","whatsapp","messenger","instagram","email","note","fax"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the message was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user who sent the message","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"started_at":{"description":"Session start timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"translated_chat_transcript":{"description":"Formatted chat transcript with translated messages","example":"User: Hello, I need help\\nAgent: Hi! How can I assist you today?","type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"Translation language","nullable":true,"type":"string","x-struct":null,"x-validate":null},"user_language":{"description":"Detected user language","enum":["","aa","ab","ace","ach","af","sq","alz","am","ar","hy","as","awa","ay","az","ban","bm","ba","eu","btx","bts","bbc","be","bem","bn","bew","bho","bik","bs","br","bg","bua","yue","ca","ceb","ny","zh-CN","zh","zh-TW","cv","co","crh","hr","cs","da","din","dv","doi","dov","nl","dz","en","eo","et","ee","fj","fil","tl","fi","fr","fr-FR","fr-CA","fy","ff","gaa","gl","lg","ka","de","el","gn","gu","ht","cnh","ha","haw","iw","he","hil","hi","hmn","hu","hrx","is","ig","ilo","id","ga","it","ja","jw","jv","kn","pam","kk","km","cgg","rw","ktu","gom","ko","kri","ku","ckb","ky","lo","ltg","la","lv","lij","li","ln","lt","lmo","luo","lb","mk","mai","mak","mg","ms","ms-Arab","ml","mt","mi","mr","chm","mni-Mtei","min","lus","mn","my","nr","new","ne","nso","no","nus","oc","or","om","pag","pap","ps","fa","pl","pt","pt-PT","pt-BR","pa","pa-Arab","qu","rom","ro","rn","ru","sm","sg","sa","gd","sr","st","crs","shn","sn","scn","szl","sd","si","sk","sl","so","es","su","sw","ss","sv","tg","ta","tt","te","tet","th","ti","ts","tn","tr","tk","ak","uk","ur","ug","uz","vi","cy","xh","yi","yo","yua","zu"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"user_sentiment":{"description":"Detected user sentiment","enum":["neutral","positive","negative"],"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"StartAgentChatResponse","type":"object","x-struct":null,"x-validate":null},"ListTemplates":{"description":"List Response for Templates","example":{"data":[{"access_level":"organization","channels":[],"color":"#000000","created_at":"2021-06-22T10:36:07Z","created_by_id":1,"description":"description","emoji":"🌲","id":"511f9070-8f86-439a-afe5-4794a898f0ad","message":"first-template-message","organization_id":"9f972a36-cb4d-4ef1-89bc-a4fb4564e509","title":"first-template","updated_at":"2021-06-22T10:36:07Z","updated_by_id":2}],"total":1},"properties":{"data":{"description":"List of templates","items":{"description":"Single template data","properties":{"access_level":{"description":"Access level of the template. Location is equivalent to a specific channel record.","enum":["organization","location","user"],"type":"string","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments belonging to the template","items":{"description":"Single template attachment","properties":{"content_type":{"description":"MIME type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the attachment","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"channel_ids":{"description":"IDs of the channels (locations) the template belongs to.","items":{"description":"Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Template color","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the template","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the template","type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Template description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Template emoji","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Template ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Template message body","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Template title","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the template","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the template","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata. Returned for cursor-paginated responses and for default offset-paginated responses, where it provides an offset-to-cursor bootstrap so clients can transition to cursor pagination.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor could not be used (malformed or no longer resolvable) and this page was reset to the first page; `false` otherwise.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total number of templates matching the search criteria","type":"integer","x-struct":null,"x-validate":null}},"title":"ListTemplates","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Templates.Template.ListResponse","x-validate":null},"FaxCampaignParams":{"description":"Request schema for creating a fax campaign at `POST /v1/campaigns/fax`.\n\nOne of `body` or `attachments` is required.\n\n`status: \"draft\"` saves a draft. `status: \"scheduled\"` sends once at `schedule_at` and requires\n`included_audience`. `status: \"recurring\"` starts a series and requires `included_audience` and\n`recurring_settings` (`cron_expression`, `timezone`, `start_date`, optional `end_date`).\nThere is no `to` list on this endpoint.\n","example":{"body":"Hello","from":"+14155552672","included_audience":[{"column":"id","comparison":"in","resource":"list","value":["13df1ecd-4a3a-43ca-b416-b6e32dd5de1d"]}],"status":"draft","title":"Fax campaign"},"properties":{"attachments":{"description":"List of attachment URLs for the campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of automation template IDs. At most 50.","items":{"description":"Automation Template ID","example":"687a4e27-0246-477a-9d75-26f62a71e6bb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Limited to 1000 characters.","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Optional. When omitted, the default\ncampaign exclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"from":{"description":"Phone number of the fax channel.","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Optional for a draft. Required when\n`status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["bc8b24d5-c39e-4026-87bc-1c6654d0abc2"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_at":{"description":"ISO 8601 time. Required when `status` is `scheduled`.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"`draft` saves a draft and does not send. `scheduled` sends once at `schedule_at`.\n`recurring` starts a series. One of these is required.\n","enum":["draft","scheduled","recurring"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null}},"required":["from","title"],"title":"FaxCampaignParams","type":"object","x-struct":null,"x-validate":null},"CustomEventCreateUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Custom Event create requests.\n","example":{"errors":[{"description":"Missing event field"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Event create 422 errors","items":{"description":"Single 422 error","properties":{"description":{"description":"Error description for single event creation","example":"Missing event field","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomEventCreateUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomEvents.CustomEvent.Errors.UnprocessableContent","x-validate":null},"CreateTemplatesResponse":{"description":"Create Template Response","example":{"data":{"access_level":"organization","attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"channel_ids":[],"color":"#000000","created_at":"2021-06-22T10:36:07Z","created_by_id":1,"description":"description","emoji":"🌲","id":"cf8afd0e-044a-4959-bbe0-4c3df6944062","message":"first-template-message","organization_id":"f0420d36-8b1d-4fd0-84d8-97b4982fd3d5","title":"first-template","updated_at":"2021-06-22T10:36:07Z","updated_by_id":2}},"properties":{"data":{"description":"Template data","properties":{"access_level":{"description":"Access level of the template. Location is equivalent to a specific channel record.","enum":["organization","location","user"],"type":"string","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments belonging to the template","items":{"description":"Single template attachment","properties":{"content_type":{"description":"MIME type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the attachment","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"channel_ids":{"description":"IDs of the channels (locations) the template belongs to.","items":{"description":"Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Template color","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the template","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the template","type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Template description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Template emoji","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Template ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Template message body","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Template title","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the template","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the template","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateTemplatesResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Templates.Template.CreateResponse","x-validate":null},"ConversationUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Conversation PUT requests.\n","example":{"errors":[{"description":"Unread count can be updated only to 0 or 1"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Conversation 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Unread count can be updated only to 0 or 1","Assigned user ID is invalid","Conversation status can be updated to: \"open\", \"closed\", or \"spam\""],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ConversationUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Conversations.Conversation.Errors.UnprocessableContent","x-validate":null},"SendFaxParams":{"description":"Request schema for sending a fax.\n\nOne of `body` or `attachments` is required.\n\nThe `from` number must belong to an enabled **fax** channel in your organization.\n","example":{"attachments":["https://example.com/documents/letter.pdf"],"body":"Please see the attached cover letter.","conversation_status":"open","from":"+14155552672","to":"+14155552671"},"properties":{"attachments":{"description":"HTTPS URLs of documents to send (up to 10). Whippy downloads each file, stores a copy in your\norganization storage, and sends the fax using those Whippy-hosted URLs (same model as SMS/MMS\nattachments). URLs must use HTTPS with a non-empty host.\n","items":{"description":"HTTPS URL of a document to send (for example a PDF or TIFF)","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Plain-text fax body. Whippy converts this to a PDF at send time (first page/leg).","type":"string","x-struct":null,"x-validate":null},"conversation_status":{"description":"Status to set for the conversation. If omitted, the conversation status is unchanged.","enum":["automated","open","closed"],"type":"string","x-struct":null,"x-validate":null},"from":{"description":"Phone number of an existing fax channel belonging to your organization","type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"Optional scheduling time. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Destination fax or phone number","type":"string","x-struct":null,"x-validate":null}},"required":["to","from"],"title":"SendFaxParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Fax.CreateParams","x-validate":null},"ListConversationsResponse":{"description":"Response schema for listing conversations.","example":{"data":[{"assigned_team_id":"0003c6fe-e469-4e59-8a73-be8ce58f6d53","assigned_user_id":1,"channel_id":"439c8ce0-73b8-4168-870d-b3e0c4bd0d7a","channel_type":"phone","contact_id":"30ca5d34-f759-4811-acd4-973ac8ede923","created_at":"2021-06-22T07:45:45","id":"70c5c186-107e-4122-ba5c-24ac072f5898","last_message_date":"2021-06-22T07:45:45","status":"open","unread_count":3,"updated_at":"2021-06-22T07:45:45"},{"assigned_team_id":"0003c6fe-e469-4e59-8a73-be8ce58f6d53","assigned_user_id":1,"channel_id":"add1caad-7880-42e2-8763-3b64c44d309e","channel_type":"phone","contact_id":"9e0f8759-83c2-479d-b409-76ffe807b9d8","created_at":"2021-06-22T07:45:45","id":"0ba4f325-6488-4d14-b926-49deb743881a","last_message_date":"2021-06-22T07:45:45","status":"open","unread_count":3,"updated_at":"2021-06-22T07:45:45"}],"total":2},"properties":{"data":{"description":"List of conversations","items":{"description":"Single conversation data","properties":{"assigned_team_id":{"description":"ID of the team assigned to the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"assigned_user_id":{"description":"ID of the user assigned to the conversation","type":"integer","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the conversation belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_type":{"description":"Type of channel for the conversation","enum":["phone","email","fax"],"type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact in the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the conversation is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_message_date":{"description":"Date of the last message belonging to the conversation","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Status of the conversation","enum":["open","closed","automated","spam"],"type":"string","x-struct":null,"x-validate":null},"unread_count":{"description":"Number of unread messages in the conversation","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the conversation was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total count of conversations without limit and offset","type":"integer","x-struct":null,"x-validate":null}},"title":"ListConversationsResponse","type":"object","x-struct":null,"x-validate":null},"ListInvitesResponse":{"description":"List Invites Response schema","example":{"data":[{"accepted":false,"channels":[],"email":"new_invite@example.com","expired":false,"id":6,"inserted_at":"2021-06-23T15:30:00Z","sso_enabled":false,"token":"4b8d2519-0067-4daf-8957-c485070aceb3"}]},"properties":{"data":{"description":"List of invites","items":{"properties":{"accepted":{"description":"Has the invite been accepted","type":"boolean","x-struct":null,"x-validate":null},"channels":{"description":"Associated channels","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"email":{"description":"Invitee's email","format":"email","type":"string","x-struct":null,"x-validate":null},"expired":{"description":"Has the invite expired","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Invite ID","type":"integer","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"token":{"description":"Invite token","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"ListInvitesResponse","type":"object","x-struct":null,"x-validate":null},"ListCampaignContactsResponse":{"description":"Response schema for listing campaign contacts","example":{"data":[{"contact":{"email":"carlsagan@example.com","name":"Carl Sagan","phone":"+142481208301"},"message":{"delivery_status":"delivered","id":"9d986f94-425c-4f64-af8a-da41298b1c9b"}},{"contact":{"email":"richardfeynman@example.com","name":"Richard Feynman","phone":"+142481208302"},"message":{"delivery_status":"delivered","id":"d12b1f9f-7035-4cf9-b111-0f0bf133472b"}}],"total":2},"properties":{"data":{"description":"List of campaigns contacts with messages for a campaign.","items":{"description":"Data for a specific campaign contact.","properties":{"contact":{"description":"General contact data","properties":{"email":{"description":"Contact email","format":"email","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"message":{"description":"Message the contact received","properties":{"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total count of campaign contacts.","type":"integer","x-struct":null,"x-validate":null}},"title":"ListCampaignContactsResponse","type":"object","x-struct":null,"x-validate":null},"StepContactNotFoundErrorResponse":{"description":"Sequence or Step Contact Not Found Error Response schema","example":{"errors":[{"description":"Step Contact not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Step contacts 404 error","items":{"properties":{"description":{"enum":["Sequence not found","Step Contact not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"StepContactNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.StepContact.Errors.NotFound","x-validate":null},"ListWorkflowVersionsResponse":{"description":"Response schema for listing workflow versions.","example":{"data":[{"current":false,"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","inserted_at":"2026-07-28T14:10:00Z","state":"draft","updated_at":"2026-07-28T14:10:00Z","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","workflow_name":"Process inbound lead","workflow_state":"draft"}]},"properties":{"data":{"description":"Versions for the workflow","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["data"],"title":"ListWorkflowVersionsResponse","type":"object","x-struct":null,"x-validate":null},"ShowToolResponse":{"additionalProperties":false,"description":"Response schema for tool records.","example":{"data":{"actions":[],"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null},"description":"Transfers the call at the contact's request.","id":"f11c8d2b-5d43-45bb-85f4-82c5c6d60932","label":"Transfer Call","name":"transfer_call","organization":{"ai_context":null,"id":"cbe60d20-c00c-4bcf-bbfc-f17b72ce3f04","name":"Wayne Enterprises"},"settings":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"signing_api_key_id":null,"type":"transfer_call","updated_at":"2026-08-07T09:00:00Z","updated_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null}}},"properties":{"data":{"additionalProperties":false,"description":"Tool record","example":{"actions":[],"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null},"description":"Transfers the call at the contact's request.","id":"f11c8d2b-5d43-45bb-85f4-82c5c6d60932","label":"Transfer Call","name":"transfer_call","organization":{"ai_context":null,"id":"cbe60d20-c00c-4bcf-bbfc-f17b72ce3f04","name":"Wayne Enterprises"},"settings":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"signing_api_key_id":null,"type":"transfer_call","updated_at":"2026-08-07T09:00:00Z","updated_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null}},"properties":{"actions":{"description":"Actions executed by the tool","items":{"additionalProperties":false,"description":"Action associated with a segment, automation, or other trigger","example":{"approval_required":false,"approval_required_by_id":null,"created_at":"2026-08-07T09:00:00Z","enabled":true,"id":"d6bfc6e4-57f5-416d-b47c-82e0e784b80a","organization_id":"13934067-3953-4176-9a63-baf830b0396a","params":{"body":"Thanks for contacting us.","type":"static"},"type":"send_message","updated_at":"2026-08-07T09:00:00Z"},"properties":{"approval_required":{"default":false,"description":"Action require approval","type":"boolean","x-struct":null,"x-validate":null},"approval_required_by_id":{"description":"Action required approval by user ID","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Action enabled state","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Action ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"838ae82f-44b6-43a3-97dc-c1d8b676b380","format":"uuid","type":"string","x-struct":null,"x-validate":null},"params":{"description":"Parameters for the selected action `type`.\n\n- `send_message`:\n  - **Required:**\n    - `body`: Message body.\n  - **Optional:**\n    - `type`: Whether the message body is `prompt` generated or `static`.\n    - `attachment_urls`: List of attachment URLs.\n    - `attachments`: List of attachments, each containing `url` and `content_type` (the MIME type).\n\n- `add_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to add to the contact.\n\n- `remove_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to remove from the contact.\n\n- `assign_user`:\n  - **Required:**\n    - `user_id`: Integer ID of the user to assign to the conversation.\n\n- `unassign_user`: No params are accepted; use `{}`.\n\n- `assign_team`:\n  - **Required:**\n    - `team_id`: UUID of the team to assign.\n\n- `unassign_team`: No params are accepted; use `{}`.\n\n- `add_to_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to add the contact to.\n\n- `remove_from_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to remove the contact from.\n\n- `move_to_step`:\n  - **Required:**\n    - `sequence_id`: Sequence UUID.\n    - `step_id`: Step UUID.\n\n- `opt_in`: No params are accepted; use `{}`.\n\n- `opt_out`: No params are accepted; use `{}`.\n\n- `notify_users`:\n  - **Required:**\n    - `user_ids`: List of integer user IDs or their digit-only string representations.\n\n- `update_conversation_status`:\n  - **Required:**\n    - `status`: New conversation status, either `open` or `closed`.\n\n- `send_email`:\n  - **Required:**\n    - `subject`: Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and the message-triggered `{{inbound_message}}`, `{{outbound_message}}`, and `{{form_transcript}}` placeholders.\n    - `body`: Email body. Supports the same Whippy placeholders as `subject`.\n  - **Optional:**\n    - `type`: Whether the email subject and body are `prompt` generated or `static`.\n    - `to`: Recipient email address.\n    - `from`: Sender email address.\n    - `cc`: CC email address.\n    - `bcc`: BCC email address.\n    - `reply_to`: Reply-to email address.\n\n- `start_call_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the call.\n  - **Optional:**\n    - `bypass_quiet_hours`: Whether to bypass quiet-hours restrictions.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `start_chat_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the chat.\n  - **Optional:**\n    - `send_initial_message`: Whether to send an initial message to the Agent.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `send_http_request`:\n  - **Required:**\n    - `method`: HTTP method, either `GET` or `POST`.\n    - `url`: Public HTTPS endpoint.\n  - **Optional:**\n    - `payload`: JSON request payload.\n","oneOf":[{"description":"Send Message Action params used when processing the action.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Automated message, yay!"},"properties":{"attachment_urls":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments with content type","example":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"items":{"description":"Attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Body of a message action","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the message body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["body"],"title":"SendMessageAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add Tags Action params used when processing the action.","example":{"tag_ids":["c2a23fdb-668c-4cf1-8926-314cb77ffa26","041ab842-4eb7-4290-93bc-900e546dc971"]},"properties":{"tag_ids":{"description":"List of tags to add to the contact","items":{"description":"Tag ID","example":"cfeb9d29-9671-4dc8-9a24-a93ca102ecbb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"AddTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove Tags Action params used when processing the action.","example":{"tag_ids":["f016e782-9e95-4680-9873-262446286678","39e981c6-29e3-4cba-9698-8b2c08c348b0"]},"properties":{"tag_ids":{"description":"List of tags to remove from the contact","items":{"description":"Tag ID","example":"42b21e17-84dc-4426-97d0-367641025558","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"RemoveTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Assign User Action params used when processing the action.","example":{"user_id":42},"properties":{"user_id":{"description":"ID of the user to assign to the conversation","example":42,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"title":"AssignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign User Action params used when processing the action.","example":{},"properties":{},"title":"UnassignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Assign Team Action params used when processing the action.","properties":{"team_id":{"description":"ID of the Team to assign","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["team_id"],"title":"AssignTeamAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign Team Action params used when processing the action.","properties":{},"title":"UnassignTeamAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add To Sequence Action params used when processing the action.","example":{"sequence_id":"52cba538-90f6-470d-9017-d8e375dc70f4"},"properties":{"sequence_id":{"description":"ID of the Sequence to add the contact to","example":"70793470-b0c5-422c-91d5-fc92a5f7a814","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"AddToSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove From Sequence Action params used when processing the action.","example":{"sequence_id":"9dc050a9-c665-4371-a665-b38c10b86216"},"properties":{"sequence_id":{"description":"ID of the Sequence to remove the contact from","example":"7bf87a08-8b9e-41fa-9e5e-377a104ba11e","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"RemoveFromSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Move TO Step Action params used when processing the action.","example":{"sequence_id":"a42a83d4-028d-4a6f-8fde-3c29a5b4a9b6","step_id":"3689961f-4601-4ab8-973a-20c17822afc5"},"properties":{"sequence_id":{"description":"Sequence ID","example":"df43d584-e58c-41fb-9041-21554b2f8a19","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"c704c194-c48e-42bf-b94c-7e2f5419f5a6","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id","step_id"],"title":"MoveToStepAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt In Action params used when processing the action.","example":{},"properties":{},"title":"OptInAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt Out Action params used when processing the action.","example":{},"properties":{},"title":"OptOutAction","type":"object","x-struct":null,"x-validate":null},{"description":"Notify Users Action params used when processing the action.","example":{"user_ids":["42","1024","2364"]},"properties":{"user_ids":{"description":"List of string user IDs","example":["42","1024","2364"],"items":{"description":"Integer user ID or its digit-only string representation","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"pattern":"^\\d+$","type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["user_ids"],"title":"NotifyUsersAction","type":"object","x-struct":null,"x-validate":null},{"description":"Update Conversation Status Action params used when processing the action.","example":{"status":"open"},"properties":{"status":{"description":"New conversation status","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null}},"required":["status"],"title":"UpdateConversationStatusAction","type":"object","x-struct":null,"x-validate":null},{"description":"Send Email Action params used when processing the action.","example":{"bcc":"john.constantine@example.com","body":"Automated email, yay!","cc":"superman@example.com","from":"","reply_to":"mycoolmail@example.com","subject":"Action Email","to":"batman@example.com"},"properties":{"bcc":{"description":"BCC email","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Email body. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"from":{"description":"From email","example":"myemail@example.com","type":"string","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"To email","example":"batman@example.com","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the email subject and body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["subject","body"],"title":"SendEmailAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Start Call Agent Action params used when processing the action.","properties":{"agent_id":{"description":"ID of the Agent to use for the call","example":"6b41ea90-30c6-4965-ad8f-7b01d2237446","format":"uuid","type":"string","x-struct":null,"x-validate":null},"bypass_quiet_hours":{"default":false,"description":"Whether to bypass quiet hours restrictions","example":false,"type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Custom placeholder values passed to the Agent","type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartCallAgentAction","type":"object","x-struct":null,"x-validate":null},{"description":"Start Chat Agent Action params used when processing the action.","example":{"agent_id":"ec69b988-816e-4d77-bb90-82eec90a317b","send_initial_message":true},"properties":{"agent_id":{"description":"ID of the Agent to use for the chat","example":"da40d23c-7881-4727-8151-9ccf16fedf10","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_placeholders_data":{"type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether to send an initial message to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartChatAgentAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Send HTTP Request Action params used when processing the action.","properties":{"method":{"enum":["GET","POST"],"type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Optional JSON request payload","type":"object","x-struct":null,"x-validate":null},"url":{"description":"Public HTTPS endpoint; private and internal hosts are rejected","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["method","url"],"title":"SendHttpRequestAction","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":{"description":"Action type","enum":["send_message","add_tags","remove_tags","assign_user","unassign_user","assign_team","unassign_team","add_to_sequence","remove_from_sequence","move_to_step","opt_in","opt_out","notify_users","update_conversation_status","send_email","start_call_agent","start_chat_agent","send_http_request"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","type","params","enabled","approval_required","approval_required_by_id","organization_id","created_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Tool creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"additionalProperties":false,"description":"Data for the user that created the tool","nullable":true,"properties":{"email":{"description":"User email","example":"bruce@wayne.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Bruce Wayne","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","email","name","phone"],"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of what the tool does and when it should be used","example":"Transfers the call at the contact's request.","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tool ID","example":"f11c8d2b-5d43-45bb-85f4-82c5c6d60932","format":"uuid","type":"string","x-struct":null,"x-validate":null},"label":{"description":"Tool label","example":"Transfer Call","maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tool name","example":"transfer_call","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]{1,64}$","type":"string","x-struct":null,"x-validate":null},"organization":{"additionalProperties":false,"description":"Data for the organization that the tool belongs to","properties":{"ai_context":{"description":"Organization AI context","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Organization ID","example":"cbe60d20-c00c-4bcf-bbfc-f17b72ce3f04","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Wayne Enterprises","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","ai_context"],"type":"object","x-struct":null,"x-validate":null},"settings":{"anyOf":[{"additionalProperties":false,"example":{"method":"POST","parameters":{"description":"Order lookup parameters","properties":{},"type":"object"},"speak_after_execution":true,"speak_during_execution":false,"url":"https://example.com/webhook"},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"headers":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request headers","type":"object","x-struct":null,"x-validate":null},"include_whippy_context":{"description":"Whether to add the current contact, conversation, and message as whippy_context in POST, PUT, and PATCH JSON bodies. During voice calls, the message body contains the dialogue so far","type":"boolean","x-struct":null,"x-validate":null},"method":{"default":"POST","enum":["POST","GET","PUT","PATCH","DELETE"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"parameters":{"description":"JSON Schema describing the custom tool input. The root schema requires a description.","properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"query_params":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request query parameters","type":"object","x-struct":null,"x-validate":null},"response_variables":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Values extracted from the response","type":"object","x-struct":null,"x-validate":null},"retry":{"additionalProperties":false,"properties":{"base_delay_ms":{"maximum":5000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_delay_ms":{"maximum":15000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_retries":{"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"retry_on_status_codes":{"items":{"enum":[408,429,500,502,503,504],"type":"integer","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["max_retries","base_delay_ms","max_delay_ms","retry_on_status_codes"],"type":"object","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":3000,"maximum":120000,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"url":{"description":"Publicly reachable HTTPS endpoint called by the Tool","example":"https://example.com/webhook","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["url","speak_after_execution","speak_during_execution"],"title":"CustomToolSettings","type":"object","x-struct":null,"x-validate":null},{"example":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"properties":{"check_availability_enabled":{"default":false,"description":"Enables live availability checks and busy-call behavior.\n\nMobile and desk phones are not supported. Users without live voice presence are treated as unavailable for direct transfers. Leave disabled for users relying on these devices.\n\nWhen omitted or false, transfer directly without checking availability or using busy-call rules.\n","type":"boolean","x-struct":null,"x-validate":null},"transfer_options":{"description":"Transfer options for the tool","items":{"properties":{"identifier":{"description":"Transfer option identifier","example":"Support","type":"string","x-struct":null,"x-validate":null},"on_call_behavior":{"default":"unavailable","description":"Behavior when no user or team member is available and at least one is on a call.\n\n* `enqueue`: Park the call in the destination channel's default queue.\n* `unavailable`: Leave the call with the agent and report the destination as unavailable.\n\nUsed only when `check_availability_enabled` is true. Ignored for agent, phone number, and PBX destinations.\n","enum":["enqueue","unavailable"],"example":"enqueue","type":"string","x-struct":null,"x-validate":null},"sip_auth":{"description":"Optional digest credentials for forward_to_sip_uri. Send username and password together. The password is encrypted at rest and responses return password_configured. Omit sip_auth when the trunk authenticates by IP.","example":{"password_configured":true,"username":"trunk"},"type":"object","x-struct":null,"x-validate":null},"target_channel_phone":{"description":"Optional E.164 channel phone number used as a transfer target. Applies to forward_to_user, forward_to_team, forward_to_agent, and forward_to_sip_uri. Uses the current call channel when omitted.","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Transfer option type","enum":["forward_to_user","forward_to_team","forward_to_agent","forward_to_phone_number","forward_to_sip_uri"],"example":"forward_to_agent","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Organization user ID, team UUID, agent UUID, E.164 phone number, or SIP URI. `forward_to_sip_uri` is a URI such as `sip:2105@pbx.example.com`.","example":"b2ed0207-6eb6-4cef-aaa4-cf2e843a0bab","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["identifier","type","value"],"type":"object","x-struct":null,"x-validate":null},"maxItems":36,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["transfer_options"],"title":"TransferCallToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"speak_after_execution":true,"speak_during_execution":false,"timeout_ms":5000},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":5000,"type":"integer","x-struct":null,"x-validate":null}},"required":["speak_after_execution","speak_during_execution"],"title":"ExecuteActionsToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"delay_ms":1000},"properties":{"delay_ms":{"description":"Delay before pressing the digit in milliseconds. Must be at least 0.","example":1000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"title":"PressDigitToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"cal_api_key":"cal_live_example","event_type_id":60444,"timezone":"America/Los_Angeles"},"properties":{"cal_api_key":{"description":"Cal.com API key","type":"string","x-struct":null,"x-validate":null},"event_type_id":{"description":"Cal.com event type ID","type":"number","x-struct":null,"x-validate":null},"timezone":{"description":"Calendar timezone","type":"string","x-struct":null,"x-validate":null}},"required":["cal_api_key","event_type_id"],"title":"CalendarToolSettings","type":"object","x-struct":null,"x-validate":null}],"description":"Settings of the Tool. Supported fields depend on the selected `type`.\n\n- `transfer_call`:\n  - **Required:**\n    - `transfer_options`: Between 1 and 36 destinations the agent can select when transferring a call. Each option contains:\n      - `identifier`: Name the agent uses to identify the destination.\n      - `type`: One of `forward_to_user`, `forward_to_team`, `forward_to_agent`, `forward_to_phone_number`, or `forward_to_sip_uri`.\n      - `value`: User ID, team UUID, agent UUID, or E.164 phone number matching `type`. For `forward_to_sip_uri`, this is the SIP URI, such as `sip:2105@pbx.example.com`. Optional `sip_auth` holds a digest `username` and `password`. The password is encrypted at rest and returned as `password_configured`.\n      - `target_channel_phone`: Optional E.164 channel phone number used as a target for the transfer. Applies to `forward_to_user`, `forward_to_team`, `forward_to_agent`, and `forward_to_sip_uri`. Uses the current call channel when omitted.\n      - `on_call_behavior`: Optional `enqueue` (park the call) or `unavailable` (default). Applies only to user/team destinations and is ignored for agent, phone, and PBX destinations.\n  - **Optional:**\n    - `check_availability_enabled`: Defaults to false. Set true to enable availability checks and busy-call behavior. When omitted or false, the agent and tool transfer directly without availability checks; busy-call rules are ignored.\n\n- `execute_actions`:\n  - **Required:**\n    - `speak_after_execution`: Whether the agent speaks after executing the actions. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks while executing the actions. Recommended when execution takes more than one second.\n  - **Optional:**\n    - `timeout_ms`: Time in milliseconds before action execution times out.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n\n- `check_availability_cal` and `book_appointment_cal`:\n  - **Required:**\n    - `cal_api_key`: Cal.com API key used by the Tool.\n    - `event_type_id`: Cal.com event type ID used by the Tool.\n  - **Optional:**\n    - `timezone`: IANA timezone used for the calendar operation.\n\n- `press_digit`:\n  - **Optional:**\n    - `delay_ms`: Time in milliseconds to wait before pressing the digit, allowing a slow IVR menu to finish playing. Must be at least 0.\n\n- `custom`:\n  - **Required:**\n    - `url`: Publicly reachable HTTPS endpoint called by the Tool.\n    - `speak_after_execution`: Whether the agent speaks after tool execution. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks during tool execution. Recommended when the request takes more than one second.\n  - **Optional:**\n    - `method`: HTTP method used for the request. One of `POST`, `GET`, `PUT`, `PATCH`, or `DELETE`; defaults to `POST`.\n    - `timeout_ms`: Time in milliseconds before the request times out. Must be between 1 and 120000.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n    - `headers`: HTTP request headers. Keys and values must be strings.\n    - `query_params`: HTTP query parameters. Keys and values must be strings.\n    - `response_variables`: Values extracted from the response and made available as dynamic variables. Keys and values must be strings.\n    - `parameters`: JSON Schema describing the Tool input. The root schema must include a description.\n    - `retry`: Retry policy. When provided, it requires:\n      - `max_retries`: Number of retry attempts, from 1 to 3.\n      - `base_delay_ms`: Initial retry delay in milliseconds, from 200 to 5000.\n      - `max_delay_ms`: Maximum retry delay in milliseconds, from 200 to 15000.\n      - `retry_on_status_codes`: Non-empty list containing only `408`, `429`, `500`, `502`, `503`, or `504`.\n    - `include_whippy_context`: Whether to add a `whippy_context` object to the JSON request body containing the current contact, conversation, and message when available. Only applies to `POST`, `PUT`, and `PATCH` requests. During voice calls, the message body contains the dialogue so far.\n\n","x-struct":null,"x-validate":null},"signing_api_key_id":{"description":"Signing API key ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Tool type","enum":["custom","transfer_call","execute_actions","press_digit","check_availability_cal","book_appointment_cal"],"example":"transfer_call","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Tool update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"additionalProperties":false,"description":"Data for the user that last updated the tool","nullable":true,"properties":{"email":{"description":"User email","example":"bruce@wayne.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Bruce Wayne","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","email","name","phone"],"type":"object","x-struct":null,"x-validate":null}},"required":["id","type","name","label","description","settings","signing_api_key_id","created_at","updated_at","created_by","updated_by","organization","actions"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowToolResponse","type":"object","x-struct":null,"x-validate":null},"CreateDraftCampaignResponse":{"description":"The created draft campaign.","example":{"data":{"attachments":[],"body":"Greetings, earthlings!","channel_id":"484fc172-9fd1-42cc-b3d6-8d8e195de685","created_at":"2026-10-22T12:00:00Z","excluded_audience":[],"id":"f62d73ce-9bf9-4dbd-ae2f-40e671bb5dde","included_audience":[{"column":"id","comparison":"in","resource":"list","value":["aa03d917-e048-418d-b0ff-289b45361532"]}],"recurring_settings":{"cron_expression":"0 9 * * *","end_date":"2026-12-31","parent_campaign_id":null,"start_date":"2026-11-01","timezone":"America/New_York"},"reply_to":null,"schedule_at":null,"sender_email":null,"sender_name":null,"status":"draft","subject":null,"title":"Space Campaign","type":"sms","updated_at":"2026-10-22T12:00:00Z"}},"properties":{"data":{"description":"Draft campaign.","example":{"attachments":[],"body":"Greetings, earthlings!","channel_id":"1ba38a42-a824-42f7-a24b-f8725e2e444d","created_at":"2026-10-22T12:00:00Z","excluded_audience":[],"id":"98e15c21-e1f3-431c-99fc-c590fd556318","included_audience":[{"column":"id","comparison":"in","resource":"list","value":["dafd4765-6893-44fa-9f53-588c90ad2f5c"]}],"recurring_settings":{"cron_expression":"0 9 * * *","end_date":"2026-12-31","parent_campaign_id":null,"start_date":"2026-11-01","timezone":"America/New_York"},"reply_to":null,"schedule_at":null,"sender_email":null,"sender_name":null,"status":"draft","subject":null,"title":"Space Campaign","type":"sms","updated_at":"2026-10-22T12:00:00Z"},"properties":{"attachments":{"description":"List of attachments for the campaign","items":{"description":"Single attachment","properties":{"content_type":{"description":"Campaign attachment MIME type","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Campaign attachment URL","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Message body for the campaign","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"Channel the campaign sends from","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the campaign in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Channel default exclusions are applied in addition to this list.","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignDraftExcludedAudience","type":"array","x-struct":null,"x-validate":null},"id":{"description":"Campaign ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include.","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"nullable":true,"title":"CampaignDraftIncludedAudience","type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply-to address. Optional.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"ISO 8601 time when the campaign is scheduled to run","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sender_email":{"description":"Email address shown as the sender. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sender_name":{"description":"Name shown as the sender. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Campaign status","enum":["queued","draft","scheduled","in_progress","paused","complete","archived","deleted","template","failed","recurring","recurring_scheduled","recurring_paused","recurring_cancelled"],"type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Optional on a draft. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Campaign channel type.","enum":["sms","email","whatsapp","fax"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the campaign in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateDraftCampaignResponse","type":"object","x-struct":null,"x-validate":null},"QueryKnowledgeBasesResponse":{"additionalProperties":false,"description":"Response schema for semantically querying knowledge bases.","example":{"data":[{"content":"Employees receive 15 vacation days per year.","similarity":0.8942,"source":{"item_id":"110de611-c81e-45e6-ace9-8fc12d8d972f","item_name":"HR Policies","item_version_id":"b6f3a417-e5ab-4dbf-81d0-6cb4a54de9e0","knowledge_base_id":"4d86712d-0f15-42bc-94ba-881fc4a7b28e","knowledge_base_version_id":"5ad44e8c-df90-4183-a6b9-8c109f5b1afd"}}]},"properties":{"data":{"description":"Ranked chunks from the current published knowledge base versions","items":{"additionalProperties":false,"properties":{"content":{"description":"Matched text chunk","type":"string","x-struct":null,"x-validate":null},"similarity":{"description":"Cosine similarity from 0.0 to 1.0","format":"float","type":"number","x-struct":null,"x-validate":null},"source":{"additionalProperties":false,"properties":{"item_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"item_name":{"type":"string","x-struct":null,"x-validate":null},"item_version_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_version_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"parent_item_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_item_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["item_id","item_name","item_version_id","knowledge_base_id","knowledge_base_version_id"],"type":"object","x-struct":null,"x-validate":null}},"required":["content","similarity","source"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["data"],"title":"QueryKnowledgeBasesResponse","type":"object","x-struct":null,"x-validate":null},"ContactIndexUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Contact index/search requests with pagination parameters.\n","example":{"errors":[{"description":"Invalid cursor format"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact index 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","The contact specified in cursor does not exist in this organization","The contact name in cursor does not match the actual contact name","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0","Limit must be greater than 0","Limit must be 500 or less"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactIndexUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Contact.Errors.IndexUnprocessableContent","x-validate":null},"UpdateTeamResponse":{"description":"Update Team Response schema","example":{"data":{"assignment_method":"round_robin","color":"#F0F0F0","description":"Description","emoji":"👨🏻‍🔧","id":"1287a6e1-e678-40b5-b5e6-cc6d039ee71e","inserted_at":"2023-06-22T07:13:31","location_ids":["59d92c9f-978d-4073-9f2e-779a14ebce21","9e8ada8e-a823-47f8-bd2a-423bfdb89e6c"],"name":"Example name","team_members":[{"id":"0f3f226b-b62a-4ba3-94de-80955f94d8a3","inserted_at":"2023-06-22T07:13:31","team_id":"4f52953b-6e0f-494e-ac86-822b344c95da","updated_at":"2023-06-22T07:13:31","user_id":1,"user_organization_id":3,"work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":null,"team_member_id":"f7556808-ab86-4a57-9d6d-986f7f26c1ec","timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}],"updated_at":"2023-06-22T07:13:31","work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":"0d53234c-112f-496e-9448-571b4d60ac57","team_member_id":null,"timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}},"properties":{"data":{"description":"An organization's team","properties":{"assignment_method":{"default":"manual","description":"  The team's assignment method. There are three options - \"manual\", \"round_robin\", \"balanced\".\n  1) Manual - Conversations are not automatically assigned\n  2) Round Robin - Conversations are assigned to teammates in sequential order\n  3) Balanced - Conversations are assigned to teammates with the fewest active conversations\n","enum":["manual","round_robin","balanced"],"example":"balanced","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Color","example":"#F0F0F0","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"Team description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","example":"🇺🇸","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"location_ids":{"description":"List of Location IDs","example":["d8a717aa-b628-4adc-a6de-a1a7c0b0946c","9ae4aad6-41f5-4f8b-99bb-bf81fe1de48a"],"items":{"description":"Location ID","example":"aa2120f7-0d62-4b41-a21c-7d03e78ba7fe","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Team name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"team_members":{"description":"List of Team's Members","items":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateTeamResponse","type":"object","x-struct":null,"x-validate":null},"NoteUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Note POST requests.\n","example":{"errors":[{"description":"Note failed to be created"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Note create 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Note failed to be created","Missing one of Body or Attachments","Body is invalid","Attachments are invalid","Body is over 10_000 characters","Invalid To number","Invalid From number","Missing To number","Missing From number"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"NoteUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Note.Errors.UnprocessableContent","x-validate":null},"UpdateTeamMemberResponse":{"description":"Update TeamMember Response schema","example":{"data":{"id":"0f3f226b-b62a-4ba3-94de-80955f94d8a3","inserted_at":"2023-06-22T07:13:31","team_id":"4f52953b-6e0f-494e-ac86-822b344c95da","updated_at":"2023-06-22T07:13:31","user_id":1,"user_organization_id":3,"work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":null,"team_member_id":"f7556808-ab86-4a57-9d6d-986f7f26c1ec","timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}},"properties":{"data":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateTeamMemberResponse","type":"object","x-struct":null,"x-validate":null},"TestWorkflowConnectionResponse":{"example":{"data":{"ok":true}},"properties":{"data":{"properties":{"ok":{"example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["ok"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"TestWorkflowConnectionResponse","type":"object","x-struct":null,"x-validate":null},"UpdateTagContactsResponse":{"description":"Response schema for updating the tag contacts.","example":{"data":{"message":"Tag contacts are being updated"}},"properties":{"data":{"properties":{"message":{"description":"Confirmation that the update was accepted and runs in the background","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateTagContactsResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.UpdateContactsResponse","x-validate":null},"AddTagsAction":{"description":"Add Tags Action params used when processing the action.","example":{"tag_ids":["21e97a83-6e19-4b43-bad3-ad3f4f439311","548a9263-9aba-4ccd-98d3-a18608de9122"]},"properties":{"tag_ids":{"description":"List of tags to add to the contact","items":{"description":"Tag ID","example":"44a0b5b0-6f28-497d-8517-9b8ac8f65f9a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"AddTagsAction","type":"object","x-struct":null,"x-validate":null},"ShowAgentSkillResponse":{"description":"Show Agent Skill response","example":{"data":{"content":"# My org playbook\n\nAlways call list_workflow_apps.","description":"How this workspace handles workflow apps discovery.","enabled":true,"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","inserted_at":"2026-08-06T12:00:00.000000Z","keywords":["workflow","apps"],"name":"My org playbook","organization_id":"46d1de7f-8ea5-4e47-a03d-4f35b5efaaca","scope":"organization","slug":"my-org-playbook","sort_order":100,"updated_at":"2026-08-06T12:00:00.000000Z","user_id":null}},"properties":{"data":{"description":"A Whippy AI skill playbook","properties":{"content":{"description":"Markdown playbook body","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Short description","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Whether the skill is available to the agent","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Agent skill ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"keywords":{"description":"Search keywords","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Display name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID (null for global)","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"scope":{"description":"Skill ownership scope","enum":["global","organization","user"],"type":"string","x-struct":null,"x-validate":null},"slug":{"description":"Lowercase kebab-case slug","type":"string","x-struct":null,"x-validate":null},"sort_order":{"description":"Sort order","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"Owner user ID (set only for user scope)","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowAgentSkillResponse","type":"object","x-struct":null,"x-validate":null},"ArchiveCustomObjectResponse":{"description":"Response schema for archiving a Custom Object.","properties":{"data":{"properties":{"message":{"description":"The message of the response","example":"Archive job added","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ArchiveCustomObjectResponse","type":"object","x-struct":null,"x-validate":null},"SendEmailAction":{"description":"Send Email Action params used when processing the action.","example":{"bcc":"john.constantine@example.com","body":"Automated email, yay!","cc":"superman@example.com","from":"","reply_to":"mycoolmail@example.com","subject":"Action Email","to":"batman@example.com"},"properties":{"bcc":{"description":"BCC email","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Email body. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"from":{"description":"From email","example":"myemail@example.com","type":"string","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"To email","example":"batman@example.com","type":"string","x-struct":null,"x-validate":null}},"title":"SendEmailAction","type":"object","x-struct":null,"x-validate":null},"SearchLLMsResponse":{"additionalProperties":false,"example":{"data":[{"created_at":"2024-02-28T12:33:40Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"deleted_at":null,"deleted_by":null,"draft_version":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"id":"3efa05f8-3dde-40bf-9271-e1b721092b10","organization":{"id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","name":"Hello Inc."},"status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"items":{"description":"LLM record","properties":{"created_at":{"description":"Time of creation of the LLM in ISO 8601 format","example":"2024-02-28T12:33:40Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the LLM","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"description":"Current version of the LLM","example":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Created by user ID","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"83b1daa2-e882-4ad8-9306-85a22a020327","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"ca6368b9-b98e-4169-ac43-3dafe252f2c0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of LLM the LLM Version belongs to","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the LLM in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by":{"description":"Data for the user that deleted the LLM","nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"description":"Draft version of the LLM","example":{"created_at":"2024-04-30T08:56:24Z","created_by_id":1,"description":"GPT-4.1-Mini - Assistant","id":"83b1daa2-e882-4ad8-9306-85a22a020327","knowledge_base_ids":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"llm_id":"3efa05f8-3dde-40bf-9271-e1b721092b10","model":"gpt-4.1-mini","notes":null,"organization_id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","prompt":"You are a helpful, smart, kind, and efficient AI assistant.","published_at":"2024-04-30T08:56:24Z","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_high_priority":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the LLM version in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Created by user ID","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Description of the LLM","example":"GPT-4.1-Mini - Assistant","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the LLM Version","example":"83b1daa2-e882-4ad8-9306-85a22a020327","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases to be used by the LLM","example":["ca6368b9-b98e-4169-ac43-3dafe252f2c0"],"items":{"description":"ID of knowledge base to be used by the LLM","example":"ca6368b9-b98e-4169-ac43-3dafe252f2c0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of LLM the LLM Version belongs to","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"model":{"description":"Model of the LLM.\n\n**The gpt-realtime-1.5, gpt-realtime-2, gpt-realtime-2.1, gpt-realtime-2.1-mini models are speech-to-speech models.**\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"example":"gpt-4.1-mini","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes for the LLM version","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prompt":{"description":"Prompt of the LLM.\n\nSupports placeholders in the format `{{placeholder||fallback}}`, where fallback is optional,\ne.g. `... the user's name is {{full_name}}, ...`. Can also be used with custom data in the\nformat `{{custom.custom_object_key.custom_property_key:resource}}`.\n","example":"You are a helpful, smart, kind, and efficient AI assistant.","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"Time the LLM version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Provider-safe settings of the LLM version","properties":{"begin_message":{"description":"Message spoken when the LLM starts the conversation","example":"Hello, how can I help you today?","nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_high_priority":{"description":"Whether the LLM uses high-priority model capacity","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","example":0.4,"maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"description":"Speaker that starts the conversation","enum":["agent","user"],"example":"agent","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"description":"Whether tool call arguments must follow the tool schema","example":false,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"description":"IDs of tools available to the LLM","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"LLM ID","example":"3efa05f8-3dde-40bf-9271-e1b721092b10","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Data for the organization that the LLM belongs to","example":{"id":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","name":"Hello Inc."},"properties":{"id":{"description":"Organization ID","example":"0365cae6-b57f-4ac0-93c9-75f805c1dc2a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"LLM status","enum":["draft","active","archived","deleted"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the LLM in ISO 8601 format","example":"2024-02-28T12:38:32Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that updated the LLM","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","nullable":true,"type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchLLMsResponse","type":"object","x-struct":null,"x-validate":null},"AssignUserAction":{"description":"Assign User Action params used when processing the action.","example":{"user_id":42},"properties":{"user_id":{"description":"ID of the user to assign to the conversation","example":42,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"title":"AssignUserAction","type":"object","x-struct":null,"x-validate":null},"ListSequenceRunsResponse":{"description":"Response schema for listing sequence runs","example":[{"contact":{"email":null,"id":"c80b28b2-3bc7-4ead-b53e-d047d4195470","name":"John Doe","phone":"+14244019001"},"created_at":"2023-10-26T13:08:47Z","custom_data":{"placement":{"external_id":"PL-1001","id":"0b8a6c1e-3f0d-4c2a-9d57-1f6e2b7c4a90"}},"id":"6440b950-f29b-436c-8d76-eb9be818bf0e","last_step_id":"32b35675-a5bf-4116-8048-67237d8a4b60","sequence_id":"b5495e3f-1e6c-4de4-9dba-b3bb84132fef","status":"active","step_contacts":[{"clicked_link":true,"contact_messages":[{"attachments":[],"body":"Response to step 32b35675-a5bf-4116-8048-67237d8a4b60","contact_id":"044ebd3f-c35b-4332-9d87-1117ec003fd9","conversation_id":"7c4866f5-f4e6-4319-b132-e0175223c40a","delivery_status":null,"id":"61e0efae-3b50-488b-9295-729239f30e8c"}],"id":"1703e3d6-e049-4fce-ada2-25e9a24b07f2","status":"removed","step_id":"32b35675-a5bf-4116-8048-67237d8a4b60","unsubscribed":true}],"updated_at":"2023-10-26T13:08:47"}],"properties":{"data":{"$ref":"#/components/schemas/SequenceRun"},"total":{"description":"Total count of sequence runs included in the sequence","type":"integer","x-struct":null,"x-validate":null}},"title":"ListSequenceRunsResponse","type":"object","x-struct":null,"x-validate":null},"ContactBadRequestErrorResponse":{"description":"Contact Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Contact.Errors.BadRequest","x-validate":null},"TagUnprocessableContentErrorResponse":{"description":"List of error responses for invalid tags POST or PUT requests.\n","example":{"errors":[{"description":"Tag name has already been taken"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tag 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Tag name has already been taken","Tag name can't be blank","Tag name should be at most 50 characters","Convert the system Tag before trying to update","Convert the system Tag before trying to delete","The Tag must be system created to be converted"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"TagUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.Errors.UnprocessableContent","x-validate":null},"CreateWorkScheduleResponse":{"description":"Create WorkSchedule Response schema","example":{"data":{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":"1e593de0-777c-405d-acd2-11bcaed60747","team_member_id":null,"timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}},"properties":{"data":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateWorkScheduleResponse","type":"object","x-struct":null,"x-validate":null},"ToolExecutionNotFoundErrorResponse":{"description":"Tool execution was not found in the organization.","example":{"errors":[{"description":"Tool execution not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"enum":["Tool execution not found"],"example":"Tool execution not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"ToolExecutionNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"ListCustomObjectRecordResponse":{"description":"Response schema for listing Custom Object Records.","example":{"data":[{"associated_resource_id":"cc6a752a-fa41-43d8-901a-1bedd59b1816","associated_resource_type":"contact","created_at":"2023-07-28T12:13:45","custom_object_id":"a1736c5c-59ed-473a-9335-0b5bd8726595","external_id":"12345-d7a3","id":"9384c91d-8d7a-43ee-8836-6b212f2650ac","key":"contact_address","label":"Contact Address","properties":{"address":{"state":"NY","street":"123 Main St"},"city":"New York","notes":["note 1","note 2"]},"updated_at":"2023-07-28T12:13:45"}],"total":1},"properties":{"data":{"items":{"description":"Data for a single Custom Object Record and its properties.","properties":{"associated_resource_id":{"description":"The ID of the associated resource","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"associated_resource_type":{"description":"The type of the associated resource","enum":["contact","conversation","message","tag","contact_tag","campaign_contact","step_contact"],"example":"contact","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"The date and time the Custom Object Record was inserted","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_object_id":{"description":"The ID of the Custom Object","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"A unique ID that can be used to identify the Custom Object Record","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Custom Object Record","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Object in snake case","example":"contact_details","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Object","example":"Contact Details","type":"string","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"The properties of the Custom Object Record in key-value pairs, where the key is the Custom Property key and the value is the value of the Custom Property Value","example":{"address":{"state":"NY","street":"123 Main St"},"city":"New York","notes":["note 1","note 2"]},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Object Record was updated","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata. Returned on cursor-paginated responses, and on deprecated offset responses (where it carries a bootstrap `next_cursor`). `cursor_reset` is present only on the cursor path.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when a well-formed cursor's position could not be used — e.g. it carries a value the sort column can't cast — and this page was reset to the first page; `false` otherwise. Malformed or tampered cursors are rejected with HTTP 422 and are never resets. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total count without limit of custom object records based on the passed filters.","type":"integer","x-struct":null,"x-validate":null}},"title":"ListCustomObjectRecordResponse","type":"object","x-struct":null,"x-validate":null},"CreateAgentSkillResponse":{"description":"Create Agent Skill response","example":{"data":{"content":"# My org playbook\n\nAlways call list_workflow_apps.","description":"How this workspace handles workflow apps discovery.","enabled":true,"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","inserted_at":"2026-08-06T12:00:00.000000Z","keywords":["workflow","apps"],"name":"My org playbook","organization_id":"46d1de7f-8ea5-4e47-a03d-4f35b5efaaca","scope":"organization","slug":"my-org-playbook","sort_order":100,"updated_at":"2026-08-06T12:00:00.000000Z","user_id":null}},"properties":{"data":{"description":"A Whippy AI skill playbook","properties":{"content":{"description":"Markdown playbook body","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Short description","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Whether the skill is available to the agent","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Agent skill ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"keywords":{"description":"Search keywords","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Display name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID (null for global)","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"scope":{"description":"Skill ownership scope","enum":["global","organization","user"],"type":"string","x-struct":null,"x-validate":null},"slug":{"description":"Lowercase kebab-case slug","type":"string","x-struct":null,"x-validate":null},"sort_order":{"description":"Sort order","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"Owner user ID (set only for user scope)","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateAgentSkillResponse","type":"object","x-struct":null,"x-validate":null},"ListTestRunsResponse":{"example":{"data":[{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestRunsResponse","type":"object","x-struct":null,"x-validate":null},"CreateWorkflowStepsBatchResponse":{"description":"Response schema for batch step creation.\n\nContains the newly created steps in `data`. When called with `include=steps`,\nalso includes the full editable draft step list under `steps`.\n","example":{"data":[{"alias":"send_slack_message","child_role":null,"custom_image_url":null,"data":{"credential_id":"d4e5f6a7-b8c9-0123-def0-123456789abc"},"description":null,"id":"c1d2e3f4-a5b6-7890-abcd-ef1234567890","metadata":{},"name":"Send Slack message","next_steps_ids":[],"parent_step_id":null,"position":1,"previous_step_id":null,"sample_input":{},"sample_output":{},"type":"app","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","workflow_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}],"steps":[{"alias":"send_slack_message","child_role":null,"custom_image_url":null,"data":{"credential_id":"d4e5f6a7-b8c9-0123-def0-123456789abc"},"description":null,"id":"c1d2e3f4-a5b6-7890-abcd-ef1234567890","metadata":{},"name":"Send Slack message","next_steps_ids":[],"parent_step_id":null,"position":1,"previous_step_id":null,"sample_input":{},"sample_output":{},"type":"app","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","workflow_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}]},"properties":{"data":{"description":"Newly created workflow steps","items":{"description":"Workflow step from the draft (or published) version","properties":{"alias":{"description":"Stable step alias within the workflow","type":"string","x-struct":null,"x-validate":null},"child_role":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_image_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"data":{"description":"Step configuration (input mapping, credential_id, action keys, etc.)","type":"object","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"metadata":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"next_steps_ids":{"description":"IDs of steps that list this step as their previous_step_id","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"position":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"previous_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sample_input":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"sample_output":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Step type (e.g. app, trigger, code, loop)","type":"string","x-struct":null,"x-validate":null},"workflow_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"workflow_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","type"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"steps":{"description":"Present only when create was called with `include=steps`. Full editable draft step list (including the newly created steps).","items":{"description":"Workflow step from the draft (or published) version","properties":{"alias":{"description":"Stable step alias within the workflow","type":"string","x-struct":null,"x-validate":null},"child_role":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_image_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"data":{"description":"Step configuration (input mapping, credential_id, action keys, etc.)","type":"object","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"metadata":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"next_steps_ids":{"description":"IDs of steps that list this step as their previous_step_id","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"position":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"previous_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sample_input":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"sample_output":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Step type (e.g. app, trigger, code, loop)","type":"string","x-struct":null,"x-validate":null},"workflow_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"workflow_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","type"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["data"],"title":"CreateWorkflowStepsBatchResponse","type":"object","x-struct":null,"x-validate":null},"ListChannelUsersResponse":{"description":"List Channel Users Response schema","example":{"data":[{"email":"Test1@example.com","id":12,"name":"Test User"},{"email":"Test2@example.com","id":13,"name":"Test User 2"}]},"properties":{"data":{"description":"List of Users data(ID and Name)","example":[{"email":"Test1@example.com","id":12,"name":"Test User"}],"items":{"description":"User data(ID and Name)","example":{"email":"Test1@example.com","id":12,"name":"Test User"},"properties":{"email":{"description":"User Email","example":"Test1@example.com","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":12,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User Name","example":"Test User","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null}},"title":"ListChannelUsersResponse","type":"object","x-struct":null,"x-validate":null},"DashboardWriteUnprocessableContentErrorResponse":{"description":"Errors for an invalid dashboard definition: missing or mistyped fields, metrics or tags the organization doesn't have, built-in metrics not of type `custom`, a default timeframe the dashboard couldn't run over, and writes to built-in dashboards.","example":{"errors":[{"description":"Metrics must be metrics saved in the organization or built-in metrics"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"DashboardWriteUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"TeamMemberBadRequestErrorResponse":{"description":"Team Member Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param Team ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Team Member 400 error","items":{"properties":{"description":{"enum":["Invalid path param Team ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamMemberBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.TeamMember.Errors.BadRequest","x-validate":null},"CreateTeamResponse":{"description":"Create Team Response schema","example":{"data":{"assignment_method":"round_robin","color":"#F0F0F0","description":"Description","emoji":"👨🏻‍🔧","id":"1287a6e1-e678-40b5-b5e6-cc6d039ee71e","inserted_at":"2023-06-22T07:13:31","location_ids":["59d92c9f-978d-4073-9f2e-779a14ebce21","9e8ada8e-a823-47f8-bd2a-423bfdb89e6c"],"name":"Example name","team_members":[],"updated_at":"2023-06-22T07:13:31","work_schedules":[]}},"properties":{"data":{"description":"An organization's team","properties":{"assignment_method":{"default":"manual","description":"  The team's assignment method. There are three options - \"manual\", \"round_robin\", \"balanced\".\n  1) Manual - Conversations are not automatically assigned\n  2) Round Robin - Conversations are assigned to teammates in sequential order\n  3) Balanced - Conversations are assigned to teammates with the fewest active conversations\n","enum":["manual","round_robin","balanced"],"example":"balanced","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Color","example":"#F0F0F0","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"Team description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","example":"🇺🇸","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"location_ids":{"description":"List of Location IDs","example":["d8a717aa-b628-4adc-a6de-a1a7c0b0946c","9ae4aad6-41f5-4f8b-99bb-bf81fe1de48a"],"items":{"description":"Location ID","example":"aa2120f7-0d62-4b41-a21c-7d03e78ba7fe","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Team name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"team_members":{"description":"List of Team's Members","items":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateTeamResponse","type":"object","x-struct":null,"x-validate":null},"ToolExecutionFilter":{"description":"Filters for recorded agent tool executions. All fields are optional.","properties":{"agent_id":{"description":"Agent ID.","example":"986b8f7a-437c-404b-8063-0a58ae14c9e2","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_ids":{"description":"Agent IDs.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"channel_id":{"description":"Whippy channel ID.","example":"4c4bef02-cf60-4e1f-a922-33123d1dfd50","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_ids":{"description":"Whippy channel IDs.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"channel_type":{"description":"Channel type.","enum":["phone","chat"],"example":"phone","type":"string","x-struct":null,"x-validate":null},"channel_types":{"description":"Channel types.","items":{"description":"Channel type.","enum":["phone","chat"],"example":"phone","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"conversation_agent_session_id":{"description":"Chat agent session ID.","example":"359a60bc-532c-4c96-a9b0-a0c5a48f3506","format":"uuid","type":"string","x-struct":null,"x-validate":null},"has_knowledge_base":{"description":"Whether the execution queried a knowledge base.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"knowledge_base_id":{"description":"Knowledge base ID linked to the execution.","example":"aceb68ea-cb30-44d8-b8b3-c4bf8d18648a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"Knowledge base IDs linked to the execution.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"knowledge_base_version_id":{"description":"Knowledge base version ID linked to the execution.","example":"625c5074-fee0-411e-b653-00f28bb06160","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message_id":{"description":"Call or message ID.","example":"b1dee809-84eb-4a05-8cd1-1a93fd737657","format":"uuid","type":"string","x-struct":null,"x-validate":null},"q":{"description":"Matches the tool name, error text, or knowledge-base query.","example":"refund","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Execution status.","enum":["pending","success","error"],"example":"error","type":"string","x-struct":null,"x-validate":null},"statuses":{"description":"Execution statuses.","items":{"description":"Execution status.","enum":["pending","success","error"],"example":"error","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"tool_name":{"description":"Exact tool name.","example":"lookup_order","type":"string","x-struct":null,"x-validate":null},"tool_names":{"description":"Exact tool names.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"ToolExecutionFilter","type":"object","x-struct":null,"x-validate":null},"OverrideTestRunRequest":{"example":{"rationale":"Incorrect handling","result":"fail"},"properties":{"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"required":["result"],"title":"OverrideTestRunRequest","type":"object","x-struct":null,"x-validate":null},"UpdateConversationResponse":{"description":"Response schema for updating an individual conversation. It does not return messages.","example":{"data":{"assigned_team_id":"0003c6fe-e469-4e59-8a73-be8ce58f6d53","assigned_user_id":1,"channel_id":"9354835f-893e-422e-a84a-fc1670786ce0","channel_type":"phone","contact_id":"ef94a552-c69b-4e4a-83ef-7f7402aae938","contact_language":"es","created_at":"2021-06-22T07:45:45","id":"70c5c186-107e-4122-ba5c-24ac072f5898","language":"en","last_message_date":"2021-06-22T07:45:45","status":"open","unread_count":3,"updated_at":"2021-06-22T07:45:45"}},"properties":{"data":{"description":"Single conversation data after update","properties":{"assigned_team_id":{"description":"ID of the team assigned to the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"assigned_user_id":{"description":"ID of the user assigned to the conversation","type":"integer","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the conversation belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_type":{"description":"Type of channel for the conversation","enum":["phone","email","fax"],"type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact in the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the conversation is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_message_date":{"description":"Date of the last message belonging to the conversation","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Status of the conversation","enum":["open","closed","automated","spam"],"type":"string","x-struct":null,"x-validate":null},"unread_count":{"description":"Number of unread messages in the conversation","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the conversation was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateConversationResponse","type":"object","x-struct":null,"x-validate":null},"RunAgentTestSuiteRequest":{"description":"Queues every scenario linked to the agent, or the listed ones, as one batch. Each scenario runs\nits published version, or its draft when it was never published. Scenarios that cannot run are\nreturned in `skipped` instead of failing the batch.\n","example":{"agent_version":{"mode":"draft"},"only":"not_passing"},"properties":{"agent_test_ids":{"description":"Omit to run every scenario linked to the agent.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"agent_version":{"description":"Agent configuration to run against without editing the test. `live` runs the published agent, `draft` runs unpublished edits, `pinned` runs one saved agent version. Omit to use the test's `version_policy`.","example":{"mode":"draft"},"nullable":true,"properties":{"mode":{"enum":["live","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when `mode` is `pinned`.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"only":{"default":"all","description":"`not_passing` skips scenarios already passing on the target configuration.","enum":["all","not_passing"],"type":"string","x-struct":null,"x-validate":null},"run_count":{"description":"Runs per scenario. Omit to run each scenario once per caller model (simulation) or once (next reply); a simulation that would exceed its turn budget runs fewer callers.","maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"simulator_models":{"description":"Caller models to run each test with, one run per model. Omit to use the default caller models.","items":{"type":"string","x-struct":null,"x-validate":null},"maxItems":3,"type":"array","x-struct":null,"x-validate":null}},"title":"RunAgentTestSuiteRequest","type":"object","x-struct":null,"x-validate":null},"CreateTagsResponse":{"description":"Create Tag Response","example":{"data":{"color":"#ff0000","converted":null,"created_at":"2021-06-22T10:36:07Z","description":"tag description","emoji":"🌲","id":"446819ab-526a-4f13-afa7-698cf053227c","name":"first-tag","organization_id":"28487616-380a-4807-a419-65ab74491de1","state":"active","system_created":false,"updated_at":"2021-06-22T10:36:07Z"}},"properties":{"data":{"description":"Tags list","properties":{"color":{"description":"Tag color","type":"string","x-struct":null,"x-validate":null},"converted":{"description":"Boolean value indicating the system tag was converted to a user tag","enum":[true,false],"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Tag description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Tag emoji","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tag ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Tag state","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"system_created":{"description":"Boolean value indicating the tag was created by the system or not","enum":[true,false],"example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Tag type","enum":["standard","segment","sequence","form","workflow"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time the tag was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateTagsResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.CreateResponse","x-validate":null},"CustomObjectNotFoundErrorResponse":{"description":"Custom Object Not Found Error Response schema","example":{"errors":[{"description":"Custom Object not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object 404 error","items":{"properties":{"description":{"enum":["Custom Object not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomDataType.Errors.NotFound","x-validate":null},"ListIntegrationApplicationsResponse":{"description":"Response schema for listing integration applications.","example":{"data":[{"id":"01934a59-2ef2-7903-bddc-284413538f41","key":"aqore","name":"Aqore"},{"id":"02845b6a-3fg7-8901-cdef-234567890abc","key":"tempworks","name":"Tempworks"}]},"properties":{"data":{"description":"List of available integration applications","items":{"properties":{"id":{"description":"The ID of the integration application","example":"01934a59-2ef2-7903-bddc-284413538f41","format":"uuid","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key identifier of the integration (e.g. 'aqore', 'tempworks')","example":"aqore","type":"string","x-struct":null,"x-validate":null},"name":{"description":"The display name of the integration","example":"Aqore","type":"string","x-struct":null,"x-validate":null}},"required":["id","key","name"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"ListIntegrationApplicationsResponse","type":"object","x-struct":null,"x-validate":null},"ShowDeveloerEndpointResponse":{"description":"Response schema for an individual developer endpoint.","example":{"data":{"active":true,"created_at":"2021-06-22T07:45:45","developer_application_id":"8935c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","campaign.created","campaign.updated"],"filter":{"body":{"data":{"created_by_id":2}}},"id":"70c5c186-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.spacetravel.com/webhooks"}},"properties":{"data":{"description":"Single developer endpoint data.","properties":{"active":{"description":"Activated status of the developer endpoint","example":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Date the developer endpoint is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"developer_application_id":{"description":"Developer Application ID","example":"8935c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"event_types":{"description":"List of events the developer endpoint is subscribed to","example":["message.created","message.updated","campaign.created","campaign.updated"],"items":{"description":"Single event subscribed to. Includes the name of a resource and an action separated by a period.","example":"message.created","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"filter":{"description":"Optional inclusion filter. Only events whose webhook body matches this schema are delivered. Null when not set.","example":{"body":{"data":{"created_by_id":2}}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Develoer Endpoint ID","example":"70c5c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"method":{"description":"HTTP method the webhook would be sent with","enum":["POST"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the developer endpoint was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the endpoint that would receive webhooks","example":"https://www.spacetravel.com/webhooks","format":"url","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowDeveloerEndpointResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Endpoint.ShowResponse","x-validate":null},"BulkCreateCustomEventResponse":{"description":"Response schema for bulk creation of custom events.","example":{"data":{"failed":[{"errors":[{"description":"Event type is invalid"}],"event":"invalid.event","external_id":"1234567892"}],"queued":[{"event":"order.shipped","external_id":"1234567891"}],"successful":[{"created_at":"2021-06-22T07:45:45","event":"order.placed","external_id":"1234567890","id":"123e4567-e89b-12d3-a456-426614174000"}],"summary":{"failed":1,"queued":1,"successful":1,"total":3}}},"properties":{"data":{"description":"Bulk operation results","properties":{"failed":{"description":"Events that failed validation or creation","items":{"properties":{"errors":{"description":"List of errors","items":{"properties":{"description":{"description":"Error description","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"event":{"description":"Event type","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"External ID","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"queued":{"description":"Events queued for asynchronous processing","items":{"properties":{"event":{"description":"Event type","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"External ID","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"successful":{"description":"Successfully created custom events","items":{"properties":{"associated_resources":{"description":"Associated resources","type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"event":{"description":"Event type","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"External ID","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Custom Event ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Event payload","type":"object","x-struct":null,"x-validate":null},"timestamp":{"description":"Event timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"summary":{"description":"Summary of the bulk operation","properties":{"failed":{"description":"Number of failed events","type":"integer","x-struct":null,"x-validate":null},"queued":{"description":"Number of queued events","type":"integer","x-struct":null,"x-validate":null},"successful":{"description":"Number of successfully created events","type":"integer","x-struct":null,"x-validate":null},"total":{"description":"Total number of events processed","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"BulkCreateCustomEventResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomEvents.CustomEvent.BulkCreateResponse","x-validate":null},"SearchConversationsParams":{"description":"Parameters for searching and filtering conversations.","example":{"assigned_users":["1","7"],"channels":[{"id":"3046b1e0-5522-4e6f-a7de-ac31951218f6"},{"phone":"+14155552671"}],"contacts":[{"id":"c00fb839-e444-443d-acce-597bb521dbdb"},{"phone":"+14155552681"},{"email":"brucewayne@example.com"},{"name":"Bruce Wayne"}],"last_message_date":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"},"limit":50,"offset":0,"sort":{"column":"waiting_since","order":"desc"},"status":["open","automated"],"type":["phone"]},"properties":{"assigned_users":{"description":"IDs of users that are assigned to conversations","example":["1","7","10"],"items":{"description":"Assigned User ID","example":"1","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"channels":{"description":"Filter by channels","example":[{"id":"e2e837cf-5050-4a64-98ca-e4e946b54ca0"},{"phone":"+14155552672"}],"items":{"properties":{"id":{"description":"Channel ID","example":"5a176aa6-5ea1-43dc-b70b-5161b202a6fa","format":"uuid","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"contacts":{"description":"Filter by contacts","example":[{"id":"8e267641-f72c-495c-b3d0-58437e6059e9"},{"phone":"+14155552681"},{"email":"brucewayne@example.com"},{"name":"Bruce Wayne"}],"items":{"properties":{"email":{"description":"Contact email","example":"brucewayne@example.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact ID","example":"65a77d1f-4ea5-4dce-b9af-8506f5df5a29","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","example":"Bruce Wayne","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone","example":"+14155552681","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Created At Date in ISO 8601","example":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"},"properties":{"after":{"example":"2025-03-01T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"example":"2025-02-27T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"last_message_date":{"description":"Last Message Date in ISO 8601","example":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"},"properties":{"after":{"example":"2025-03-01T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"example":"2025-02-27T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"limit":{"description":"Number of results to return","example":50,"type":"integer","x-struct":null,"x-validate":null},"offset":{"description":"Number of results to skip","example":0,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Sorting options","example":{"column":"waiting_since","order":"desc"},"properties":{"column":{"enum":["last_message_timestamp","waiting_since"],"example":"waiting_since","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Statuses list","example":["open","automated"],"items":{"description":"Conversation status","enum":["open","closed","spam","automated"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Filter by conversation `channel_type`. Same as `type[]` on list conversations: pass one or more values in a list.","example":["phone"],"items":{"enum":["phone","email","fax"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"unread_count":{"description":"Filter by unread count","example":10,"type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Updated At Date in ISO 8601","example":{"after":"2025-03-01T10:00:00Z","before":"2025-02-27T10:00:00Z"},"properties":{"after":{"example":"2025-03-01T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"example":"2025-02-27T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"SearchConversationsParams","type":"object","x-struct":null,"x-validate":null},"ApplyAgentTestFixProposalParams":{"properties":{"run_on_draft":{"default":true,"description":"Queue the proposal's test against Draft after applying it","type":"boolean","x-struct":null,"x-validate":null}},"title":"ApplyAgentTestFixProposalParams","type":"object","x-struct":null,"x-validate":null},"ExecuteActionsToolSettings":{"additionalProperties":false,"example":{"speak_after_execution":true,"speak_during_execution":false,"timeout_ms":5000},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":5000,"type":"integer","x-struct":null,"x-validate":null}},"required":["speak_after_execution","speak_during_execution"],"title":"ExecuteActionsToolSettings","type":"object","x-struct":null,"x-validate":null},"ToolUnprocessableContentErrorResponse":{"additionalProperties":false,"description":"List of error responses for invalid tool POST, PATCH, or DELETE requests.","example":{"errors":[{"description":"Name can't be blank"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tool 422 errors","items":{"additionalProperties":false,"description":"Single 422 error","properties":{"description":{"description":"Human-readable explanation of the invalid request.","example":"Name is invalid","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"ToolUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"ContactNotFoundErrorResponse":{"description":"Contact Not Found Error Response schema","example":{"errors":[{"description":"Contact not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact 404 error","items":{"properties":{"description":{"enum":["Contact not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Contact.Errors.NotFound","x-validate":null},"SearchKnowledgeBasesResponse":{"additionalProperties":false,"description":"Response schema for searching knowledge bases.","example":{"data":[{"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"created_at":"2026-08-07T09:00:00Z","description":"Answers common product questions","embedding_status":"completed","id":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","name":"Product FAQ","published_at":"2026-08-07T10:00:00Z"},"draft_version":null,"id":"08171713-e2ca-4b5d-a499-7200394aacb5","organization":{"ai_context":null,"id":"f214c1a8-4d58-495c-98a4-113c2cc8152b","name":"Hello Inc."},"status":"active","updated_at":"2026-08-07T10:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"description":"List of knowledge bases","items":{"additionalProperties":false,"example":{"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"created_at":"2026-08-07T09:00:00Z","description":"Answers common product questions","embedding_status":"completed","id":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","name":"Product FAQ","published_at":"2026-08-07T10:00:00Z"},"draft_version":null,"id":"08171713-e2ca-4b5d-a499-7200394aacb5","organization":{"ai_context":null,"id":"f214c1a8-4d58-495c-98a4-113c2cc8152b","name":"Hello Inc."},"status":"active","updated_at":"2026-08-07T10:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}},"properties":{"created_at":{"description":"Knowledge base creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base ID","example":"08171713-e2ca-4b5d-a499-7200394aacb5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"additionalProperties":false,"nullable":true,"properties":{"ai_context":{"description":"Organization AI context","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Organization ID","example":"f214c1a8-4d58-495c-98a4-113c2cc8152b","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Knowledge base status","enum":["draft","active","archived"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Knowledge base update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["id","status","created_at","updated_at"],"title":"KnowledgeBase","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchKnowledgeBasesResponse","type":"object","x-struct":null,"x-validate":null},"CreateKnowledgeBaseItemParams":{"additionalProperties":false,"description":"Request schema for adding an item to a knowledge base draft.\nFile metadata (`filename`, `extension`, `size_kb`) is fetched automatically\nfor document, audio, and video items and is not client-writable.\n","example":{"content_or_url":"Employees receive 15 days of PTO per year.","name":"Vacation policy","type":"text"},"properties":{"content_or_url":{"description":"Content source for the selected `type`.\n\n- `text`: Literal text content.\n- `url`: Source URL for one web page.\n- `website`: Source URL for a website whose pages are crawled.\n- `document`, `audio`, and `video`: Publicly accessible file URL. File metadata is fetched automatically by the server.\n","example":"Employees receive 15 days of PTO per year.","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"required":["name","type","content_or_url"],"title":"CreateKnowledgeBaseItemParams","type":"object","x-struct":null,"x-validate":null},"DomainPrice":{"nullable":true,"properties":{"amountMinor":{"description":"Price in integer minor units (cents)","minimum":0,"type":"integer","x-struct":null,"x-validate":null},"currency":{"enum":["USD"],"type":"string","x-struct":null,"x-validate":null}},"required":["amountMinor","currency"],"title":"DomainPrice","type":"object","x-struct":null,"x-validate":null},"DeveloperApplicationUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Developer Endpoint POST or PUT requests.\n","example":{"errors":[{"description":"URL should have a scheme and a top-level domain"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Developer Application 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["URL should have a scheme and a top-level domain","Missing Developer Application ID","Missing URL","URL is invalid","Developer Application ID is invalid","Event Types are invalid","Active is invalid"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"DeveloperApplicationUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Endpoint.Errors.UnprocessableContent","x-validate":null},"FaxCampaignUpdateParams":{"description":"Request schema for updating a fax campaign at `PUT /v1/campaigns/fax/:id`.\n\nThe campaign type is set to `fax`. A campaign that is not already fax must include `from`.\n\nA `scheduled` campaign accepts `title`, `schedule_at`, `status`, and `automation_templates`.\nA `draft`, `recurring`, or `recurring_paused` campaign also accepts the message, `from`, the audience\nfilters, and `recurring_settings`. `recurring_settings` is merged with the stored schedule.\n","example":{"schedule_at":"2026-11-26T16:38:00.301830Z","title":"Fax Campaign"},"properties":{"attachments":{"description":"List of attachment URLs. Accepted for a draft or recurring campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of automation template IDs. At most 50.","items":{"description":"Automation Template ID","example":"a334171a-37d3-4e13-b1b8-9ea72e8f21a0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Limited to 1000 characters.","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Optional. When omitted, the default\ncampaign exclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"from":{"description":"Phone number of the fax channel. Required when this request changes the campaign to fax.\n","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Optional for a draft. Required when\n`status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["ff86af5f-e7cd-4fd8-b67e-90b05f150723"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the campaign. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"`draft` or `scheduled` for a one-time campaign. `recurring` starts or restarts a series.\n`recurring_paused` or `recurring_cancelled` stops one.\n","enum":["draft","scheduled","recurring","recurring_paused","recurring_cancelled"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null}},"title":"FaxCampaignUpdateParams","type":"object","x-struct":null,"x-validate":null},"EmailUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Email POST requests.\n","example":{"errors":[{"description":"Missing one of Body or Attachments"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Messaging 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Missing one of Body or Attachments","Body is invalid","Attachments are invalid","Invalid From email address","Invalid To email address","Missing To email address","Missing From email address","Invalid To email address 567-invalid","To email address dummy_email@example.xyz has unsubscribed","Scheduling time is in the past","Scheduling time should be in ISO 8601 format","Invalid email address in Sender Email","Invalid email address in Reply To","Invalid email address in Cc","Invalid email address in Bcc","Conversation status must be 'automated', 'open', or 'closed'"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"EmailUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Email.Errors.UnprocessableContent","x-validate":null},"ExecuteAgentTestRequest":{"example":{"agent_id":"00000000-0000-4000-8000-000000000002","run_count":3,"test_version":{"selection":"current_published"}},"properties":{"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_version":{"description":"Agent configuration to run against without editing the test. `live` runs the published agent, `draft` runs unpublished edits, `pinned` runs one saved agent version. Omit to use the test's `version_policy`.","example":{"mode":"draft"},"nullable":true,"properties":{"mode":{"enum":["live","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when `mode` is `pinned`.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"run_count":{"description":"Runs to queue. Omit to run once per caller model (simulation) or once (next reply); a simulation that would exceed the turn budget runs fewer callers.","example":3,"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"simulator_models":{"description":"Caller models to run the test with, one run per model. Omit to use the default caller models.","items":{"type":"string","x-struct":null,"x-validate":null},"maxItems":3,"type":"array","x-struct":null,"x-validate":null},"test_version":{"description":"Which test definition to run. Omitted selection uses the current published version.\nA test with no publication does not fall back to its draft.\nversion_policy on the definition still selects the agent configuration and is not this object.\n","properties":{"selection":{"enum":["current_published","draft","version"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when selection is version. Only a published version is accepted.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"ExecuteAgentTestRequest","type":"object","x-struct":null,"x-validate":null},"ListMetricResponse":{"description":"Response schema for listing metrics with cursor pagination.","example":{"data":[{"chart":"total","created_at":"2026-01-15T07:45:45.353788Z","description":"Count of AI calls over time","events":[{"aggregate":{},"color":null,"filter":[],"group_by":[],"name":"call.analyzed","type":"whippy_event"}],"id":"70278cd3-83c2-4b65-9d99-3e631e731abb","linked":false,"source":"organization","title":"Total AI Calls","trend":false,"trend_line":false,"type":"custom","updated_at":"2026-02-10T07:45:45.353788Z"}],"metadata":{"next_cursor":null,"prev_cursor":null}},"properties":{"data":{"description":"List of metrics ordered newest to oldest within the page.","items":{"description":"Metric summary record","properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the metric was created at in ISO 8601 format. `null` for Whippy built-in metrics.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Metric ID","example":"70278cd3-83c2-4b65-9d99-3e631e731abb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"source":{"description":"Metric origin. `whippy` for built-in metrics (stable reserved IDs, not persisted), `organization` for metrics saved in the organization.","enum":["whippy","organization"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the metric was last updated at in ISO 8601 format. `null` for Whippy built-in metrics.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata.","properties":{"next_cursor":{"description":"Cursor referencing the last row on this page. Pass with `direction=forward` to fetch the next page. `null` when there is no next page.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prev_cursor":{"description":"Cursor referencing the first row on this page. Pass with `direction=backward` to fetch the previous page. `null` on the first page.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ListMetricResponse","type":"object","x-struct":null,"x-validate":null},"ListContactSequencesParams":{"description":"Request schema for listing contact's sequences in an organization.","example":{"contact_status":"active","limit":50,"offset":0,"sequence_id":"d793eb79-b522-4bbc-a605-242d4717f9f0","sequence_status":"active"},"properties":{"contact_status":{"description":"Status of the contact in latest sequence step.\nReturns data for all contact statuses by default.\n\nThe statuses are:\n  * `\"pending\"` - waiting to enter the step\n  * `\"active\"` - currently in the step\n  * `\"inactive\"` - currently inactive in the step. Won't receive the step message\n  * `\"moved\"` - they've been moved to another step\n  * `\"finished\"` - they've completed the step\n\n","enum":["pending","active","inactive","moved","finished"],"example":"active","type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"description":"Number of results to return","example":50,"type":"integer","x-struct":null,"x-validate":null},"offset":{"default":0,"description":"Number of results to skip","example":0,"type":"integer","x-struct":null,"x-validate":null},"sequence_id":{"description":"Sequence ID","example":"7c4ec192-3c60-4f84-a5db-8926fb2d2b7f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"sequence_status":{"description":"Status of the sequence.\nReturns data for all sequence statuses by default.\n\nThe statuses are:\n  * `\"active\"` - working normally, accessible, contacts can be added and messages can be sent\n  * `\"draft\"` - accessible but no contacts can be added and no messages can be sent\n  * `\"archived\"` - old and not in use anymore\n","enum":["draft","active"],"example":"active","type":"string","x-struct":null,"x-validate":null}},"title":"ListContactSequencesParams","type":"object","x-struct":null,"x-validate":null},"ConversationBadRequestErrorResponse":{"description":"Conversation Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Conversation 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"ConversationBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Conversations.Conversation.Errors.BadRequest","x-validate":null},"ListDashboardResponse":{"description":"Response schema for listing dashboards with cursor pagination.","example":{"data":[{"created_at":"2026-01-15T07:45:45.353788Z","default_filters":[],"default_timeframe":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"description":"Inbound and outbound conversation volume over time","id":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","metrics":[{"metric_id":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","size":"medium"}],"source":"organization","title":"Conversations Overview","updated_at":"2026-02-10T07:45:45.353788Z"}],"metadata":{"next_cursor":null,"prev_cursor":null}},"properties":{"data":{"description":"List of dashboards ordered newest to oldest within the page.","items":{"description":"Dashboard summary record","properties":{"created_at":{"description":"Date the dashboard was created at in ISO 8601 format. `null` for Whippy built-in dashboards.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"default_filters":{"description":"Filters the dashboard applies to every chart, on top of each metric's own filters, when Show Dashboard is called without `filters`. Always empty for Whippy built-in dashboards. At most one filter per column. `agent_id`, `agent_version_id` and `channel_id` take `in` and a list of IDs of the organization's agents, agent versions or channels. `source_type` (a call's direction) takes `in` and `INBOUND` and/or `OUTBOUND`, and `call_completion_rating` takes `in` and `Complete` and/or `Incomplete`. `duration` takes `>=` or `<=` and a whole number of seconds: calls lasting at least or at most that long, with each call's duration rounded up to the second. A chart whose events don't carry a filter's column (a message chart under a duration filter, say) is left unfiltered by it, and its result lists the column in `dashboard_filters_not_applied`.","example":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_timeframe":{"additionalProperties":false,"description":"The relative interval the dashboard runs over when a request gives no `start`/`end` (e.g. the last 4 weeks). `null` when the dashboard has none: it then runs over the trailing four weeks.","example":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"nullable":true,"properties":{"interval_length":{"description":"Number of interval units.","type":"integer","x-struct":null,"x-validate":null},"interval_type":{"description":"Interval unit, e.g. `day`, `week`, `month`.","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the interval is evaluated in.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Dashboard description.","example":"Inbound and outbound conversation volume over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Dashboard ID","example":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","format":"uuid","type":"string","x-struct":null,"x-validate":null},"metrics":{"description":"The dashboard's layout: the metrics it shows, in order.","items":{"additionalProperties":false,"properties":{"metric_id":{"description":"ID of the metric (see `/v1/metrics`).","format":"uuid","type":"string","x-struct":null,"x-validate":null},"size":{"description":"Display size of the chart. On a Whippy built-in dashboard, the size the app shows it at, or `null` for a built-in dashboard the app doesn't render from this layout.","enum":["small","medium","large"],"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"description":"Dashboard origin. `whippy` for built-in dashboards (stable reserved IDs, not persisted), `organization` for dashboards saved in the organization.","enum":["whippy","organization"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"tags":{"description":"Tags on the dashboard. Always empty for Whippy built-in dashboards.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Dashboard title","example":"Conversations Overview","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the dashboard was last updated at in ISO 8601 format. `null` for Whippy built-in dashboards.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata.","properties":{"next_cursor":{"description":"Cursor referencing the last row on this page. Pass with `direction=forward` to fetch the next page. `null` when there is no next page.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prev_cursor":{"description":"Cursor referencing the first row on this page. Pass with `direction=backward` to fetch the previous page. `null` on the first page.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ListDashboardResponse","type":"object","x-struct":null,"x-validate":null},"CustomToolSettings":{"additionalProperties":false,"example":{"method":"POST","parameters":{"description":"Order lookup parameters","properties":{},"type":"object"},"speak_after_execution":true,"speak_during_execution":false,"url":"https://example.com/webhook"},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"headers":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request headers","type":"object","x-struct":null,"x-validate":null},"include_whippy_context":{"description":"Whether to add the current contact, conversation, and message as whippy_context in POST, PUT, and PATCH JSON bodies. During voice calls, the message body contains the dialogue so far","type":"boolean","x-struct":null,"x-validate":null},"method":{"default":"POST","enum":["POST","GET","PUT","PATCH","DELETE"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"parameters":{"description":"JSON Schema describing the custom tool input. The root schema requires a description.","properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"query_params":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request query parameters","type":"object","x-struct":null,"x-validate":null},"response_variables":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Values extracted from the response","type":"object","x-struct":null,"x-validate":null},"retry":{"additionalProperties":false,"properties":{"base_delay_ms":{"maximum":5000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_delay_ms":{"maximum":15000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_retries":{"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"retry_on_status_codes":{"items":{"enum":[408,429,500,502,503,504],"type":"integer","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["max_retries","base_delay_ms","max_delay_ms","retry_on_status_codes"],"type":"object","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":3000,"maximum":120000,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"url":{"description":"Publicly reachable HTTPS endpoint called by the Tool","example":"https://example.com/webhook","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["url","speak_after_execution","speak_during_execution"],"title":"CustomToolSettings","type":"object","x-struct":null,"x-validate":null},"CreateDomainPurchaseIntentParams":{"example":{"emailProvider":"mailgun","purposes":["links","email"],"quoteId":"0f8e0d1c-4b6a-4a59-9e3f-2d1c0b9a8f7e"},"properties":{"emailProvider":{"description":"Required when `email` is in `purposes`","enum":["mailgun"],"type":"string","x-struct":null,"x-validate":null},"purposes":{"items":{"enum":["links","email"],"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"quoteId":{"description":"An unexpired quote from Create Purchase Quote","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["quoteId","purposes"],"title":"CreateDomainPurchaseIntentParams","type":"object","x-struct":null,"x-validate":null},"DeveloperApplicationBadRequestErrorResponse":{"description":"Developer Application Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Developer Application 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"DeveloperApplicationBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Application.Errors.BadRequest","x-validate":null},"Parameters-With-Specific-Channels-Opt-Out":{"description":"Communication preferences opt out params for specific channels.","example":{"channels":[{"id":"82a210e8-4fa0-441a-8fe6-356a51f47b1c"}],"contacts":[{"email":"johndoe@example.com","name":"John"}]},"not":{"required":["channel_types"],"x-struct":null,"x-validate":null},"properties":{"channels":{"description":"List of channels that contacts be opted out of.","items":{"description":"Data for a channel to opt contacts out of.","properties":{"id":{"description":"Channel ID","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"contacts":{"description":"List of contacts that would be opted out.","items":{"description":"Data for a contact that would be opted out.\n\nProvide `phone` when opting out of SMS or WhatsApp channels, and `email`\nwhen opting out of email channels. When opting out of multiple channels,\nprovide `phone`, `email`, or both.\n","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["contacts","channels"],"title":"Parameters-With-Specific-Channels-Opt-Out","type":"object","x-struct":null,"x-validate":null},"DeveloperEndpointBadRequestErrorResponse":{"description":"Developer Endpoint Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Developer Endpoint 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"DeveloperEndpointBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Endpoint.Errors.BadRequest","x-validate":null},"PublicUpdateChannelParams":{"description":"Fields that can be updated on a channel. Send only the fields to change.\nAt least one of name, address, emoji, color, description, timezone, or opening_hours is required.\nSend null for emoji, color, or description to clear them. Address cannot be blank.\ntimezone is an IANA name such as America/New_York. Abbreviations such as PST are not accepted.\nopening_hours updates business hours for the weekdays you send. Other weekdays stay as they are.\nEach weekday requires weekday, state, opens_at, and closes_at.\nweekday is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday.\nstate is open or closed. Times are 24-hour HH:MM, such as 09:00. 00:00 is midnight.\n00:00 to 00:00 means open all day. A state of closed keeps that weekday closed.\n","example":{"address":"Test Company Address, Los Angeles, CA 90001","color":"#009874","description":"The channel used by Team A","emoji":"👋","name":"Manhattan Office","opening_hours":[{"closes_at":"17:30","opens_at":"09:00","state":"open","weekday":"Monday"}],"timezone":"America/New_York"},"properties":{"address":{"description":"Channel address. Cannot be blank.","example":"Test Company Address, Los Angeles, CA 90001","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Hex color for the channel. Send null to clear.","example":"#009874","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"description":"Channel description, at most 255 characters. Send null to clear.","example":"The channel used by Team A","maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji shown for the channel. Send null to clear.","example":"👋","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","example":"Manhattan Office","type":"string","x-struct":null,"x-validate":null},"opening_hours":{"description":"Business hours for the channel. Send only the weekdays to change; other weekdays stay as they are.\nEach item requires weekday, state, opens_at, and closes_at.\nweekday is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday.\nstate is open or closed. A state of closed keeps that weekday closed.\nopens_at and closes_at are 24-hour HH:MM, such as 09:00 or 17:30. 00:00 is midnight.\n00:00 to 00:00 means open all day.\n","example":[{"closes_at":"17:30","opens_at":"09:00","state":"open","weekday":"Monday"}],"items":{"properties":{"closes_at":{"description":"Closing time in 24-hour HH:MM, such as 17:30. 00:00 is midnight. 00:00 to 00:00 means open all day.","example":"17:30","pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","type":"string","x-struct":null,"x-validate":null},"opens_at":{"description":"Opening time in 24-hour HH:MM, such as 09:00. 00:00 is midnight.","example":"09:00","pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","type":"string","x-struct":null,"x-validate":null},"state":{"description":"open or closed. A state of closed keeps that weekday closed.","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday these hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"example":"Monday","type":"string","x-struct":null,"x-validate":null}},"required":["weekday","state","opens_at","closes_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone identifier, such as America/New_York or Europe/Dublin. Abbreviations such as PST or EST are not accepted.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/New_York","title":"Timezone","type":"string","x-struct":null,"x-validate":null}},"title":"PublicUpdateChannelParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Channels.Channel.UpdateParams","x-validate":null},"SearchToolsParams":{"additionalProperties":false,"description":"Request schema for searching tools.","properties":{"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"Case-insensitive partial tool name","maxLength":64,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Tool type","enum":["custom","transfer_call","execute_actions","press_digit","check_availability_cal","book_appointment_cal"],"type":"string","x-struct":null,"x-validate":null}},"title":"SearchToolsParams","type":"object","x-struct":null,"x-validate":null},"AgentTestReadinessResponse":{"description":"Whether each scenario passes on the agent's Live and Draft configuration. Only a run of the\ncurrent scenario definition against the current configuration counts; anything older reads\nas `stale`. `ready` is true when every scenario is `passing`.\n","properties":{"data":{"properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"draft_differs_from_live":{"type":"boolean","x-struct":null,"x-validate":null},"targets":{"properties":{"draft":{"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"ready":{"type":"boolean","x-struct":null,"x-validate":null},"summary":{"properties":{"error":{"type":"integer","x-struct":null,"x-validate":null},"failing":{"type":"integer","x-struct":null,"x-validate":null},"not_run":{"type":"integer","x-struct":null,"x-validate":null},"passing":{"type":"integer","x-struct":null,"x-validate":null},"running":{"type":"integer","x-struct":null,"x-validate":null},"stale":{"type":"integer","x-struct":null,"x-validate":null},"unknown":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"live":{"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"ready":{"type":"boolean","x-struct":null,"x-validate":null},"summary":{"properties":{"error":{"type":"integer","x-struct":null,"x-validate":null},"failing":{"type":"integer","x-struct":null,"x-validate":null},"not_run":{"type":"integer","x-struct":null,"x-validate":null},"passing":{"type":"integer","x-struct":null,"x-validate":null},"running":{"type":"integer","x-struct":null,"x-validate":null},"stale":{"type":"integer","x-struct":null,"x-validate":null},"unknown":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"tests":{"items":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"blockers":{"items":{"properties":{"code":{"example":"scenario_incomplete","type":"string","x-struct":null,"x-validate":null},"message":{"example":"Finish the scenario","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"draft":{"properties":{"run":{"nullable":true,"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"result":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"enum":["passing","failing","unknown","error","running","stale","not_run"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"from_feedback":{"type":"boolean","x-struct":null,"x-validate":null},"last_run":{"nullable":true,"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"result":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"live":{"properties":{"run":{"nullable":true,"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"result":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"enum":["passing","failing","unknown","error","running","stale","not_run"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_selection":{"enum":["current_published","draft"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Display title: the name, else the first line of the scenario.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestReadinessResponse","type":"object","x-struct":null,"x-validate":null},"DomainPurchaseIntent":{"properties":{"confirmedAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"createdAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"domain":{"description":"An organization-scoped custom domain and its per-purpose setup state","example":{"apexDomain":"acme.com","createdAt":"2026-11-03T19:00:00Z","expiresAt":null,"id":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","name":"mail.acme.com","purchase":null,"purchasedAt":null,"purposes":{"email":{"provider":"mailgun","requiredDnsRecords":[],"setupState":"awaiting_dns","status":"pending","verificationRecords":[{"name":"smtp._domainkey.mail","priority":null,"ttl":null,"type":"TXT","value":"k=rsa; p=MIGfMA0..."}]},"links":{"requiredDnsRecords":[{"name":"mail","priority":null,"ttl":null,"type":"CNAME","value":"cname.vercel-dns.com"}],"setupState":"active","status":"active","verificationRecord":null}},"renew":null,"setupType":"add","status":"active","updatedAt":"2026-11-03T19:00:00Z"},"nullable":true,"properties":{"apexDomain":{"example":"acme.com","type":"string","x-struct":null,"x-validate":null},"createdAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"example":"mail.acme.com","type":"string","x-struct":null,"x-validate":null},"purchase":{"nullable":true,"properties":{"status":{"enum":["pending","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null}},"required":["status"],"type":"object","x-struct":null,"x-validate":null},"purchasedAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"purposes":{"properties":{"email":{"properties":{"provider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["status","setupState","provider","verificationRecords","requiredDnsRecords"],"title":"DomainEmailPurpose","type":"object","x-struct":null,"x-validate":null},"links":{"properties":{"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecord":{"nullable":true,"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null}},"required":["status","setupState","verificationRecord","requiredDnsRecords"],"title":"DomainLinksPurpose","type":"object","x-struct":null,"x-validate":null}},"required":["links","email"],"type":"object","x-struct":null,"x-validate":null},"renew":{"description":"Auto-renewal, only for `buy` domains","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"setupType":{"description":"`add`: caller-owned domain; `buy`: registered through Whippy; `managed`: provisioned by Whippy","enum":["add","buy","managed"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","active","cancelled","expired","deleted"],"type":"string","x-struct":null,"x-validate":null},"updatedAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","apexDomain","setupType","status","renew","purchase","purchasedAt","expiresAt","purposes","createdAt","updatedAt"],"title":"Domain","type":"object","x-struct":null,"x-validate":null},"domainId":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"emailProvider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"failure":{"nullable":true,"properties":{"code":{"description":"Safe machine code. Known values: purchase_rejected, domain_unavailable, price_changed, purchase_policy_exceeded, registrar_error, setup_timed_out, dns_misconfigured, provider_error.","example":"setup_timed_out","type":"string","x-struct":null,"x-validate":null}},"required":["code"],"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"periodInYears":{"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"price":{"properties":{"amountMinor":{"description":"Price in integer minor units (cents)","minimum":0,"type":"integer","x-struct":null,"x-validate":null},"currency":{"enum":["USD"],"type":"string","x-struct":null,"x-validate":null}},"required":["amountMinor","currency"],"title":"DomainPrice","type":"object","x-struct":null,"x-validate":null},"purposes":{"items":{"enum":["links","email"],"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"quoteId":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","confirmed","expired","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null}},"required":["id","status","name","quoteId","price","periodInYears","purposes","emailProvider","failure","domainId","domain","expiresAt","confirmedAt","createdAt"],"title":"DomainPurchaseIntent","type":"object","x-struct":null,"x-validate":null},"ListContactSegmentsResponse":{"description":"Response schema for listing contact segments.","example":{"data":[{"color":"44FFFF","description":"Contact Segment Description","emoji":"😊","filters":{"search":[{"filters":[{"attribute":"source","comparison":"in","type":"list","value":["facebook"]},{"attribute":"tag.id","comparison":"in","type":"list","value":["f32b53d8-2865-4771-8455-7d5e0e2ecae2"]}],"type":"or"}]},"name":"Local Contacts","status":"active"}]},"properties":{"data":{"description":"List of contact segments for the organization.","items":{"description":"Schema for a contact segment in the organization.","example":{"color":"44FFFF","description":"Contact Segment Description","emoji":"😊","filters":{"search":[{"filters":[{"attribute":"source","comparison":"in","type":"list","value":["facebook"]},{"attribute":"tag.id","comparison":"in","type":"list","value":["f32b53d8-2865-4771-8455-7d5e0e2ecae2"]}],"type":"or"}]},"name":"Local Contacts","status":"active"},"properties":{"color":{"description":"RGB value for the segment color","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description of the segment","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","type":"string","x-struct":null,"x-validate":null},"filters":{"description":"Filter settings for the contact segment. Always have the outer key \"search\".","properties":{"search":{"description":"List of search options for the contact segment. Currently nesting is not supported, but multiple search filters can be used on the same root level.","items":{"description":"One specific contact segment search filter","properties":{"filters":{"description":"List of attributes that map to the search type - either all should correspond to the contact or one of them, depending of the filter type.","items":{"description":"Specific attribute to be used when filterint contacts in the segment","properties":{"attribute":{"description":"Attribute name","enum":["source","tag.id"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"Method of comparison with the attribute. Currently only inclusion in list of values is supported.","enum":["in"],"example":"in","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the attribute value. Currently only list is supported.","enum":["list"],"example":"list","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value of the specific attribute with specific type. E.g. list of sources, list of tags.","example":["7c117628-781c-4092-80f5-291052d499eb","e9c0c677-fb74-493c-b76b-96f718667b2f"],"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the search filter. ","enum":["or","and"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"name":{"description":"Name of the segment","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Status of the segment.\n\nNote: Only 'active' segments are returned.\n","enum":["active","deleted"],"example":"active","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of contact segments matching the filters.","type":"integer","x-struct":null,"x-validate":null}},"title":"ListContactSegmentsResponse","type":"object","x-struct":null,"x-validate":null},"RemoveTagsAction":{"description":"Remove Tags Action params used when processing the action.","example":{"tag_ids":["edd3a266-29c7-43bc-971a-7989a7656447","55198658-5b4c-4b33-b543-06a4d31e8c88"]},"properties":{"tag_ids":{"description":"List of tags to remove from the contact","items":{"description":"Tag ID","example":"e7536f7f-d90a-487c-9fbd-e28a68c67c80","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"RemoveTagsAction","type":"object","x-struct":null,"x-validate":null},"CustomPropertyBadRequestErrorResponse":{"description":"Custom Property Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param Custom Object ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Property 400 error","items":{"properties":{"description":{"enum":["Invalid path param Custom Object ID: null","Invalid path param Custom Property ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomPropertyBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.Property.Errors.BadRequest","x-validate":null},"TeamMemberUnprocessableContentErrorResponse":{"description":"List of error responses for invalid TeamMember requests.\n","example":{"errors":[{"description":"Organization doesn't exist"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Team Member 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Organization doesn't exist","Organization ID can't be blank","Organization ID is invalid","Team doesn't exist","Team ID can't be blank","Team ID is invalid","User Organization doesn't exist","User Organization ID can't be blank","User Organization ID is invalid","Team Member doesn't exist","ID can't be blank","ID is invalid","User ID is invalid","User ID can't be blank","User doesn't exist"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamMemberUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.TeamMember.Errors.UnprocessableContent","x-validate":null},"UnauthorizedAssigneeErrorResponse":{"description":"User is not authorized to be assignee","example":{"error":{"message":"User does not have access to organization","status":401}},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"error":{"properties":{"message":{"example":"User does not have access to organization","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[401],"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"title":"UnauthorizedAssigneeErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.User.UnAuthorizeAssigneeError","x-validate":null},"RemoveContactsFromAllSequencesResponse":{"description":"Response schema for removing contacts from all sequences.","example":{"data":{"message":"Contacts are being removed from all sequences"}},"properties":{"data":{"description":"Contacts are being removed from all sequences","properties":{"message":{"description":"Message of confirmation that contacts are being removed from all sequences","example":"Contacts are being removed from all sequences","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"RemoveContactsFromAllSequencesResponse","type":"object","x-struct":null,"x-validate":null},"ShowContactLists":{"description":"Show Response for Contact Lists","example":{"data":[{"color":"#ffeb3b","contacts":{"data":[{"blocked":false,"communication_preferences":[],"contact_tags":[],"created_at":"2021-06-22T10:36:07Z","email":null,"first_name":"John","id":"dabb6393-4d61-4a9c-b2a9-57a509fad182","last_name":"Doe","name":"John Doe","notes":[],"phone":"+14155552671","state":"open","updated_at":"2021-06-22T10:36:07Z"}],"total":1},"created_at":"2021-06-22T10:36:07Z","id":"8e2d5e8a-5354-4e97-b244-8920fb17891b","name":"contact-list-name","organization_id":"003a651b-c245-418a-8968-83e671df5d2b","state":"archived","updated_at":"2021-06-22T10:36:07Z"}]},"properties":{"data":{"description":"Data for a single contact list.","properties":{"color":{"description":"Color of the contact list tag in RGB format","type":"string","x-struct":null,"x-validate":null},"contacts":{"description":"List of contacts that belong to the list.","items":{"description":"Data for a single contact in the list","properties":{"data":{"description":"Data for a single contact in the list","properties":{"blocked":{"description":"Contact blocked status - true or false","type":"boolean","x-struct":null,"x-validate":null},"communication_preferences":{"description":"List of communication preferences for the contact for different channels.","items":{"description":"Communication preference for the contact for a specific channel","properties":{"channel_id":{"description":"ID of the channel the preference refers to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the preference belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the communication preference","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Communication preference ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_campaign_date":{"description":"Date of the last campaign the contact received from this channel. In ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_in":{"description":"Opted in/out state of the contact for the channel","type":"boolean","x-struct":null,"x-validate":null},"opt_in_date":{"description":"Date the contact last opted in","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_out_date":{"description":"Date the contact last opted out","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the preference","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"contact_tags":{"description":"List of contact tags. They determine which tags the contact is tagged with. Each contact lists creates a new tag and tags contacts with it automatically, but they can have more tags eventually.","items":{"description":"Data for a single contact tag association","properties":{"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of tagging the contact and creation of the contact tag association","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the contact tag association","format":"uuid","type":"string","x-struct":null,"x-validate":null},"tag":{"description":"Data for the tag for this current contact association.","properties":{"color":{"description":"Tag color in RGB format","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the tag","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"ID of the tag","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization the tag belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the tag","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the tag","enum":["standard","upload"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that last updated the tag","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"tag_id":{"description":"Tag ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time the contact tag association was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of a contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Email of the contact","format":"email","type":"string","x-struct":null,"x-validate":null},"first_name":{"description":"First name of the contact","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_name":{"description":"Last name of the contact","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Full name of the contact","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"List of notes for the contact.","items":{"description":"Data for a single note","properties":{"body":{"description":"Text of the note","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the note in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the note","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user":{"description":"Data for the user that created the note","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"phone":{"description":"Phone number of the contact","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Contact state","enum":["open","archived","blocked"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of a contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total count of contacts in the list","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the contact list in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact list ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Name of the contact list","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization the list belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the contact list","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the contact list in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata for the list's members. Returned on both the cursor and offset paths; on the offset path only `next_cursor` is populated (a bootstrap cursor to move onto cursor pagination).","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset. Absent on the offset path.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of members. Pass it back as `cursor`. `null` when there are no more members.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowContactLists","type":"object","x-struct":null,"x-validate":null},"ServiceUnavailableErrorResponse":{"description":"Service Unavailable Error Response schema","example":{"error":"Workflows service unavailable"},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"error":{"description":"Stable public error message","example":"Workflows service unavailable","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"required":["error"],"title":"ServiceUnavailableErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Errors.ServiceUnavailable","x-validate":null},"UpdateMetricRequest":{"description":"Fields to change. Omitted fields keep their stored values.","example":{"chart":"bar","events":[{"filter":[{"column":"duration","comparison":">=","field_type":"integer","filter_type":"seconds","value":30}],"group_by":[{"field":"channel_id"}],"name":"call.analyzed","type":"whippy_event"}],"title":"AI calls by channel","type":"custom"},"properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null}},"title":"UpdateMetricRequest","type":"object","x-struct":null,"x-validate":null},"CustomObjectRecordUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Custom Object Record creation requests.\n","example":{"errors":[{"description":"Custom Object not found"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object Record 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Custom Object not found","Custom Object ID is invalid","Associated Resource ID is invalid","Associated Resource Type is invalid","External ID should be a non-empty string","Associated Resource Type should be one of: contact, conversation, message, tag","invalid Property Key format. Expected snake case, got: custom property key","Associated Resource ID or Associated Resource Type must be present if External ID is not present","The length of the Custom Object Record list should be more than 1 and less than 4000"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectRecordUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomData.Errors.UnprocessableContent","x-validate":null},"SearchCallsParams":{"description":"Request schema for searching calls with extended filters.","example":{"after":"2024-05-27T14:36:28.512491Z","agent_id":["02bc0702-c885-4232-9bce-57c674a739bf","4485531a-f1c4-4963-9006-6a1c891ab453"],"agent_version_id":"528daff4-0690-4b4e-b9f3-c3d113f6dc60","before":"2024-04-03T00:00:00Z","call_completion_rating":"Complete","channel_id":"3fc74119-4d03-4cbe-a60e-79479b633d9d","contact_id":"089ccdc1-44ef-492a-972e-b064f96389d6","conversation_id":"a2e389bc-8aa4-4fee-b70a-1add80784ec2","delivery_status":"call_completed.user_hangup","direction":"inbound","from":"(415) 802-0402","language":"es","max_duration":600000,"min_duration":30000,"mode":"manual","to":"(323) 745-2021","voicemail":true,"voicemail_recorded":true},"properties":{"after":{"description":"The date and time after which the call records were created, in the ISO 8601 format.","example":"2024-05-27T14:36:28.512491Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"agent_id":{"description":"Agent ID(s) to filter by.\n\nAccepts a single value or an array.\n","example":"02bc0702-c885-4232-9bce-57c674a739bf","oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"agent_task_completion_rating":{"description":"How completely the AI agent finished its task, according to the AI call analysis.\n\nAccepts a single value or an array.\n","example":"Complete","oneOf":[{"enum":["Complete","Partial","Incomplete"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["Complete","Partial","Incomplete"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"agent_version_id":{"description":"Agent version ID(s) to filter by.\n\nAccepts a single value or an array.\n","example":"528daff4-0690-4b4e-b9f3-c3d113f6dc60","oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"before":{"description":"The date and time before which the call records were created, in the ISO 8601 format.","example":"2024-04-03T00:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"call_completion_rating":{"description":"Call completion rating: `Complete` or `Incomplete`. Matching is case-insensitive\n(`incomplete` is accepted and stored as `Incomplete`).\n\nAccepts a single value or an array.\n","example":"Complete","oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"call_flow_id":{"description":"Call flow ID(s) the call ran through.\n\nAccepts a single value or an array.\n","example":"36fb466d-1211-471f-9995-26c9bbbd3a7d","oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"call_successful":{"description":"Whether the AI call analysis marked the call as successful.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_id":{"description":"Channel ID(s) to filter by.\n\nAccepts a single value or an array.\n","example":"3fc74119-4d03-4cbe-a60e-79479b633d9d","oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID(s) to filter by.\n\nAccepts a single value or an array.\n","example":"089ccdc1-44ef-492a-972e-b064f96389d6","oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID(s) to filter by.\n\nAccepts a single value or an array.\n","example":"a2e389bc-8aa4-4fee-b70a-1add80784ec2","oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"custom_analysis":{"description":"Filters on the agent's custom AI analysis results, such as interview scores or qualification results.\nEvery entry must match.\n\n`key` is the analysis field name; nested fields are joined with `.` (e.g. `scores.communication`).\n`value` is compared exactly, as a string; pass an array to match any of several values.\n","example":[{"key":"interview_score","value":[8,9,10]},{"key":"qualified","value":true}],"items":{"properties":{"key":{"example":"interview_score","type":"string","x-struct":null,"x-validate":null},"value":{"example":[8,9,10],"oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"items":{"oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["key","value"],"type":"object","x-struct":null,"x-validate":null},"maxItems":20,"type":"array","x-struct":null,"x-validate":null},"delivery_status":{"description":"Call delivery status to filter by.\n\nAccepts a single value or an array. Any string is valid, including a `call_completed.` disconnection reason.\n\nKnown values this API constructs include `call_completed`, `call_completed.user_hangup`, `call_no_answer.caller_left_voicemail_message`, and `call_completed.abandoned_before_routing`.\n","example":"call_completed.user_hangup","oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"detected_language":{"description":"Language detected by the AI call analysis.\n\nAccepts a single value or an array.\n","example":"en-US","oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"direction":{"description":"Call direction. Filters calls by `INBOUND` or `OUTBOUND`. This is not a cursor direction; paging is forward only.\n\nAccepts a single value or an array. Matching is case-insensitive.\n","example":"inbound","oneOf":[{"enum":["inbound","outbound","INBOUND","OUTBOUND"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["inbound","outbound","INBOUND","OUTBOUND"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"from":{"description":"Caller phone number(s).\n\nAccepts a single value or an array.\n","example":"(415) 802-0402","oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"internal_call":{"description":"Whether the call was between users of the organization.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"language":{"description":"Language code(s) to filter by.\n\nAccepts a single value or an array.\n","example":"es","oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"max_duration":{"description":"Maximum call duration in milliseconds","example":600000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"min_duration":{"description":"Minimum call duration in milliseconds","example":30000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"mode":{"description":"Call mode.\n\nAccepts a single value or an array.\n","example":"manual","oneOf":[{"enum":["manual","automated","sequence","ai"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["manual","automated","sequence","ai"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"provider":{"description":"Telephony provider(s) that handled the call.\n\nAccepts a single value or an array.\n","example":"twilio","oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"search":{"description":"Full-text search over call transcripts and AI-generated call summaries. Every word must appear,\ncase-insensitively; the last word matches as a prefix.\n","example":"refund request","maxLength":500,"type":"string","x-struct":null,"x-validate":null},"search_fields":{"description":"Restricts `search` to transcripts, summaries, or both. Defaults to both.\n\nAccepts a single value or an array.\n","example":"summary","oneOf":[{"enum":["transcript","summary"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["transcript","summary"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"sequence_id":{"description":"Sequence ID(s) the call belongs to.\n\nAccepts a single value or an array.\n","example":"af673a5b-6968-443d-a4e5-0f96cc5c9e50","oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"to":{"description":"Callee phone number(s).\n\nAccepts a single value or an array.\n","example":"(323) 745-2021","oneOf":[{"type":"string","x-struct":null,"x-validate":null},{"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"user_sentiment":{"description":"User sentiment detected by the AI call analysis.\n\nAccepts a single value or an array.\n","example":"Positive","oneOf":[{"enum":["Positive","Neutral","Negative","Unknown"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["Positive","Neutral","Negative","Unknown"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"visibility_status":{"description":"Visibility status of the call.\n\nAccepts a single value or an array.\n","example":"visible","oneOf":[{"enum":["visible","hidden","removed"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["visible","hidden","removed"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"voicemail":{"description":"Whether the call reached voicemail (`call_metadata.voicemail`), including a short clip and a call with no saved message.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"voicemail_recorded":{"description":"`true` matches a call that saved a voicemail message. `delivery_status` is `call_no_answer.caller_left_voicemail_message`, `call_completed.caller_left_voicemail_message`, or that suffix on `call_queued`, `call_initiated`, `call_ringing`, `call_missed`, `call_busy`, or `call_failed`. `false` matches a call that has no saved voicemail message, such as `call_no_answer`, `call_no_answer.reached_voicemail_no_message`, or `call_in_progress`.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"title":"SearchCallsParams","type":"object","x-struct":null,"x-validate":null},"ShowLink":{"example":{"data":{"created_at":"2026-11-03T19:00:00Z","custom_card_description":"Earn competitive compensation. Click for details.","custom_card_image":{"content_type":"image/jpeg","url":"https://cdn.example.com/cards/hiring.jpg"},"custom_card_title":"Join the team","description":"Forklift hiring landing page","domain":null,"id":"dd840673-d544-44b9-99f1-f6438471d2f3","short_key":"whippy-it","short_url":"https://m.whippy.co/whippy-it","status":"active","updated_at":"2026-11-03T19:00:00Z","url":"https://whippy.ai/products/campaigns","use_custom_card":true,"utm_campaign":"hire_forklift_drivers","utm_content":"join_our_team","utm_medium":"sms","utm_source":"whippy","utm_term":"forklift"}},"properties":{"data":{"properties":{"created_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_card_description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_card_image":{"nullable":true,"properties":{"content_type":{"type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_card_title":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"domain":{"nullable":true,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"short_key":{"type":"string","x-struct":null,"x-validate":null},"short_url":{"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null},"use_custom_card":{"type":"boolean","x-struct":null,"x-validate":null},"utm_campaign":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_medium":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_source":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_term":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowLink","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.ShowResponse","x-validate":null},"ListWorkflowStepsResponse":{"description":"Response schema for listing steps on the current draft (or published version).","example":{"data":[{"alias":"send_slack_message","child_role":null,"custom_image_url":null,"data":{"credential_id":"d4e5f6a7-b8c9-0123-def0-123456789abc"},"description":null,"id":"c1d2e3f4-a5b6-7890-abcd-ef1234567890","metadata":{},"name":"Send Slack message","next_steps_ids":[],"parent_step_id":null,"position":1,"previous_step_id":null,"sample_input":{},"sample_output":{},"type":"app","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","workflow_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}],"total":1},"properties":{"data":{"description":"Workflow steps","items":{"description":"Workflow step from the draft (or published) version","properties":{"alias":{"description":"Stable step alias within the workflow","type":"string","x-struct":null,"x-validate":null},"child_role":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_image_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"data":{"description":"Step configuration (input mapping, credential_id, action keys, etc.)","type":"object","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"metadata":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"next_steps_ids":{"description":"IDs of steps that list this step as their previous_step_id","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"position":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"previous_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sample_input":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"sample_output":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Step type (e.g. app, trigger, code, loop)","type":"string","x-struct":null,"x-validate":null},"workflow_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"workflow_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","type"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Number of steps returned","example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListWorkflowStepsResponse","type":"object","x-struct":null,"x-validate":null},"ListAgentTestVersionsResponse":{"description":"Page of version summaries. The mutable draft is included. Full definition content\nis available from the show version operation.\n","example":{"data":[{"agent_test_id":"00000000-0000-4000-8000-000000000003","content_fingerprint":"example","id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"test_type":"simulation","updated_at":"2026-01-01T12:00:00.000000Z","version_number":1}],"total":1},"properties":{"data":{"items":{"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListAgentTestVersionsResponse","type":"object","x-struct":null,"x-validate":null},"DashboardInternalServerErrorResponse":{"description":"Response that occurs when the dashboard couldn't be processed","example":{"errors":[{"description":"Report couldn't be processed"}],"status":500},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Dashboard 500 error","items":{"description":"Single 500 error","properties":{"description":{"enum":["Report couldn't be processed"],"example":"Report couldn't be processed","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[500],"example":500,"type":"integer","x-struct":null,"x-validate":null}},"title":"DashboardInternalServerErrorResponse","type":"object","x-struct":null,"x-validate":null},"TagNotFoundErrorResponse":{"description":"Tag Not Found Error Response schema","example":{"errors":[{"description":"Tag not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tag 404 error","items":{"properties":{"description":{"enum":["Tag not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"TagNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.Errors.NotFound","x-validate":null},"ShowMetricResponse":{"description":"Response schema for a metric generated over a date range.","example":{"data":{"chart":"total","created_at":"2026-01-15T07:45:45.353788Z","description":"Count of AI calls over time","events":[{"aggregate":{},"color":null,"filter":[],"group_by":[],"name":"call.analyzed","type":"whippy_event"}],"id":"70278cd3-83c2-4b65-9d99-3e631e731abb","linked":false,"results":{},"source":"organization","timeframe":{"end":"2026-02-01T00:00:00Z","start":"2026-01-01T00:00:00Z","timezone":"America/Chicago"},"title":"Total AI Calls","trend":false,"trend_line":false,"type":"custom","updated_at":"2026-02-10T07:45:45.353788Z"}},"properties":{"data":{"description":"Metric record with generated data","properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the metric was created at in ISO 8601 format. `null` for Whippy built-in metrics.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Metric ID","example":"70278cd3-83c2-4b65-9d99-3e631e731abb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"results":{"description":"The generated metric data. When the metric's events set `display_units`, it also has `unit` (the unit values are in: the smallest selected unit) and `display_units`, and each value has a `formatted` text beside it: `formatted` and `prev_formatted` on a total; `formatted` on each series entry, slice and table row; and on a pivoted table row, a `formatted` object keyed like the row's cells, plus `total`. A table whose event has an `aggregates` list has one column per aggregate, named by its `key`, instead of `x` (pivoted: `<key>:<group_key>:<value>` cells and `<key>:total`), an `aggregates` array describing them in order (key, label, aggregate type, field, and `unit` and `display_units` where set), and a `formatted` object per row keyed like the columns with display units. A pivoted count or sum that sets `percent_of_row` adds each cell's share of its row to the row's `percent_of_row` object, keyed like the cell. A table with a `table_sort` has its rows sorted by that column, and the setting echoed as `table_sort`.","type":"object","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"source":{"description":"Metric origin. `whippy` for built-in metrics (stable reserved IDs, not persisted), `organization` for metrics saved in the organization.","enum":["whippy","organization"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"timeframe":{"description":"The timeframe the metric was generated over — the absolute range (`start`/`end`) supplied by the request, or the default trailing four weeks.","example":{"end":"2026-02-01T00:00:00Z","start":"2026-01-01T00:00:00Z","timezone":"America/Chicago"},"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the metric was last updated at in ISO 8601 format. `null` for Whippy built-in metrics.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowMetricResponse","type":"object","x-struct":null,"x-validate":null},"ListWorkflowAppsResponse":{"description":"Response schema for listing workflow apps with triggers and actions.","example":{"data":[{"access_level":"global","actions":[{"description":"Sends a message to a Slack channel.","id":"send_message","name":"Send Message"}],"app_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","brand_color":"#2563EB","description":"Send messages and respond to events from Slack.","id":"d9f13faa-eaaa-49b0-a7e4-a27fd53d1958","logo_url":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/128.png","logo_urls":{"128":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/128.png","256":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/256.png","512":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/512.png","64":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/64.png","master":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/master.png"},"name":"Slack","published_app_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","triggers":[{"description":"Triggers when a new message is received.","id":"new_message","name":"New Message"}],"version":"1.0.2"}],"total":1},"properties":{"data":{"description":"List of available workflow apps","items":{"properties":{"access_level":{"description":"`global` for apps published by Whippy to every organization, `private` for apps owned by your organization","enum":["global","private"],"example":"global","type":"string","x-struct":null,"x-validate":null},"actions":{"description":"Create actions exposed by the latest published app version","items":{"properties":{"description":{"description":"Display description for the operation","example":"Sends a message to a Slack channel.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Operation key from the app definition","example":"send_message","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display label for the operation","example":"Send Message","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"app_version_id":{"description":"ID of the published app version (required by input-options and step configuration)","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"brand_color":{"description":"6-digit hex brand color for the app, usable as a logo background","example":"#2563EB","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"description":"The description of the workflow app","example":"Send messages and respond to events from Slack.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the workflow app","example":"d9f13faa-eaaa-49b0-a7e4-a27fd53d1958","format":"uuid","type":"string","x-struct":null,"x-validate":null},"logo_url":{"description":"Best single logo URL to display for the app (128px derivative when available, then 256, 512, master, 64). Null when the app has no logo.","example":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/128.png","nullable":true,"type":"string","x-struct":null,"x-validate":null},"logo_urls":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"All stored logo URLs keyed by size (`master`, `64`, `128`, `256`, `512`). Derivatives may be missing briefly after a logo upload. Null when the app has no logo.","example":{"128":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/128.png","master":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/master.png"},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"description":"The display name of the workflow app","example":"Slack","type":"string","x-struct":null,"x-validate":null},"published_app_version_id":{"description":"Alias of `app_version_id` for clarity","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"triggers":{"description":"Triggers exposed by the latest published app version","items":{"properties":{"description":{"description":"Display description for the operation","example":"Sends a message to a Slack channel.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Operation key from the app definition","example":"send_message","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display label for the operation","example":"Send Message","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"version":{"description":"Version of the published app version that these triggers and actions come from","example":"1.0.2","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","description","access_level","triggers","actions"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of workflow apps matching the filters","type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListWorkflowAppsResponse","type":"object","x-struct":null,"x-validate":null},"EmailCampaignParams":{"description":"Request schema for creating a email campaign at `POST /v1/campaigns/email`.\n\nOne of `body` or `attachments` is required. `subject`, `sender_name`, and `sender_email` are optional on a draft and required when `status` is `scheduled` or `recurring`. `reply_to` is optional.\n\n`status: \"draft\"` saves a draft. `status: \"scheduled\"` sends once at `schedule_at` and requires\n`included_audience`. `status: \"recurring\"` starts a series and requires `included_audience` and\n`recurring_settings` (`cron_expression`, `timezone`, `start_date`, optional `end_date`).\nThere is no `to` list on this endpoint.\n","example":{"body":"<p>Hello</p>","from":"news@example.com","included_audience":[{"column":"id","comparison":"in","resource":"list","value":["3cd165a2-b0f0-40f6-8813-a047c563f4ad"]}],"reply_to":"hello@example.com","schedule_at":"2026-11-26T16:38:00.500073Z","sender_email":"news@example.com","sender_name":"Acme","status":"scheduled","subject":"November","title":"November newsletter"},"properties":{"attachments":{"description":"List of attachment URLs for the campaign.","items":{"description":"Campaign Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"automation_templates":{"description":"List of automation template IDs. At most 50.","items":{"description":"Automation Template ID","example":"2e9707a4-b873-429e-9eb3-695bf0e095a0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Campaign message body. Email has no length limit here.","type":"string","x-struct":null,"x-validate":null},"excluded_audience":{"description":"Whippy Query filter items for the contacts to exclude. Optional. When omitted, the default\ncampaign exclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"from":{"description":"The email channel's `sending_email_address`.","type":"string","x-struct":null,"x-validate":null},"included_audience":{"description":"Whippy Query filter items for the contacts to include. Optional for a draft. Required when\n`status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["5bd29bbb-fa87-43fd-8645-1f42213d2a4d"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"type":"array","x-struct":null,"x-validate":null},"recurring_settings":{"description":"Schedule for a recurring SMS series.\n\n`cron_expression`, `timezone`, and `start_date` are required when this object is present.\n`end_date` is optional. Required on create when `status` is `recurring`. Optional on a draft.\n\nOn update the object is merged with the stored schedule. Omit a field to keep its stored\nvalue. Send `end_date` as null to clear a stored end date.\n\n`parent_campaign_id` is set by the server on a scheduled occurrence and is null on the\nseries parent. A value sent by the caller is ignored.\n","nullable":true,"properties":{"cron_expression":{"description":"Five-field cron (minute hour day-of-month month day-of-week), evaluated in `timezone`.\n`0 9 * * *` is 09:00 every day. `0 9 * * 1` is Monday at 09:00.\n","example":"0 9 * * *","type":"string","x-struct":null,"x-validate":null},"end_date":{"description":"Last calendar date the series may run, as `YYYY-MM-DD`, in `timezone`. Optional.\nOn update, omit this field to keep the stored date, or send null to clear it so the\nseries runs until it is stopped.\n","example":"2026-12-31","format":"date","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_campaign_id":{"description":"Server-set id of the series parent on a scheduled occurrence. Null on the series parent.\nIgnored when sent on create or update.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"start_date":{"description":"First calendar date the series may run, as `YYYY-MM-DD`, in `timezone`.","example":"2026-11-01","format":"date","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the cron is evaluated in, for example `America/New_York` or `Europe/Dublin`.","example":"America/New_York","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply-to address. Optional.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"ISO 8601 time. Required when `status` is `scheduled`.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"sender_email":{"description":"Email address shown as the sender. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sender_name":{"description":"Name shown as the sender. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"`draft` saves a draft and does not send. `scheduled` sends once at `schedule_at`.\n`recurring` starts a series. One of these is required.\n","enum":["draft","scheduled","recurring"],"type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Optional on a draft. Required when `status` is `scheduled` or `recurring`.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null}},"required":["from","title"],"title":"EmailCampaignParams","type":"object","x-struct":null,"x-validate":null},"CallListUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Call index (list) filter and pagination params.","example":{"errors":[{"description":"Offset parameter is not compatible with cursor-based pagination"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Call list 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Before is invalid","The Before datetime field should be in ISO 8601 format","After is invalid","The After datetime field should be in ISO 8601 format","Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0","offset + limit cannot exceed 10000 for this search. Use cursor pagination instead."],"example":"Offset parameter is not compatible with cursor-based pagination","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"CallListUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"ListContactsResponse":{"description":"Response schema for listing contacts.","example":{"data":[{"address":{"address_line_one":"1234 Main St","address_line_two":"Apt 101","city":"Anytown","country":"US","post_code":"12345","state":"NY"},"birth_date":{"day":1,"month":1,"year":1990},"blocked":false,"communication_preferences":[{"channel_id":"02b9843d-e18b-4d10-845e-da3c255a9bcc","contact_id":"82ee671e-b8ac-444e-8ca3-4fe17d88fb31","created_at":"2021-06-22T10:36:07Z","id":"9be716cf-c2dc-487b-baba-d9fd52661af1","last_campaign_date":"2022-11-03T19:39:23Z","opt_in":true,"opt_in_date":"2022-10-01T19:39:23Z","opt_out_date":"2022-12-08T19:39:23Z","updated_at":"2021-06-22T10:36:07Z"}],"contact_tags":[{"contact_id":"4c9b0b8e-76a7-4b24-aefd-96f4dcd2ccbc","created_at":"2022-10-01T19:39:23Z","id":"811fad12-1142-4511-8eb4-508b6fe2f87b","tag":{"color":"#00bcd4","converted":null,"created_at":"2022-10-01T19:39:23Z","created_by":{"email":"user.email@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"id":"b41d3a52-b3dd-4aba-9983-5c3fde6774cc","name":"lead","organization_id":"24c8bd60-325d-491f-8b23-a4dbf8a9f5ac","state":"active","system_created":false,"type":"standard","updated_at":"2022-10-01T19:39:23Z","updated_by":{"email":"user.email@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}},"tag_id":"b41d3a52-b3dd-4aba-9983-5c3fde6774cc","updated_at":"2022-10-01T19:39:23Z"}],"created_at":"2021-06-22T07:45:45","email":null,"external_id":"externalId","id":"4c9b0b8e-76a7-4b24-aefd-96f4dcd2ccbc","language":"en","name":"John Doe","notes":[{"body":"Sample note.","created_at":"2022-10-01T19:39:23Z","updated_at":"2022-10-01T19:39:23Z","user":{"email":"user.email@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}}],"opt_in_email":true,"opt_in_sms":true,"opt_out_of_all":false,"phone":"+141756480961","state":"open","updated_at":"2021-06-22T07:45:45"}],"metadata":{"cursor_reset":false,"next_cursor":"eyJuYW1lIjogIkpvaG4gV2lsbGlhbXMiLCAiaWQiOiAiMTFhMzdlMDUtMmRjMi00ZDc2LTg3ODUtYmE4MDUwYTliMTk5In0"},"total":42},"properties":{"data":{"description":"List of contacts.","items":{"description":"Data for a single contact.","properties":{"address":{"description":"Address of the contact","nullable":true,"properties":{"address_line_one":{"description":"Address line 1","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"Address line 2","type":"string","x-struct":null,"x-validate":null},"city":{"description":"City","type":"string","x-struct":null,"x-validate":null},"country":{"description":"Country","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"Postal code","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Date of birth of the contact","nullable":true,"properties":{"day":{"description":"Day of birth","type":"integer","x-struct":null,"x-validate":null},"month":{"description":"Month of birth","type":"integer","x-struct":null,"x-validate":null},"year":{"description":"Year of birth","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"blocked":{"description":"Contact blocked status","type":"boolean","x-struct":null,"x-validate":null},"communication_preferences":{"description":"List of communication preferences for the contact for different channels.","items":{"description":"Communication preference for the contact for a specific channel","properties":{"channel_id":{"description":"ID of the channel the preference refers to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the preference belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the communication preference","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Communication preference ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_campaign_date":{"description":"Date of the last campaign the contact received from this channel. In ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_in":{"description":"Opted in/out state of the contact for the channel","type":"boolean","x-struct":null,"x-validate":null},"opt_in_date":{"description":"Date the contact last opted in","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_out_date":{"description":"Date the contact last opted out","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the preference","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"contact_tags":{"description":"List of contact tags. They determine which tags the contact is tagged with. Each contact lists creates a new tag and tags contacts with it automatically, but they can have more tags eventually.","items":{"description":"Data for a single contact tag association","properties":{"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of tagging the contact and creation of the contact tag association","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the contact tag association","format":"uuid","type":"string","x-struct":null,"x-validate":null},"tag":{"description":"Data for the tag for this current contact association.","properties":{"color":{"description":"Tag color in RGB format","type":"string","x-struct":null,"x-validate":null},"converted":{"description":"Boolean value indicating the system tag was converted to a user tag","enum":[true,false],"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the tag","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"ID of the tag","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization the tag belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the tag","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"system_created":{"description":"Boolean value indicating the tag was created by the system or not","enum":[true,false],"example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Type of the tag","enum":["standard","upload"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that last updated the tag","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"tag_id":{"description":"Tag ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time the contact tag association was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","format":"email","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"External ID for the contact","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"Preferred language of the contact as a language code (e.g. `en`, `es`). Defaults to `en`.","enum":["aa","ab","ace","ach","af","sq","alz","am","ar","hy","as","awa","ay","az","ban","bm","ba","eu","btx","bts","bbc","be","bem","bn","bew","bho","bik","bs","br","bg","bua","yue","ca","ceb","ny","zh-CN","zh","zh-TW","cv","co","crh","hr","cs","da","din","dv","doi","dov","nl","dz","en","eo","et","ee","fj","fil","tl","fi","fr","fr-FR","fr-CA","fy","ff","gaa","gl","lg","ka","de","el","gn","gu","ht","cnh","ha","haw","iw","he","hil","hi","hmn","hu","hrx","is","ig","ilo","id","ga","it","ja","jw","jv","kn","pam","kk","km","cgg","rw","ktu","gom","ko","kri","ku","ckb","ky","lo","ltg","la","lv","lij","li","ln","lt","lmo","luo","lb","mk","mai","mak","mg","ms","ms-Arab","ml","mt","mi","mr","chm","mni-Mtei","min","lus","mn","my","nr","new","ne","nso","no","nus","oc","or","om","pag","pap","ps","fa","pl","pt","pt-PT","pt-BR","pa","pa-Arab","qu","rom","ro","rn","ru","sm","sg","sa","gd","sr","st","crs","shn","sn","scn","szl","sd","si","sk","sl","so","es","su","sw","ss","sv","tg","ta","tt","te","tet","th","ti","ts","tn","tr","tk","ak","uk","ur","ug","uz","vi","cy","xh","yi","yo","yua","zu"],"example":"en","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Full name of the contact","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"List of notes for the contact.","items":{"description":"Data for a single note","properties":{"body":{"description":"Text of the note","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the note in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the note","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user":{"description":"Data for the user that created the note","properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the contact","enum":["open","archived","blocked"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the contact in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Metadata for cursor-based pagination","nullable":true,"properties":{"cursor_reset":{"description":"`true` when a well-formed cursor could not be used as a position (it carries a value that can't be a position, e.g. an `id` that isn't a UUID) and this page fell back to the first page; `false` otherwise — including for stale-but-valid cursors, which keep working. Malformed cursors (bad base64/JSON or wrong keys) are rejected with a 422 instead of resetting. Use this flag to detect a silent reset rather than re-reading the first page in a loop.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total count of contacts matching the query","type":"integer","x-struct":null,"x-validate":null}},"title":"ListContactsResponse","type":"object","x-struct":null,"x-validate":null},"PreviewMetricRequest":{"description":"A metric definition to run without saving, and the window to run it over.","example":{"chart":"bar","events":[{"filter":[{"column":"duration","comparison":">=","field_type":"integer","filter_type":"seconds","value":30}],"group_by":[{"field":"channel_id"}],"name":"call.analyzed","type":"whippy_event"}],"title":"AI calls by channel","type":"custom"},"properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"end":{"description":"ISO 8601 range end.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"start":{"description":"ISO 8601 range start.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the range is interpreted in.","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null}},"required":["events","chart"],"title":"PreviewMetricRequest","type":"object","x-struct":null,"x-validate":null},"FormResponsesResponse":{"description":"Response containing a list of form responses","example":{"data":[{"campaign_contact_id":"550e8400-e29b-41d4-a716-446655440009","campaign_id":"550e8400-e29b-41d4-a716-446655440007","channel_id":"550e8400-e29b-41d4-a716-446655440006","completed":true,"contact_id":"550e8400-e29b-41d4-a716-446655440003","created_at":"2024-01-15T10:30:00Z","custom_data":{"placement":{"external_id":"PL-1001","id":"550e8400-e29b-41d4-a716-446655440008"}},"delivery_source":"campaign","form":{"created_by":{"email":"john@example.com","id":"550e8400-e29b-41d4-a716-446655440005","name":"John Doe"},"id":"550e8400-e29b-41d4-a716-446655440001","is_public":true,"name":"Contact Form","organization":{"id":"550e8400-e29b-41d4-a716-446655440004","name":"Acme Corp"},"slug":"contact-form","updated_by":{"email":"john@example.com","id":"550e8400-e29b-41d4-a716-446655440005","name":"John Doe"}},"form_fields":[{"id":"email","value":"user@example.com"},{"id":"name","value":"John Doe"}],"form_id":"550e8400-e29b-41d4-a716-446655440001","form_version":{"created_at":"2024-01-10T10:00:00Z","form_elements":[{"label":"Email Address","name":"email","required":true,"type":"text"}],"id":"550e8400-e29b-41d4-a716-446655440002","is_active":true,"settings":{"submit_button_text":"Submit","theme":"default"},"updated_at":"2024-01-10T10:00:00Z","version_number":1},"form_version_id":"550e8400-e29b-41d4-a716-446655440002","id":"550e8400-e29b-41d4-a716-446655440000","message_id":null,"seconds_to_submit":3600,"step_contact_id":null,"step_id":null,"subject_contact_id":"550e8400-e29b-41d4-a716-446655440003","submitted_at":"2024-01-15T10:30:00Z","submitted_on_behalf":false,"updated_at":"2024-01-15T10:30:00Z","url_params":{"utm_source":"newsletter"}}],"total":150},"properties":{"data":{"items":{"properties":{"campaign_contact_id":{"description":"Campaign contact ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"Campaign that delivered the form link","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"Channel that delivered the form link. Null for a link with no delivery context.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"completed":{"description":"Whether the response is completed","type":"boolean","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_data":{"additionalProperties":{"properties":{"external_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":"The custom object records the form's custom data placeholders read from, keyed by\ncustom object key, each with its `id` and `external_id`. Resolved when the response\nstarted.\n","nullable":true,"type":"object","x-struct":null,"x-validate":null},"delivery_source":{"description":"How the form link was delivered. `direct` is a link with no delivery context.","enum":["sequence","campaign","message","direct"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"form":{"nullable":true,"properties":{"created_by":{"nullable":true,"properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Form ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"is_public":{"description":"Whether form is public","type":"boolean","x-struct":null,"x-validate":null},"name":{"description":"Form name","type":"string","x-struct":null,"x-validate":null},"organization":{"nullable":true,"properties":{"id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"slug":{"description":"Form slug","type":"string","x-struct":null,"x-validate":null},"updated_by":{"nullable":true,"properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"form_fields":{"description":"Form field values","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"form_id":{"description":"Form ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"form_version":{"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"form_elements":{"description":"Form elements configuration","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Version ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"is_active":{"description":"Whether this version is active","type":"boolean","x-struct":null,"x-validate":null},"settings":{"description":"Form settings","type":"object","x-struct":null,"x-validate":null},"updated_at":{"description":"Version last update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"version_number":{"description":"Version number","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"form_version_id":{"description":"Form version ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Form response ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message_id":{"description":"Message ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"quiz_max_score":{"description":"Maximum points for the graded questions on the resolved path. Null when the version is not a quiz.","nullable":true,"type":"number","x-struct":null,"x-validate":null},"quiz_score":{"description":"Points earned. Null when the submitted version is not a quiz. Partial credit is fractional.","nullable":true,"type":"number","x-struct":null,"x-validate":null},"seconds_to_submit":{"description":"Seconds from the message that delivered the form link to the submission","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"step_contact_id":{"description":"Step contact ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Sequence step that delivered the form link","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"subject_contact_id":{"description":"The contact the form is about: the enrolled contact for a sequence step, the campaign\ncontact for a campaign, otherwise `contact_id`. Differs from `contact_id` when a\nsequence step sent the form to someone else to fill in. Null on responses created\nbefore November 2026.\n","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"submitted_at":{"description":"Submission timestamp","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"submitted_on_behalf":{"description":"Whether `contact_id` filled in the form about another contact (`subject_contact_id`).","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"updated_at":{"description":"Last update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"url_params":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"The form link's query params that the form version declares as URL params (e.g.\n`utm_source`), as sent by the respondent. Treat them as untrusted input.\n","nullable":true,"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of form responses","type":"integer","x-struct":null,"x-validate":null}},"title":"FormResponsesResponse","type":"object","x-struct":null,"x-validate":null},"AgentNotFoundErrorResponse":{"description":"Response that occurs when the agent record doesn't exist","example":{"errors":[{"description":"Agent not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Agent 404 error","items":{"description":"Single 404 error","properties":{"description":{"enum":["Agent not found"],"example":"Agent not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"WorkflowStepTypeValidationErrorResponse":{"example":{"error":"detail=full requires id"},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"error":{"type":"string","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"required":["error"],"title":"WorkflowStepTypeValidationErrorResponse","type":"object","x-struct":null,"x-validate":null},"UpdateLLMParams":{"description":"Request schema for updating an LLM draft. Omitted fields are preserved.","example":{"prompt":"You are a concise customer support assistant.","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"model":{"description":"LLM model. Changing the model requires permission unless the new model is gpt-5.6-luna.","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"type":"string","x-struct":null,"x-validate":null},"prompt":{"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"properties":{"begin_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"enum":["agent","user"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateLLMParams","type":"object","x-struct":null,"x-validate":null},"ContactSegmentBadRequestErrorResponse":{"description":"Contact Segment Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Segment 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactSegmentBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Segment.Errors.BadRequest","x-validate":null},"UpdateTagsParams":{"description":"Update Tag Params","example":{"color":"ff0000","name":"first-tag","state":"archived"},"properties":{"color":{"description":"Hex color code for the tag","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name. It is important to notice that any extra spaces are removed from it, e.g. \" Tag   name  \" -> \"Tag name\".","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the tag. Can be either \"active\" or \"archived\".","enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateTagsParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.UpdateParams","x-validate":null},"WorkflowRunNotFoundErrorResponse":{"description":"Not Found Response schema","example":{"errors":[{"description":"Workflow run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"List of errors","items":{"properties":{"description":{"description":"Error description","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"description":"HTTP status code","example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"WorkflowRunNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"AttachCampaignAutomationTemplatesParams":{"description":"Request schema for attaching automation templates to an existing SMS campaign.","example":{"automation_templates":["7644a4ea-15a5-43cd-88ac-5983861f394d","72376714-48e4-41ea-accd-39a1fd0d01db"]},"properties":{"automation_templates":{"description":"List of IDs of automation templates to add to the campaign.\nTemplates of type `\"duplicate\"` will have their triggers, actions, and keywords duplicated for the campaign.\nTemplates of type `\"as-is\"` would be associated with the campaign and their triggers, actions, and keywords will be reused.\n","items":{"description":"Automation Template ID","example":"171d736b-7050-4efb-8686-0670d39da23c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["automation_templates"],"title":"AttachCampaignAutomationTemplatesParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.AttachAutomationTemplatesParams","x-validate":null},"ContactMessages":{"description":"An array of messages","items":{"description":"The message data for a sequence run.","properties":{"body":{"description":"Message body","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"sent","type":"string","x-struct":null,"x-validate":null},"error":{"description":"Message error","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"Message","type":"object","x-struct":null,"x-validate":null},"title":"ContactMessages","type":"array","x-struct":null,"x-validate":null},"SequenceRunCustomData":{"additionalProperties":{"properties":{"external_id":{"description":"The record's ID in the source system (e.g. the ATS)","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"The Whippy ID of the custom object record","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":"The custom object records that matched the segment that enrolled the contact, keyed by custom object key. Resolved once when the run is created. Null when the contact wasn't enrolled by a segment, the segment doesn't filter on custom objects, or no record matched.","example":{"placement":{"external_id":"PL-1001","id":"0b8a6c1e-3f0d-4c2a-9d57-1f6e2b7c4a90"}},"nullable":true,"title":"SequenceRunCustomData","type":"object","x-struct":null,"x-validate":null},"CommunicationPreferenceUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Communication Preference POST opt in/out requests.\n","example":{"errors":[{"description":"Invalid contact phone"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Communication preference 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid contact phone","Invalid channels provided","All Contacts numbers are invalid"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CommunicationPreferenceUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.CommunicationPreference.Errors.UnprocessableContent","x-validate":null},"CustomPropertyUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Custom Property creation requests.\n","example":{"errors":[{"description":"Custom Property with that 'key' already exists"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Property 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Custom Property with that 'key' already exists","Key should be snake case","Key can't be blank","Label can't be blank","Type can't be blank","Default should be of type number","Custom Object not found","Type should be one of: text, number, float, boolean, date, list, map","Default can't be blank when the property is required","Referenced Custom Property with the given ID does not exist","References should be an array of objects with the following fields: custom_property_id (uuid), type (string)","References should be an array of objects with the following fields: custom_object_id (uuid), custom_property_id (uuid), delete (null or boolean), id (null or uuid), type (string)","CustomProperty references - attempting to update References without providing all existing References","CustomProperty references - attempting to delete a non-existent Reference"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomPropertyUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.Property.Errors.UnprocessableContent","x-validate":null},"TeamBadRequestErrorResponse":{"description":"Team Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Team 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.Team.Errors.BadRequest","x-validate":null},"SearchToolsResponse":{"additionalProperties":false,"description":"Response schema for searching tools.","example":{"data":[{"actions":[],"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null},"description":"Transfers the call at the contact's request.","id":"f11c8d2b-5d43-45bb-85f4-82c5c6d60932","label":"Transfer Call","name":"transfer_call","organization":{"ai_context":null,"id":"cbe60d20-c00c-4bcf-bbfc-f17b72ce3f04","name":"Wayne Enterprises"},"settings":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"signing_api_key_id":null,"type":"transfer_call","updated_at":"2026-08-07T09:00:00Z","updated_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null}}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"description":"List of tools","items":{"additionalProperties":false,"description":"Tool record","example":{"actions":[],"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null},"description":"Transfers the call at the contact's request.","id":"f11c8d2b-5d43-45bb-85f4-82c5c6d60932","label":"Transfer Call","name":"transfer_call","organization":{"ai_context":null,"id":"cbe60d20-c00c-4bcf-bbfc-f17b72ce3f04","name":"Wayne Enterprises"},"settings":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"signing_api_key_id":null,"type":"transfer_call","updated_at":"2026-08-07T09:00:00Z","updated_by":{"email":"bruce@wayneenterprises.com","id":1,"name":"Bruce Wayne","phone":null}},"properties":{"actions":{"description":"Actions executed by the tool","items":{"additionalProperties":false,"description":"Action associated with a segment, automation, or other trigger","example":{"approval_required":false,"approval_required_by_id":null,"created_at":"2026-08-07T09:00:00Z","enabled":true,"id":"c53602fe-40bd-42cb-b28d-bb66b203c989","organization_id":"54c9d35b-08e7-4d06-84e5-e59fd0ebd0ef","params":{"body":"Thanks for contacting us.","type":"static"},"type":"send_message","updated_at":"2026-08-07T09:00:00Z"},"properties":{"approval_required":{"default":false,"description":"Action require approval","type":"boolean","x-struct":null,"x-validate":null},"approval_required_by_id":{"description":"Action required approval by user ID","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Action enabled state","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Action ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"77ca08d3-6a6a-4a80-b546-4eb64fa6cea8","format":"uuid","type":"string","x-struct":null,"x-validate":null},"params":{"description":"Parameters for the selected action `type`.\n\n- `send_message`:\n  - **Required:**\n    - `body`: Message body.\n  - **Optional:**\n    - `type`: Whether the message body is `prompt` generated or `static`.\n    - `attachment_urls`: List of attachment URLs.\n    - `attachments`: List of attachments, each containing `url` and `content_type` (the MIME type).\n\n- `add_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to add to the contact.\n\n- `remove_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to remove from the contact.\n\n- `assign_user`:\n  - **Required:**\n    - `user_id`: Integer ID of the user to assign to the conversation.\n\n- `unassign_user`: No params are accepted; use `{}`.\n\n- `assign_team`:\n  - **Required:**\n    - `team_id`: UUID of the team to assign.\n\n- `unassign_team`: No params are accepted; use `{}`.\n\n- `add_to_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to add the contact to.\n\n- `remove_from_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to remove the contact from.\n\n- `move_to_step`:\n  - **Required:**\n    - `sequence_id`: Sequence UUID.\n    - `step_id`: Step UUID.\n\n- `opt_in`: No params are accepted; use `{}`.\n\n- `opt_out`: No params are accepted; use `{}`.\n\n- `notify_users`:\n  - **Required:**\n    - `user_ids`: List of integer user IDs or their digit-only string representations.\n\n- `update_conversation_status`:\n  - **Required:**\n    - `status`: New conversation status, either `open` or `closed`.\n\n- `send_email`:\n  - **Required:**\n    - `subject`: Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and the message-triggered `{{inbound_message}}`, `{{outbound_message}}`, and `{{form_transcript}}` placeholders.\n    - `body`: Email body. Supports the same Whippy placeholders as `subject`.\n  - **Optional:**\n    - `type`: Whether the email subject and body are `prompt` generated or `static`.\n    - `to`: Recipient email address.\n    - `from`: Sender email address.\n    - `cc`: CC email address.\n    - `bcc`: BCC email address.\n    - `reply_to`: Reply-to email address.\n\n- `start_call_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the call.\n  - **Optional:**\n    - `bypass_quiet_hours`: Whether to bypass quiet-hours restrictions.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `start_chat_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the chat.\n  - **Optional:**\n    - `send_initial_message`: Whether to send an initial message to the Agent.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `send_http_request`:\n  - **Required:**\n    - `method`: HTTP method, either `GET` or `POST`.\n    - `url`: Public HTTPS endpoint.\n  - **Optional:**\n    - `payload`: JSON request payload.\n","oneOf":[{"description":"Send Message Action params used when processing the action.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Automated message, yay!"},"properties":{"attachment_urls":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments with content type","example":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"items":{"description":"Attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Body of a message action","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the message body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["body"],"title":"SendMessageAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add Tags Action params used when processing the action.","example":{"tag_ids":["44b2107f-214b-4ca0-a931-d2ff71886fc8","0c425488-88e7-4309-b525-29ca3615208b"]},"properties":{"tag_ids":{"description":"List of tags to add to the contact","items":{"description":"Tag ID","example":"a394b2a2-1288-40af-953e-dd79436771c0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"AddTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove Tags Action params used when processing the action.","example":{"tag_ids":["567a68b9-0733-4616-8753-16c60bd71c81","28a5db9d-b2db-415a-8c06-6e1bd38f337a"]},"properties":{"tag_ids":{"description":"List of tags to remove from the contact","items":{"description":"Tag ID","example":"14b91073-bf45-4315-9cb1-2ad043f7f22f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"RemoveTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Assign User Action params used when processing the action.","example":{"user_id":42},"properties":{"user_id":{"description":"ID of the user to assign to the conversation","example":42,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"title":"AssignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign User Action params used when processing the action.","example":{},"properties":{},"title":"UnassignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Assign Team Action params used when processing the action.","properties":{"team_id":{"description":"ID of the Team to assign","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["team_id"],"title":"AssignTeamAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign Team Action params used when processing the action.","properties":{},"title":"UnassignTeamAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add To Sequence Action params used when processing the action.","example":{"sequence_id":"8ca0ba43-039d-4bf4-86e5-468edc70466b"},"properties":{"sequence_id":{"description":"ID of the Sequence to add the contact to","example":"12cf9cbc-f717-4706-ba8b-8891b8a30bf2","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"AddToSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove From Sequence Action params used when processing the action.","example":{"sequence_id":"f29e9f11-48b8-4abe-94c3-2d3736a9816d"},"properties":{"sequence_id":{"description":"ID of the Sequence to remove the contact from","example":"4dd7c3be-ae4c-4edb-8ebe-7fbfbddabd56","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"RemoveFromSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Move TO Step Action params used when processing the action.","example":{"sequence_id":"104884e5-deb5-4ae8-b62b-89b10856ac62","step_id":"578b379e-c788-4e40-b780-66ce7c397856"},"properties":{"sequence_id":{"description":"Sequence ID","example":"286c75b6-bc82-4356-8fe3-5e0c45b5fbf1","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"c23f0661-6fd4-4b90-9c6f-60bc95354743","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id","step_id"],"title":"MoveToStepAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt In Action params used when processing the action.","example":{},"properties":{},"title":"OptInAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt Out Action params used when processing the action.","example":{},"properties":{},"title":"OptOutAction","type":"object","x-struct":null,"x-validate":null},{"description":"Notify Users Action params used when processing the action.","example":{"user_ids":["42","1024","2364"]},"properties":{"user_ids":{"description":"List of string user IDs","example":["42","1024","2364"],"items":{"description":"Integer user ID or its digit-only string representation","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"pattern":"^\\d+$","type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["user_ids"],"title":"NotifyUsersAction","type":"object","x-struct":null,"x-validate":null},{"description":"Update Conversation Status Action params used when processing the action.","example":{"status":"open"},"properties":{"status":{"description":"New conversation status","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null}},"required":["status"],"title":"UpdateConversationStatusAction","type":"object","x-struct":null,"x-validate":null},{"description":"Send Email Action params used when processing the action.","example":{"bcc":"john.constantine@example.com","body":"Automated email, yay!","cc":"superman@example.com","from":"","reply_to":"mycoolmail@example.com","subject":"Action Email","to":"batman@example.com"},"properties":{"bcc":{"description":"BCC email","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Email body. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"from":{"description":"From email","example":"myemail@example.com","type":"string","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"To email","example":"batman@example.com","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the email subject and body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["subject","body"],"title":"SendEmailAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Start Call Agent Action params used when processing the action.","properties":{"agent_id":{"description":"ID of the Agent to use for the call","example":"7830276b-8f86-4ce7-9d9e-5f0c0e3ac4ad","format":"uuid","type":"string","x-struct":null,"x-validate":null},"bypass_quiet_hours":{"default":false,"description":"Whether to bypass quiet hours restrictions","example":false,"type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Custom placeholder values passed to the Agent","type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartCallAgentAction","type":"object","x-struct":null,"x-validate":null},{"description":"Start Chat Agent Action params used when processing the action.","example":{"agent_id":"7c24f42c-3477-4a57-bed5-b6a52dfd8e9e","send_initial_message":true},"properties":{"agent_id":{"description":"ID of the Agent to use for the chat","example":"68032c17-b0aa-477b-b805-fe993a4ffc4d","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_placeholders_data":{"type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether to send an initial message to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartChatAgentAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Send HTTP Request Action params used when processing the action.","properties":{"method":{"enum":["GET","POST"],"type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Optional JSON request payload","type":"object","x-struct":null,"x-validate":null},"url":{"description":"Public HTTPS endpoint; private and internal hosts are rejected","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["method","url"],"title":"SendHttpRequestAction","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":{"description":"Action type","enum":["send_message","add_tags","remove_tags","assign_user","unassign_user","assign_team","unassign_team","add_to_sequence","remove_from_sequence","move_to_step","opt_in","opt_out","notify_users","update_conversation_status","send_email","start_call_agent","start_chat_agent","send_http_request"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","type","params","enabled","approval_required","approval_required_by_id","organization_id","created_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Tool creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"additionalProperties":false,"description":"Data for the user that created the tool","nullable":true,"properties":{"email":{"description":"User email","example":"bruce@wayne.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Bruce Wayne","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","email","name","phone"],"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of what the tool does and when it should be used","example":"Transfers the call at the contact's request.","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tool ID","example":"f11c8d2b-5d43-45bb-85f4-82c5c6d60932","format":"uuid","type":"string","x-struct":null,"x-validate":null},"label":{"description":"Tool label","example":"Transfer Call","maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tool name","example":"transfer_call","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]{1,64}$","type":"string","x-struct":null,"x-validate":null},"organization":{"additionalProperties":false,"description":"Data for the organization that the tool belongs to","properties":{"ai_context":{"description":"Organization AI context","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Organization ID","example":"cbe60d20-c00c-4bcf-bbfc-f17b72ce3f04","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Wayne Enterprises","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","ai_context"],"type":"object","x-struct":null,"x-validate":null},"settings":{"anyOf":[{"additionalProperties":false,"example":{"method":"POST","parameters":{"description":"Order lookup parameters","properties":{},"type":"object"},"speak_after_execution":true,"speak_during_execution":false,"url":"https://example.com/webhook"},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"headers":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request headers","type":"object","x-struct":null,"x-validate":null},"include_whippy_context":{"description":"Whether to add the current contact, conversation, and message as whippy_context in POST, PUT, and PATCH JSON bodies. During voice calls, the message body contains the dialogue so far","type":"boolean","x-struct":null,"x-validate":null},"method":{"default":"POST","enum":["POST","GET","PUT","PATCH","DELETE"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"parameters":{"description":"JSON Schema describing the custom tool input. The root schema requires a description.","properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"query_params":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request query parameters","type":"object","x-struct":null,"x-validate":null},"response_variables":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Values extracted from the response","type":"object","x-struct":null,"x-validate":null},"retry":{"additionalProperties":false,"properties":{"base_delay_ms":{"maximum":5000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_delay_ms":{"maximum":15000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_retries":{"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"retry_on_status_codes":{"items":{"enum":[408,429,500,502,503,504],"type":"integer","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["max_retries","base_delay_ms","max_delay_ms","retry_on_status_codes"],"type":"object","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":3000,"maximum":120000,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"url":{"description":"Publicly reachable HTTPS endpoint called by the Tool","example":"https://example.com/webhook","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["url","speak_after_execution","speak_during_execution"],"title":"CustomToolSettings","type":"object","x-struct":null,"x-validate":null},{"example":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"properties":{"check_availability_enabled":{"default":false,"description":"Enables live availability checks and busy-call behavior.\n\nMobile and desk phones are not supported. Users without live voice presence are treated as unavailable for direct transfers. Leave disabled for users relying on these devices.\n\nWhen omitted or false, transfer directly without checking availability or using busy-call rules.\n","type":"boolean","x-struct":null,"x-validate":null},"transfer_options":{"description":"Transfer options for the tool","items":{"properties":{"identifier":{"description":"Transfer option identifier","example":"Support","type":"string","x-struct":null,"x-validate":null},"on_call_behavior":{"default":"unavailable","description":"Behavior when no user or team member is available and at least one is on a call.\n\n* `enqueue`: Park the call in the destination channel's default queue.\n* `unavailable`: Leave the call with the agent and report the destination as unavailable.\n\nUsed only when `check_availability_enabled` is true. Ignored for agent, phone number, and PBX destinations.\n","enum":["enqueue","unavailable"],"example":"enqueue","type":"string","x-struct":null,"x-validate":null},"sip_auth":{"description":"Optional digest credentials for forward_to_sip_uri. Send username and password together. The password is encrypted at rest and responses return password_configured. Omit sip_auth when the trunk authenticates by IP.","example":{"password_configured":true,"username":"trunk"},"type":"object","x-struct":null,"x-validate":null},"target_channel_phone":{"description":"Optional E.164 channel phone number used as a transfer target. Applies to forward_to_user, forward_to_team, forward_to_agent, and forward_to_sip_uri. Uses the current call channel when omitted.","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Transfer option type","enum":["forward_to_user","forward_to_team","forward_to_agent","forward_to_phone_number","forward_to_sip_uri"],"example":"forward_to_agent","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Organization user ID, team UUID, agent UUID, E.164 phone number, or SIP URI. `forward_to_sip_uri` is a URI such as `sip:2105@pbx.example.com`.","example":"b2ed0207-6eb6-4cef-aaa4-cf2e843a0bab","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["identifier","type","value"],"type":"object","x-struct":null,"x-validate":null},"maxItems":36,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["transfer_options"],"title":"TransferCallToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"speak_after_execution":true,"speak_during_execution":false,"timeout_ms":5000},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":5000,"type":"integer","x-struct":null,"x-validate":null}},"required":["speak_after_execution","speak_during_execution"],"title":"ExecuteActionsToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"delay_ms":1000},"properties":{"delay_ms":{"description":"Delay before pressing the digit in milliseconds. Must be at least 0.","example":1000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"title":"PressDigitToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"cal_api_key":"cal_live_example","event_type_id":60444,"timezone":"America/Los_Angeles"},"properties":{"cal_api_key":{"description":"Cal.com API key","type":"string","x-struct":null,"x-validate":null},"event_type_id":{"description":"Cal.com event type ID","type":"number","x-struct":null,"x-validate":null},"timezone":{"description":"Calendar timezone","type":"string","x-struct":null,"x-validate":null}},"required":["cal_api_key","event_type_id"],"title":"CalendarToolSettings","type":"object","x-struct":null,"x-validate":null}],"description":"Settings of the Tool. Supported fields depend on the selected `type`.\n\n- `transfer_call`:\n  - **Required:**\n    - `transfer_options`: Between 1 and 36 destinations the agent can select when transferring a call. Each option contains:\n      - `identifier`: Name the agent uses to identify the destination.\n      - `type`: One of `forward_to_user`, `forward_to_team`, `forward_to_agent`, `forward_to_phone_number`, or `forward_to_sip_uri`.\n      - `value`: User ID, team UUID, agent UUID, or E.164 phone number matching `type`. For `forward_to_sip_uri`, this is the SIP URI, such as `sip:2105@pbx.example.com`. Optional `sip_auth` holds a digest `username` and `password`. The password is encrypted at rest and returned as `password_configured`.\n      - `target_channel_phone`: Optional E.164 channel phone number used as a target for the transfer. Applies to `forward_to_user`, `forward_to_team`, `forward_to_agent`, and `forward_to_sip_uri`. Uses the current call channel when omitted.\n      - `on_call_behavior`: Optional `enqueue` (park the call) or `unavailable` (default). Applies only to user/team destinations and is ignored for agent, phone, and PBX destinations.\n  - **Optional:**\n    - `check_availability_enabled`: Defaults to false. Set true to enable availability checks and busy-call behavior. When omitted or false, the agent and tool transfer directly without availability checks; busy-call rules are ignored.\n\n- `execute_actions`:\n  - **Required:**\n    - `speak_after_execution`: Whether the agent speaks after executing the actions. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks while executing the actions. Recommended when execution takes more than one second.\n  - **Optional:**\n    - `timeout_ms`: Time in milliseconds before action execution times out.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n\n- `check_availability_cal` and `book_appointment_cal`:\n  - **Required:**\n    - `cal_api_key`: Cal.com API key used by the Tool.\n    - `event_type_id`: Cal.com event type ID used by the Tool.\n  - **Optional:**\n    - `timezone`: IANA timezone used for the calendar operation.\n\n- `press_digit`:\n  - **Optional:**\n    - `delay_ms`: Time in milliseconds to wait before pressing the digit, allowing a slow IVR menu to finish playing. Must be at least 0.\n\n- `custom`:\n  - **Required:**\n    - `url`: Publicly reachable HTTPS endpoint called by the Tool.\n    - `speak_after_execution`: Whether the agent speaks after tool execution. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks during tool execution. Recommended when the request takes more than one second.\n  - **Optional:**\n    - `method`: HTTP method used for the request. One of `POST`, `GET`, `PUT`, `PATCH`, or `DELETE`; defaults to `POST`.\n    - `timeout_ms`: Time in milliseconds before the request times out. Must be between 1 and 120000.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n    - `headers`: HTTP request headers. Keys and values must be strings.\n    - `query_params`: HTTP query parameters. Keys and values must be strings.\n    - `response_variables`: Values extracted from the response and made available as dynamic variables. Keys and values must be strings.\n    - `parameters`: JSON Schema describing the Tool input. The root schema must include a description.\n    - `retry`: Retry policy. When provided, it requires:\n      - `max_retries`: Number of retry attempts, from 1 to 3.\n      - `base_delay_ms`: Initial retry delay in milliseconds, from 200 to 5000.\n      - `max_delay_ms`: Maximum retry delay in milliseconds, from 200 to 15000.\n      - `retry_on_status_codes`: Non-empty list containing only `408`, `429`, `500`, `502`, `503`, or `504`.\n    - `include_whippy_context`: Whether to add a `whippy_context` object to the JSON request body containing the current contact, conversation, and message when available. Only applies to `POST`, `PUT`, and `PATCH` requests. During voice calls, the message body contains the dialogue so far.\n\n","x-struct":null,"x-validate":null},"signing_api_key_id":{"description":"Signing API key ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Tool type","enum":["custom","transfer_call","execute_actions","press_digit","check_availability_cal","book_appointment_cal"],"example":"transfer_call","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Tool update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"additionalProperties":false,"description":"Data for the user that last updated the tool","nullable":true,"properties":{"email":{"description":"User email","example":"bruce@wayne.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Bruce Wayne","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","email","name","phone"],"type":"object","x-struct":null,"x-validate":null}},"required":["id","type","name","label","description","settings","signing_api_key_id","created_at","updated_at","created_by","updated_by","organization","actions"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchToolsResponse","type":"object","x-struct":null,"x-validate":null},"DashboardNotFoundErrorResponse":{"description":"Response that occurs when the dashboard doesn't exist","example":{"errors":[{"description":"Dashboard not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Dashboard 404 error","items":{"description":"Single 404 error","properties":{"description":{"enum":["Dashboard not found"],"example":"Dashboard not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"DashboardNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"ListSequenceContactsResponse":{"description":"Response schema for listing sequence contacts with data for their interaction with the sequence","example":{"data":[{"added_by_id":null,"channel_id":"de1839e6-de73-4798-8cd9-3b35c7c527b9","clicked_link":false,"contact":{"email":"maya1921@friesen.biz","external_id":null,"id":"e1747bd3-e68e-4891-a7b0-909df9bd070b","name":"Germaine Adams","phone":"+18679599996"},"contact_messages":[],"created_at":"2023-04-01T12:25:12","id":"85a98995-e704-409a-bbf5-2161ef9bea3c","run_created_at":null,"run_updated_at":null,"scheduled_at":null,"sequence_run_id":"02d858fe-80a1-439c-83b0-7f029c0bcdad","status":"active","step_id":"d35f3446-ff32-40cf-96cb-a54c1241d749","unsubscribed":false,"updated_at":"2023-04-01T12:25:12","voice_options":{}},{"added_by_id":10,"channel_id":"e656e514-43dc-4d28-9309-8a9843cf91b2","clicked_link":true,"contact":{"email":null,"id":"a373dabe-42a6-4c06-b2cc-963a3f722a08","name":null,"phone":"+14243885076"},"contact_messages":[{"attachments":[],"body":"Message Body","contact_id":"a373dabe-42a6-4c06-b2cc-963a3f722a08","conversation_id":"d57248e3-6a5a-4d55-9a7c-70940760b3d5","delivery_status":"delivered","id":"fcc48383-5528-412e-8d3c-62ac4e3a8a8d"}],"created_at":"2023-04-01T12:25:12","id":"81eada0d-4f69-4baa-a332-6e07017edaec","run_created_at":"2023-04-01T12:37:51","run_updated_at":"2023-04-01T12:37:53","scheduled_at":"2023-04-01T12:37:51.000000Z","sequence_run_id":"2b2ff708-5286-4c5e-b367-fb29e1f816f1","status":"finished","step_id":"de72ef80-5aab-4081-bd62-a6ff156cabdc","unsubscribed":false,"updated_at":"2023-04-01T12:25:12","voice_options":null}],"total":2},"properties":{"data":{"description":"List of contacts included in the sequence.\n\nEach contact is listed once per each step they were part of.\n\nEach of these listings also includes analytics related to the specific step.\n","items":{"description":"Single contact that has received a step message and therefore has been part of the sequence successfully.\n\nThe data for each contact contains analytics for each step the contact was part of.\n","properties":{"added_by_id":{"description":"ID of the user that added the contact to the step","type":"integer","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the step message to the contact was sent from","format":"uuid","type":"string","x-struct":null,"x-validate":null},"clicked_link":{"description":"Boolean value for whether the contact clicked on the link in the message","type":"boolean","x-struct":null,"x-validate":null},"contact":{"description":"General data for the contact","properties":{"email":{"description":"Contact email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"contact_messages":{"description":"List of messages the contact sent as responses to the sequence step","items":{"description":"Data for a single contact message","properties":{"attachments":{"description":"List of attachments belonging to the message","items":{"description":"Single message attachment","properties":{"content_type":{"description":"MIME type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the attachment","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Message body","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status for the message","enum":["webhook_delivered"],"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Time when the step was created","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"ID of the step contact record","format":"uuid","type":"string","x-struct":null,"x-validate":null},"run_created_at":{"description":"Time when the run for step processing was created","format":"date-time","type":"string","x-struct":null,"x-validate":null},"run_updated_at":{"description":"Time when the run for step processing was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null},"scheduled_at":{"description":"Time when the step message to the contact is scheduled to be sent at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"Sequence ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"sequence_run_id":{"description":"ID of the Sequence Run for the contact in the step","format":"uuid","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Status of the contact for the current step","enum":["pending","active","inactive","moved","finished"],"type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"unsubscribed":{"description":"Boolean value for whether the contact unsubscribed after receiving the step message","type":"boolean","x-struct":null,"x-validate":null},"updated_at":{"description":"Time when the step was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null},"voice_options":{"description":"Voice options of the contact for the current step.","example":{"default_call_flow_id":"dcab223c-50a6-4912-abbe-bc765dfb7822","step_overrides":null},"properties":{"default_call_flow_id":{"description":"Optional default call flow id of the contacts in the steps.\n\n**Can be `nil`.**\n\n- **Used to answer inbound calls from the contact that are a response to a sequence message.**\n- **When provided, it takes priority over the sequence settings default call flow ID.**\n","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_overrides":{"description":"Optional field used to describe step-specific voice options overrides for contacts in sequence steps.\n\n**Can be either a map, a list or `nil`.**\n\n- **When it's a map it will override all voice step settings in case the optional `step_id` is not provided.**\n- **When it's a list it will override the voice step settings for the specified `step_id`, which is required.**\n","properties":{"agent_id":{"description":"ID of the agent to use for the voice step.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Optional custom placeholders data sent to the agent used for the voice step.","type":"object","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the step to apply overrides to.\n\n**Optional when step overrides is a map, required when it's a list.**\n","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total count of contacts included in the sequence","type":"integer","x-struct":null,"x-validate":null}},"title":"ListSequenceContactsResponse","type":"object","x-struct":null,"x-validate":null},"SingleSequenceRunResponse":{"description":"Response schema for a single sequence run","example":{"contact":{"email":null,"id":"c80b28b2-3bc7-4ead-b53e-d047d4195470","name":"John Doe","phone":"+14244019001"},"created_at":"2023-10-26T13:08:47Z","custom_data":{"placement":{"external_id":"PL-1001","id":"0b8a6c1e-3f0d-4c2a-9d57-1f6e2b7c4a90"}},"id":"6440b950-f29b-436c-8d76-eb9be818bf0e","last_step_id":"32b35675-a5bf-4116-8048-67237d8a4b60","sequence_id":"b5495e3f-1e6c-4de4-9dba-b3bb84132fef","status":"active","step_contacts":[{"clicked_link":true,"contact_messages":[{"attachments":[],"body":"Response to step 32b35675-a5bf-4116-8048-67237d8a4b60","contact_id":"044ebd3f-c35b-4332-9d87-1117ec003fd9","conversation_id":"7c4866f5-f4e6-4319-b132-e0175223c40a","delivery_status":null,"id":"61e0efae-3b50-488b-9295-729239f30e8c"}],"id":"1703e3d6-e049-4fce-ada2-25e9a24b07f2","status":"removed","step_id":"32b35675-a5bf-4116-8048-67237d8a4b60","unsubscribed":true}],"updated_at":"2023-10-26T13:08:47"},"properties":{"data":{"$ref":"#/components/schemas/SequenceRun"}},"title":"SingleSequenceRunResponse","type":"object","x-struct":null,"x-validate":null},"AgentSkillBadRequestErrorResponse":{"description":"Agent Skill Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentSkillBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.AgentSkills.AgentSkill.Errors.BadRequest","x-validate":null},"PublicAuditLog":{"description":"An auditable action performed in the organization.","properties":{"action":{"description":"Action that was performed","type":"string","x-struct":null,"x-validate":null},"api_key":{"description":"Organization API key that performed the action. Actor is the organization (user is null).","nullable":true,"properties":{"id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"geolocation":{"additionalProperties":true,"description":"Geolocation metadata associated with the request","nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Audit log ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"oauth_client":{"description":"OAuth application that performed the action, when applicable","nullable":true,"properties":{"id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"organization":{"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"resources":{"description":"Resources associated with this audit log","items":{"properties":{"resource_id":{"type":"string","x-struct":null,"x-validate":null},"resource_type":{"type":"string","x-struct":null,"x-validate":null}},"required":["resource_type","resource_id"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"description":"Origin of the action: dashboard UI, OAuth public API, or org API key (org is the actor)","enum":["dashboard","oauth","api_key"],"type":"string","x-struct":null,"x-validate":null},"timestamp":{"description":"When the action occurred","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user":{"nullable":true,"properties":{"email":{"format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"type":"integer","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user who performed the action","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["id","action","organization_id","timestamp","resources"],"title":"PublicAuditLog","type":"object","x-struct":null,"x-validate":null},"UpdateLinkParams":{"additionalProperties":false,"description":"Update Link request body (partial). Destination `url` is immutable and rejected.","example":{"description":"Updated hiring page","utm_content":"spring_shift"},"properties":{"custom_card_description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_card_image":{"nullable":true,"properties":{"content_type":{"type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_card_title":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"domain_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"short_key":{"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null},"use_custom_card":{"type":"boolean","x-struct":null,"x-validate":null},"utm_campaign":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_medium":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_source":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_term":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateLinkParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.UpdateParams","x-validate":null},"DeleteLink":{"example":{"data":{"deleted":true,"id":"dd840673-d544-44b9-99f1-f6438471d2f3"}},"properties":{"data":{"properties":{"deleted":{"enum":[true],"type":"boolean","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"DeleteLink","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.DeleteResponse","x-validate":null},"ConvertTagsResponse":{"description":"Convert Tag Response","example":{"data":{"color":"#ff0000","converted":true,"created_at":"2021-06-22T10:36:07Z","description":"tag description","emoji":"🌲","id":"508c6dd2-d463-41cb-b920-6b1a193735d9","name":"first-tag","organization_id":"28487616-380a-4807-a419-65ab74491de1","state":"active","system_created":true,"type":"standard","updated_at":"2021-06-22T10:36:07Z"}},"properties":{"data":{"description":"Tag data","properties":{"color":{"description":"Tag color","type":"string","x-struct":null,"x-validate":null},"converted":{"description":"Boolean value indicating the system tag was converted to a user tag","enum":[true],"example":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Tag description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Tag emoji","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tag ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Tag state","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"system_created":{"description":"Boolean value indicating the tag was created by the system or not","enum":[true],"example":true,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Tag type","enum":["standard"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time the tag was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ConvertTagsResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.ConvertResponse","x-validate":null},"SequenceRunUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Sequence Run GET or POST requests.\n","example":{"errors":[{"description":"status is invalid"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Sequence 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["status is invalid","step_ids is invalid","unsubscribed is invalid","clicked_link is invalid","responded is invalid","step_id is invalid","from is invalid","to is invalid","Step ids with one or more invalid ids","The Sequence must be active","The Sequence must have at least one Step","Invalid Step id","Invalid From number","Invalid To number","Missing To numbers","Missing From number","The length of the To list should be at least 1","The length of the To list should not be more than 4000","Scheduling time should be in ISO 8601 format"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"SequenceRunUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.SequenceRun.Errors.UnprocessableContent","x-validate":null},"WorkflowAppNotFoundResponse":{"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"properties":{"detail":{"example":"Not Found","type":"string","x-struct":null,"x-validate":null}},"required":["detail"],"type":"object","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"required":["errors"],"title":"WorkflowAppNotFoundResponse","type":"object","x-struct":null,"x-validate":null},"MetricDefinitionResponse":{"description":"Response schema for a written metric: its definition, without generated data.","example":{"data":{"chart":"total","created_at":"2026-01-15T07:45:45.353788Z","description":"Count of AI calls over time","events":[{"aggregate":{},"color":null,"filter":[],"group_by":[],"name":"call.analyzed","type":"whippy_event"}],"id":"70278cd3-83c2-4b65-9d99-3e631e731abb","linked":false,"source":"organization","title":"Total AI Calls","trend":false,"trend_line":false,"type":"custom","updated_at":"2026-02-10T07:45:45.353788Z"}},"properties":{"data":{"description":"Metric summary record","properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the metric was created at in ISO 8601 format. `null` for Whippy built-in metrics.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Metric ID","example":"70278cd3-83c2-4b65-9d99-3e631e731abb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"source":{"description":"Metric origin. `whippy` for built-in metrics (stable reserved IDs, not persisted), `organization` for metrics saved in the organization.","enum":["whippy","organization"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the metric was last updated at in ISO 8601 format. `null` for Whippy built-in metrics.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"MetricDefinitionResponse","type":"object","x-struct":null,"x-validate":null},"AutomaticResponseSettings":{"description":"Automatic response settings configuration","properties":{"closed":{"description":"Action to perform when channel is closed (outside business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"open":{"description":"Action to perform when channel is open (business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"send_when":{"description":"When to send automatic responses","enum":["always","never","open","closed"],"example":"always","type":"string","x-struct":null,"x-validate":null}},"title":"AutomaticResponseSettings","type":"object","x-struct":null,"x-validate":null},"SendEmailParams":{"description":"Request schema for creating and sending Email messages.\n\nOne of `body` or `attachments` is required.\n","example":{"attachments":["https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"],"bcc":"john.constantine@example.com","body":"Greetings, earthlings!","cc":"superman@example.com","conversation_status":"open","from":"sender_email@example.xyz","opt_in_to":["5f4630e7-cbf7-4c96-8272-2e04f19faa17","9d3d9c24-446e-456d-9c51-5ac553d7ddeb"],"opt_in_to_all_channels":false,"reply_to":"mycoolmail@example.com","sender_email":"my_custom_email_address@example.xyz","sender_name":"Johny Depp","subject":"Action Email","to":"recipient_email@example.xyz"},"properties":{"attachments":{"description":"List of attachment URLs","items":{"description":"Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"bcc":{"description":"BCC email addresses","example":["john.constantine@example.com","jane.constantine@example.com"],"items":{"description":"BCC email address","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Email body","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email addresses","example":["superman@example.com","batman@example.com"],"items":{"description":"CC email address","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"conversation_status":{"default":"open","description":"Status to set for the conversation.","enum":["automated","open"],"type":"string","x-struct":null,"x-validate":null},"from":{"description":"Email address(or ID) of an existing channel belonging to your organization.","type":"string","x-struct":null,"x-validate":null},"opt_in_to":{"description":"Setting to opt in contact to specific channels","items":{"description":"Channel","properties":{"email":{"description":"Channel email address","example":"dummy_email@example.xyz","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","example":"d360d04f-aa10-4bbe-8bef-37675f356d00","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"opt_in_to_all_channels":{"description":"Setting to opt in contact to all channels","type":"boolean","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the email. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"sender_email":{"description":"Used to set a custom sender email address to send the message from.\n\n* If the custom `sender_email` doesn't match an existing Location's email address,\n  you won't be able to receive INBOUND messages (new/replies) to this email address.\n\n* When the entered custom `sender_email` address matches an already existing one,\n  if the recipient replies to that email, it'll be intercepted by that person who has the given email address.\n\n* adding `\"sender_email\"` with value of a valid email address structure will send the email through\n  that email address but the domain will highly likely be the one of the from field.\n\n* adding `\"sender_email\"` with value of `\"\"` or `null` will treat it as a `null` and\n  send the email through the `from` email address.\n\n* adding `\"sender_email\"` with value of invalid email address structure, ex: `\"invalid@something\"`\n  will return error message with status code `422`.\n","example":"my_custom_email_address@example.xyz","type":"string","x-struct":null,"x-validate":null},"sender_name":{"description":"Used to set a custom sender name","example":"Johny Depp","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Destination email address","type":"string","x-struct":null,"x-validate":null}},"required":["to","from"],"title":"SendEmailParams","type":"object","x-struct":null,"x-validate":null},"AddToSequenceAction":{"description":"Add To Sequence Action params used when processing the action.","example":{"sequence_id":"534a5aec-699f-4fc4-ae83-085b5a39fda4"},"properties":{"sequence_id":{"description":"ID of the Sequence to add the contact to","example":"041ecdcd-461a-48d2-80e1-c7deb650a260","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"AddToSequenceAction","type":"object","x-struct":null,"x-validate":null},"ListChannelsResponse":{"description":"Response schema for listing channels","example":{"data":[{"address":"Test Company Address, Los Angeles, CA 90001","ai_context":"This channel is used for customer support inquiries","automatic_response_closed":"We're closed now!","automatic_response_open":"We're open now!","automatic_response_settings":{"closed":{"message":"We're closed now!","type":"message"},"open":{"message":"We're open now!","type":"message"},"send_when":"always"},"call_flow_id":"8b9e6f01-b028-45e9-a3c7-33dcef253992","color":"#000000","created_at":"2021-06-22T07:45:45","description":"Test Description","emoji":"👨‍👩‍👧‍👦","id":"16d0c954-0305-48ff-9f86-90277fa987b8","is_hosted_sms":false,"name":"Manhattan Office","opening_hours":[{"closes_at":"22:30","opens_at":"08:00","state":"open","weekday":"Thursday"}],"phone":"+195389819491","send_automatic_response_when":"always","timezone":"America/Chicago","updated_at":"2021-06-22T07:45:45"}],"organization_id":"1cf9873a-8e6c-4e23-9d89-8b1775561742"},"properties":{"data":{"description":"List of channels.","items":{"description":"Data for a single channel","properties":{"address":{"description":"Channel address","type":"string","x-struct":null,"x-validate":null},"ai_context":{"description":"Additional context information for AI features","example":"This channel is used for customer support inquiries","type":"string","x-struct":null,"x-validate":null},"automatic_response_closed":{"description":"Automatic response when a contact sends a message outside business hours","type":"string","x-struct":null,"x-validate":null},"automatic_response_open":{"description":"Automatic response when a contact sends a message during business hours","type":"string","x-struct":null,"x-validate":null},"automatic_response_settings":{"description":"Automatic response settings configuration","properties":{"closed":{"description":"Action to perform when channel is closed (outside business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"open":{"description":"Action to perform when channel is open (business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"send_when":{"description":"When to send automatic responses","enum":["always","never","open","closed"],"example":"always","type":"string","x-struct":null,"x-validate":null}},"title":"AutomaticResponseSettings","type":"object","x-struct":null,"x-validate":null},"call_flow_id":{"description":"Assigned programmable Call Flow ID, or null when none is assigned","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"color":{"description":"The Hexadecimal value that represents the color","example":"#009874","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the channel","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"The channel used by Team A","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"The unicode that represents an emoji","example":"👋","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"is_hosted_sms":{"default":false,"description":"Defines if the channel is hosted SMS","example":false,"type":"boolean","x-struct":null,"x-validate":null},"name":{"description":"Channel name","type":"string","x-struct":null,"x-validate":null},"opening_hours":{"description":"Opening hours settings for different weekdays for the channel corresponding to a physical location or business hours in general","properties":{"closes_at":{"description":"Time that the business closes","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Working hours ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"opens_at":{"description":"Time that the business opens","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Setting for the open or closed status of the business on a certain weekday","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"phone":{"description":"Chanel phone","type":"string","x-struct":null,"x-validate":null},"send_automatic_response_when":{"description":"Setting that determines when to send automatic responses","enum":["always","never","open","closed"],"type":"string","x-struct":null,"x-validate":null},"sending_email_address":{"description":"Email address this channel sends from.","example":"news@example.com","nullable":true,"type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"Timezone setting for the channel","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"Asia/Karachi","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the channel","enum":["phone","whatsapp","messenger","instagram","email","fax"],"example":"phone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the channel","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"03383d8a-071e-41b2-a1df-0e79546216d6","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"ListChannelsResponse","type":"object","x-struct":null,"x-validate":null},"DomainLinksPurpose":{"properties":{"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecord":{"nullable":true,"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null}},"required":["status","setupState","verificationRecord","requiredDnsRecords"],"title":"DomainLinksPurpose","type":"object","x-struct":null,"x-validate":null},"CreateAgentParams":{"description":"Request schema for creating an agent.","example":{"description":"Answers customer questions and routes requests.","llm_id":"123e4567-e89b-12d3-a456-426614174000","name":"Customer Support","settings":{"voice_id":"T5cu6IU92Krx4mh43osx"}},"properties":{"description":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model. Defaults to gpt-5.6-luna, which is available to all users. Creating an agent with another post call analysis model requires permission.","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["llm_id"],"title":"CreateAgentParams","type":"object","x-struct":null,"x-validate":null},"ShowSequenceResponse":{"description":"Response schema for an individual sequence.","example":{"data":{"access_level":"user","created_at":"2023-04-01T15:59:15","description":"Some Sequence Description","id":"5d912026-d56e-442b-ac92-e413a64d9112","settings":{"default_call_flow":{"call_flow_id":null,"enabled":false},"link_tracking":{"disabled":false,"domain_id":null},"max_add_per_time":1,"max_add_time":86400,"max_contact_sequence_runs":5,"max_time":null,"on_re_add":"exclude","on_response":"continue","only_send_during_business_hours":{"enabled":true,"use_contact_timezone":false},"skip_sending_on_weekend":{"enabled":true,"use_contact_timezone":true},"support_sms_quiet_hours":{"enabled":true,"use_contact_timezone":true}},"status":"draft","steps":[{"analytics":{"failed_deliveries":3,"link_clicks":29,"responses":25,"sent_messages":37,"slated_messages":0,"unsubscribes":1},"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"step message body","id":"f9b51f99-8cbf-4d65-983b-51b9b0af4743","position":0,"schedule_options":{"days":"0","hours":"13","minutes":"30","timezone":"Etc/UTC"},"title":"Some Step Title","voice_options":{}}],"title":"Some Sequence Title","updated_at":"2023-04-01T15:59:15"}},"properties":{"data":{"description":"Single sequence","properties":{"access_level":{"description":"Access level for the sequence","enum":["user","location","organization"],"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the sequence in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Sequence description","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Sequence ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"settings":{"description":"Settings for the sequence and how it handles contact responses","properties":{"default_call_flow":{"description":"Default call flow settings:\n  * `enabled`: Should a default call flow be used for the sequence inbound calls?\n  * `call_flow_id`: Default call flow that will be used to answer inbound calls that are a response to a sequence message.\n","example":{"call_flow_id":null,"enabled":false},"type":"object","x-struct":null,"x-validate":null},"link_tracking":{"description":"Link tracking settings:\n  * `disabled`: Should link tracking be disabled for the sequence?\n  * `domain_id`: Domain that will be used for the sequence.\n\nThe `disabled` setting only applies in case link tracking is enabled for the organization and for the used location.\n","example":{"disabled":false,"domain_id":null},"type":"object","x-struct":null,"x-validate":null},"max_add_per_time":{"description":"Maximum number of times a contact can be added to the sequence in a given time period","type":"integer","x-struct":null,"x-validate":null},"max_add_time":{"description":"Time in seconds within which the `max_add_per_time` contacts can be added to the Sequence.","type":"integer","x-struct":null,"x-validate":null},"max_contact_sequence_runs":{"description":"Maximum number of times a contact can run through the sequence","type":"integer","x-struct":null,"x-validate":null},"max_time":{"description":"Maximum time in seconds that a contact can remain in the sequence, nil is equal to no limit","type":"integer","x-struct":null,"x-validate":null},"on_re_add":{"description":"Determines whether a contact should be excluded or included if they are added to the sequence again after being removed","enum":["exclude","include"],"type":"string","x-struct":null,"x-validate":null},"on_response":{"description":"Determines what should happen to a contact when they respond to a message in the sequence","enum":["remove","continue"],"type":"string","x-struct":null,"x-validate":null},"only_send_during_business_hours":{"description":"Should business hours be enforced?","example":{"enabled":true,"use_contact_timezone":true},"type":"object","x-struct":null,"x-validate":null},"skip_sending_on_weekend":{"description":"Should SMS be delivered only on weekdays?","example":{"enabled":true,"use_contact_timezone":true},"type":"object","x-struct":null,"x-validate":null},"support_sms_quiet_hours":{"description":"Should quiet hours be enforced?","example":{"enabled":true,"use_contact_timezone":true},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Sequence status","enum":["draft","active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"steps":{"description":"List of sequence steps","items":{"description":"Single sequence step","properties":{"analytics":{"description":"Analytics specific to the step","properties":{"failed_deliveries":{"description":"Number of failed deliveries","type":"integer","x-struct":null,"x-validate":null},"link_clicks":{"description":"Number of link clicks","type":"integer","x-struct":null,"x-validate":null},"responses":{"description":"Number of responses","type":"integer","x-struct":null,"x-validate":null},"sent_messages":{"description":"Number of sent messages","type":"integer","x-struct":null,"x-validate":null},"slated_messages":{"description":"Number of messages slated to be sent","type":"integer","x-struct":null,"x-validate":null},"unsubscribes":{"description":"Number of contacts that unsubscribed after receiving the message","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments for the step","items":{"description":"Single attachment","properties":{"content_type":{"description":"Step message attachment MIME type","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Step message attachment URL","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Sequence step body","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the step in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Step ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"position":{"description":"Position of the step in the sequence, starts with 0","type":"integer","x-struct":null,"x-validate":null},"schedule_options":{"description":"Scheduling options for the step.\n\nFor the first step values of only zero would mean send immediately.\nNon-zero values would calculate after how much time to send the message.\nFor subsequent steps in a sequence with sequential steps this period is calculated after the message from the previous step is received.\nFor a sequence with branched steps this scheduling offset is calculated not from the time the contact received the previous step's message,\nbut from the time they were moved to the new step.\n\nCustom scheduling allows you to schedule steps based on custom data fields. Use the `custom_scheduling` object with an `expression` and `offset` to define when a step should be activated relative to a custom data field.\n","properties":{"custom_scheduling":{"description":"Custom scheduling configuration for steps based on custom data fields.\n\nThe expression should follow the format: `custom.object.property:resource`\nwhere `object` is the custom object key, `property` is the property key, and `resource` is the resource type (usually \"contact\").\n\nThe offset should be a relative date expression like \"+0d\", \"+1d\", \"-1d\", etc.\n","properties":{"expression":{"description":"Custom data expression in format: custom.object.property:resource","example":"custom.assignment.start_date:contact","type":"string","x-struct":null,"x-validate":null},"offset":{"description":"Relative date offset from the custom data field","example":"+0d","type":"string","x-struct":null,"x-validate":null}},"required":["expression","offset"],"type":"object","x-struct":null,"x-validate":null},"days":{"description":"Number of days after which to send the step message","type":"string","x-struct":null,"x-validate":null},"hours":{"description":"Number of hours in addition to the days after which to send the message","type":"string","x-struct":null,"x-validate":null},"minutes":{"description":"Number of minutes in addition to the days and hours after which to send the message","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"Timezone in the  IANA time zone database format, used when calculating the scheduling offset for the step","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"Pacific/Port_Moresby","title":"Timezone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"sequence_id":{"description":"Sequence ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Step status","enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Sequence step title","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the step in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"voice_options":{"description":"Voice options for the step.\n\n**Only applies to voice steps.**\n","properties":{"agent_id":{"description":"ID of the agent to use for the voice step.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Optional custom placeholders data sent to the agent used for the voice step.","type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Sequence title","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Sequence type","enum":["sequential","branched"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the sequence in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowSequenceResponse","type":"object","x-struct":null,"x-validate":null},"LinkAnalytics":{"example":{"data":{"by_city":[{"city":"Austin","count":40,"country_code":"US"}],"by_country":[{"count":110,"country_code":"US"}],"by_device":[{"count":90,"device_type":"mobile"}],"by_referrer":[{"count":120,"referrer":null}],"clicks_by_day":[{"count":14,"date":"2026-11-02"}],"end_date":"2026-11-03","link_id":"dd840673-d544-44b9-99f1-f6438471d2f3","previous_period_clicks":96,"start_date":"2026-10-05","total_clicks":128}},"properties":{"data":{"properties":{"by_city":{"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"by_country":{"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"by_device":{"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"by_referrer":{"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"clicks_by_day":{"items":{"properties":{"count":{"type":"integer","x-struct":null,"x-validate":null},"date":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"end_date":{"type":"string","x-struct":null,"x-validate":null},"link_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"previous_period_clicks":{"type":"integer","x-struct":null,"x-validate":null},"start_date":{"type":"string","x-struct":null,"x-validate":null},"total_clicks":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"LinkAnalytics","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.AnalyticsResponse","x-validate":null},"TeamMemberWorkScheduleBadRequestErrorResponse":{"description":"Work Schedule Bad Request Error Response schema for showing, updating, and deleting team member schedules","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Work Schedule 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null","Invalid path param Team Member ID: null","Invalid path param Team ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamMemberWorkScheduleBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.WorkSchedule.Errors.TeamMemberBadRequest","x-validate":null},"AuthorizeWorkflowConnectionResponse":{"description":"Short-lived Whippy URL for the user to complete app authentication.","example":{"data":{"auth_type":"oauth2","authorize_url":"https://app.whippy.co/workflow-app/connect?token=...","connection_id":"550e8400-e29b-41d4-a716-446655440000","expires_at":"2026-08-07T12:10:00Z","instructions":"Open this URL and complete authentication, then call test.","status":"pending"}},"properties":{"data":{"properties":{"auth_type":{"type":"string","x-struct":null,"x-validate":null},"authorize_url":{"description":"Hosted Whippy connect page URL with a short-lived token","format":"uri","type":"string","x-struct":null,"x-validate":null},"connection_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"expires_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"instructions":{"type":"string","x-struct":null,"x-validate":null},"status":{"example":"pending","type":"string","x-struct":null,"x-validate":null}},"required":["connection_id","auth_type","status","authorize_url","expires_at","instructions"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"AuthorizeWorkflowConnectionResponse","type":"object","x-struct":null,"x-validate":null},"SingleConversationMessage":{"description":"Data for a single message that can be inbound, outbound, or a note.","oneOf":[{"$ref":"#/components/schemas/ConversationMessage"},{"$ref":"#/components/schemas/ConversationNote"}],"title":"SingleConversationMessage","type":"object","x-struct":null,"x-validate":null},"StartChatScheduledResponse":{"description":"Response schema for scheduling a chat agent session.","example":{"data":{"conversation_id":"6883b559-bcb9-4585-9ec4-20a0af130576","id":"f3dde706-74db-4a06-b1a8-5066f057b39a","message":"Agent chat session was scheduled","scheduled_at":"2026-04-26T15:00:00.000000Z"}},"properties":{"data":{"properties":{"conversation_id":{"description":"Conversation ID created for the scheduled chat session","example":"942d2aa4-b8ad-48ea-9cf2-bc40a2bf6fe6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Stable reserved resource ID for the accepted scheduled chat","example":"59e57bb9-a703-47a7-bac1-c4de6171a3d0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Agent chat session response","enum":["Agent chat session was scheduled"],"example":"Agent chat session was scheduled","type":"string","x-struct":null,"x-validate":null},"scheduled_at":{"description":"Time when the chat session is scheduled to be made","example":"2026-04-26T15:00:00.000000Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","message","scheduled_at","conversation_id"],"type":"object","x-struct":null,"x-validate":null}},"title":"StartChatScheduledResponse","type":"object","x-struct":null,"x-validate":null},"DomainEmailPurpose":{"properties":{"provider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["status","setupState","provider","verificationRecords","requiredDnsRecords"],"title":"DomainEmailPurpose","type":"object","x-struct":null,"x-validate":null},"CustomObjectRecordNotFoundErrorResponse":{"description":"Response that occurs when the Custom Object Record record doesn't exist","example":{"errors":[{"description":"Custom Object Record not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object Record 404 error","items":{"description":"Single 404 error","properties":{"description":{"enum":["Custom Object Record not found","Custom Object record not found"],"example":"Custom Object Record not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectRecordNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomData.Errors.NotFoundError","x-validate":null},"EnableUserResponse":{"example":{"attachment":null,"channels":[{"address":"6 Laurianne Square","automatic_response_closed":null,"automatic_response_open":null,"automatic_response_settings":null,"delivery_options":null,"google_account_id":null,"google_location_id":null,"google_place_id":null,"id":"2345d197-a816-4b89-9a0d-b20b55e4793a","name":"East Gertrude 8886","opening_hours":[{"closes_at":"23:59","id":"94f8c8d1-e3b2-4e57-9f61-f057c0d4f1ef","opens_at":"00:00","state":"open","weekday":"Monday"},{"closes_at":"23:59","id":"52281bf7-499b-4f7a-891d-0aebd70e0533","opens_at":"00:00","state":"open","weekday":"Tuesday"},{"closes_at":"23:59","id":"b4856f6e-45ac-4795-970a-1b7c0388422b","opens_at":"00:00","state":"open","weekday":"Wednesday"},{"closes_at":"23:59","id":"9d9bcca0-45f1-4629-8dcf-0b04e4485dcc","opens_at":"00:00","state":"open","weekday":"Thursday"},{"closes_at":"23:59","id":"7f1b9c0a-4688-4020-9559-4b5f5ded0ba1","opens_at":"00:00","state":"open","weekday":"Friday"},{"closes_at":"23:59","id":"018a07b7-0b09-48c2-8927-47177970ab05","opens_at":"00:00","state":"open","weekday":"Saturday"},{"closes_at":"23:59","id":"919fd7f1-91c4-4acd-89fe-667a8fe3e0b0","opens_at":"00:00","state":"open","weekday":"Sunday"}],"phone":"+14244023930","provider":"telnyx","provider_auth":null,"review_link":null,"send_automatic_response_when":"never","settings":null,"state":"enabled","ten_dlc_campaign_id":null,"timezone":null,"type":"phone","widget_setting_id":null}],"default_signature_id":null,"email":"test@test.com","id":12,"name":"John Johny","phone":null,"role":"user","state":"enabled"},"properties":{"attachment":{"description":"User attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"channels":{"description":"List of channels the user is linked to.","example":[{"address":"test-address","automatic_response_closed":null,"automatic_response_open":null,"automatic_response_settings":null,"delivery_options":{"messages_per_period":100,"period":30},"google_account_id":null,"google_location_id":"google_location_id","google_place_id":"place_id","id":"4cfb7735-e592-457d-9e17-169b1c118e03","name":null,"opening_hours":[],"phone":"+14252370616","provider":"telnyx","provider_auth":null,"review_link":null,"send_automatic_response_when":"never","settings":{"auto_close_conversation_after":30,"link_tracking":{"default_domain_id":null,"disabled":false}},"state":"enabled","ten_dlc_campaign_id":null,"timezone":"America/Chicago","type":"phone","widget_setting_id":null}],"items":{"description":"Data for a single channel.","properties":{"address":{"description":"Channel address","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"google_account_id":{"description":"The Google Account ID of the channel","type":"string","x-struct":null,"x-validate":null},"google_location_id":{"description":"The Google Location ID of the channel","type":"string","x-struct":null,"x-validate":null},"google_place_id":{"description":"The Google Place ID of the channel","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"opening_hours":{"description":"The opening hours of the channel","items":{"properties":{"closes_at":{"description":"The closing time","type":"string","x-struct":null,"x-validate":null},"opens_at":{"description":"The opening time","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the channel","enum":["open","closed"],"type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"The day of the week","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","type":"string","x-struct":null,"x-validate":null},"provider":{"description":"The provider of the channel","type":"string","x-struct":null,"x-validate":null},"provider_auth":{"description":"The provider auth of the channel","type":"string","x-struct":null,"x-validate":null},"review_link":{"description":"The review link of the channel","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Channel state","enum":["open","archived","blocked"],"type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the channel","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"Europe/Prague","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Channel type","enum":["phone","whatsapp","email"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_signature_id":{"description":"The user’s default signature ID","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"email":{"description":"Email address","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Virtual Phone Field","type":"string","x-struct":null,"x-validate":null},"role":{"description":"Virtual Role Field","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the user","enum":["enabled","disabled","invited","archived"],"type":"string","x-struct":null,"x-validate":null}},"title":"EnableUserResponse","type":"object","x-struct":null,"x-validate":null},"MergeContactsParamsV1":{"description":"Request schema for merging Contacts.","oneOf":[{"$ref":"#/components/schemas/MergeContactsByIdsParamsV1"},{"$ref":"#/components/schemas/MergeContactsByPhonesParamsV1"}],"title":"MergeContactsParamsV1","type":"object","x-struct":null,"x-validate":null},"StartAgentCallResponse":{"description":"Response schema for starting a voice agent call.","example":{"data":{"id":"3325543b-635d-4274-9efa-d6c310baf306","message":"Agent outbound call was enqueued"}},"properties":{"data":{"description":"Response data","oneOf":[{"properties":{"id":{"description":"Stable reserved resource ID for the accepted outbound call","example":"47f76302-18bd-43da-8f65-1af9b58bd64c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Agent outbound call response","enum":["Agent outbound call was enqueued"],"example":"Agent outbound call was enqueued","type":"string","x-struct":null,"x-validate":null}},"required":["id","message"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"conversation_id":{"description":"Conversation ID created for the scheduled call","example":"9b15888c-d896-4949-b118-0422ded21f9b","format":"uuid","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Stable reserved resource ID for the accepted scheduled outbound call","example":"d9bf6d92-00b1-4d4f-93da-0f931af7f210","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Agent outbound call response","enum":["Agent outbound call was scheduled"],"example":"Agent outbound call was scheduled","type":"string","x-struct":null,"x-validate":null},"scheduled_at":{"description":"Time when the call is scheduled to be made","example":"2026-04-28T09:56:01.000000Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","scheduled_at","conversation_id","message"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"title":"StartAgentCallResponse","type":"object","x-struct":null,"x-validate":null},"TagBadRequestErrorResponse":{"description":"Tag Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tag 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TagBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.Errors.BadRequest","x-validate":null},"UploadConversationResponse":{"description":"Response schema for uploading conversations.","example":{"data":{"message":"Conversations are being imported","result":{"import_id":"d4a11f39-8c22-4935-ba23-30be39aedc0f","status":"pending","target":"conversations_import_via_api"}}},"properties":{"data":{"description":"Data for the Conversation import.","properties":{"message":{"description":"The message of the import","example":"Conversations are being imported","type":"string","x-struct":null,"x-validate":null},"result":{"properties":{"import_id":{"description":"The ID of the import","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"status":{"description":"The status of the import","example":"pending","type":"string","x-struct":null,"x-validate":null},"target":{"description":"The target of the import","example":"conversations_import_via_api","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UploadConversationResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Conversations.Conversation.UploadResponse","x-validate":null},"CreateDashboardRequest":{"description":"A dashboard definition.","example":{"default_filters":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"default_timeframe":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"description":"Inbound calls by channel and AI call outcomes","metrics":[{"metric_id":"5b1d6f0e-2c7a-4c55-9e3f-7a9f1c2d4b6e","size":"large"},{"metric_id":"8e4c2a19-7f3b-4d6e-a1c5-0b9d8e7f6a52","size":"medium"}],"tags":["c3a9e1f4-6b2d-4e8a-9f7c-1d5b3a2e4c6f","f7d2b8a1-3e5c-4a9b-8d6f-2c1e9b7a5d3e"],"title":"Calls overview"},"properties":{"default_filters":{"description":"Filters the dashboard applies to every chart when Show Dashboard is called without `filters`. Replaces the saved filters when sent; `[]` clears them. At most one filter per column. `agent_id`, `agent_version_id` and `channel_id` take `in` and a list of IDs of the organization's agents, agent versions or channels. `source_type` (a call's direction) takes `in` and `INBOUND` and/or `OUTBOUND`, and `call_completion_rating` takes `in` and `Complete` and/or `Incomplete`. `duration` takes `>=` or `<=` and a whole number of seconds: calls lasting at least or at most that long, with each call's duration rounded up to the second. A chart whose events don't carry a filter's column (a message chart under a duration filter, say) is left unfiltered by it, and its result lists the column in `dashboard_filters_not_applied`.","items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_timeframe":{"description":"The relative interval the dashboard runs over when a request gives no `start`/`end`. `null` clears it, and the dashboard then runs over the trailing four weeks.","nullable":true,"properties":{"interval_length":{"description":"Number of interval units.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"interval_type":{"description":"Interval unit.","enum":["hour","day","week","month","year"],"type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the interval is evaluated in. Defaults to `America/Chicago`.","type":"string","x-struct":null,"x-validate":null}},"required":["interval_type","interval_length"],"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Dashboard description. `null` clears it.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metrics":{"description":"The dashboard's layout: the metrics it shows, in order. Each is a metric saved in the organization, or a built-in metric of type `custom` (`source: whippy` and `type: custom` in List Metrics). The same metric can appear more than once, at different sizes.","items":{"properties":{"metric_id":{"description":"ID of the metric (see `/v1/metrics`).","format":"uuid","type":"string","x-struct":null,"x-validate":null},"size":{"description":"Display size of the chart.","enum":["small","medium","large"],"type":"string","x-struct":null,"x-validate":null}},"required":["metric_id","size"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"tags":{"description":"IDs of the organization's `report` tags. Replaces the dashboard's tags when sent; `[]` clears them. The `{id, name}` objects reads return are accepted too.","items":{"oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"additionalProperties":true,"description":"A tag as reads return it: `{id, name}`.","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Dashboard title","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null}},"required":["title"],"title":"CreateDashboardRequest","type":"object","x-struct":null,"x-validate":null},"UpdateWorkScheduleParams":{"description":"Update WorkSchedule Params schema","example":{"ends_at":"23:59","starts_at":"00:00","timezone":"Europe/Sofia","weekday":"Monday"},"properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"Africa/Algiers","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateWorkScheduleParams","type":"object","x-struct":null,"x-validate":null},"ShowTestScenarioResponse":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null},"ContactListsContactsUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Contact List contacts PUT requests.\n","example":{"errors":[{"description":"Invalid Action"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact List 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid Action","Missing Action","Invalid Contacts","Missing Contacts","Invalid Contact List ID","Invalid Opt In To channels provided","Missing Opt In To channels","The length of the Contacts field should be at least 1","The length of the Contacts field should not be more than 4000","The length of the Opt In To field should not be more than 1000","The contact list must exist and be active","Bulk action already in progress"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactListsContactsUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.Errors.UpdateContactsUnprocessableContent","x-validate":null},"VariablesUnprocessableContentErrorResponse":{"additionalProperties":false,"description":"List of error responses for invalid Variables GET requests.","example":{"errors":[{"description":"form_id must be a UUID"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Variables 422 errors","items":{"additionalProperties":false,"description":"Single 422 error","properties":{"description":{"description":"Human-readable explanation of the invalid request.","example":"form_id must be a UUID","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"VariablesUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"StartAgentCallParams":{"description":"Request schema for starting a voice agent call.","example":{"bypass_quiet_hours":false,"custom_placeholders_data":{"appointment_date":"2024/01/11"},"from":"(415) 802-0402","to":"(323) 745-2021"},"properties":{"bypass_quiet_hours":{"default":false,"description":"Should quiet hours restrictions be bypassed for this call?\n\n* When set to `false` (default), calls respect quiet hours restrictions which prevent calls during:\n  * Weekdays: 10 PM to 7 AM.\n  * Weekends: Calls are completely skipped on weekends (Saturday and Sunday).\n  * Business Hours: Outside the channel's configured business hours.\n\n* When set to `true`, the call will bypass these restrictions, so it must be used with caution.\n\nWhen quiet hours restrictions apply, the call is automatically scheduled for the next available time. Quiet hours are\ncalculated based on the channel's timezone and if the channel doesn't have a timezone configured, it defaults to\n\"America/Los_Angeles\" timezone.\n","type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"additionalProperties":{"description":"Key/value pair of the user defined placeholder","type":"string","x-struct":null,"x-validate":null},"description":"Custom placeholders data to be passed to the agent in the call.\n\nEach key/value pair corresponds to an user defined placeholder, and each value **must** be a string or a JSON-encodable value.\n","x-struct":null,"x-validate":null},"from":{"description":"Phone number from the channel to be used in the agent call.\n\n**Channel must:**\n  * Be enabled.\n  * Be from type phone.\n  * Support agent calls, i.e. support AI agents.\n","example":"(415) 802-0402","type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the agent call.\n\n**When informed, must:**\n  * Be in the ISO 8601 format, e.g. \"2026-04-25T10:00:00Z\".\n  * Be a valid time strictly in the future.\n\nAttention, even when scheduled, quiet hours restrictions still apply, unless the `bypass_quiet_hours` parameter is used.\nAlso, the schedule call might be delayed depending on the organization's ongoing call volume, although it's prioritized\nover non scheduled calls.\n","example":"2026-04-25T10:00:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Phone number to be called","example":"(323) 745-2021","type":"string","x-struct":null,"x-validate":null}},"required":["to","from"],"title":"StartAgentCallParams","type":"object","x-struct":null,"x-validate":null},"Message":{"description":"The message data for a sequence run.","properties":{"body":{"description":"Message body","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"sent","type":"string","x-struct":null,"x-validate":null},"error":{"description":"Message error","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"Message","type":"object","x-struct":null,"x-validate":null},"DashboardUnprocessableContentErrorResponse":{"description":"List of error responses for invalid dashboard requests.","example":{"errors":[{"description":"Invalid cursor format"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Dashboard 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Offset is not supported; use cursor pagination","Direction must be forward or backward","A cursor is required when direction is backward","Start and End must be provided together","The Start datetime field should be in ISO 8601 format","The End datetime field should be in ISO 8601 format","Limit must be greater than 0","Limit must be 500 or less","Limit is invalid"],"example":"Invalid cursor format","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"DashboardUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"CampaignListUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Campaign index (list) pagination params.\n","example":{"errors":[{"description":"Offset parameter is not compatible with cursor-based pagination"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Campaign list 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CampaignListUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.Errors.ListUnprocessableContent","x-validate":null},"WorkflowStepTypeNotFoundResponse":{"example":{"error":"Workflow or parent step not found"},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"error":{"example":"Workflow or parent step not found","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"required":["error"],"title":"WorkflowStepTypeNotFoundResponse","type":"object","x-struct":null,"x-validate":null},"ListCommunicationPreferencesResponse":{"description":"Response schema for listing communication preferences for an organization.","example":{"data":[{"channel_id":"813021ca-c395-4480-b249-9db516e3fe3c","contact_id":"a979a054-ae28-47fb-8f3b-ca8b316f408a","created_at":"2021-06-22T07:45:45","id":"f75aa303-e8c2-4d09-ba08-0d57a928720e","last_campaign_date":"2021-06-27T07:45:45","opt_in":false,"opt_in_date":"2021-06-22T07:45:45","opt_out_date":"2021-06-28T07:45:45","paused_until":"2021-06-30T07:45:45","updated_at":"2021-06-22T07:45:45"},{"channel_id":"6f743cb5-71b5-4fba-a337-c28be53cceef","contact_id":"d5ad868d-40ac-4740-9a99-5f75e9558a6c","created_at":"2021-06-22T07:45:45","id":"66e3158f-01d6-4e65-ac4c-2706d5375bb3","last_campaign_date":"2021-06-27T07:45:45","opt_in":true,"opt_in_date":"2021-06-22T07:45:45","opt_out_date":null,"paused_until":null,"updated_at":"2021-06-22T07:45:45"}]},"properties":{"data":{"description":"List of communication preferences for a contact for different channels.","items":{"description":"Individual communication preference for a specific channel","properties":{"channel_id":{"description":"ID of the channel the preference refers to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the preference belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the communication preference","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Communication preference ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"last_campaign_date":{"description":"Date of the last campaign the contact received from this channel. In ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_in":{"description":"Opted in/out state of the contact for the channel","type":"boolean","x-struct":null,"x-validate":null},"opt_in_date":{"description":"Date the contact last opted in","format":"date-time","type":"string","x-struct":null,"x-validate":null},"opt_out_date":{"description":"Date the contact last opted out","format":"date-time","type":"string","x-struct":null,"x-validate":null},"paused_until":{"description":"Time until which the contact's communication preferences are paused. Null when no pause is active.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the preference","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"ListCommunicationPreferencesResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.CommunicationPreference.ListResponse","x-validate":null},"ShowTeamMemberResponse":{"description":"Show TeamMember Response schema","example":{"data":{"id":"0f3f226b-b62a-4ba3-94de-80955f94d8a3","inserted_at":"2023-06-22T07:13:31","team_id":"4f52953b-6e0f-494e-ac86-822b344c95da","updated_at":"2023-06-22T07:13:31","user_id":1,"user_organization_id":3,"work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":null,"team_member_id":"f7556808-ab86-4a57-9d6d-986f7f26c1ec","timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}},"properties":{"data":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowTeamMemberResponse","type":"object","x-struct":null,"x-validate":null},"SearchUsersParams":{"description":"Parameters for searching and filtering users.","example":{"email":"test@example.com","limit":50,"name":"John","offset":0,"phone":"+17125697385","role":"admin","state":"archived"},"properties":{"cursor":{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","type":"string","x-struct":null,"x-validate":null},"email":{"description":"User's email address","example":"test@example.com","type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"description":"Number of results to return","example":50,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User's name","example":"John","type":"string","x-struct":null,"x-validate":null},"offset":{"default":0,"description":"Number of results to skip. Cannot be combined with cursor.","example":0,"type":"integer","x-struct":null,"x-validate":null},"phone":{"description":"User's phone number","example":"+17125697385","type":"string","x-struct":null,"x-validate":null},"role":{"description":"User's role in the system","example":"admin","type":"string","x-struct":null,"x-validate":null},"state":{"description":"User's account state","example":"archived","type":"string","x-struct":null,"x-validate":null}},"title":"SearchUsersParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.User.SearchParams","x-validate":null},"KnowledgeBaseVersionNotFoundErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the knowledge base version record doesn't exist.","example":{"errors":[{"description":"Knowledge Base Version not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Knowledge base version 404 error","items":{"additionalProperties":false,"description":"Single 404 error","properties":{"description":{"description":"Human-readable explanation that the knowledge base version doesn't exist.","enum":["Knowledge Base Version not found"],"example":"Knowledge Base Version not found","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"KnowledgeBaseVersionNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"IndexTeamMemberResponse":{"description":"Index TeamMember Response schema","example":{"data":[{"id":"0f3f226b-b62a-4ba3-94de-80955f94d8a3","inserted_at":"2023-06-22T07:13:31","team_id":"4f52953b-6e0f-494e-ac86-822b344c95da","updated_at":"2023-06-22T07:13:31","user_id":1,"user_organization_id":3,"work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":null,"team_member_id":"f7556808-ab86-4a57-9d6d-986f7f26c1ec","timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}],"total":1},"properties":{"data":{"description":"List of Team's Members","items":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of Team's Members","type":"integer","x-struct":null,"x-validate":null}},"title":"IndexTeamMemberResponse","type":"object","x-struct":null,"x-validate":null},"StepContact":{"description":"The Step Contact tied to the Sequence Run","properties":{"clicked_link":{"description":"A boolean reflecting if the user has clicked on the link tied to this step","example":true,"type":"boolean","x-struct":null,"x-validate":null},"contact_messages":{"description":"An array of messages","items":{"description":"The message data for a sequence run.","properties":{"body":{"description":"Message body","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"sent","type":"string","x-struct":null,"x-validate":null},"error":{"description":"Message error","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"Message","type":"object","x-struct":null,"x-validate":null},"title":"ContactMessages","type":"array","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Step Contact","example":"5a61fa05-14f6-4b1a-8669-c687b32b8306","format":"uuid","type":"string","x-struct":null,"x-validate":null},"status":{"description":"The status of the Step Contact","enum":["pending","active","inactive","moved","finished"],"example":"removed","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"The ID of the Step that this Step Contact is associated with.","example":"3edeb8c7-e7dd-4052-b312-90b76721bacf","format":"uuid","type":"string","x-struct":null,"x-validate":null},"unsubscribed":{"description":"If the contact has chosen to unsubscribe to the sequence","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"title":"StepContact","type":"object","x-struct":null,"x-validate":null},"UpdateDomainParams":{"description":"Provide at least one of `purposes` or `renew`.","example":{"emailProvider":"mailgun","purposes":["links","email"]},"properties":{"emailProvider":{"description":"Required when adding `email` to a domain without a provider","enum":["mailgun"],"type":"string","x-struct":null,"x-validate":null},"purposes":{"description":"The full set of purposes. Adding one starts its setup, removing one tears it down.","example":["links"],"items":{"enum":["links","email"],"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"renew":{"description":"Auto-renewal. Only for domains bought through Whippy.","type":"boolean","x-struct":null,"x-validate":null}},"title":"UpdateDomainParams","type":"object","x-struct":null,"x-validate":null},"CampaignUnprocessableContentCreateDraftErrorResponse":{"description":"List of error responses for invalid Create Draft Campaign requests.\n","example":{"errors":[{"description":"resource must be one of: contact, list, segment"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Campaign create draft 422 errors","items":{"description":"Single 422 error","properties":{"description":{"description":"One of:\n- Missing one of Body or Attachments\n- Body is over 1000 characters\n- Title is over 255 characters\n- Missing From number\n- Invalid From number\n- Missing Title\n- Included audience filter is invalid\n- Excluded audience filter is invalid\n- Included audience filter does not accept user_filters or campaign_exclusion_settings\n- Excluded audience filter does not accept user_filters or campaign_exclusion_settings\n- Invalid Whippy Query filter, including an unknown resource or an empty filter\n- No more than 50 automation templates can be attached at once\n- Automation templates should be a list of automation template IDs\n- Automation templates not found: <IDs that are unknown, global, archived or belong to another organization>\n- Status must be one of: draft, recurring\n- Missing included audience filter\n- Missing recurring_settings cron_expression, timezone, or start_date\n- Provide either a to list or status draft/recurring, not both\n- Audience requires status draft or recurring\n","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CampaignUnprocessableContentCreateDraftErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.Errors.UnprocessableContentCreateDraft","x-validate":null},"SearchAgentsResponse":{"example":{"data":[{"created_at":"2024-02-28T12:33:40Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"default_call_flow":{"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1},"deleted_at":null,"deleted_by":null,"draft_version":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"id":"8109be5c-7e87-4345-a1c0-46047f3373f9","organization":{"id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","name":"Hello Inc."},"status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"usage_mode":"ai_minutes"}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"items":{"description":"Agent record","properties":{"created_at":{"description":"Time of creation of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the agent","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"description":"Agent current version","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_call_flow":{"description":"Agent default call flow","example":{"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1},"properties":{"color":{"description":"Call flow color","example":"#000000","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"User ID that created the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Call flow description","example":"Call flow from the AI Agent Adrian that forwards the call to him","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call flow emoji","example":"🤖","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call flow ID","example":"053a06c7-7f57-490f-a2bd-6737d20e07c6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Call flow name","example":"Forward to Agent: Adrian","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID that the call flow belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"User ID that updated the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the agent in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"deleted_by":{"description":"Data for the user that deleted the agent","properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"description":"Agent draft version","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"nullable":true,"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Agent ID","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Data for the organization that the agent belongs to","example":{"id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","name":"Hello Inc."},"properties":{"id":{"description":"Organization ID","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Agent status","enum":["draft","active","archived","deleted"],"example":"archived","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that updated the agent","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"usage_mode":{"description":"Usage mode of the Agent","enum":["ai_minutes","completed_calls"],"example":"ai_minutes","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchAgentsResponse","type":"object","x-struct":null,"x-validate":null},"UpdateContactListContactsResponse":{"description":"Response schema for updating the contact list contacts.","example":{"data":{"message":"Contact list contacts are being updated"}},"properties":{"data":{"properties":{"message":{"description":"Confirmation that the update was accepted and runs in the background","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateContactListContactsResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.UpdateContactsResponse","x-validate":null},"UpdateLLMVersionMetaParams":{"description":"Request schema for updating LLM version metadata.","example":{"notes":"Updated the greeting and escalation instructions."},"properties":{"notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateLLMVersionMetaParams","type":"object","x-struct":null,"x-validate":null},"CreateLeadParams":{"description":"Request schema for creating a lead.","example":{"channel_id":"2a8e6809-fc0d-441e-9c88-86a8af787268","contact":{"email":"john.doe@gmail.com","name":"John","phone":"+14155552671"},"conversation":{"assigned_user_id":42,"status":"closed"},"inbound_message":{"attachments":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","body":"Hi from a Lead somewhere!"},"outbound_message":{"attachments":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","body":"Hi back, Lead!"}},"properties":{"channel_id":{"description":"ID of the channel that receives and sends the messages","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact":{"description":"Lead contact details","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"conversation":{"description":"Lead conversation details. If a conversation exists, it is updated.","properties":{"assigned_user_id":{"description":"Assigned user ID","type":"integer","x-struct":null,"x-validate":null},"status":{"description":"Conversation status","enum":["open","closed","automated"],"type":"string","x-struct":null,"x-validate":null},"unread_count":{"description":"Unread count","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"inbound_message":{"description":"Lead inbound message payload","properties":{"attachments":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Single attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","format":"uri","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Inbound message body","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"outbound_message":{"description":"Lead outbound message payload","properties":{"attachments":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Single attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","format":"uri","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Outbound message body","type":"string","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the outbound message. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["contact","inbound_message","channel_id"],"title":"CreateLeadParams","type":"object","x-struct":null,"x-validate":null},"MetricWriteUnprocessableContentErrorResponse":{"description":"Errors for an invalid metric definition: missing or mistyped fields, events or filters a report doesn't support, chart rules, and writes to built-in metrics.","example":{"errors":[{"description":"Chart must be one of total for ai_calls_average_duration"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"MetricWriteUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"ListCampaignsResponse":{"description":"Response schema for listing campaigns","example":{"data":[{"campaign_id":"585f05b9-ae10-4baf-af47-831a5f7f8c7c","campaign_title":"Festive Campaign","failed_deliveries":4,"link_clicks":35,"responses":282,"sent_messages":300,"slated_messages":300,"unsubscribes":5},{"campaign_id":"0c98948d-50fc-4700-8b45-3990ff378267","campaign_title":"Jubilant Campaign","failed_deliveries":2,"link_clicks":17,"responses":164,"sent_messages":159,"slated_messages":159,"unsubscribes":8}],"total":2},"properties":{"data":{"description":"List of campaigns with analytics.","items":{"description":"Data for a specific campaign with analytics.","properties":{"campaign_id":{"description":"Campaign ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"campaign_title":{"description":"Campaign title","type":"string","x-struct":null,"x-validate":null},"failed_deliveries":{"description":"Messages that failed to deliver","type":"integer","x-struct":null,"x-validate":null},"link_clicks":{"description":"Contacts that clicked on a link in the campaign message","type":"integer","x-struct":null,"x-validate":null},"responses":{"description":"Contacts that responded to the campaign","type":"integer","x-struct":null,"x-validate":null},"sent_messages":{"description":"Campaign messages that were successfully sent","type":"integer","x-struct":null,"x-validate":null},"slated_messages":{"description":"Campaign messages that were slated to be sent","type":"integer","x-struct":null,"x-validate":null},"unsubscribes":{"description":"Contacts that unsubscribed after receiving the campaign","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Metadata for cursor-based pagination. Present only on cursor-paginated responses.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total count without limit of campaigns based on the passed filters.","type":"integer","x-struct":null,"x-validate":null}},"title":"ListCampaignsResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.ListResponse","x-validate":null},"InviteCreateParams":{"example":{"invite":{"channel_ids":["3ca56f79-e1b0-59g9-0b25-b17c018df4b1"],"email":"new_email@example.com","role_ids":["2ba45e68-d0af-4dee-ad10-117b907acf3a","fedc335c-2fac-46e3-977c-86651de49d9a"]}},"properties":{"invite":{"description":"Create Params for Invite","example":{"channel_ids":["3ca56f79-e1b0-59g9-0b25-b17c018df4b1"],"email":"new_email@example.com","role_ids":["2ba45e68-d0af-4dee-ad10-117b907acf3a"]},"properties":{"channel_ids":{"description":"Array of channel UUIDs to restrict the invitee's access to specific channels","example":["3ca56f79-e1b0-59g9-0b25-b17c018df4b1"],"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"email":{"description":"Invitee's email address","example":"new_email@example.com","type":"string","x-struct":null,"x-validate":null},"role_ids":{"description":"Array of role UUIDs to assign to the invitee","example":["2ba45e68-d0af-4dee-ad10-117b907acf3a","fedc335c-2fac-46e3-977c-86651de49d9a"],"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["email"],"type":"object","x-struct":null,"x-validate":null}},"title":"InviteCreateParams","type":"object","x-struct":null,"x-validate":null},"BatchRetryWorkflowRunsResponse":{"description":"Per-run results for a batch retry request.","example":{"data":[{"status":"queued","workflow_run_id":"69312aa3-d7ac-472e-80ca-a54ea72fa739"},{"reason":"Workflow run is not eligible for retry.","status":"rejected","workflow_run_id":"04404052-b9d0-41c1-a5c8-a55d978380b8"}]},"properties":{"data":{"description":"Result for each requested workflow run ID, in request order","items":{"properties":{"reason":{"description":"Rejection reason when status is rejected","example":"Workflow run is not eligible for retry.","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Whether the run was queued for retry or rejected","enum":["queued","rejected"],"example":"queued","type":"string","x-struct":null,"x-validate":null},"workflow_run_id":{"description":"The requested workflow run ID","example":"69312aa3-d7ac-472e-80ca-a54ea72fa739","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["workflow_run_id","status"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["data"],"title":"BatchRetryWorkflowRunsResponse","type":"object","x-struct":null,"x-validate":null},"LLMVersionNotFoundErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the LLM version record doesn't exist","example":{"errors":[{"description":"LLM version not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"LLM version 404 error","items":{"additionalProperties":false,"description":"Single 404 error","properties":{"description":{"enum":["LLM version not found"],"example":"LLM version not found","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"LLMVersionNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"ShowDashboardResponse":{"description":"Response schema for a dashboard generated over a date range.","example":{"data":{"created_at":"2026-01-15T07:45:45.353788Z","default_filters":[],"default_timeframe":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"description":"Inbound and outbound conversation volume over time","filters":[],"id":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","metrics":[{"metric_id":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","size":"medium"}],"results":[],"source":"organization","timeframe":{"end":"2026-02-01T00:00:00Z","start":"2026-01-01T00:00:00Z","timezone":"America/Chicago"},"title":"Conversations Overview","updated_at":"2026-02-10T07:45:45.353788Z"}},"properties":{"data":{"description":"Dashboard record with generated data","properties":{"created_at":{"description":"Date the dashboard was created at in ISO 8601 format. `null` for Whippy built-in dashboards.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"default_filters":{"description":"Filters the dashboard applies to every chart, on top of each metric's own filters, when Show Dashboard is called without `filters`. Always empty for Whippy built-in dashboards. At most one filter per column. `agent_id`, `agent_version_id` and `channel_id` take `in` and a list of IDs of the organization's agents, agent versions or channels. `source_type` (a call's direction) takes `in` and `INBOUND` and/or `OUTBOUND`, and `call_completion_rating` takes `in` and `Complete` and/or `Incomplete`. `duration` takes `>=` or `<=` and a whole number of seconds: calls lasting at least or at most that long, with each call's duration rounded up to the second. A chart whose events don't carry a filter's column (a message chart under a duration filter, say) is left unfiltered by it, and its result lists the column in `dashboard_filters_not_applied`.","example":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_timeframe":{"additionalProperties":false,"description":"The relative interval the dashboard runs over when a request gives no `start`/`end` (e.g. the last 4 weeks). `null` when the dashboard has none: it then runs over the trailing four weeks.","example":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"nullable":true,"properties":{"interval_length":{"description":"Number of interval units.","type":"integer","x-struct":null,"x-validate":null},"interval_type":{"description":"Interval unit, e.g. `day`, `week`, `month`.","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the interval is evaluated in.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Dashboard description.","example":"Inbound and outbound conversation volume over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filters":{"description":"The dashboard filters the run applied: the request's `filters`, or else the dashboard's `default_filters`, without any IDs that aren't the organization's. A Whippy built-in dashboard has no `default_filters`, so only the request's `filters`.","example":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Dashboard ID","example":"e06e3c9b-badb-4ab9-a4ee-951ea6962181","format":"uuid","type":"string","x-struct":null,"x-validate":null},"metrics":{"description":"The dashboard's layout: the metrics it shows, in order.","items":{"additionalProperties":false,"properties":{"metric_id":{"description":"ID of the metric (see `/v1/metrics`).","format":"uuid","type":"string","x-struct":null,"x-validate":null},"size":{"description":"Display size of the chart. On a Whippy built-in dashboard, the size the app shows it at, or `null` for a built-in dashboard the app doesn't render from this layout.","enum":["small","medium","large"],"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"results":{"description":"The generated dashboard data, one entry per configured metric.","items":{"description":"A single metric result.","properties":{"dashboard_filters_not_applied":{"description":"Present when the run applied `filters` and some of the metric's events don't carry a filter's column: those columns. The events without it are counted unfiltered by that filter. A built-in metric on usage or IVR data lists every filter's column.","example":["duration"],"items":{"enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"description":"Dashboard origin. `whippy` for built-in dashboards (stable reserved IDs, not persisted), `organization` for dashboards saved in the organization.","enum":["whippy","organization"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"tags":{"description":"Tags on the dashboard. Always empty for Whippy built-in dashboards.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"timeframe":{"description":"The timeframe the dashboard was generated over. Either an absolute range (`start`/`end`) supplied by the request or the dashboard's stored relative interval.","example":{"end":"2026-02-01T00:00:00Z","start":"2026-01-01T00:00:00Z","timezone":"America/Chicago"},"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Dashboard title","example":"Conversations Overview","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the dashboard was last updated at in ISO 8601 format. `null` for Whippy built-in dashboards.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowDashboardResponse","type":"object","x-struct":null,"x-validate":null},"WorkflowAppValidationErrorResponse":{"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"properties":{"detail":{"example":"limit must be an integer between 1 and 500","type":"string","x-struct":null,"x-validate":null}},"required":["detail"],"type":"object","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"required":["errors"],"title":"WorkflowAppValidationErrorResponse","type":"object","x-struct":null,"x-validate":null},"CreateLLMParams":{"description":"Request schema for creating an LLM.","example":{"description":"Answers customer questions and routes requests.","knowledge_base_ids":[],"model":"gpt-5.1","prompt":"You are a helpful customer support assistant.","settings":{"begin_message":"Hello, how can I help you today?","knowledge_base_speak_during_execution":false,"model_temperature":0.4,"start_speaker":"agent","tool_call_strict_mode":false,"tool_ids":[]}},"properties":{"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"model":{"default":"gpt-5.6-luna","description":"LLM model. Defaults to gpt-5.6-luna, which is available to all users. Creating an LLM with another model requires permission.","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","qwen35-397b-a17b","qwen36-35b-a3b","gpt-realtime-1.5","gpt-realtime-2","gpt-realtime-2.1","gpt-realtime-2.1-mini"],"type":"string","x-struct":null,"x-validate":null},"prompt":{"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"properties":{"begin_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"knowledge_base_speak_during_execution":{"default":false,"description":"Speak during execution option of the knowledge base search.\n\nControls whether to speak or not during knowledge base search execution.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"model_temperature":{"description":"Randomness of the model response, from 0 to 1","maximum":1.0,"minimum":0,"nullable":true,"type":"number","x-struct":null,"x-validate":null},"start_speaker":{"enum":["agent","user"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_call_strict_mode":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_ids":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["prompt"],"title":"CreateLLMParams","type":"object","x-struct":null,"x-validate":null},"ShowWorkScheduleResponse":{"description":"Show WorkSchedule Response schema","example":{"data":{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":"8db22e5e-1e00-4744-ad1a-05775daa8ef8","team_member_id":null,"timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}},"properties":{"data":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowWorkScheduleResponse","type":"object","x-struct":null,"x-validate":null},"ShowConversationResponse":{"description":"Response schema for an individual conversation.","example":{"data":{"assigned_team_id":"0003c6fe-e469-4e59-8a73-be8ce58f6d53","assigned_user_id":1,"channel_id":"7394b1c1-fa15-4120-b4ae-eb389a532f6e","channel_type":"phone","contact_id":"60dc3635-bdf5-4ce7-8293-18140b2a7625","contact_language":"es","created_at":"2021-06-22T07:45:45","id":"70c5c186-107e-4122-ba5c-24ac072f5898","language":"en","last_message_date":"2021-06-22T07:45:45","messages":[{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Give yourself a little present today!","campaign_id":"bd9a4c5e-a26a-4d02-9585-f0ff9b1a5ddf","contact_id":"44eb983f-9c54-482b-8c85-44b8e274cd80","created_at":"2021-06-22T07:45:45","delivery_status":"delivered","direction":"OUTBOUND","from":"+14243051234","id":"10c052db-9ed0-4b8c-b063-d823bc67799b","language":"en","sequence_id":"0c63a60b-96f0-48ad-a74a-6501347dc046","step_contact_id":null,"step_id":"ec1110a5-8dca-44f0-b586-394823848b60","to":"+14243055678","translated_body":"¡Date un pequeño regalo hoy!","translation_language":"es","type":"mms","updated_at":"2021-06-22T07:45:45","user_id":1}],"status":"open","unread_count":3,"updated_at":"2021-06-22T07:45:45"}},"properties":{"data":{"description":"Single conversation data. Contains a list of messages after filtering them.","properties":{"assigned_team_id":{"description":"ID of the team assigned to the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"assigned_user_id":{"description":"ID of the user assigned to the conversation","type":"integer","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the conversation belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_type":{"description":"Type of channel for the conversation","enum":["phone","email","fax"],"type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact in the conversation","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_language":{"deprecated":true,"description":"Short name of the language for the contact uses in ISO-639-1 code format. Contact messages will be translated from this language.","example":"es","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the conversation is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"deprecated":true,"description":"Short name of the language for the conversation in ISO-639-1 code format. Contact messages will be translated to this language.","example":"en","type":"string","x-struct":null,"x-validate":null},"last_message_date":{"description":"Date of the last message belonging to the conversation","format":"date-time","type":"string","x-struct":null,"x-validate":null},"messages":{"description":"List of messages belonging to the conversation. By default it is a list of the last 10 messages.","items":{"description":"Data for a single message that can be inbound, outbound, or a note.","oneOf":[{"$ref":"#/components/schemas/ConversationMessage"},{"$ref":"#/components/schemas/ConversationNote"}],"title":"SingleConversationMessage","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"status":{"description":"Status of the conversation","enum":["open","closed","automated","spam"],"type":"string","x-struct":null,"x-validate":null},"unread_count":{"description":"Number of unread messages in the conversation","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the conversation was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowConversationResponse","type":"object","x-struct":null,"x-validate":null},"UpdateAgentSkillResponse":{"description":"Update Agent Skill response","example":{"data":{"content":"# My org playbook\n\nAlways call list_workflow_apps.","description":"How this workspace handles workflow apps discovery.","enabled":true,"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","inserted_at":"2026-08-06T12:00:00.000000Z","keywords":["workflow","apps"],"name":"My org playbook","organization_id":"46d1de7f-8ea5-4e47-a03d-4f35b5efaaca","scope":"organization","slug":"my-org-playbook","sort_order":100,"updated_at":"2026-08-06T12:00:00.000000Z","user_id":null}},"properties":{"data":{"description":"A Whippy AI skill playbook","properties":{"content":{"description":"Markdown playbook body","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Short description","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Whether the skill is available to the agent","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Agent skill ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"keywords":{"description":"Search keywords","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Display name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID (null for global)","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"scope":{"description":"Skill ownership scope","enum":["global","organization","user"],"type":"string","x-struct":null,"x-validate":null},"slug":{"description":"Lowercase kebab-case slug","type":"string","x-struct":null,"x-validate":null},"sort_order":{"description":"Sort order","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"Owner user ID (set only for user scope)","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateAgentSkillResponse","type":"object","x-struct":null,"x-validate":null},"SearchLLMVersionsParams":{"description":"Request schema for searching LLM versions.","properties":{"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"llm_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"model":{"description":"Filters by the version model.","type":"string","x-struct":null,"x-validate":null},"published":{"description":"When supplied, filters to published or unpublished versions.","type":"boolean","x-struct":null,"x-validate":null}},"title":"SearchLLMVersionsParams","type":"object","x-struct":null,"x-validate":null},"AssignTeamAction":{"additionalProperties":false,"description":"Assign Team Action params used when processing the action.","properties":{"team_id":{"description":"ID of the Team to assign","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["team_id"],"title":"AssignTeamAction","type":"object","x-struct":null,"x-validate":null},"ContactSegmentSearchParams":{"example":{"filter":[{"column":"name","comparison":"ilike","resource":"segment","value":"test-dg-1%"},{"column":"id","comparison":"in","resource":"sequence","value":["bae72ffc-1d58-44b6-b41f-37b671287bd9"]}]},"properties":{"filter":{"description":"Apply multiple filters to the result set using AND logic","items":{"properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["segment","sequence","tag"],"example":"segment","type":"string","x-struct":null,"x-validate":null},"value":{"description":"The value to compare against","example":"John","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["segment","sequence","tag"],"example":"segment","type":"string","x-struct":null,"x-validate":null},"value":{"description":"The value to compare against","example":"John","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource should the filter be applied.","enum":["segment","sequence","tag"],"example":"segment","type":"string","x-struct":null,"x-validate":null},"value":{"description":"The value to compare against","example":true,"type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"limit":{"default":50,"description":"Limit the number of results","example":10,"maximum":500,"type":"integer","x-struct":null,"x-validate":null},"offset":{"default":0,"description":"Offset the results","example":10,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Sort by multiple resources and their columns","items":{"properties":{"column":{"example":"inserted_at","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"example":"asc","type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["segment"],"example":"segment","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null}},"title":"ContactSegmentSearchParams","type":"object","x-struct":null,"x-validate":null},"CallUnprocessableContentErrorResponse":{"description":"List of error responses for invalid call search filter and pagination params.","example":{"errors":[{"description":"Before is invalid"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Call 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Before is invalid","The Before datetime field should be in ISO 8601 format","After is invalid","The After datetime field should be in ISO 8601 format","Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0","offset + limit cannot exceed 10000 for this search. Use cursor pagination instead."],"example":"Before is invalid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"CallUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"ShowKnowledgeBaseVersionResponse":{"additionalProperties":false,"description":"Response schema for knowledge base version records.","example":{"data":{"created_at":"2026-08-07T09:00:00Z","description":"Answers common product questions","embedding_status":"completed","id":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","item_versions":[{"content":"Employees receive 15 days of PTO per year.","created_at":"2026-08-17T09:00:00Z","id":"6b63aba1-88c3-4e92-bd58-8fc407c07533","knowledge_base_item":{"id":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","name":"Vacation policy","type":"text"},"metadata":{},"settings":null,"url":null}],"name":"Product FAQ","published_at":"2026-08-07T10:00:00Z"}},"properties":{"data":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"item_versions":{"description":"Top-level item versions in this knowledge base version","items":{"additionalProperties":false,"properties":{"content":{"description":"Extracted or authored content","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Item version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Item version ID","example":"6b63aba1-88c3-4e92-bd58-8fc407c07533","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_item":{"additionalProperties":false,"properties":{"id":{"description":"Knowledge base item ID","example":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Knowledge base item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Server-fetched file metadata for document, audio, and video items.\nTypical keys: filename, extension, size_kb.\n","example":{"extension":".pdf","filename":"handbook.pdf","size_kb":1024.0},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"url":{"description":"Source URL when applicable","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowKnowledgeBaseVersionResponse","type":"object","x-struct":null,"x-validate":null},"DomainPurchaseQuoteResponse":{"example":{"data":{"available":true,"expiresAt":"2026-11-05T10:15:00Z","name":"acme-links.com","periodInYears":1,"price":{"amountMinor":2000,"currency":"USD"},"quoteId":"0f8e0d1c-4b6a-4a59-9e3f-2d1c0b9a8f7e"}},"properties":{"data":{"properties":{"available":{"type":"boolean","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"periodInYears":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"price":{"nullable":true,"properties":{"amountMinor":{"description":"Price in integer minor units (cents)","minimum":0,"type":"integer","x-struct":null,"x-validate":null},"currency":{"enum":["USD"],"type":"string","x-struct":null,"x-validate":null}},"required":["amountMinor","currency"],"title":"DomainPrice","type":"object","x-struct":null,"x-validate":null},"quoteId":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["name","available","quoteId","price","periodInYears","expiresAt"],"title":"DomainPurchaseQuote","type":"object","x-struct":null,"x-validate":null}},"title":"DomainPurchaseQuoteResponse","type":"object","x-struct":null,"x-validate":null},"ShowCallResponse":{"description":"Response schema for call records.","example":{"data":{"attachments":[{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"audio/wav","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/ddb1c6e7-dcfd-4c04-871b-07baf756a2e1/recording.wav"},{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"application/json","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/87d4004c-dd93-48a5-aa79-9d5968a3e55c/transcript.json"},{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"application/json","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/d301325b-d59a-479c-b18c-73e401e6f385/analysis.json"}],"body":"Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n","campaign_contact_id":null,"campaign_id":null,"channel_id":"510b492f-e9e0-4849-b3b3-29d9ed38f8de","contact_id":"b0ed88e2-b724-4eef-bfbf-bcce0caa9110","conversation_id":"1320a283-728e-49bc-8512-23aed49487fe","created_at":"2021-06-22T07:45:45.353788Z","delivery_status":"call_completed.user_hangup","direction":"INBOUND","from":"+14243051234","id":"c4920ece-62df-4101-a87d-8e3b5da1d03b","language":null,"metadata":{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","agent_version_id":"7efcc850-a0b6-42d5-9dc6-313dac695626","analysis":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"conference_id":null,"duration":15000,"external_resource_id":"call_ca9b7ca39178245bba7d0088a99","knowledge_base_ids":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"knowledge_base_version_ids":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"llm_id":"0cff9730-324e-4855-b014-18c7c411e576","llm_version_id":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","placeholders_data":{"full_name||Sir":"Sir"},"type":"phone","voicemail":false},"mode":"ai","sequence_id":null,"step_contact_id":null,"step_id":null,"to":"+14243055678","translated_body":null,"translation_language":null,"type":"call","updated_at":"2021-06-22T07:45:45.353788Z","user_id":null}},"properties":{"data":{"description":"Call message record","properties":{"attachments":{"description":"List of attachments belonging to the call","items":{"description":"Single call attachment","properties":{"agent_id":{"description":"ID of agent responsible for the call","example":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"content_type":{"description":"MIME type of the call attachment","example":"audio/wav","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the call attachment","example":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/9ec4284a-898f-4e80-9114-f9e55918ced4/recording.wav","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Call transcript","example":"Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n","type":"string","x-struct":null,"x-validate":null},"campaign_contact_id":{"description":"ID of the campaign contact the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"ID of the campaign the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the call belongs to","example":"510b492f-e9e0-4849-b3b3-29d9ed38f8de","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the call belongs to","example":"b0ed88e2-b724-4eef-bfbf-bcce0caa9110","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"ID of the conversation the call belongs to","example":"1320a283-728e-49bc-8512-23aed49487fe","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the call is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Call delivery status. Any string is valid.\n\nKnown values this API constructs: call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus that call's disconnection reason. That reason is not limited to the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Direction of the message","enum":["INBOUND","OUTBOUND"],"example":"INBOUND","type":"string","x-struct":null,"x-validate":null},"from":{"description":"Phone number that made the call","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call ID","example":"c4920ece-62df-4101-a87d-8e3b5da1d03b","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"ISO-639-1 code for the original language of the call transcript.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metatada":{"description":"Message metadata","example":{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","agent_version_id":"7efcc850-a0b6-42d5-9dc6-313dac695626","analysis":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"conference_id":null,"duration":15000,"external_resource_id":"call_ca9b7ca39178245bba7d0088a99","knowledge_base_ids":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"knowledge_base_version_ids":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"llm_id":"0cff9730-324e-4855-b014-18c7c411e576","llm_version_id":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","placeholders_data":{"full_name||Sir":"Sir"},"type":"phone","voicemail":false},"properties":{"agent_id":{"description":"ID of agent responsible for the call","example":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"description":"ID of agent version responsible for the call","example":"7efcc850-a0b6-42d5-9dc6-313dac695626","format":"uuid","type":"string","x-struct":null,"x-validate":null},"analysis":{"description":"A set of analysis for the call","example":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"type":"object","x-struct":null,"x-validate":null},"conference_id":{"description":"ID of the conference in the external provider in case the call was a conference call","example":"CFb24f0a87ac5301cffa0b28551ce43ed6","type":"string","x-struct":null,"x-validate":null},"duration":{"description":"Call duration in milliseconds","example":15000,"type":"integer","x-struct":null,"x-validate":null},"external_resource_id":{"description":"ID of the call in the external provider","example":"call_ca9b7ca39178245bba7d0088a99","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases in use for the call","example":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"items":{"description":"ID of knowledge base in use for the call","example":"8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"knowledge_base_version_ids":{"description":"IDs of knowledge base versions in use for the call","example":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"items":{"description":"ID of knowledge base version in use for the call","example":"056c3b9d-a589-4989-bfd9-17018ea893c2","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of llm responsible for the call","example":"0cff9730-324e-4855-b014-18c7c411e576","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"description":"ID of llm version responsible for the call","example":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_data":{"description":"Placeholders data sent to the agent for the call","example":{"full_name||Sir":"Sir"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Call type. Can be either phone or web","example":"phone","type":"string","x-struct":null,"x-validate":null},"voicemail":{"description":"Whether the call was missed and a voicemail was left","example":false,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"mode":{"description":"Mode of the message","enum":["manual","ai"],"example":"ai","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"ID of the sequence the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_contact_id":{"description":"ID of the step contact the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the sequence step the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Phone number that received the call","example":"+14243056789","type":"string","x-struct":null,"x-validate":null},"translated_body":{"description":"Translated call transcript.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"ISO-639-1 code for the language the call transcript was translated into.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the message","enum":["call"],"example":"call","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the call was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user related to the call.\n\n**For now it's always nil.**\n","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowCallResponse","type":"object","x-struct":null,"x-validate":null},"CreateTeamParams":{"description":"Create Team Params schema","example":{"assignment_method":"round_robin","color":"#F0F0F0","description":"Description","emoji":"👨🏻‍🔧","locations":["44504503-f31f-406c-a86c-ae0c80293d1c","db1b85a9-2a0a-4b77-82c6-2ade88116ba2"],"name":"Example name","team_members":[1,2,3]},"properties":{"assignment_method":{"default":"manual","description":"  The team's assignment method. There are three options - \"manual\", \"round_robin\", \"balanced\".\n  1) Manual - Conversations are not automatically assigned\n  2) Round Robin - Conversations are assigned to teammates in sequential order\n  3) Balanced - Conversations are assigned to teammates with the fewest active conversations\n","enum":["manual","round_robin","balanced"],"example":"balanced","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Color","example":"#F0F0F0","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"Description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","example":"🇺🇸","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"locations":{"description":"List of Location IDs","example":["a30ced3f-af5f-455b-a746-b6c18949ec70","09c552d3-93f0-41b7-a9ec-94d64dfa87c1"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Team name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"team_members":{"description":"Optional list of organization user IDs to add as team members. On update, this replaces the team's full member set. Every ID must belong to the organization, otherwise the request is rejected and nothing is changed.","example":[1,2,3],"items":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"CreateTeamParams","type":"object","x-struct":null,"x-validate":null},"CreateWorkScheduleParams":{"description":"Create WorkSchedule Params schema","example":{"ends_at":"23:59","starts_at":"00:00","timezone":"Europe/Sofia","weekday":"Monday"},"properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"Africa/Algiers","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"title":"CreateWorkScheduleParams","type":"object","x-struct":null,"x-validate":null},"UpsertContactResponse":{"description":"Response schema for upserting contacts.","example":{"data":{"message":"Contacts are being imported","result":{"import_id":"d4a11f39-8c22-4935-ba23-30be39aedc0f","status":"pending","target":"bulk_opt_in"}}},"properties":{"data":{"description":"Data for the upserted contacts.","properties":{"message":{"description":"The message of the import","example":"Contacts are being imported","type":"string","x-struct":null,"x-validate":null},"result":{"properties":{"import_id":{"description":"The ID of the import","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"status":{"description":"The status of the import","example":"pending","type":"string","x-struct":null,"x-validate":null},"target":{"description":"The target of the import","example":"bulk_opt_in","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpsertContactResponse","type":"object","x-struct":null,"x-validate":null},"SearchAgentVersionsResponse":{"example":{"data":[{"agent":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"created_at":"2024-04-30T08:56:24.260121Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"Law Agent","id":"9e058899-c35d-4720-be9c-80ec2497784f","llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"name":"Adrian","notes":"Updated the greeting and escalation instructions","organization":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"items":{"description":"Agent version record","example":{"agent":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"created_at":"2024-04-30T08:56:24.260121Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"description":"Law Agent","id":"9e058899-c35d-4720-be9c-80ec2497784f","llm":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"name":"Adrian","notes":"Updated the greeting and escalation instructions","organization":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent":{"additionalProperties":false,"description":"Agent that the version belongs to","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","default_call_flow_id":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","deleted_at":null,"deleted_by_id":null,"draft_version_id":"9e058899-c35d-4720-be9c-80ec2497784f","id":"6e9116b4-5536-4662-903a-4b40767d1ed1","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1,"usage_mode":"ai_minutes"},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version_id":{"description":"ID of the current agent version","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"default_call_flow_id":{"description":"ID of the agent default call flow","example":"8e4cf173-09f3-4882-b075-3ae71a6a01dd","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the agent in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft agent version","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent ID","example":"6e9116b4-5536-4662-903a-4b40767d1ed1","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the agent belongs to","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Agent status","enum":["draft","active","archived","deleted"],"example":"archived","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the agent","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"usage_mode":{"description":"Usage mode of the Agent","enum":["ai_minutes","completed_calls"],"example":"ai_minutes","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","usage_mode","created_by_id","deleted_at","current_version_id","default_call_flow_id","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"User that created the agent version","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"9e058899-c35d-4720-be9c-80ec2497784f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm":{"additionalProperties":false,"description":"LLM used by the agent version","example":{"created_at":"2024-02-28T12:33:40Z","created_by_id":1,"current_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","deleted_at":null,"deleted_by_id":null,"draft_version_id":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","id":"04556aab-0865-482e-91b6-afaa09b40a7e","organization_id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by_id":1},"nullable":true,"properties":{"created_at":{"description":"Time of creation of the LLM in ISO 8601 format","example":"2024-02-28T12:33:40Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"current_version_id":{"description":"ID of the current LLM version","example":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the LLM in ISO 8601 format","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"deleted_by_id":{"description":"ID of the user that deleted the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"draft_version_id":{"description":"ID of the draft LLM version","example":"0a8cab14-7004-4096-b9ab-4a7a5d72927d","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"LLM ID","example":"04556aab-0865-482e-91b6-afaa09b40a7e","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization that the LLM belongs to","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"LLM status","enum":["draft","active","archived"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the LLM in ISO 8601 format","example":"2024-02-28T12:38:32Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"ID of the user that last updated the LLM","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["id","status","organization_id","updated_at","created_by_id","deleted_at","current_version_id","updated_by_id","deleted_by_id","draft_version_id","created_at"],"type":"object","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Organization that the agent version belongs to","example":{"id":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","name":"Hello Inc."},"nullable":true,"properties":{"id":{"description":"Organization ID","example":"cf8190ff-9ec8-41c1-bb95-21116135bb1a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchAgentVersionsResponse","type":"object","x-struct":null,"x-validate":null},"CreateCustomEventResponse":{"description":"Response schema for the creation of an individual custom event.","example":{"data":{"associated_resources":[{"id":"a4621951-0f3b-4222-b44e-ce4e471bfd2d","resource":"contact"}],"created_at":"2021-06-22T07:45:45.000000Z","event":"order.placed","external_id":"1234567890","id":"123e4567-e89b-12d3-a456-426614174000","payload":{"amount":2,"currency":"USD","login_time":"2023-06-15T10:30:00Z","price":100.0,"user_id":"123"},"timestamp":"2025-06-15T10:30:00Z"}},"properties":{"data":{"description":"Single custom event data.","properties":{"associated_resources":{"description":"List of Whippy resources associated with the custom event.","items":{"description":"Whippy resource associated with the custom event.","properties":{"id":{"description":"The ID of the resource.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The type of the resource.","enum":["campaign","contact","conversation","message","sequence"],"example":"contact","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"created_at":{"description":"Date the custom event was created in ISO 8601 format","example":"2021-06-22T07:45:45.000000Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"event":{"description":"Custom event type.\n\nIt can be a resource and event separated with a period, such as \"job.assigned\".\nIt can be separated with a hyphen, such as \"job-assigned\".\n\nIt can be any string, as we assume that this is an event existing in the external system\nand there can be different formats for such events.\n","example":"job.assigned","format":"string","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"External ID of a related to a custom event.","example":"bddb2caf-c703-4945-8cf1-fee4a1a2f052","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Custom Event ID","example":"8686bc7e-cc3c-4082-a64c-7d24a9d8d10e","format":"uuid","type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Data related to the custom event, it can have any structure.","example":{"city":"Los Angeles","finish_at":"2025-04-12T08:55:12.399936Z","hourly_rate":20.0,"job_id":42,"job_title":"Driver"},"type":"object","x-struct":null,"x-validate":null},"timestamp":{"description":"Timestamp of the custom event. It needs to be in ISO 8601 format.","example":"2025-04-12T08:55:12.399936Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateCustomEventResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomEvents.CustomEvent.CreateResponse","x-validate":null},"CreateContactSegmentParams":{"description":"Request schema for creating a contact segment in an organization.","example":{"color":"44FFFF","description":"Contact Segments","emoji":"😊","filters":{"filter":[{"column":"source","comparison":"==","resource":"contact","value":"import"}]},"name":"Local Contacts"},"properties":{"color":{"description":"Contact segment color","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Contact segment description","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Contact segment emoji","type":"string","x-struct":null,"x-validate":null},"filters":{"description":"The segment's contact filter in Whippy Query Language (WQL). Uses the same `filter` (and optional `sort`) structure as the request body of `POST /v1/contacts/filter`.","example":{"filter":[{"column":"source","comparison":"==","resource":"contact","value":"import"}]},"properties":{"filter":{"description":"Apply multiple filters to the result set using AND logic","items":{"properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"clicked_link","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"on":{"description":"  List of on items that should be used to join parent resource with child resource.\n  The logic is as follows (parent_resource JOIN child_resource ON parent_resource.parent_column = child_resource.child_column).\n","items":{"properties":{"child":{"description":"The child resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"employee","type":"string","x-struct":null,"x-validate":null},"child_column":{"description":"The column on the child resource on which the comparison should be executed","example":"id","type":"string","x-struct":null,"x-validate":null},"parent":{"description":"The parent resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"assignment","type":"string","x-struct":null,"x-validate":null},"parent_column":{"description":"The column on the parent resource on which the comparison should be executed","example":"employee_id","type":"string","x-struct":null,"x-validate":null}},"required":["parent","child","parent_column","child_column"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"campaign_contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"sort":{"description":"Sort by multiple resources and their columns","items":{"properties":{"column":{"example":"inserted_at","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"example":"asc","type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["campaign","campaign_contact","campaign_message","communication_preference","contact","contact_message","conversation","join_custom_data","list","message","segment","sequence_run","step_contact","tag"],"example":"contact","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"title":"ContactSegmentFilters","type":"object","x-struct":null,"x-validate":null},"name":{"description":"Contact segment name","maxLength":120,"type":"string","x-struct":null,"x-validate":null}},"required":["name","color","filters"],"title":"CreateContactSegmentParams","type":"object","x-struct":null,"x-validate":null},"ShowWorkflowStepResponse":{"description":"Response schema for a single workflow step after create/update/delete.\n\nAfter `createWorkflowStep` with `include=steps`, also includes the full\neditable draft step list under `steps`.\n","example":{"data":{"alias":"send_slack_message","child_role":null,"custom_image_url":null,"data":{"credential_id":"d4e5f6a7-b8c9-0123-def0-123456789abc"},"description":null,"id":"c1d2e3f4-a5b6-7890-abcd-ef1234567890","metadata":{},"name":"Send Slack message","next_steps_ids":[],"parent_step_id":null,"position":1,"previous_step_id":null,"sample_input":{},"sample_output":{},"type":"app","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","workflow_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}},"properties":{"data":{"description":"Workflow step from the draft (or published) version","properties":{"alias":{"description":"Stable step alias within the workflow","type":"string","x-struct":null,"x-validate":null},"child_role":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_image_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"data":{"description":"Step configuration (input mapping, credential_id, action keys, etc.)","type":"object","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"metadata":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"next_steps_ids":{"description":"IDs of steps that list this step as their previous_step_id","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"position":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"previous_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sample_input":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"sample_output":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Step type (e.g. app, trigger, code, loop)","type":"string","x-struct":null,"x-validate":null},"workflow_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"workflow_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","type"],"type":"object","x-struct":null,"x-validate":null},"steps":{"description":"Present only when create was called with `include=steps`. Full editable draft step list (including the newly created step).","items":{"description":"Workflow step from the draft (or published) version","properties":{"alias":{"description":"Stable step alias within the workflow","type":"string","x-struct":null,"x-validate":null},"child_role":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_image_url":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"data":{"description":"Step configuration (input mapping, credential_id, action keys, etc.)","type":"object","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"metadata":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"next_steps_ids":{"description":"IDs of steps that list this step as their previous_step_id","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"position":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"previous_step_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sample_input":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"sample_output":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Step type (e.g. app, trigger, code, loop)","type":"string","x-struct":null,"x-validate":null},"workflow_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"workflow_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","type"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowWorkflowStepResponse","type":"object","x-struct":null,"x-validate":null},"ListMetricEventsResponse":{"description":"Response schema for the events a metric can be built from.","example":{"data":[{"charts":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"label":"call.analyzed","name":"call.analyzed","seen_recently":true,"type":"whippy_event"},{"charts":["total","table"],"label":"Agent call completion breakdown","name":"agent_call_completion_breakdown","seen_recently":null,"type":"non_custom"}]},"properties":{"data":{"description":"Whippy events, then custom events (each sorted by name), then `non_custom` reports.","items":{"properties":{"charts":{"description":"The charts a metric built on this event can use.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display name.","type":"string","x-struct":null,"x-validate":null},"name":{"description":"The value for a metric event's `name`.","type":"string","x-struct":null,"x-validate":null},"seen_recently":{"description":"Whether the organization recorded the event in the last year. `null` for `non_custom` reports, which aren't events.","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"The value for a metric event's `type`.","enum":["whippy_event","custom_event","non_custom"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"ListMetricEventsResponse","type":"object","x-struct":null,"x-validate":null},"ShowToolExecutionResponse":{"description":"One recorded agent tool execution.","properties":{"data":{"description":"A recorded agent tool execution.","properties":{"knowledge_bases":{"description":"Knowledge bases this execution queried.","items":{"properties":{"id":{"description":"Knowledge base ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base name.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Queried knowledge base version ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"agent_version_id":{"description":"Agent version ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"When the row was inserted.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"latency_ms":{"description":"Execution latency in milliseconds.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_id":{"description":"Tool ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"call_id":{"description":"Call ID. Same value as message_id.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"LLM ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status_code":{"description":"Upstream HTTP status, when present.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source":{"description":"Where the execution was recorded.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"message_id":{"description":"Call or message ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Execution status.","enum":["pending","success","error"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"When the row was last updated.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tool execution ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_name":{"description":"Agent name at search time.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"provider":{"description":"Voice or chat provider.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"conversation_agent_session_id":{"description":"Chat agent session ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"Whippy channel ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_name":{"description":"Whippy channel name.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_type":{"description":"Tool type.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"additionalProperties":true,"description":"Redacted tool response.","nullable":true,"type":"object","x-struct":null,"x-validate":null},"error_message":{"description":"Redacted error text.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"provider_tool_call_id":{"description":"Provider tool call ID.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"request":{"additionalProperties":true,"description":"Redacted tool request.","type":"object","x-struct":null,"x-validate":null},"tool_name":{"description":"Tool name.","example":"lookup_order","type":"string","x-struct":null,"x-validate":null},"completed_at":{"description":"When the tool call completed.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_type":{"description":"Channel type.","enum":["phone","chat"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"description":"LLM version ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_id":{"description":"Agent ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Execution metadata.","type":"object","x-struct":null,"x-validate":null},"started_at":{"description":"When the tool call started.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"ToolExecution","type":"object","x-struct":null,"x-validate":null}},"title":"ShowToolExecutionResponse","type":"object","x-struct":null,"x-validate":null},"ContactListNotFoundErrorResponse":{"description":"Contact List Not Found Error Response schema","example":{"error":{"code":404,"message":"Contact list not found"}},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Contact List 404 error","items":{"properties":{"description":{"enum":["Contact list not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactListNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.Errors.NotFound","x-validate":null},"SearchToolExecutionsParams":{"description":"Request schema for searching recorded agent tool executions.","example":{"filter":{"channel_type":"phone","status":"error"},"limit":50,"offset":0,"sort":{"column":"started_at","order":"desc"}},"properties":{"filter":{"description":"Filters for recorded agent tool executions. All fields are optional.","properties":{"agent_id":{"description":"Agent ID.","example":"986b8f7a-437c-404b-8063-0a58ae14c9e2","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_ids":{"description":"Agent IDs.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"channel_id":{"description":"Whippy channel ID.","example":"4c4bef02-cf60-4e1f-a922-33123d1dfd50","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_ids":{"description":"Whippy channel IDs.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"channel_type":{"description":"Channel type.","enum":["phone","chat"],"example":"phone","type":"string","x-struct":null,"x-validate":null},"channel_types":{"description":"Channel types.","items":{"description":"Channel type.","enum":["phone","chat"],"example":"phone","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"conversation_agent_session_id":{"description":"Chat agent session ID.","example":"359a60bc-532c-4c96-a9b0-a0c5a48f3506","format":"uuid","type":"string","x-struct":null,"x-validate":null},"has_knowledge_base":{"description":"Whether the execution queried a knowledge base.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"knowledge_base_id":{"description":"Knowledge base ID linked to the execution.","example":"aceb68ea-cb30-44d8-b8b3-c4bf8d18648a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"Knowledge base IDs linked to the execution.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"knowledge_base_version_id":{"description":"Knowledge base version ID linked to the execution.","example":"625c5074-fee0-411e-b653-00f28bb06160","format":"uuid","type":"string","x-struct":null,"x-validate":null},"message_id":{"description":"Call or message ID.","example":"b1dee809-84eb-4a05-8cd1-1a93fd737657","format":"uuid","type":"string","x-struct":null,"x-validate":null},"q":{"description":"Matches the tool name, error text, or knowledge-base query.","example":"refund","type":"string","x-struct":null,"x-validate":null},"status":{"description":"Execution status.","enum":["pending","success","error"],"example":"error","type":"string","x-struct":null,"x-validate":null},"statuses":{"description":"Execution statuses.","items":{"description":"Execution status.","enum":["pending","success","error"],"example":"error","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"tool_name":{"description":"Exact tool name.","example":"lookup_order","type":"string","x-struct":null,"x-validate":null},"tool_names":{"description":"Exact tool names.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"ToolExecutionFilter","type":"object","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of executions to return. Defaults to 50 and is capped at 100.","example":50,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"offset":{"description":"Number of matching executions to skip.","example":0,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Sort for recorded agent tool executions.","properties":{"column":{"description":"Column to sort by.","enum":["tool_name","status","latency_ms","started_at","inserted_at"],"example":"started_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","order"],"title":"ToolExecutionSort","type":"object","x-struct":null,"x-validate":null}},"title":"SearchToolExecutionsParams","type":"object","x-struct":null,"x-validate":null},"AutomaticResponseAction":{"description":"Action to perform when channel is open (business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"IndexAgentSkillResponse":{"description":"List Agent Skills response","example":{"data":[{"content":"# My org playbook\n\nAlways call list_workflow_apps.","description":"How this workspace handles workflow apps discovery.","enabled":true,"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","inserted_at":"2026-08-06T12:00:00.000000Z","keywords":["workflow","apps"],"name":"My org playbook","organization_id":"46d1de7f-8ea5-4e47-a03d-4f35b5efaaca","scope":"organization","slug":"my-org-playbook","sort_order":100,"updated_at":"2026-08-06T12:00:00.000000Z","user_id":null}],"total":1},"properties":{"data":{"description":"Global, organization, and current-user skills","items":{"description":"A Whippy AI skill playbook","properties":{"content":{"description":"Markdown playbook body","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Short description","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Whether the skill is available to the agent","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Agent skill ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"keywords":{"description":"Search keywords","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Display name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID (null for global)","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"scope":{"description":"Skill ownership scope","enum":["global","organization","user"],"type":"string","x-struct":null,"x-validate":null},"slug":{"description":"Lowercase kebab-case slug","type":"string","x-struct":null,"x-validate":null},"sort_order":{"description":"Sort order","type":"integer","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"Owner user ID (set only for user scope)","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of visible skills","type":"integer","x-struct":null,"x-validate":null}},"title":"IndexAgentSkillResponse","type":"object","x-struct":null,"x-validate":null},"WorkScheduleUnprocessableContentErrorResponse":{"description":"List of error responses for invalid WorkSchedule requests.\n","example":{"errors":[{"description":"Requires either Team ID or Team Member ID"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Work Schedule 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Requires either Team ID or Team Member ID","Can't have both Team ID and Team Member ID","Weekday can't be blank","Weekday must be one of: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday","Starts At is invalid","Ends At is invalid","Timezone is invalid","Team doesn't exist","Team Member doesn't exist"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"WorkScheduleUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.WorkSchedule.Errors.UnprocessableContent","x-validate":null},"PublicCallFlowUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Public Call Flow requests.","example":{"errors":[{"description":"Webhook Config must include a non-blank url"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Call Flow 422 errors","items":{"properties":{"description":{"enum":["Webhook Config can't be blank","Webhook Config must include a non-blank url","Webhook Config must be a valid HTTPS URL","Webhook Config is invalid","Name is invalid","Description is invalid","Emoji is invalid","Color is invalid","Flags is invalid","Voice Type is invalid","Voice Language is invalid","Channel ID is invalid"],"example":"Webhook Config must include a non-blank url","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"PublicCallFlowUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"DomainPurchaseIntentResponse":{"example":{"data":{"confirmedAt":null,"createdAt":"2026-11-05T10:00:00Z","domain":null,"domainId":null,"emailProvider":"mailgun","expiresAt":"2026-11-05T10:10:00Z","failure":null,"id":"5b1d7c0e-8f2a-4d3b-9c6e-7a8b9c0d1e2f","name":"acme-links.com","periodInYears":1,"price":{"amountMinor":2000,"currency":"USD"},"purposes":["email","links"],"quoteId":"0f8e0d1c-4b6a-4a59-9e3f-2d1c0b9a8f7e","status":"pending"}},"properties":{"data":{"properties":{"confirmedAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"createdAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"domain":{"description":"An organization-scoped custom domain and its per-purpose setup state","example":{"apexDomain":"acme.com","createdAt":"2026-11-03T19:00:00Z","expiresAt":null,"id":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","name":"mail.acme.com","purchase":null,"purchasedAt":null,"purposes":{"email":{"provider":"mailgun","requiredDnsRecords":[],"setupState":"awaiting_dns","status":"pending","verificationRecords":[{"name":"smtp._domainkey.mail","priority":null,"ttl":null,"type":"TXT","value":"k=rsa; p=MIGfMA0..."}]},"links":{"requiredDnsRecords":[{"name":"mail","priority":null,"ttl":null,"type":"CNAME","value":"cname.vercel-dns.com"}],"setupState":"active","status":"active","verificationRecord":null}},"renew":null,"setupType":"add","status":"active","updatedAt":"2026-11-03T19:00:00Z"},"nullable":true,"properties":{"apexDomain":{"example":"acme.com","type":"string","x-struct":null,"x-validate":null},"createdAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"example":"mail.acme.com","type":"string","x-struct":null,"x-validate":null},"purchase":{"nullable":true,"properties":{"status":{"enum":["pending","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null}},"required":["status"],"type":"object","x-struct":null,"x-validate":null},"purchasedAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"purposes":{"properties":{"email":{"properties":{"provider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["status","setupState","provider","verificationRecords","requiredDnsRecords"],"title":"DomainEmailPurpose","type":"object","x-struct":null,"x-validate":null},"links":{"properties":{"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecord":{"nullable":true,"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null}},"required":["status","setupState","verificationRecord","requiredDnsRecords"],"title":"DomainLinksPurpose","type":"object","x-struct":null,"x-validate":null}},"required":["links","email"],"type":"object","x-struct":null,"x-validate":null},"renew":{"description":"Auto-renewal, only for `buy` domains","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"setupType":{"description":"`add`: caller-owned domain; `buy`: registered through Whippy; `managed`: provisioned by Whippy","enum":["add","buy","managed"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","active","cancelled","expired","deleted"],"type":"string","x-struct":null,"x-validate":null},"updatedAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","apexDomain","setupType","status","renew","purchase","purchasedAt","expiresAt","purposes","createdAt","updatedAt"],"title":"Domain","type":"object","x-struct":null,"x-validate":null},"domainId":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"emailProvider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"failure":{"nullable":true,"properties":{"code":{"description":"Safe machine code. Known values: purchase_rejected, domain_unavailable, price_changed, purchase_policy_exceeded, registrar_error, setup_timed_out, dns_misconfigured, provider_error.","example":"setup_timed_out","type":"string","x-struct":null,"x-validate":null}},"required":["code"],"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"periodInYears":{"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"price":{"properties":{"amountMinor":{"description":"Price in integer minor units (cents)","minimum":0,"type":"integer","x-struct":null,"x-validate":null},"currency":{"enum":["USD"],"type":"string","x-struct":null,"x-validate":null}},"required":["amountMinor","currency"],"title":"DomainPrice","type":"object","x-struct":null,"x-validate":null},"purposes":{"items":{"enum":["links","email"],"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"quoteId":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","confirmed","expired","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null}},"required":["id","status","name","quoteId","price","periodInYears","purposes","emailProvider","failure","domainId","domain","expiresAt","confirmedAt","createdAt"],"title":"DomainPurchaseIntent","type":"object","x-struct":null,"x-validate":null}},"title":"DomainPurchaseIntentResponse","type":"object","x-struct":null,"x-validate":null},"UpdateTeamMemberParams":{"description":"Update TeamMember Params schema","example":{"user_id":23},"properties":{"user_id":{"description":"User ID (from search_users). Required to create a team member.","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID. Optional when user_id is provided — derived from the user and organization.","type":"integer","x-struct":null,"x-validate":null}},"title":"UpdateTeamMemberParams","type":"object","x-struct":null,"x-validate":null},"UpdatePublicCallFlowResponse":{"description":"Response schema for updating a programmable Call Flow.","example":{"data":{"channel":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"color":"#FF0000","created_by_id":1,"description":"Programmable support IVR","emoji":"📞","flags":{"recordings":true},"id":"64801baf-1a32-4f0a-a425-4c8707aa3673","name":"Support Line","organization_id":"a89d65b1-8a13-432e-a56e-370d7d237bbb","updated_by_id":1,"voice_language":"en-US","voice_type":"woman","webhook_config":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"}}},"properties":{"data":{"description":"Programmable Call Flow record","example":{"channel":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"color":"#FF0000","created_by_id":1,"description":"Programmable support IVR","emoji":"📞","flags":{"recordings":true},"id":"64801baf-1a32-4f0a-a425-4c8707aa3673","name":"Support Line","organization_id":"a89d65b1-8a13-432e-a56e-370d7d237bbb","updated_by_id":1,"voice_language":"en-US","voice_type":"woman","webhook_config":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"}},"properties":{"channel":{"description":"Channel currently assigned to this Call Flow (1 channel ↔ 1 programmable\nCall Flow). `null` when none is assigned.\n","example":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"nullable":true,"properties":{"address":{"description":"Channel address","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","example":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone","example":"+15551234567","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Channel state","example":"enabled","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Channel type","example":"phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"color":{"description":"Call Flow color (hex)","example":"#FF0000","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"User ID that created the Call Flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Call Flow description","example":"Programmable support IVR","nullable":true,"type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call Flow emoji","example":"📞","nullable":true,"type":"string","x-struct":null,"x-validate":null},"flags":{"additionalProperties":true,"description":"Call Flow feature flags","example":{"recordings":true},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Call Flow ID","example":"64801baf-1a32-4f0a-a425-4c8707aa3673","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Call Flow name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"a89d65b1-8a13-432e-a56e-370d7d237bbb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"User ID that last updated the Call Flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"voice_language":{"description":"TTS voice language (BCP-47)","example":"en-US","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_type":{"description":"TTS voice type used by inline prompts","example":"woman","nullable":true,"type":"string","x-struct":null,"x-validate":null},"webhook_config":{"description":"Programmable webhook config. Required on create (`url` must be non-blank HTTPS).\nOptional `signing_api_key_id` HMAC-signs outbound POSTs (`X-Whippy-Signature`).\n","example":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"},"properties":{"signing_api_key_id":{"description":"Optional organization API key ID used to HMAC-sign outbound POSTs.\nOmit or null for unsigned delivery. When set, the key must be active\nand belong to the Call Flow's organization.\n","example":"0542653c-010a-4a29-afde-912a110fecb7","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"url":{"description":"HTTPS webhook URL that receives programmable call flow events","example":"https://integrator.example/call-flow-webhook","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","type":"string","x-struct":null,"x-validate":null}},"required":["url"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdatePublicCallFlowResponse","type":"object","x-struct":null,"x-validate":null},"SendHttpRequestAction":{"additionalProperties":false,"description":"Send HTTP Request Action params used when processing the action.","properties":{"method":{"enum":["GET","POST"],"type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Optional JSON request payload","type":"object","x-struct":null,"x-validate":null},"url":{"description":"Public HTTPS endpoint; private and internal hosts are rejected","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["method","url"],"title":"SendHttpRequestAction","type":"object","x-struct":null,"x-validate":null},"ListWorkflowRunsResponse":{"description":"Response schema for listing workflow runs.","example":{"data":[{"completed_at":"2026-07-28T14:10:08Z","id":"69312aa3-d7ac-472e-80ca-a54ea72fa739","started_at":"2026-07-28T14:10:00Z","status":"failed","workflow_id":"99b01875-dc57-45cd-a045-aefdcabf96aa","workflow_name":"Process inbound lead"}],"metadata":{"cursor_reset":false,"next_cursor":null},"total":1},"properties":{"data":{"description":"Matching workflow runs for the authenticated organization","items":{"properties":{"completed_at":{"description":"When the run completed, failed, or was filtered. Null while in progress.","example":"2026-07-28T14:10:08Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"The workflow run ID","example":"69312aa3-d7ac-472e-80ca-a54ea72fa739","format":"uuid","type":"string","x-struct":null,"x-validate":null},"started_at":{"description":"When the run started","example":"2026-07-28T14:10:00Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"status":{"description":"The workflow run status","enum":["in_progress","completed","failed","filtered"],"example":"failed","type":"string","x-struct":null,"x-validate":null},"workflow_id":{"description":"The workflow ID","example":"99b01875-dc57-45cd-a045-aefdcabf96aa","format":"uuid","type":"string","x-struct":null,"x-validate":null},"workflow_name":{"description":"The workflow display name","example":"Process inbound lead","type":"string","x-struct":null,"x-validate":null}},"required":["id","workflow_id","workflow_name","status","started_at","completed_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata. Always returned for both offset and cursor pages.\nOn offset pages, `next_cursor` bootstraps a transition to keyset\ncursor pagination.\n","properties":{"cursor_reset":{"description":"`true` when the supplied cursor could not be used as a position and\nthis page was reset to the first page; `false` otherwise.\n","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque keyset cursor for the next page. Pass it back as `cursor`.\nNull when there are no more results.\n","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total number of matching runs","example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total","metadata"],"title":"ListWorkflowRunsResponse","type":"object","x-struct":null,"x-validate":null},"FormsListResponse":{"description":"Response containing a list of forms","example":{"data":[{"created_at":"2024-01-01T10:00:00Z","created_by":{"email":"john@example.com","id":"550e8400-e29b-41d4-a716-446655440002","name":"John Doe"},"form_versions":[{"created_at":"2024-01-15T10:00:00Z","form_elements":[{"label":"Email Address","name":"email","required":true,"type":"text"}],"id":"550e8400-e29b-41d4-a716-446655440003","is_active":true,"settings":{"submit_button_text":"Submit","theme":"default"},"updated_at":"2024-01-15T10:00:00Z","version_number":2},{"created_at":"2024-01-10T10:00:00Z","form_elements":[{"label":"Email","name":"email","required":true,"type":"text"}],"id":"550e8400-e29b-41d4-a716-446655440004","is_active":false,"settings":{"submit_button_text":"Send","theme":"default"},"updated_at":"2024-01-10T10:00:00Z","version_number":1}],"id":"550e8400-e29b-41d4-a716-446655440000","is_public":true,"name":"Contact Form","organization":{"id":"550e8400-e29b-41d4-a716-446655440001","name":"Acme Corp"},"slug":"contact-form","updated_at":"2024-01-15T10:00:00Z","updated_by":{"email":"john@example.com","id":"550e8400-e29b-41d4-a716-446655440002","name":"John Doe"}}],"total":50},"properties":{"data":{"items":{"properties":{"created_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"nullable":true,"properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"form_versions":{"items":{"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"form_elements":{"description":"Form elements configuration","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Version ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"is_active":{"description":"Whether this version is active","type":"boolean","x-struct":null,"x-validate":null},"settings":{"description":"Form settings","type":"object","x-struct":null,"x-validate":null},"updated_at":{"description":"Version last update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"version_number":{"description":"Version number","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Form ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"is_public":{"description":"Whether form is public","type":"boolean","x-struct":null,"x-validate":null},"name":{"description":"Form name","type":"string","x-struct":null,"x-validate":null},"organization":{"nullable":true,"properties":{"id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"slug":{"description":"Form slug","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Last update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"nullable":true,"properties":{"email":{"description":"User email","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of forms","type":"integer","x-struct":null,"x-validate":null}},"title":"FormsListResponse","type":"object","x-struct":null,"x-validate":null},"ForbiddenErrorResponse":{"description":"Forbidden Error Response schema","example":{"errors":[{"description":"Token does not have the required scope for this action."}],"status":403},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Forbidden errors","items":{"properties":{"description":{"enum":["Token does not have the required scope for this action.","You do not have the required permissions to access this resource."],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[403],"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"ForbiddenErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Errors.Forbidden","x-validate":null},"AgentVersionNotFoundErrorResponse":{"description":"Response that occurs when the agent version record doesn't exist","example":{"errors":[{"description":"Agent version not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Agent version 404 error","items":{"description":"Single 404 error","properties":{"description":{"enum":["Agent version not found"],"example":"Agent version not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentVersionNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"CampaignUnprocessableContentAttachAutomationTemplatesErrorResponse":{"description":"List of error responses for invalid requests to attach automation templates to a campaign.\n","example":{"errors":[{"description":"Automation templates not found: 2f2a3c9e-6f0e-4c1b-9d3a-1b5e8f7c4d21"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Attach automation templates 422 errors","items":{"description":"Single 422 error","properties":{"description":{"description":"One of:\n- Missing automation templates\n- No more than 50 automation templates can be attached at once\n- Automation templates should be a list of automation template IDs\n- Automation templates not found: <IDs that are unknown, global, archived or belong to another organization>\n- Automation templates could not be attached before the campaign is preprocessed\n- Automation templates can only be attached to draft, scheduled, queued, in progress, paused or complete campaigns\n- Automation templates could not be attached\n","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CampaignUnprocessableContentAttachAutomationTemplatesErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.Errors.UnprocessableContentAttachAutomationTemplates","x-validate":null},"ContactSegmentNotFoundErrorResponse":{"description":"Contact Segment Not Found Error Response schema","example":{"errors":[{"description":"Contact segment not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Segment 404 error","items":{"properties":{"description":{"enum":["Contact segment not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"ContactSegmentNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Contacts.Segment.Errors.NotFound","x-validate":null},"ListLinks":{"example":{"data":[{"created_at":"2026-11-03T19:00:00Z","custom_card_description":"Earn competitive compensation. Click for details.","custom_card_image":{"content_type":"image/jpeg","url":"https://cdn.example.com/cards/hiring.jpg"},"custom_card_title":"Join the team","description":"Forklift hiring landing page","domain":null,"id":"dd840673-d544-44b9-99f1-f6438471d2f3","short_key":"whippy-it","short_url":"https://m.whippy.co/whippy-it","status":"active","updated_at":"2026-11-03T19:00:00Z","url":"https://whippy.ai/products/campaigns","use_custom_card":true,"utm_campaign":"hire_forklift_drivers","utm_content":"join_our_team","utm_medium":"sms","utm_source":"whippy","utm_term":"forklift"}],"metadata":{"cursor_reset":false,"next_cursor":null},"total":1},"properties":{"data":{"items":{"properties":{"created_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_card_description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"custom_card_image":{"nullable":true,"properties":{"content_type":{"type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_card_title":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"domain":{"nullable":true,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"short_key":{"type":"string","x-struct":null,"x-validate":null},"short_url":{"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"type":"string","x-struct":null,"x-validate":null},"use_custom_card":{"type":"boolean","x-struct":null,"x-validate":null},"utm_campaign":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_medium":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_source":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"utm_term":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"properties":{"cursor_reset":{"type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"title":"ListLinks","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Links.Link.ListResponse","x-validate":null},"ListCallResponse":{"description":"Response schema for listing calls.","example":{"data":[{"attachments":[{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"audio/wav","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/ddb1c6e7-dcfd-4c04-871b-07baf756a2e1/recording.wav"},{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"application/json","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/87d4004c-dd93-48a5-aa79-9d5968a3e55c/transcript.json"},{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"application/json","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/d301325b-d59a-479c-b18c-73e401e6f385/analysis.json"}],"body":"Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n","campaign_contact_id":null,"campaign_id":null,"channel_id":"510b492f-e9e0-4849-b3b3-29d9ed38f8de","contact_id":"b0ed88e2-b724-4eef-bfbf-bcce0caa9110","conversation_id":"1320a283-728e-49bc-8512-23aed49487fe","created_at":"2021-06-22T07:45:45.353788Z","delivery_status":"call_completed.user_hangup","direction":"INBOUND","from":"+14243051234","id":"c4920ece-62df-4101-a87d-8e3b5da1d03b","language":null,"metadata":{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","agent_version_id":"7efcc850-a0b6-42d5-9dc6-313dac695626","analysis":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"conference_id":null,"duration":15000,"external_resource_id":"call_ca9b7ca39178245bba7d0088a99","knowledge_base_ids":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"knowledge_base_version_ids":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"llm_id":"0cff9730-324e-4855-b014-18c7c411e576","llm_version_id":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","placeholders_data":{"full_name||Sir":"Sir"},"type":"phone","voicemail":false},"mode":"ai","sequence_id":null,"step_contact_id":null,"step_id":null,"to":"+14243055678","translated_body":null,"translation_language":null,"type":"call","updated_at":"2021-06-22T07:45:45.353788Z","user_id":null}],"metadata":{"cursor_reset":false,"next_cursor":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ"},"total":1},"properties":{"data":{"description":"List of calls","items":{"description":"Call message record","properties":{"attachments":{"description":"List of attachments belonging to the call","items":{"description":"Single call attachment","properties":{"agent_id":{"description":"ID of agent responsible for the call","example":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"content_type":{"description":"MIME type of the call attachment","example":"audio/wav","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the call attachment","example":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/9ec4284a-898f-4e80-9114-f9e55918ced4/recording.wav","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Call transcript","example":"Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n","type":"string","x-struct":null,"x-validate":null},"campaign_contact_id":{"description":"ID of the campaign contact the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"ID of the campaign the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the call belongs to","example":"510b492f-e9e0-4849-b3b3-29d9ed38f8de","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the call belongs to","example":"b0ed88e2-b724-4eef-bfbf-bcce0caa9110","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"ID of the conversation the call belongs to","example":"1320a283-728e-49bc-8512-23aed49487fe","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the call is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Call delivery status. Any string is valid.\n\nKnown values this API constructs: call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus that call's disconnection reason. That reason is not limited to the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Direction of the message","enum":["INBOUND","OUTBOUND"],"example":"INBOUND","type":"string","x-struct":null,"x-validate":null},"from":{"description":"Phone number that made the call","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call ID","example":"c4920ece-62df-4101-a87d-8e3b5da1d03b","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"ISO-639-1 code for the original language of the call transcript.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metatada":{"description":"Message metadata","example":{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","agent_version_id":"7efcc850-a0b6-42d5-9dc6-313dac695626","analysis":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"conference_id":null,"duration":15000,"external_resource_id":"call_ca9b7ca39178245bba7d0088a99","knowledge_base_ids":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"knowledge_base_version_ids":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"llm_id":"0cff9730-324e-4855-b014-18c7c411e576","llm_version_id":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","placeholders_data":{"full_name||Sir":"Sir"},"type":"phone","voicemail":false},"properties":{"agent_id":{"description":"ID of agent responsible for the call","example":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"description":"ID of agent version responsible for the call","example":"7efcc850-a0b6-42d5-9dc6-313dac695626","format":"uuid","type":"string","x-struct":null,"x-validate":null},"analysis":{"description":"A set of analysis for the call","example":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"type":"object","x-struct":null,"x-validate":null},"conference_id":{"description":"ID of the conference in the external provider in case the call was a conference call","example":"CFb24f0a87ac5301cffa0b28551ce43ed6","type":"string","x-struct":null,"x-validate":null},"duration":{"description":"Call duration in milliseconds","example":15000,"type":"integer","x-struct":null,"x-validate":null},"external_resource_id":{"description":"ID of the call in the external provider","example":"call_ca9b7ca39178245bba7d0088a99","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases in use for the call","example":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"items":{"description":"ID of knowledge base in use for the call","example":"8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"knowledge_base_version_ids":{"description":"IDs of knowledge base versions in use for the call","example":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"items":{"description":"ID of knowledge base version in use for the call","example":"056c3b9d-a589-4989-bfd9-17018ea893c2","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of llm responsible for the call","example":"0cff9730-324e-4855-b014-18c7c411e576","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"description":"ID of llm version responsible for the call","example":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_data":{"description":"Placeholders data sent to the agent for the call","example":{"full_name||Sir":"Sir"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Call type. Can be either phone or web","example":"phone","type":"string","x-struct":null,"x-validate":null},"voicemail":{"description":"Whether the call was missed and a voicemail was left","example":false,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"mode":{"description":"Mode of the message","enum":["manual","ai"],"example":"ai","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"ID of the sequence the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_contact_id":{"description":"ID of the step contact the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the sequence step the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Phone number that received the call","example":"+14243056789","type":"string","x-struct":null,"x-validate":null},"translated_body":{"description":"Translated call transcript.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"ISO-639-1 code for the language the call transcript was translated into.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the message","enum":["call"],"example":"call","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the call was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user related to the call.\n\n**For now it's always nil.**\n","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata. Returned for both cursor-paginated and offset-paginated responses. Offset responses include only `next_cursor` (an offset-to-cursor bootstrap); cursor-paginated responses also include `cursor_reset`. Paging is forward only. Offset pagination is limited to an `offset + limit` of 10,000; use `next_cursor` to page further.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total number of calls that match the search criteria","type":"integer","x-struct":null,"x-validate":null}},"title":"ListCallResponse","type":"object","x-struct":null,"x-validate":null},"SequenceListUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Sequence index (list) pagination params.","example":{"errors":[{"description":"Offset parameter is not compatible with cursor-based pagination"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Sequence list 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"example":"Offset parameter is not compatible with cursor-based pagination","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"SequenceListUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.Sequence.Errors.ListUnprocessableContent","x-validate":null},"UserResponse":{"description":"Response schema for user.","example":{"attachment":null,"channels":[{"address":"Test Company","id":"23d99420-8953-4748-95b2-fd831b424a64","name":"1 Stehr Fort","phone":"+1234567890","state":"enabled","type":"email"}],"email":"test2@example.com","id":123,"name":"Name-2","phone":"+14277777777","role":"admin","state":"enabled"},"properties":{"data":{"description":"User","items":{"properties":{"attachment":{"description":"User attachment","properties":{"content_type":{"description":"Attachment content type","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://s3.amazonaws.com/attachments/1234567890","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"channels":{"description":"List of User channels/locations","items":{"properties":{"address":{"description":"Channel address","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Channel state","example":"enabled","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Channel type","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"email":{"description":"User email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone number","type":"string","x-struct":null,"x-validate":null},"role":{"description":"User role","type":"string","x-struct":null,"x-validate":null},"state":{"description":"User state","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"UserResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Users.User.UserResponse","x-validate":null},"CreateTemplateParams":{"description":"Create Template Params","example":{"access_level":"organization","channels":["73ef52a9-c938-4895-a674-e3cb0a38f9d3","5d48c3dc-add1-4fd6-bf51-e032e857c61e"],"color":"#000000","created_by_id":1,"description":"description","emoji":"🌲","message":"template-message","title":"template-title"},"properties":{"access_level":{"description":"Template access level - \"organization\", \"location\" (same as channel), or \"user\"","type":"string","x-struct":null,"x-validate":null},"channels":{"description":"List of channel IDs to associate with a template that is set with access level \"location\". Location here is equivalent to channel.","items":{"description":"ID of a channel to associate with a template","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Template color","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user who created the template","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Template description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Template emoji","type":"string","x-struct":null,"x-validate":null},"message":{"description":"Template message","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Template title","type":"string","x-struct":null,"x-validate":null}},"title":"CreateTemplateParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Templates.Template.CreateParams","x-validate":null},"TeamUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Team requests.\n","example":{"errors":[{"description":"Organization doesn't exist"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Team 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Organization doesn't exist","Organization ID can't be blank","Organization ID is invalid","Team name can't be blank","Name can't be blank","Name length must be in the range of 1 to 255 characters","Name is invalid","Assignment Method must be one of: manual, round_robin, balanced","Locations contain invalid Location ID","Locations is invalid","Validation Type is Invalid","Team doesn't exist","Team emoji Invalid emoji","Team emoji should be at most 64 bytes","Team description should be at most 255 characters","Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.Team.Errors.UnprocessableContent","x-validate":null},"MergeContactsByIdsParamsV1":{"description":"Request schema for merging Contacts by their IDs.","example":{"from_contact_id":"5e8394bd-ca46-462a-8d93-00a90e82ed94","to_contact_id":"ab63330d-fd98-4110-a240-70b4cffd5a14"},"properties":{"from_contact_id":{"description":"ID of the contact to be merged into the main contact.","example":"b5d19e61-fd99-4d69-8fbb-403e6e0d2613","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to_contact_id":{"description":"ID of the contact in which the merge will be performed","example":"b2563897-e681-42d5-b75e-f1959ae85c53","format":"uuid","type":"string","x-struct":null,"x-validate":null},"update_name":{"default":false,"description":"Whether to update the name of the main contact with the name of the merged contact.\nDefault is false.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["from_contact_id","to_contact_id"],"title":"MergeContactsByIdsParamsV1","type":"object","x-struct":null,"x-validate":null},"UpdateWorkScheduleResponse":{"description":"Update WorkSchedule Response schema","example":{"data":{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":"df1e4da2-645f-47a3-aac9-e4016195c4a4","team_member_id":null,"timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}},"properties":{"data":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateWorkScheduleResponse","type":"object","x-struct":null,"x-validate":null},"CustomEventBulkUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Custom Event bulk requests.\n","example":{"errors":[{"description":"Missing events field"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Event bulk 422 errors","items":{"description":"Single 422 error with optional event index","properties":{"description":{"description":"Error description","example":"Cannot submit more than 1000 events at once","type":"string","x-struct":null,"x-validate":null},"event_index":{"description":"The index of the event in the bulk request that has this error (0-based)","example":0,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomEventBulkUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomEvents.CustomEvent.Errors.BulkUnprocessableContent","x-validate":null},"UploadConversationsParams":{"description":"Request schema for bulk creating conversations with messages.","example":{"conversations":[{"body":"Give yourself a little present today!","created_at":"2021-06-22T07:45:45","direction":"OUTBOUND","from":"+14243051234","language":"en","to":"+14243055678","translated_body":"¡Date un pequeño regalo hoy!","translation_language":"es","type":"sms","user_id":1}]},"properties":{"conversations":{"description":"An array of messages from various conversation.","items":{"description":"Conversation Data.","example":{"body":"Give yourself a little present today!","created_at":"2021-06-22T07:45:45","direction":"OUTBOUND","from":"+14243051234","language":"en","to":"+14243055678","translated_body":"¡Date un pequeño regalo hoy!","translation_language":"es","type":"sms","user_id":1},"properties":{"body":{"description":"Message","example":"Give yourself a little present today!","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the conversation is created at, in ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Message Direction, either INBOUND or OUTBOUND.","enum":["INBOUND","OUTBOUND"],"example":"INBOUND","type":"string","x-struct":null,"x-validate":null},"from":{"description":"A Contact or Channel Phone Number.","example":"+14243055678","type":"string","x-struct":null,"x-validate":null},"language":{"description":"Message language.","example":"en","type":"string","x-struct":null,"x-validate":null},"to":{"description":"A Contact or Channel Phone Number.","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"translated_body":{"description":"Translated message body.","example":"¡Date un pequeño regalo hoy!","type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"Translation language.","example":"es","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Message Type.","example":"sms","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User Id.","example":1,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":10000,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"title":"UploadConversationsParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Conversations.Conversation.UploadParams","x-validate":null},"UpdateAgentParams":{"description":"Request schema for updating an agent draft. Omitted fields are preserved.","example":{"llm_id":"123e4567-e89b-12d3-a456-426614174000","settings":{"voice_id":"T5cu6IU92Krx4mh43osx"}},"properties":{"description":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model. Changing the post call analysis model requires permission unless the new model is gpt-5.6-luna.","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateAgentParams","type":"object","x-struct":null,"x-validate":null},"SearchKnowledgeBaseVersionsResponse":{"additionalProperties":false,"description":"Response schema for searching knowledge base versions.","example":{"data":[{"created_at":"2026-08-07T09:00:00Z","description":"Answers common product questions","embedding_status":"completed","id":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","name":"Product FAQ","published_at":"2026-08-07T10:00:00Z"}],"metadata":{"cursor_reset":false,"next_cursor":null}},"properties":{"data":{"description":"List of knowledge base versions","items":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":false,"description":"Pagination metadata.","properties":{"cursor_reset":{"description":"Whether an invalid cursor was reset to the first page","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Opaque cursor for the next page","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["next_cursor","cursor_reset"],"type":"object","x-struct":null,"x-validate":null}},"required":["data","metadata"],"title":"SearchKnowledgeBaseVersionsResponse","type":"object","x-struct":null,"x-validate":null},"DomainPurchaseQuote":{"properties":{"available":{"type":"boolean","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"periodInYears":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"price":{"nullable":true,"properties":{"amountMinor":{"description":"Price in integer minor units (cents)","minimum":0,"type":"integer","x-struct":null,"x-validate":null},"currency":{"enum":["USD"],"type":"string","x-struct":null,"x-validate":null}},"required":["amountMinor","currency"],"title":"DomainPrice","type":"object","x-struct":null,"x-validate":null},"quoteId":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["name","available","quoteId","price","periodInYears","expiresAt"],"title":"DomainPurchaseQuote","type":"object","x-struct":null,"x-validate":null},"CreateFormParams":{"description":"Create a form. Version 1 is published immediately. Omit form_elements/settings for a minimal form, then edit the draft and publish.","properties":{"endings":{"description":"Alternate ending screens referenced by end_form actions.","items":{"description":"Alternate ending screen (builder Endings panel), referenced by `end_form` actions via `ending_id`.\nDistinct from settings.thank_you_* (the default thank-you when ending_id is null/omitted).\ntitle / description / redirect_url support {{…}} piping. redirect_url must be absolute http(s).\nredirect_delay_ms (0–30000) holds the copy on screen before navigating — omit/0 redirects immediately.\n","example":{"description":"Thanks for taking the quiz.","id":"ending-pass","redirect_delay_ms":2000,"redirect_url":"https://example.com/thanks","title":"Nice work!"},"properties":{"description":{"description":"Ending body copy (builder Description). Supports {{…}} piping.","example":"You finished the quiz.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Stable ending id referenced by logic actions end_form.ending_id.","example":"ending-pass","type":"string","x-struct":null,"x-validate":null},"redirect_delay_ms":{"description":"Milliseconds to show title/description before following redirect_url (builder delay).","example":2000,"maximum":30000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"redirect_url":{"description":"Optional absolute http(s) URL to open after this ending (builder Redirect). Query string may use {{…}} piping.","example":"https://example.com/next","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Ending headline (builder Title). Supports {{…}} piping.","example":"Nice work!","type":"string","x-struct":null,"x-validate":null}},"required":["id"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"form_elements":{"description":"Ordered form elements. Types must match GET /v1/forms/field-types.","items":{"example":{"id":"q-capital","label":"Capital of France?","properties":{"grading":{"correct_answers":["Paris"],"point_value":1},"options":[{"id":"a","value":"Paris"},{"id":"b","value":"London"}]},"required":true,"type":"radio-buttons"},"properties":{"branch_only":{"description":"Off the main path — asked only when a rule jumps here.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"description":{"description":"Helper text (supports {{…}} piping)","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Unique element ID","example":"q-capital","type":"string","x-struct":null,"x-validate":null},"label":{"description":"Element label (supports {{…}} piping)","example":"Capital of France?","type":"string","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Type-specific properties — mirrors the builder Properties panel. Always send a map (`{}` ok).\n\nShared / common: placeholder, min/max, prefix/suffix, alignment, content, options, grading (quiz).\nAddress: address_fields{addressLine1…country → {visible, required}}, googlePlacesApiKey.\nDate/time: availability{min_date,max_date,blocked_*,*_time_ranges,time_step_minutes}, dateFormat.\nLinear scale: scale_size (3–10), start_label, end_label, middle_label.\nFile upload: maxFileSize (MB in builder), allowedFileTypes, multiple.\nAPI Request (`http-request`): method, url, query, headers, body_template, connection_id, timeout_ms,\nresponse_format, items_path, max_items, response_mapping, display, on_error, ending_id, empty_state_text\n— same groups as the builder HTTP panel. Runtime enums and per-type required lists also live on\nGET /v1/forms/field-types (`property_shape` / `grading_shape` / `option_shape` per type).\nExtra keys are allowed for type-specific fields not listed here; unknown keys under nested objects\nthat reject unknowns (e.g. display.item_template, settings.quiz) still fail validation.\n","example":{"display":{"item_template":{"body":"{{item.description}}","title":"{{item.title}}"},"mode":"select_one","value_fields":["id","title","description"]},"empty_state_text":"No films matched.","items_path":"$","max_items":20,"method":"GET","on_error":"continue","response_format":"json","response_mapping":[{"path":"$.length","variable":"film_count"}],"url":"https://api.sampleapis.com/movies/animation"},"properties":{"response_mapping":{"description":"Map response paths into `{{steps.<id>.<variable>}}`.","items":{"description":"Maps a response JSONPath into `{{steps.<element_id>.<variable>}}`.","example":{"path":"$.length","variable":"drink_count"},"properties":{"path":{"description":"JSONPath subset (e.g. $.length, $.Job[*].JobTitle).","example":"$.length","type":"string","x-struct":null,"x-validate":null},"variable":{"description":"Variable name exposed under `{{steps.<id>.<variable>}}`.","example":"drink_count","pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string","x-struct":null,"x-validate":null}},"required":["variable","path"],"type":"object","x-struct":null,"x-validate":null},"maxItems":25,"type":"array","x-struct":null,"x-validate":null},"imageUrl":{"type":"string","x-struct":null,"x-validate":null},"end_label":{"description":"Required for linear-scale (right).","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Wall-clock timeout (default 5000).","example":5000,"maximum":15000,"minimum":100,"type":"integer","x-struct":null,"x-validate":null},"display":{"description":"What the respondent sees (builder: Display section).\n- silent — variables only, nothing rendered\n- display — read-only cards\n- select_one / select_many — pick becomes the step answer (requires value_fields + items_path)\n","example":{"item_template":{"body":"{{item.description}}","image_url":"{{item.image}}","subtitle":"Ingredients: {{item.ingredients}}","title":"{{item.title}}"},"mode":"select_one","value_fields":["id","title","description","ingredients","image"]},"properties":{"item_template":{"additionalProperties":false,"description":"Card template for display/select modes. Tokens use `{{item.<field>}}`. title is required when results are shown. Allowed keys only: title, subtitle, body, link_url, link_label, image_url.","example":{"body":"{{item.description}}","image_url":"{{item.image}}","subtitle":"{{item.ingredients}}","title":"{{item.title}}"},"properties":{"body":{"description":"Rendered as sanitized HTML.","example":"{{item.description}}","type":"string","x-struct":null,"x-validate":null},"image_url":{"example":"{{item.image}}","type":"string","x-struct":null,"x-validate":null},"link_label":{"example":"View details","type":"string","x-struct":null,"x-validate":null},"link_url":{"example":"{{item.detailsUrl}}","type":"string","x-struct":null,"x-validate":null},"subtitle":{"example":"Ingredients: {{item.ingredients}}","type":"string","x-struct":null,"x-validate":null},"title":{"example":"{{item.title}}","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"mode":{"description":"Default silent when omitted.","enum":["silent","display","select_one","select_many"],"example":"select_one","type":"string","x-struct":null,"x-validate":null},"value_fields":{"description":"Required for select_one/select_many. Whitelist of item keys stored on the answer.","example":["id","title","description","ingredients","image"],"items":{"type":"string","x-struct":null,"x-validate":null},"maxItems":12,"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"placeholder":{"example":"Type here…","type":"string","x-struct":null,"x-validate":null},"query":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Query string map. Values may use {{answers.*}}.","example":{"zip":"{{answers.zip || \"30301\"}}"},"type":"object","x-struct":null,"x-validate":null},"response_format":{"description":"Parse hint (default auto).","enum":["auto","json","xml"],"example":"json","type":"string","x-struct":null,"x-validate":null},"middle_label":{"description":"Optional linear-scale center label.","type":"string","x-struct":null,"x-validate":null},"on_error":{"description":"Failure behaviour (default continue).","enum":["continue","block","end_form"],"example":"block","type":"string","x-struct":null,"x-validate":null},"googlePlacesApiKey":{"description":"Address autocomplete (builder).","type":"string","x-struct":null,"x-validate":null},"allowedFileTypes":{"description":"file-upload MIME/extension allow-list (e.g. image/*, application/pdf).","example":["image/*","application/pdf"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"ending_id":{"description":"Ending id when on_error=end_form (null = default thank-you).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_align":{"enum":["left","center","right"],"type":"string","x-struct":null,"x-validate":null},"fullTermsText":{"description":"terms: full text shown in popup.","type":"string","x-struct":null,"x-validate":null},"maxFileSize":{"description":"file-upload max size in MB (builder default 5).","example":5,"type":"number","x-struct":null,"x-validate":null},"validateOnBlur":{"type":"boolean","x-struct":null,"x-validate":null},"minDate":{"description":"Legacy fixed min date (YYYY-MM-DD). Prefer availability.min_date.","type":"string","x-struct":null,"x-validate":null},"availability":{"description":"Availability for `date`, `date-range`, and `time` (builder Availability panel).\nPrefer this over legacy top-level `minDate`/`maxDate` strings.\nWeekdays use JS convention: 0=Sunday … 6=Saturday.\n","example":{"blocked_weekdays":[0,6],"max_date":{"offset":30,"type":"relative","unit":"days"},"min_date":{"offset":0,"type":"relative","unit":"days"},"time_step_minutes":15},"properties":{"allowed_time_ranges":{"description":"time elements: opening hours. Empty = any time.","items":{"description":"Half-open time window (`end` is exclusive). Overnight ranges allowed.","example":{"end":"17:00","id":"hours-1","start":"09:00"},"properties":{"end":{"description":"HH:MM (exclusive)","example":"17:00","type":"string","x-struct":null,"x-validate":null},"id":{"example":"hours-1","type":"string","x-struct":null,"x-validate":null},"start":{"description":"HH:MM","example":"09:00","type":"string","x-struct":null,"x-validate":null}},"required":["id","start","end"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"blocked_dates":{"description":"Specific YYYY-MM-DD dates that cannot be selected.","example":["2026-12-25"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"blocked_time_ranges":{"description":"time elements: closures inside allowed hours (e.g. lunch).","items":{"description":"Half-open time window (`end` is exclusive). Overnight ranges allowed.","example":{"end":"17:00","id":"hours-1","start":"09:00"},"properties":{"end":{"description":"HH:MM (exclusive)","example":"17:00","type":"string","x-struct":null,"x-validate":null},"id":{"example":"hours-1","type":"string","x-struct":null,"x-validate":null},"start":{"description":"HH:MM","example":"09:00","type":"string","x-struct":null,"x-validate":null}},"required":["id","start","end"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"blocked_weekdays":{"description":"Weekdays that cannot be selected (0=Sun … 6=Sat).","example":[0,6],"items":{"maximum":6,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"max_date":{"description":"Calendar boundary for availability.min_date / max_date (flat shape — no oneOf).\n`type=fixed` → set `date` (YYYY-MM-DD). `type=relative` → set `offset` + `unit`.\n","example":{"offset":0,"type":"relative","unit":"days"},"properties":{"date":{"description":"YYYY-MM-DD when type=fixed.","example":"2026-12-31","type":"string","x-struct":null,"x-validate":null},"offset":{"description":"Signed day count from today when type=relative (negative = before today).","example":7,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["fixed","relative"],"example":"relative","type":"string","x-struct":null,"x-validate":null},"unit":{"description":"Relative unit (business_days skip weekends + blocked_dates).","enum":["days","business_days"],"example":"days","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},"min_date":{"description":"Calendar boundary for availability.min_date / max_date (flat shape — no oneOf).\n`type=fixed` → set `date` (YYYY-MM-DD). `type=relative` → set `offset` + `unit`.\n","example":{"offset":0,"type":"relative","unit":"days"},"properties":{"date":{"description":"YYYY-MM-DD when type=fixed.","example":"2026-12-31","type":"string","x-struct":null,"x-validate":null},"offset":{"description":"Signed day count from today when type=relative (negative = before today).","example":7,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["fixed","relative"],"example":"relative","type":"string","x-struct":null,"x-validate":null},"unit":{"description":"Relative unit (business_days skip weekends + blocked_dates).","enum":["days","business_days"],"example":"days","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},"time_step_minutes":{"description":"time elements: picker increment (default 1).","enum":[1,5,10,15,30,60],"example":15,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"max_items":{"description":"Cap on returned items (default 25).","example":20,"maximum":100,"type":"integer","x-struct":null,"x-validate":null},"start_label":{"description":"Required for linear-scale (left).","type":"string","x-struct":null,"x-validate":null},"defaultCountry":{"description":"Phone default country code.","example":"US","type":"string","x-struct":null,"x-validate":null},"videoSource":{"enum":["youtube","vimeo","loom"],"type":"string","x-struct":null,"x-validate":null},"dateFormat":{"description":"date-range display format (builder).","example":"MM/DD/YYYY","type":"string","x-struct":null,"x-validate":null},"address_fields":{"description":"Address subfield controls (builder: Address fields). Keys are camelCase:\naddressLine1, addressLine2, city, state, zipCode, country.\nAbsent map = historical default (all shown; line 1 / city / country required).\n","example":{"addressLine1":{"required":true,"visible":true},"addressLine2":{"required":false,"visible":true},"city":{"required":true,"visible":true},"country":{"required":true,"visible":true},"state":{"required":false,"visible":true},"zipCode":{"required":false,"visible":true}},"properties":{"addressLine1":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"addressLine2":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"city":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"country":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"state":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"zipCode":{"description":"Per-part visibility and required flag (builder: Address fields).","example":{"required":true,"visible":true},"properties":{"required":{"description":"Required when the address question itself is required.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"visible":{"description":"Show this part. At least one address part must stay visible.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description_align":{"enum":["left","center","right"],"type":"string","x-struct":null,"x-validate":null},"content":{"description":"Rich/plain content for text/heading elements.","type":"string","x-struct":null,"x-validate":null},"multiple":{"description":"file-upload allow multiple.","type":"boolean","x-struct":null,"x-validate":null},"videoEmbedCode":{"description":"Legacy embed; prefer videoUrl + videoSource.","type":"string","x-struct":null,"x-validate":null},"imageSource":{"enum":["url","upload"],"type":"string","x-struct":null,"x-validate":null},"scale_size":{"description":"Required for linear-scale (builder: 3–10 points).","example":5,"maximum":10,"minimum":3,"type":"integer","x-struct":null,"x-validate":null},"externalLink":{"description":"terms: optional external URL.","type":"string","x-struct":null,"x-validate":null},"countryCode":{"example":"US","type":"string","x-struct":null,"x-validate":null},"body_template":{"description":"POST/PUT/PATCH body. Requires Content-Type in headers when set.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"method":{"description":"API Request method (default GET).","enum":["GET","POST","PUT","PATCH","DELETE"],"example":"GET","type":"string","x-struct":null,"x-validate":null},"min":{"description":"Number/slider/rating lower bound.","type":"number","x-struct":null,"x-validate":null},"allowHalf":{"description":"star-rating half stars.","type":"boolean","x-struct":null,"x-validate":null},"step":{"description":"Number/slider step.","example":1,"type":"number","x-struct":null,"x-validate":null},"headers":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Request headers. Values may use {{answers.*}}. Do not put secrets here — use connection_id.","example":{"Accept":"application/json"},"type":"object","x-struct":null,"x-validate":null},"videoUrl":{"type":"string","x-struct":null,"x-validate":null},"empty_state_text":{"description":"Copy when the fetch returns no items or continues after error.","example":"No films matched.","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Required for http-request. HTTPS. Host must be literal (no {{…}} in authority). Path/query may use {{answers.*}}.","example":"https://api.sampleapis.com/movies/animation","type":"string","x-struct":null,"x-validate":null},"termsText":{"description":"terms: short checkbox label.","type":"string","x-struct":null,"x-validate":null},"prefix":{"example":"$","type":"string","x-struct":null,"x-validate":null},"maxDate":{"description":"Legacy fixed max date (YYYY-MM-DD). Prefer availability.max_date.","type":"string","x-struct":null,"x-validate":null},"timeFormat":{"description":"Legacy time display format.","type":"string","x-struct":null,"x-validate":null},"suffix":{"example":"yrs","type":"string","x-struct":null,"x-validate":null},"max":{"description":"Number/slider/rating upper bound (also rating stars).","type":"number","x-struct":null,"x-validate":null},"items_path":{"description":"JSONPath to the items list. Required for display/select modes.","example":"$","type":"string","x-struct":null,"x-validate":null},"options":{"description":"Required for select, radio-buttons, and multi-select.","items":{"description":"`id` is the authoring identity. Submitted answers and logic clauses use `value`. Optional `label` is display text (may contain {{…}} piping).","example":{"id":"opt-yes","value":"Yes"},"properties":{"id":{"example":"opt-yes","type":"string","x-struct":null,"x-validate":null},"label":{"example":"Yes","nullable":true,"type":"string","x-struct":null,"x-validate":null},"value":{"example":"Yes","type":"string","x-struct":null,"x-validate":null}},"required":["id","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"captchaSiteKey":{"type":"string","x-struct":null,"x-validate":null},"defaultValue":{"description":"Default for rating/slider.","type":"number","x-struct":null,"x-validate":null},"stars":{"description":"star-rating count (default 5).","example":5,"type":"integer","x-struct":null,"x-validate":null},"label_align":{"enum":["left","center","right"],"type":"string","x-struct":null,"x-validate":null},"connection_id":{"description":"Org form_connection id. Server injects credentials; templates must not name secrets.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"grading":{"additionalProperties":false,"description":"Quiz grading for choice elements (`radio-buttons`, `select`, `multi-select`) only.\nIgnored at score time unless `settings.quiz.is_quiz` is true.\n`correct_answers` are option `value`s (not option ids).\nRadio/select: any listed value is correct. Multi-select: selected set must match exactly\nunless `partial_credit` is true. Public show/submit redact this object.\n","example":{"correct_answers":["Paris"],"correct_feedback":"Correct!","incorrect_feedback":"Capital of France.","point_value":1},"properties":{"correct_answers":{"description":"Option value strings that count as correct.","example":["Paris"],"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"correct_feedback":{"description":"Shown when the answer is fully correct and `show_feedback_to_respondent` is true.","example":"Correct!","nullable":true,"type":"string","x-struct":null,"x-validate":null},"incorrect_feedback":{"description":"Shown when the answer is wrong or partial and feedback is enabled.","example":"Not quite.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"partial_credit":{"description":"Multi-select only. Each correct option earns an equal share; wrong options remove a share.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"point_value":{"description":"Non-negative integer points awarded when the answer is correct.","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"required":["point_value","correct_answers"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"required":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Element type. Must match GET /v1/forms/field-types.","enum":["input","email","phone","url","number","address","text-area","select","multi-select","check-box","radio-buttons","linear-scale","slider","rating","star-rating","date","date-range","time","file-upload","signature","captcha","terms","http-request","heading-1","heading-2","heading-3","text","divider","image","video"],"example":"radio-buttons","type":"string","x-struct":null,"x-validate":null}},"required":["id","type"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"is_public":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"logic":{"description":"Conditional logic rules. Combinators: and, or. Actions: jump_to, show, hide, set_variable, end_form.","items":{"description":"Evaluated when the walk reaches `trigger_element_id`. Multiple rules may share a trigger;\nonly the first matching rule in array order fires. Do not use `element_id` — use `trigger_element_id`.\nSee GET /v1/forms/field-types `logic_rule_shape`.\n","example":{"actions":[{"target":"fetch-animation","type":"jump_to"}],"conditions":{"clauses":[{"field":"interest","operator":"equals","value":"Animation"}],"combinator":"and"},"id":"rule-1","trigger_element_id":"interest"},"properties":{"actions":{"items":{"description":"Use `type` (not `action_type`). Required fields by type:\n- jump_to / show / hide → `target` (element id)\n- end_form → `ending_id` (ending id, or null/omit for default thank-you)\n- set_variable → `variable` + `value` (number|string); optional `op` set|add|subtract\n","example":{"ending_id":"ending-pass","type":"end_form"},"properties":{"ending_id":{"description":"Ending id for end_form. Null/omit = default thank-you.","example":"ending-pass","nullable":true,"type":"string","x-struct":null,"x-validate":null},"op":{"enum":["set","add","subtract"],"example":"set","type":"string","x-struct":null,"x-validate":null},"target":{"description":"Element id for jump_to / show / hide","example":"q-followup","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["jump_to","show","hide","set_variable","end_form"],"example":"end_form","type":"string","x-struct":null,"x-validate":null},"value":{"description":"set_variable value (number or string).","example":1,"x-struct":null,"x-validate":null},"variable":{"description":"Name written to {{vars.*}}","example":"score_bonus","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"conditions":{"description":"Must be a map (not a list). clauses is a non-empty list.","example":{"clauses":[{"field":"q-capital","operator":"equals","value":"Paris"}],"combinator":"and"},"properties":{"clauses":{"items":{"description":"`field` is an element id (usually the trigger or an earlier answer). `value` is required except for unary operators always / is_answered / is_not_answered. `is_one_of` requires a list value.","example":{"field":"q-capital","operator":"equals","value":"Paris"},"properties":{"field":{"example":"q-capital","type":"string","x-struct":null,"x-validate":null},"operator":{"enum":["always","equals","not_equals","contains","not_contains","greater_than","less_than","is_answered","is_not_answered","is_one_of"],"example":"equals","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Comparison value. String/number/boolean, or a list for is_one_of.","example":"Paris","x-struct":null,"x-validate":null}},"required":["field","operator"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},"combinator":{"enum":["and","or"],"example":"and","type":"string","x-struct":null,"x-validate":null}},"required":["combinator","clauses"],"type":"object","x-struct":null,"x-validate":null},"id":{"example":"rule-pass","type":"string","x-struct":null,"x-validate":null},"trigger_element_id":{"example":"q-capital","type":"string","x-struct":null,"x-validate":null}},"required":["id","trigger_element_id","conditions","actions"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"example":"Contact Form","type":"string","x-struct":null,"x-validate":null},"notification_emails":{"items":{"format":"email","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"response_as_inbound_message":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"settings":{"description":"Complete form settings document. PUT /draft replaces this map — round-trip GET /v1/forms/:id.\n`appearance` is required when settings are sent. Nested objects are validated; invented keys\nunder `chat` / `quiz` are rejected. Correct answers are on elements (`properties.grading`), not here.\n","example":{"appearance":{"background_color":"#ffffff","button_color":"#111827","button_text_color":"#ffffff","description_color":"#6b7280","form_style":"default","label_color":"#111827"},"quiz":{"is_quiz":true,"show_feedback_to_respondent":true,"show_score_to_respondent":true},"submit_button_text":"Submit","thank_you_description":"Your answers were recorded.","thank_you_title":"Thanks!"},"properties":{"appearance":{"description":"Required when settings are sent. Colors are #RGB or #RRGGBB hex.","example":{"background_color":"#ffffff","button_color":"#111827","button_text_color":"#ffffff","description_color":"#6b7280","form_style":"default","label_color":"#111827"},"properties":{"background_color":{"example":"#ffffff","type":"string","x-struct":null,"x-validate":null},"button_color":{"example":"#000000","type":"string","x-struct":null,"x-validate":null},"button_text_color":{"example":"#ffffff","type":"string","x-struct":null,"x-validate":null},"description_color":{"example":"#666666","type":"string","x-struct":null,"x-validate":null},"form_style":{"description":"Public filler layout. Legacy alias `conversational` is accepted and stored as step_by_step.","enum":["default","step_by_step","chat"],"example":"default","type":"string","x-struct":null,"x-validate":null},"label_color":{"example":"#333333","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"chat":{"additionalProperties":false,"description":"Optional chatbot branding when `appearance.form_style` is `chat`.\nOnly these keys are accepted — unknown keys are rejected. Legacy aliases such as\ntyping_indicator / welcome_message / show_avatar are ignored on save for draft round-trips.\n","properties":{"accent_color":{"example":"#2563eb","type":"string","x-struct":null,"x-validate":null},"bot_avatar_url":{"example":"https://example.com/bot.png","type":"string","x-struct":null,"x-validate":null},"bot_bubble_color":{"example":"#f3f4f6","type":"string","x-struct":null,"x-validate":null},"bot_name":{"example":"Quiz Bot","type":"string","x-struct":null,"x-validate":null},"message_delay_ms":{"description":"Delay between bot messages (0–10000).","example":400,"maximum":10000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"show_typing_indicator":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"use_theme_colors":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"user_bubble_color":{"example":"#2563eb","type":"string","x-struct":null,"x-validate":null},"user_bubble_text_color":{"example":"#ffffff","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"collection":{"description":"Progress and confirmation-email flags. Subject/body/format/design are authoring-only.\nThe public form returns `needs_confirmation_email` when the respondent must supply an address.\n","properties":{"confirmation_email_body":{"example":"We received your response.","type":"string","x-struct":null,"x-validate":null},"confirmation_email_design":{"additionalProperties":true,"description":"Optional rich-email design document (map).","nullable":true,"type":"object","x-struct":null,"x-validate":null},"confirmation_email_format":{"enum":["html","plain"],"example":"html","type":"string","x-struct":null,"x-validate":null},"confirmation_email_subject":{"example":"Thanks for submitting","type":"string","x-struct":null,"x-validate":null},"require_confirmation_email":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"send_confirmation_email":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"show_progress_bar":{"example":true,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"quiz":{"additionalProperties":false,"description":"Quiz flags. `is_quiz` false/omitted means the form is not graded.\nCorrect answers live on choice elements at `properties.grading` (not here).\nPublic submit includes `quiz.score`/`quiz.max_score` only when `show_score_to_respondent` is true,\nand `quiz.questions` (feedback) only when `show_feedback_to_respondent` is true.\nWhen `shuffle_questions` is true but the form has logic rules or answer/step dependencies,\nquestion order remains unchanged (shuffle is skipped, not rejected).\n","example":{"is_quiz":true,"show_feedback_to_respondent":true,"show_score_to_respondent":true,"shuffle_options":false,"shuffle_questions":false},"properties":{"is_quiz":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"show_feedback_to_respondent":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"show_score_to_respondent":{"example":true,"type":"boolean","x-struct":null,"x-validate":null},"shuffle_options":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"shuffle_questions":{"example":false,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"redirect_url":{"description":"Optional post-submit redirect. Must be absolute http(s) when set.","example":"https://example.com/thanks","type":"string","x-struct":null,"x-validate":null},"submit_button_text":{"example":"Submit","type":"string","x-struct":null,"x-validate":null},"thank_you_description":{"example":"You scored well — check your results above.","type":"string","x-struct":null,"x-validate":null},"thank_you_description_align":{"enum":["left","center","right"],"example":"left","type":"string","x-struct":null,"x-validate":null},"thank_you_title":{"example":"Thanks!","type":"string","x-struct":null,"x-validate":null},"thank_you_title_align":{"enum":["left","center","right"],"example":"left","type":"string","x-struct":null,"x-validate":null}},"required":["appearance"],"type":"object","x-struct":null,"x-validate":null},"slug":{"example":"contact-form","type":"string","x-struct":null,"x-validate":null},"submission_notification_enabled":{"example":false,"type":"boolean","x-struct":null,"x-validate":null},"tags":{"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"variables":{"description":"Declared {{params.*}} / {{vars.*}} keys for piping.","items":{"description":"Declared URL param or calculated key for {{params.*}} / {{vars.*}}. Answer/step tokens come from elements — list via GET /v1/variables?form_id= after authoring.","example":{"default":"web","key":"utm_source","source":"param"},"properties":{"default":{"description":"Optional string, number, or null default.","example":"web","nullable":true,"x-struct":null,"x-validate":null},"key":{"example":"utm_source","type":"string","x-struct":null,"x-validate":null},"source":{"enum":["param","calculated"],"example":"param","type":"string","x-struct":null,"x-validate":null}},"required":["key","source"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["name"],"title":"CreateFormParams","type":"object","x-struct":null,"x-validate":null},"DomainError":{"example":{"errors":[{"code":"intent_expired","description":"The purchase intent has expired."}],"status":409},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"enum":["domain_not_purchasable","domain_read_only","domain_unavailable","idempotency_key_required","idempotency_key_reused","intent_already_confirmed","intent_cancelled","intent_expired","intent_not_found","invalid_email_provider","invalid_purposes","not_found","nothing_to_retry","price_changed","purchase_not_permitted","purchase_policy_exceeded","quote_expired","quote_not_found","renew_not_supported","update_required"],"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"required":["code","description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[403,404,409,422],"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"DomainError","type":"object","x-struct":null,"x-validate":null},"WorkflowConnectionUnprocessableContent":{"example":{"errors":[{"description":"limit must be 100 or less"}]},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null}},"title":"WorkflowConnectionUnprocessableContent","type":"object","x-struct":null,"x-validate":null},"RunAgentTestSuiteResponse":{"example":{"data":{"batch_id":"6f0c8f0e-3b8d-4f50-9a77-3d7c2f5a9b10","runs":[],"skipped":[]}},"properties":{"data":{"properties":{"batch_id":{"description":"Null when nothing was queued","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"runs":{"items":{"additionalProperties":true,"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"skipped":{"items":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"code":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"RunAgentTestSuiteResponse","type":"object","x-struct":null,"x-validate":null},"CreateCustomObjectRecordResponse":{"description":"Response schema for creating Custom Object Records.","example":{"data":{"associated_resource_id":"cc6a752a-fa41-43d8-901a-1bedd59b1816","associated_resource_type":"contact","created_at":"2023-07-28T12:13:45","custom_object_id":"a1736c5c-59ed-473a-9335-0b5bd8726595","external_id":"12345-d7a3","id":"9384c91d-8d7a-43ee-8836-6b212f2650ac","key":"contact_address","label":"Contact Address","properties":{"address":{"state":"NY","street":"123 Main St"},"city":"New York","notes":["note 1","note 2"]},"updated_at":"2023-07-28T12:13:45"}},"properties":{"data":{"properties":{"associated_resource_id":{"description":"The ID of the associated resource","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"associated_resource_type":{"description":"The type of the associated resource","enum":["contact","conversation","message","tag","contact_tag","campaign_contact","step_contact"],"example":"contact","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"The date and time the Custom Object Record was inserted","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_object_id":{"description":"The ID of the Custom Object","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"A unique ID that can be used to identify the Custom Object Record","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Custom Object Record","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Object in snake case","example":"contact_details","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Object","example":"Contact Details","type":"string","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"The properties of the Custom Object Record in key-value pairs, where the key is the Custom Property key and the value is the value of the Custom Property","example":{"address":{"state":"NY","street":"123 Main St"},"city":"New York","notes":["note 1","note 2"]},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Object Record was updated","example":"2023-07-27T14:49:06","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateCustomObjectRecordResponse","type":"object","x-struct":null,"x-validate":null},"CreateTestScenarioRequest":{"description":"Creates a saved test and an editable draft. The definition may be incomplete.\nDo not send definition fields together with initialize_from. Creation from initialize_from queues one reproduction run unless reproduce is false; otherwise creation does not execute the test.\nThe same object may be wrapped in agent_test.\n","properties":{"agent_ids":{"description":"Omission preserves links. An empty list clears them. Null is invalid.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"nullable":false,"type":"array","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft":{"description":"Optional nested definition. Top-level definition fields are equivalent.","properties":{"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maximum_turns":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_policy":{"description":"Which agent configuration this definition runs. This is not the test's draft or published state.","properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"initialize_from":{"description":"Copies suggested content into the saved draft. Supplying sources does not initialize content.\nWhen sources is omitted, the import source is recorded as evidence.\n","properties":{"feedback":{"description":"What the submitter said about the source conversation. Send skipped true to save\nwithout a description. Send skipped false with what_went_wrong to feed generation.\n","properties":{"skipped":{"type":"boolean","x-struct":null,"x-validate":null},"what_went_wrong":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"reproduce":{"default":true,"description":"Queue one run of the new draft against the agent and LLM versions that handled the source. It should fail; a pass means the scenario does not capture the problem yet.","type":"boolean","x-struct":null,"x-validate":null},"test_type":{"default":"simulation","enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"turn_index":{"description":"Required for next_reply. One-based user turn.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maximum_turns":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"provenance":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_policy":{"description":"Which agent configuration this definition runs. This is not the test's draft or published state.","properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateTestScenarioRequest","type":"object","x-struct":null,"x-validate":null},"ChannelBadREquestErrorResponse":{"description":"Channel Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Channel 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"ChannelBadREquestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Channels.Channel.Errors.BadRequest","x-validate":null},"ListWorkflowsResponse":{"description":"Response schema for listing workflows.","example":{"data":[{"current_version_id":null,"description":"Routes inbound leads to recruiters","draft_version_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","id":"99b01875-dc57-45cd-a045-aefdcabf96aa","inserted_at":"2026-07-28T14:10:00Z","name":"Process inbound lead","state":"draft","updated_at":"2026-07-28T14:10:00Z"}],"total":1},"properties":{"data":{"description":"Matching workflows for the authenticated organization","items":{"properties":{"current_version_id":{"description":"Published/current version ID when set","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"description":"Optional workflow description","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version_id":{"description":"Draft version ID when a draft exists","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Workflow ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Workflow name","example":"Process inbound lead","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Workflow lifecycle state","enum":["draft","published","archived"],"example":"draft","type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","state","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of matching workflows","example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListWorkflowsResponse","type":"object","x-struct":null,"x-validate":null},"Parameters-With-Channel-Types":{"description":"Communication preferences opt out params via channel types.","example":{"channel_types":["email"],"contacts":[{"email":"johndoe@example.com","name":"John"},{"email":"janedoe@example.com","name":"Jane","phone":"+14243183020"}]},"not":{"required":["channels"],"x-struct":null,"x-validate":null},"properties":{"channel_types":{"items":{"description":"Channel type - e.g. \"sms\", \"email\" or \"whatsapp\"","enum":["sms","email","whatsapp"],"type":"string","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null},"contacts":{"description":"List of contacts that would be opted out.","items":{"description":"Data for a contact that would be opted out.\n\nProvide `phone` when opting out of SMS or WhatsApp channels, and `email`\nwhen opting out of email channels. When opting out of multiple channel\ntypes, provide `phone`, `email`, or both.\n","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maxItems":1000,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["contacts","channel_types"],"title":"Parameters-With-Channel-Types","type":"object","x-struct":null,"x-validate":null},"CreateCustomEventParams":{"description":"Request schema for creating a custom event in an organization.","example":{"associated_resources":[{"id":"a4621951-0f3b-4222-b44e-ce4e471bfd2d","resource":"contact"}],"event":"order.placed","external_id":"1234567890","payload":{"amount":2,"currency":"USD","login_time":"2023-06-15T10:30:00Z","price":100.0,"user_id":"123"},"timestamp":"2025-06-15T10:30:00Z"},"properties":{"associated_resources":{"description":"List of Whippy resources associated with the custom event.","items":{"description":"Whippy resource associated with the custom event.","properties":{"id":{"description":"The ID of the resource.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The type of the resource.","enum":["campaign","contact","conversation","message","sequence"],"example":"contact","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"event":{"description":"Custom event type.\n\nIt can be a resource and event separated with a period, such as \"job.assigned\".\nIt can be separated with a hyphen, such as \"job-assigned\".\n\nIt can be any string, as we assume that this is an event existing in the external system\nand there can be different formats for such events.\n","example":"job.assigned","format":"string","type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"External ID of a related to a custom event.","example":"6cdb21f6-e671-451b-a27f-b1244c16e3aa","type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Data related to the custom event, it can have any structure.","example":{"city":"Los Angeles","finish_at":"2025-04-12T08:55:12.399936Z","hourly_rate":20.0,"job_id":42,"job_title":"Driver"},"type":"object","x-struct":null,"x-validate":null},"timestamp":{"description":"Timestamp of the custom event. It needs to be in ISO 8601 format.","example":"2025-04-12T08:55:12.399936Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["event"],"title":"CreateCustomEventParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomEvents.CustomEvent.CreateParams","x-validate":null},"ToolNotFoundErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the tool record doesn't exist.","example":{"errors":[{"description":"Tool not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tool 404 error","items":{"additionalProperties":false,"description":"Single 404 error","properties":{"description":{"description":"Human-readable explanation that the tool doesn't exist.","enum":["Tool not found"],"example":"Tool not found","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"ToolNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"UpdateContactParams":{"description":"Request schema for updating a contact in an organization.","example":{"address":{"address_line_one":null,"address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"birth_date":{"day":1,"month":1,"year":1980},"default_channel_id":"b9416fea-0676-402d-a112-c45a8e194203","language":"en","name":"New Name","phone":"+14258658940","properties":{"employee_id":"9876"}},"properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateContactParams","type":"object","x-struct":null,"x-validate":null},"AgentTestNotFoundError":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null},"UpdateTestScenarioRequest":{"description":"Updates the name and evidence or agent links. Definition fields are rejected.","properties":{"agent_ids":{"description":"Omission preserves links. An empty list clears them. Null is invalid.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"nullable":false,"type":"array","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null}},"title":"UpdateTestScenarioRequest","type":"object","x-struct":null,"x-validate":null},"DeveloperEndpointNotFoundErrorResponse":{"description":"Developer Endpoint Not Found Error Response schema","example":{"errors":[{"description":"Developer Endpoint not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Developer Endpoint 404 error","items":{"properties":{"description":{"enum":["Developer Endpoint not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"DeveloperEndpointNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Endpoint.Errors.NotFound","x-validate":null},"UpdateCustomPropertyResponse":{"example":{"data":{"ai_context":"This property stores the customer's city for location-based services","created_at":"2024-03-25T09:45:26","created_by_id":42,"custom_object_id":"53e1ef21-1995-45f6-98ee-181ff406baec","default":null,"id":"0056ae8a-4407-47ca-bfe7-9a443c4f259c","key":"new_custom_property_key","label":"New Label","references":[{"custom_object_id":"53e1ef21-1995-45f6-98ee-181ff406baec","custom_property_id":"526b3e67-f60d-4f21-8ac3-a6b59d3d91fb","id":"2e811378-912b-410d-84d8-639bb80cf725","type":"one_to_many"}],"required":false,"type":"text","updated_at":"2024-03-25T09:45:26"}},"properties":{"data":{"properties":{"ai_context":{"description":"Additional context information for AI features","example":"This property stores the customer's city for location-based services","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"The date and time the Custom Property was inserted","example":"2023-07-28T07:07:50","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"The ID of the user who created this property. Null when an integration defined it.","example":42,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"custom_object_id":{"description":"The ID of the Custom Object","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"default":{"description":"The default value of the Custom Property","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The id of the Custom Property","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Property in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Property","example":"City","type":"string","x-struct":null,"x-validate":null},"references":{"items":{"properties":{"custom_object_id":{"description":"The ID of the Custom Object that contains the referenced Custom Property","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"custom_property_id":{"description":"The ID of the referenced Custom Property","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Reference","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the Reference","enum":["many_to_one","many_to_many","one_to_one","one_to_many"],"example":"one_to_many","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"required":{"description":"Whether the Custom Property is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"The type of the Custom Property","enum":["text","number","float","boolean","date","list","map"],"example":"text","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Property was updated","example":"2023-07-28T07:07:50","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"UpdateCustomPropertyResponse","type":"object","x-struct":null,"x-validate":null},"ListTags":{"description":"List Response for Tags","example":{"data":[{"color":"#ff0000","converted":null,"created_at":"2021-06-22T10:36:07Z","description":"tag description","emoji":"🌲","id":"28487616-380a-4807-a419-65ab74491de1","name":"first-tag","organization_id":"28487616-380a-4807-a419-65ab74491de1","state":"active","system_created":false,"updated_at":"2021-06-22T10:36:07Z"},{"color":"#ffeb3b","converted":null,"created_at":"2021-06-22T10:36:07Z","description":"tag description","emoji":"🌲","id":"9b4c3010-365a-452f-869b-d4db4274f546","name":"second-tag","organization_id":"28487616-380a-4807-a419-65ab74491de1","state":"active","system_created":false,"updated_at":"2021-06-22T10:36:07Z"}],"metadata":{"cursor_reset":false,"next_cursor":"eyJpbnNlcnRlZF9hdCI6IjIwMjEtMDYtMjJUMTA6MzY6MDdaIiwiaWQiOiI5YjRjMzAxMC0zNjVhLTQ1MmYtODY5Yi1kNGRiNDI3NGY1NDYifQ"}},"properties":{"data":{"description":"Tags list","items":{"description":"Single tag data","properties":{"color":{"description":"Tag color","type":"string","x-struct":null,"x-validate":null},"converted":{"description":"Boolean value indicating the system tag was converted to a user tag","enum":[true,false],"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the tag","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Tag description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Tag emoji","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tag ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tag name","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Tag state","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"system_created":{"description":"Boolean value indicating the tag was created by the system or not","enum":[true,false],"example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Tag type","enum":["standard","segment","sequence","form","workflow"],"type":"string","x-struct":null,"x-validate":null},"update_at":{"description":"Time the tag was last updated","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Metadata for cursor-based pagination. Present only on cursor-paginated responses.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ListTags","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.ListResponse","x-validate":null},"SequenceBadRequestErrorResponse":{"description":"Sequence Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Sequence 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"SequenceBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.Sequence.Errors.BadRequest","x-validate":null},"SequenceIncludedAudience":{"description":"The existing contacts to enroll. Each item uses the same fields as an item in the `filter`\narray of `POST /v1/contacts/filter`. An empty list is rejected.\n\nThis selects contacts already in the organization. It does not create contacts.\n","example":[{"column":"id","comparison":"==","resource":"list","value":"adbbeac2-ac46-4517-af7b-a3b6165ad5c6"}],"items":{"properties":{"and":{"description":"  List of filter items that should be compared to the current item using AND logic.\nThe logic is as follows (current_item AND (first_and_item and second_and_item and ...)).\nEach filter item also supports the `or` key, so you can nest `and` and `or` items and build complex logic like (current_item and (first_and_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"cast":{"description":"Cast the value from one type to another","properties":{"from":{"description":"The type to cast from","enum":["iso_date","iso_datetime","relative_datetime"],"example":"iso_datetime","type":"string","x-struct":null,"x-validate":null},"to":{"description":"The type to cast to","enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"example":"datetime","type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"clicked_link","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"on":{"description":"  List of on items that should be used to join parent resource with child resource.\n  The logic is as follows (parent_resource JOIN child_resource ON parent_resource.parent_column = child_resource.child_column).\n","items":{"properties":{"child":{"description":"The child resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"employee","type":"string","x-struct":null,"x-validate":null},"child_column":{"description":"The column on the child resource on which the comparison should be executed","example":"id","type":"string","x-struct":null,"x-validate":null},"parent":{"description":"The parent resource to use for the join. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"assignment","type":"string","x-struct":null,"x-validate":null},"parent_column":{"description":"The column on the parent resource on which the comparison should be executed","example":"employee_id","type":"string","x-struct":null,"x-validate":null}},"required":["parent","child","parent_column","child_column"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"or":{"description":"  List of filter items that should be compared to the current item using OR logic.\nThe logic is as follows (current_item or (first_or_item and second_or_item and ...)).\nEach filter item also supports the `or` key, so you can nest `or` items and build complex logic like (current_item or (first_or_item or (first_nested_or_item))).\n","items":{"properties":{"cast":{"description":"Cast the value from one type to another","properties":{"from":{"enum":["iso_date","iso_datetime","relative_datetime"],"type":"string","x-struct":null,"x-validate":null},"to":{"enum":["datetime","datetime_start","datetime_end","day_number","month_number","iso_datetime_start","iso_datetime_end","iso_date","date","time"],"type":"string","x-struct":null,"x-validate":null}},"required":["from","to"],"type":"object","x-struct":null,"x-validate":null},"column":{"description":"The column on the resource on which the comparison should be executed","example":"name","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"ilike","type":"string","x-struct":null,"x-validate":null},"exists":{"description":"When true, keep only records that have a matching related row. When false, keep records with no match. Omit to left-join. Set true for tag, list, segment, and custom-object filters.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"resource":{"description":"On which resource the filter should be applied. Accepts either one of the built-in Whippy resources (campaign, campaign_contact, campaign_message, communication_preference, contact, contact_message, conversation, join_custom_data, list, message, segment, sequence_run, step_contact, tag) or the key of any custom object defined in your organization.\n","example":"campaign_contact","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Bare JSON only — never `{}` or `{\"value\"|\"values\"|\"scalar\": ...}`. `==`/`!=`/`</>`/`<=`/`>=`/`like`/`ilike`/… → string, number, or boolean (e.g. `\"Placed\"`, `true`, `50000`). `in`/`not_in`/`ilike_any`/`not_ilike_all`/`between` → JSON array. `in_radius`/`not_in_radius` → `[lng, lat, meters]`. `contains`/`not_contains`/`is_contained` → non-empty object or homogeneous array only.","example":"Placed","x-struct":null,"x-validate":null},"via":{"description":"Explicit join path from the contact to this custom-object row: `owner>hop>hop…`\n(e.g. `staffing_placement>candidate_placement` or `staffing_placement>candidate_placement>job`).\n\nUse when `list_custom_objects` shows more than one whippy/custom association that could\nreach the same type — otherwise the engine may pick another route and return the wrong\npeople (candidate vs recruiter on the same placement). Named whippy_association →\n`type_key>name`; unnamed → `type_key>source_property_key`. Nested `and` children that must\nhold on the SAME related row must share or extend this via. Omit for built-ins and for\ntypes with a single unambiguous contact link.\n","example":"staffing_placement>candidate_placement","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"title":"SequenceIncludedAudience","type":"array","x-struct":null,"x-validate":null},"CampaignExcludedAudience":{"description":"Whippy Query filter items for the contacts to exclude. Each item is a column comparison or a\n`logical_group`. A logical group sets `resource` to `logical_group` and includes `and` or `or`\ninstead of `column`, `comparison`, and `value`. Nested arrays must contain at least one item.\nOptional. When omitted on a draft, scheduled, or recurring campaign, the default campaign\nexclusions for the channel are applied.\n","example":[],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignExcludedAudience","type":"array","x-struct":null,"x-validate":null},"ListDistinctCustomObjectPropertyValuesResponse":{"description":"Distinct values for a custom object property across active records in the authenticated organization.","example":{"data":["Engineering","Marketing","Sales"],"total":3},"properties":{"data":{"description":"Alphabetically sorted distinct property values for the current page.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total matching distinct values before limit and offset are applied.","minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListDistinctCustomObjectPropertyValuesResponse","type":"object","x-struct":null,"x-validate":null},"DomainDnsRecord":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"ToolBadRequestErrorResponse":{"additionalProperties":false,"description":"Response that occurs when the tool ID path parameter is invalid.","example":{"errors":[{"description":"Invalid path param ID: not-a-uuid"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tool 400 error","items":{"additionalProperties":false,"description":"Single 400 error","properties":{"description":{"description":"Human-readable explanation of the invalid path parameter.","example":"Invalid path param ID: not-a-uuid","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"example":400,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"ToolBadRequestErrorResponse","type":"object","x-struct":null,"x-validate":null},"CampaignIncludedAudience":{"description":"Whippy Query filter items for the contacts to include. Each item is a column comparison or a\n`logical_group`. A logical group sets `resource` to `logical_group` and includes `and` or `or`\ninstead of `column`, `comparison`, and `value`. Nested arrays must contain at least one item.\nOptional for a draft. Required when `status` is `scheduled` or `recurring`.\n","example":[{"column":"id","comparison":"in","resource":"list","value":["af5f0974-52c0-47e0-950e-f8c004deabd3"]}],"items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignIncludedAudience","type":"array","x-struct":null,"x-validate":null},"SearchCallResponse":{"description":"Response schema for searching calls.","example":{"data":[{"attachments":[{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"audio/wav","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/ddb1c6e7-dcfd-4c04-871b-07baf756a2e1/recording.wav"},{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"application/json","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/87d4004c-dd93-48a5-aa79-9d5968a3e55c/transcript.json"},{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","content_type":"application/json","url":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/d301325b-d59a-479c-b18c-73e401e6f385/analysis.json"}],"body":"Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n","campaign_contact_id":null,"campaign_id":null,"channel_id":"510b492f-e9e0-4849-b3b3-29d9ed38f8de","contact_id":"b0ed88e2-b724-4eef-bfbf-bcce0caa9110","conversation_id":"1320a283-728e-49bc-8512-23aed49487fe","created_at":"2021-06-22T07:45:45.353788Z","delivery_status":"call_completed.user_hangup","direction":"INBOUND","from":"+14243051234","id":"c4920ece-62df-4101-a87d-8e3b5da1d03b","language":null,"metadata":{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","agent_version_id":"7efcc850-a0b6-42d5-9dc6-313dac695626","analysis":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"conference_id":null,"duration":15000,"external_resource_id":"call_ca9b7ca39178245bba7d0088a99","knowledge_base_ids":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"knowledge_base_version_ids":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"llm_id":"0cff9730-324e-4855-b014-18c7c411e576","llm_version_id":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","placeholders_data":{"full_name||Sir":"Sir"},"type":"phone","voicemail":false},"mode":"ai","sequence_id":null,"step_contact_id":null,"step_id":null,"to":"+14243055678","translated_body":null,"translation_language":null,"type":"call","updated_at":"2021-06-22T07:45:45.353788Z","user_id":null}],"metadata":{"cursor_reset":false,"next_cursor":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ"},"total":1},"properties":{"data":{"description":"List of calls","items":{"description":"Call message record","properties":{"attachments":{"description":"List of attachments belonging to the call","items":{"description":"Single call attachment","properties":{"agent_id":{"description":"ID of agent responsible for the call","example":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"content_type":{"description":"MIME type of the call attachment","example":"audio/wav","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the call attachment","example":"https://dashboard-api-prod.s3.amazonaws.com/organization_c5e1ec83-e50f-4578-847a-33bcf486e543/calls/9ec4284a-898f-4e80-9114-f9e55918ced4/recording.wav","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Call transcript","example":"Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n","type":"string","x-struct":null,"x-validate":null},"campaign_contact_id":{"description":"ID of the campaign contact the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"campaign_id":{"description":"ID of the campaign the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the call belongs to","example":"510b492f-e9e0-4849-b3b3-29d9ed38f8de","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"ID of the contact the call belongs to","example":"b0ed88e2-b724-4eef-bfbf-bcce0caa9110","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"ID of the conversation the call belongs to","example":"1320a283-728e-49bc-8512-23aed49487fe","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Date the call is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Call delivery status. Any string is valid.\n\nKnown values this API constructs: call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus that call's disconnection reason. That reason is not limited to the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Direction of the message","enum":["INBOUND","OUTBOUND"],"example":"INBOUND","type":"string","x-struct":null,"x-validate":null},"from":{"description":"Phone number that made the call","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call ID","example":"c4920ece-62df-4101-a87d-8e3b5da1d03b","format":"uuid","type":"string","x-struct":null,"x-validate":null},"language":{"description":"ISO-639-1 code for the original language of the call transcript.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metatada":{"description":"Message metadata","example":{"agent_id":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","agent_version_id":"7efcc850-a0b6-42d5-9dc6-313dac695626","analysis":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"conference_id":null,"duration":15000,"external_resource_id":"call_ca9b7ca39178245bba7d0088a99","knowledge_base_ids":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"knowledge_base_version_ids":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"llm_id":"0cff9730-324e-4855-b014-18c7c411e576","llm_version_id":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","placeholders_data":{"full_name||Sir":"Sir"},"type":"phone","voicemail":false},"properties":{"agent_id":{"description":"ID of agent responsible for the call","example":"f96fd2c7-50a4-42cd-81bc-0639b6c9cb2c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"description":"ID of agent version responsible for the call","example":"7efcc850-a0b6-42d5-9dc6-313dac695626","format":"uuid","type":"string","x-struct":null,"x-validate":null},"analysis":{"description":"A set of analysis for the call","example":{"agent_task_completion_rating":"Incomplete","call_completion_rating":"Incomplete","call_successful":false,"call_summary":"The AI voice bot attempted to gather the user's full name but was unable to understand the user's response, which was in Portuguese.","custom_analysis_data":{},"in_voicemail":false,"user_language":"en","user_sentiment":"Neutral"},"type":"object","x-struct":null,"x-validate":null},"conference_id":{"description":"ID of the conference in the external provider in case the call was a conference call","example":"CFb24f0a87ac5301cffa0b28551ce43ed6","type":"string","x-struct":null,"x-validate":null},"duration":{"description":"Call duration in milliseconds","example":15000,"type":"integer","x-struct":null,"x-validate":null},"external_resource_id":{"description":"ID of the call in the external provider","example":"call_ca9b7ca39178245bba7d0088a99","type":"string","x-struct":null,"x-validate":null},"knowledge_base_ids":{"description":"IDs of knowledge bases in use for the call","example":["8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79"],"items":{"description":"ID of knowledge base in use for the call","example":"8a9d7c4f-38ca-4b2a-8d5e-2d55ab366e79","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"knowledge_base_version_ids":{"description":"IDs of knowledge base versions in use for the call","example":["056c3b9d-a589-4989-bfd9-17018ea893c2"],"items":{"description":"ID of knowledge base version in use for the call","example":"056c3b9d-a589-4989-bfd9-17018ea893c2","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of llm responsible for the call","example":"0cff9730-324e-4855-b014-18c7c411e576","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"description":"ID of llm version responsible for the call","example":"334f5a04-c0e7-4074-ba62-666b9ff6a3c6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_data":{"description":"Placeholders data sent to the agent for the call","example":{"full_name||Sir":"Sir"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Call type. Can be either phone or web","example":"phone","type":"string","x-struct":null,"x-validate":null},"voicemail":{"description":"Whether the call was missed and a voicemail was left","example":false,"type":"boolean","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"mode":{"description":"Mode of the message","enum":["manual","ai"],"example":"ai","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"ID of the sequence the message belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_contact_id":{"description":"ID of the step contact the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"ID of the sequence step the call belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Phone number that received the call","example":"+14243056789","type":"string","x-struct":null,"x-validate":null},"translated_body":{"description":"Translated call transcript.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"translation_language":{"description":"ISO-639-1 code for the language the call transcript was translated into.\n\n**For now it's always nil.**\n","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the message","enum":["call"],"example":"call","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the call was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user related to the call.\n\n**For now it's always nil.**\n","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Pagination metadata. Returned for both cursor-paginated and offset-paginated responses. Offset responses include only `next_cursor` (an offset-to-cursor bootstrap); cursor-paginated responses also include `cursor_reset`. Paging is forward only. Offset pagination is limited to an `offset + limit` of 10,000; use `next_cursor` to page further. `direction` filters by INBOUND or OUTBOUND and is not a cursor direction.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total number of calls that match the search criteria.","type":"integer","x-struct":null,"x-validate":null}},"title":"SearchCallResponse","type":"object","x-struct":null,"x-validate":null},"FaxUnprocessableContentErrorResponse":{"description":"List of error responses for invalid fax POST requests.\n","example":{"errors":[{"description":"Missing To number"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Messaging 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Missing To number","Missing From number","Missing Attachment URL","Invalid From number","Invalid To number","Attachment URL must use HTTPS","Scheduling time should be in ISO 8601 format","Scheduling time is in the past","Conversation status must be 'automated', 'open', or 'closed'","Message failed to be created"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"FaxUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Fax.Errors.UnprocessableContent","x-validate":null},"ShowPublicCallFlowResponse":{"description":"Response schema for showing a programmable Call Flow.","example":{"data":{"channel":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"color":"#FF0000","created_by_id":1,"description":"Programmable support IVR","emoji":"📞","flags":{"recordings":true},"id":"64801baf-1a32-4f0a-a425-4c8707aa3673","name":"Support Line","organization_id":"a89d65b1-8a13-432e-a56e-370d7d237bbb","updated_by_id":1,"voice_language":"en-US","voice_type":"woman","webhook_config":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"}}},"properties":{"data":{"description":"Programmable Call Flow record","example":{"channel":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"color":"#FF0000","created_by_id":1,"description":"Programmable support IVR","emoji":"📞","flags":{"recordings":true},"id":"64801baf-1a32-4f0a-a425-4c8707aa3673","name":"Support Line","organization_id":"a89d65b1-8a13-432e-a56e-370d7d237bbb","updated_by_id":1,"voice_language":"en-US","voice_type":"woman","webhook_config":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"}},"properties":{"channel":{"description":"Channel currently assigned to this Call Flow (1 channel ↔ 1 programmable\nCall Flow). `null` when none is assigned.\n","example":{"address":null,"id":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","name":"Support Line","phone":"+15551234567","state":"enabled","type":"phone"},"nullable":true,"properties":{"address":{"description":"Channel address","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","example":"3063b9d4-3f7a-476e-b71d-69bd6bc48a21","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Channel name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone","example":"+15551234567","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Channel state","example":"enabled","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Channel type","example":"phone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"color":{"description":"Call Flow color (hex)","example":"#FF0000","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"User ID that created the Call Flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Call Flow description","example":"Programmable support IVR","nullable":true,"type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call Flow emoji","example":"📞","nullable":true,"type":"string","x-struct":null,"x-validate":null},"flags":{"additionalProperties":true,"description":"Call Flow feature flags","example":{"recordings":true},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Call Flow ID","example":"64801baf-1a32-4f0a-a425-4c8707aa3673","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Call Flow name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"a89d65b1-8a13-432e-a56e-370d7d237bbb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"User ID that last updated the Call Flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"voice_language":{"description":"TTS voice language (BCP-47)","example":"en-US","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_type":{"description":"TTS voice type used by inline prompts","example":"woman","nullable":true,"type":"string","x-struct":null,"x-validate":null},"webhook_config":{"description":"Programmable webhook config. Required on create (`url` must be non-blank HTTPS).\nOptional `signing_api_key_id` HMAC-signs outbound POSTs (`X-Whippy-Signature`).\n","example":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"},"properties":{"signing_api_key_id":{"description":"Optional organization API key ID used to HMAC-sign outbound POSTs.\nOmit or null for unsigned delivery. When set, the key must be active\nand belong to the Call Flow's organization.\n","example":"0542653c-010a-4a29-afde-912a110fecb7","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"url":{"description":"HTTPS webhook URL that receives programmable call flow events","example":"https://integrator.example/call-flow-webhook","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","type":"string","x-struct":null,"x-validate":null}},"required":["url"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowPublicCallFlowResponse","type":"object","x-struct":null,"x-validate":null},"IndexSequenceRunBadRequestErrorResponse":{"description":"Sequence Run Bad Request Error Response schema when listing sequence runs","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Sequences 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"IndexSequenceRunBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Sequences.SequenceRun.Errors.IndexBadRequest","x-validate":null},"TagListUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Tag index (list) pagination params.\n","example":{"errors":[{"description":"Offset parameter is not compatible with cursor-based pagination"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Tag list 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"TagListUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Tags.Tag.Errors.ListUnprocessableContent","x-validate":null},"TemplateUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Template POST requests.\n","example":{"errors":[{"description":"Template title can't be blank"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Template 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Template title can't be blank","Template message can't be blank","Template access_level can't be blank","Template created_by_id is not a valid user id (no belongs to the organization)"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"TemplateUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Templates.Template.Errors.UnprocessableContent","x-validate":null},"CustomObjectRecordCreateBadRequestErrorResponse":{"description":"Custom Object Record Bad Request Error Response schema for creating Custom Object Records","example":{"errors":[{"description":"Invalid path param Custom Object ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object Record Value 400 error","items":{"properties":{"description":{"enum":["Invalid path param Custom Object ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectRecordCreateBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomData.Errors.CreateBadRequest","x-validate":null},"CreateContactLists":{"description":"Create Response for Contact Lists","example":{"data":{"color":"#ffeb3b","created_at":"2021-06-22T10:36:07Z","id":"654124d3-d2fa-4011-a110-4854cc86dd5e","name":"contact-list-name","organization_id":"8ecdf858-a667-4e60-98b7-ea3302574e82","state":"active","updated_at":"2021-06-22T10:36:07Z"}},"properties":{"data":{"description":"Data for a single contact list.","properties":{"color":{"description":"Color of the contact list tag in RGB format","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the contact list in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Contact list ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Name of the contact list","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of the organization the list belongs to","format":"uuid","type":"string","x-struct":null,"x-validate":null},"state":{"description":"State of the contact list","enum":["active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the contact list in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateContactLists","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.ContactLists.ContactList.CreateResponse","x-validate":null},"SearchAgentVersionsParams":{"description":"Request schema for searching agent versions.","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"cursor":{"description":"Opaque cursor from the previous page","nullable":true,"type":"string","x-struct":null,"x-validate":null},"limit":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"llm_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"published":{"description":"When supplied, filters to published or unpublished versions.","type":"boolean","x-struct":null,"x-validate":null}},"title":"SearchAgentVersionsParams","type":"object","x-struct":null,"x-validate":null},"TemplateBadRequestErrorResponse":{"description":"Template Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Template 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TemplateBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Templates.Template.Errors.BadRequest","x-validate":null},"CreatePublicCallFlowParams":{"description":"Create a programmable Call Flow.\n\n**Required:** `webhook_config.url` (non-blank HTTPS).\n\n**Optional:** head fields, `flags`, voice, `webhook_config.signing_api_key_id`,\nand `channel_id` (assigns one org channel; 1 channel ↔ 1 flow).\n\nAdditional / Private-only keys (e.g. `ivr_flow_config`, `channel_ids`) are\nignored.\n","example":{"channel_id":"bf7e72c0-4729-4cd9-926b-7b48bc4c9a5c","color":"#FF0000","description":"Programmable support IVR","emoji":"📞","flags":{"recordings":true},"name":"Support Line","voice_language":"en-US","voice_type":"woman","webhook_config":{"signing_api_key_id":"11a7888c-fc64-49ff-9c05-7c14159e05cc","url":"https://integrator.example/call-flow-webhook"}},"properties":{"channel_id":{"description":"Optional channel to assign to this Call Flow. Must belong to the\norganization. Replaces any previous assignment for this flow.\n","example":"bf7e72c0-4729-4cd9-926b-7b48bc4c9a5c","format":"uuid","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Call Flow color (hex)","example":"#FF0000","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Call Flow description","example":"Programmable support IVR","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call Flow emoji","example":"📞","type":"string","x-struct":null,"x-validate":null},"flags":{"additionalProperties":true,"description":"Call Flow feature flags","example":{"recordings":true},"type":"object","x-struct":null,"x-validate":null},"name":{"description":"Call Flow name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"voice_language":{"description":"TTS voice language (BCP-47)","example":"en-US","type":"string","x-struct":null,"x-validate":null},"voice_type":{"description":"TTS voice type","example":"woman","type":"string","x-struct":null,"x-validate":null},"webhook_config":{"description":"Programmable webhook config. Required on create (`url` must be non-blank HTTPS).\nOptional `signing_api_key_id` HMAC-signs outbound POSTs (`X-Whippy-Signature`).\n","example":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"},"properties":{"signing_api_key_id":{"description":"Optional organization API key ID used to HMAC-sign outbound POSTs.\nOmit or null for unsigned delivery. When set, the key must be active\nand belong to the Call Flow's organization.\n","example":"0542653c-010a-4a29-afde-912a110fecb7","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"url":{"description":"HTTPS webhook URL that receives programmable call flow events","example":"https://integrator.example/call-flow-webhook","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","type":"string","x-struct":null,"x-validate":null}},"required":["url"],"type":"object","x-struct":null,"x-validate":null}},"required":["webhook_config"],"title":"CreatePublicCallFlowParams","type":"object","x-struct":null,"x-validate":null},"ExecuteTestScenarioResponse":{"example":{"data":{"aggregate":{"fail":0,"pass":0,"run_count":1,"unknown":0},"runs":[{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}]}},"properties":{"data":{"properties":{"aggregate":{"properties":{"fail":{"type":"integer","x-struct":null,"x-validate":null},"pass":{"type":"integer","x-struct":null,"x-validate":null},"run_count":{"type":"integer","x-struct":null,"x-validate":null},"unknown":{"type":"integer","x-struct":null,"x-validate":null}},"required":["run_count","pass","fail","unknown"],"type":"object","x-struct":null,"x-validate":null},"runs":{"items":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["runs","aggregate"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ExecuteTestScenarioResponse","type":"object","x-struct":null,"x-validate":null},"KnowledgeBase":{"additionalProperties":false,"example":{"created_at":"2026-08-07T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"created_at":"2026-08-07T09:00:00Z","description":"Answers common product questions","embedding_status":"completed","id":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","item_versions":[{"content":"Employees receive 15 days of PTO per year.","created_at":"2026-08-17T09:00:00Z","id":"6b63aba1-88c3-4e92-bd58-8fc407c07533","knowledge_base_item":{"id":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","name":"Vacation policy","type":"text"},"metadata":{},"settings":null,"url":null}],"name":"Product FAQ","published_at":"2026-08-07T10:00:00Z"},"draft_version":null,"id":"08171713-e2ca-4b5d-a499-7200394aacb5","organization":{"ai_context":null,"id":"f214c1a8-4d58-495c-98a4-113c2cc8152b","name":"Hello Inc."},"status":"active","updated_at":"2026-08-07T10:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"}},"properties":{"created_at":{"description":"Knowledge base creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"item_versions":{"description":"Top-level item versions in this knowledge base version","items":{"additionalProperties":false,"properties":{"content":{"description":"Extracted or authored content","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Item version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Item version ID","example":"6b63aba1-88c3-4e92-bd58-8fc407c07533","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_item":{"additionalProperties":false,"properties":{"id":{"description":"Knowledge base item ID","example":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Knowledge base item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Server-fetched file metadata for document, audio, and video items.\nTypical keys: filename, extension, size_kb.\n","example":{"extension":".pdf","filename":"handbook.pdf","size_kb":1024.0},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"url":{"description":"Source URL when applicable","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"additionalProperties":false,"nullable":true,"properties":{"created_at":{"description":"Version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Knowledge base version description","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"embedding_status":{"description":"Embedding pipeline status for this version","enum":["pending","processing","completed","failed"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base version ID","example":"7eb930bb-5512-46c8-bb2d-e5322bd65e65","format":"uuid","type":"string","x-struct":null,"x-validate":null},"item_versions":{"description":"Top-level item versions in this knowledge base version","items":{"additionalProperties":false,"properties":{"content":{"description":"Extracted or authored content","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Item version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Item version ID","example":"6b63aba1-88c3-4e92-bd58-8fc407c07533","format":"uuid","type":"string","x-struct":null,"x-validate":null},"knowledge_base_item":{"additionalProperties":false,"properties":{"id":{"description":"Knowledge base item ID","example":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Knowledge base item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Server-fetched file metadata for document, audio, and video items.\nTypical keys: filename, extension, size_kb.\n","example":{"extension":".pdf","filename":"handbook.pdf","size_kb":1024.0},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"url":{"description":"Source URL when applicable","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base version name","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null},"published_at":{"description":"When this version was published","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base ID","example":"08171713-e2ca-4b5d-a499-7200394aacb5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"additionalProperties":false,"nullable":true,"properties":{"ai_context":{"description":"Organization AI context","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"Organization ID","example":"f214c1a8-4d58-495c-98a4-113c2cc8152b","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Knowledge base status","enum":["draft","active","archived"],"example":"active","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Knowledge base update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["id","status","created_at","updated_at"],"title":"KnowledgeBase","type":"object","x-struct":null,"x-validate":null},"CreateAgentSkillParams":{"description":"Create Agent Skill params. Scope must be organization or user.","example":{"content":"# My org playbook\n\nAlways call list_workflow_apps.","description":"How this workspace handles workflow apps discovery.","enabled":true,"keywords":["workflow","apps"],"name":"My org playbook","scope":"organization","slug":"my-org-playbook","sort_order":100},"properties":{"content":{"description":"Markdown playbook body loaded via get_skill","example":"# My org playbook\n\nAlways call list_workflow_apps.","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Short description used in the agent skill index","example":"How this workspace handles workflow apps discovery.","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Whether the skill is available to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null},"keywords":{"description":"Optional search keywords","example":["workflow","apps"],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"My org playbook","type":"string","x-struct":null,"x-validate":null},"scope":{"description":"Skill ownership scope. Public/private APIs may create only organization or user.","enum":["organization","user"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"slug":{"description":"Lowercase kebab-case slug unique within the skill's scope boundary","example":"my-org-playbook","type":"string","x-struct":null,"x-validate":null},"sort_order":{"description":"Sort order in listings","example":100,"type":"integer","x-struct":null,"x-validate":null}},"required":["slug","name","description","content","scope"],"title":"CreateAgentSkillParams","type":"object","x-struct":null,"x-validate":null},"ShowTestRunResponse":{"example":{"data":{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestRunResponse","type":"object","x-struct":null,"x-validate":null},"PublishAgentParams":{"properties":{"skip_test_gate":{"default":false,"description":"Publish even though linked tests are not passing on Draft. The override and each test's\nstatus are recorded with the publish.\n","type":"boolean","x-struct":null,"x-validate":null}},"title":"PublishAgentParams","type":"object","x-struct":null,"x-validate":null},"CreateTeamMemberParams":{"description":"Create TeamMember Params schema","example":{"user_id":23},"properties":{"user_id":{"description":"User ID (from search_users). Required to create a team member.","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID. Optional when user_id is provided — derived from the user and organization.","type":"integer","x-struct":null,"x-validate":null}},"title":"CreateTeamMemberParams","type":"object","x-struct":null,"x-validate":null},"AgentSkillUnprocessableContentErrorResponse":{"description":"Agent Skill 422 Error Response schema","example":{"errors":[{"description":"Scope must be organization or user"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentSkillUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.AgentSkills.AgentSkill.Errors.UnprocessableContent","x-validate":null},"UpdatePublicCallFlowParams":{"description":"Update a programmable Call Flow.\n\nOmit fields to leave them unchanged. When `webhook_config` is present it\nmust keep a non-blank `url` (cannot convert to static / clear webhook).\n\nPUT `webhook_config.url` on a **static** Call Flow id converts it\none-way to programmable.\n\n`channel_id`:\n* UUID — assign that channel (clears previous assignment for this flow)\n* `null` — clear assignment\n* omitted — leave assignment unchanged\n","example":{"channel_id":"df01f8dd-d220-44c4-add3-26c32d951495","name":"Support Line (updated)","webhook_config":{"url":"https://integrator.example/call-flow-webhook"}},"properties":{"channel_id":{"description":"Assign a channel, or `null` to clear. Omit to leave unchanged.\n","example":"df01f8dd-d220-44c4-add3-26c32d951495","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"color":{"description":"Call Flow color (hex)","example":"#00AA00","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Call Flow description","example":"Updated description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call Flow emoji","example":"☎️","type":"string","x-struct":null,"x-validate":null},"flags":{"additionalProperties":true,"description":"Call Flow feature flags","type":"object","x-struct":null,"x-validate":null},"name":{"description":"Call Flow name","example":"Support Line","type":"string","x-struct":null,"x-validate":null},"voice_language":{"description":"TTS voice language (BCP-47)","example":"en-GB","type":"string","x-struct":null,"x-validate":null},"voice_type":{"description":"TTS voice type","example":"man","type":"string","x-struct":null,"x-validate":null},"webhook_config":{"description":"Programmable webhook config. Required on create (`url` must be non-blank HTTPS).\nOptional `signing_api_key_id` HMAC-signs outbound POSTs (`X-Whippy-Signature`).\n","example":{"signing_api_key_id":"0542653c-010a-4a29-afde-912a110fecb7","url":"https://integrator.example/call-flow-webhook"},"properties":{"signing_api_key_id":{"description":"Optional organization API key ID used to HMAC-sign outbound POSTs.\nOmit or null for unsigned delivery. When set, the key must be active\nand belong to the Call Flow's organization.\n","example":"0542653c-010a-4a29-afde-912a110fecb7","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"url":{"description":"HTTPS webhook URL that receives programmable call flow events","example":"https://integrator.example/call-flow-webhook","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","type":"string","x-struct":null,"x-validate":null}},"required":["url"],"type":"object","x-struct":null,"x-validate":null}},"title":"UpdatePublicCallFlowParams","type":"object","x-struct":null,"x-validate":null},"WorkflowNotFoundErrorResponse":{"description":"Not Found Response schema","example":{"errors":[{"description":"Workflow not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"WorkflowNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"CallFlowWebhookRequest":{"description":"Envelope Whippy POSTs to the integrator webhook.\n\n**Headers (when delivered):**\n* `X-Whippy-Event` — same as body `event`\n* `X-Whippy-Delivery-Id` — same as body `request_id` (stable across one retry)\n* `X-Whippy-Signature` — `t=<unix>,v1=<base64url-hmac-sha256>` when\n  `signing_api_key_id` is set; omitted for unsigned delivery\n\nWhippy POSTs these on programmable flows (no per-flow opt-out). Forward dial\nlegs use an **outcome family** — branch on `event` / `X-Whippy-Event`, not a\ncatch-all `completed` name.\n\n## Events\n\n| Event | When |\n|-------|------|\n| `call_flow.run.started` | Inbound call enters the flow |\n| `call_flow.input.received` | Given menu is presented and the user's input is received |\n| `call_flow.forward.call_no_answer` | Dial leg ended and no one from the given member list answers the call |\n| `call_flow.forward.call_busy` | Dial leg ended and the recipient is busy |\n| `call_flow.forward.call_failed` | Dial leg ended and the call failed |\n| `call_flow.forward.call_cancelled` | Dial leg ended and the call was cancelled |\n| `call_flow.forward.call_completed` | Dial leg ended and the call was completed |\n| `call_flow.forward.completed` | Dial leg ended and the call status is unknown. This is the fallback event when the call status is unknown.|\n| `call_flow.status.updated` | Terminal parent/child `CallStatus` **without** a DialCallStatus on this callback (`completed` / `busy` / `no-answer` / `failed` / `canceled`, including via call-progress-events). Mid-call statuses (`ringing`, `in-progress`, …) are **not** POSTed. |\n\n---\n\n## Envelope\n\n```json\n{\n  \"api_version\": \"v1\",\n  \"event\": \"call_flow.run.started\",\n  \"request_id\": \"f1eebc99-9c0b-4ef8-bb6d-6bb9bd380a66\",\n  \"created_at\": \"2026-07-01T12:00:00.000000Z\",\n  \"data\": {\n    \"call\": {\n      \"id\": \"a1eebc99-9c0b-4ef8-bb6d-6bb9bd380a11\",\n      \"direction\": \"inbound\",\n      \"from\": \"+15551234567\",\n      \"to\": \"+15559876543\",\n      \"delivery_status\": \"call_in_progress\",\n      \"call_flow_run_id\": \"b1eebc99-9c0b-4ef8-bb6d-6bb9bd380a22\"\n    },\n    \"contact\": { \"id\": \"c1eebc99-9c0b-4ef8-bb6d-6bb9bd380a33\", \"name\": \"Jane Doe\" },\n    \"channel\": { \"id\": \"d1eebc99-9c0b-4ef8-bb6d-6bb9bd380a44\", \"name\": \"Support Line\" },\n    \"input\": null,\n    \"forward\": null,\n    \"customer_state\": { \"crm_ticket_id\": \"12345\" }\n  }\n}\n```\n\n* `data.input` — set for `call_flow.input.received`; otherwise `null`\n* `data.forward` — set for any `call_flow.forward.*` event; otherwise `null`\n* `data.customer_state` — opaque JSON you returned earlier; Whippy echoes it\n\n---\n\n## `call_flow.run.started`\n\nInbound call enters the flow. `input` and `forward` are `null`.\n\n```json\n{\n  \"api_version\": \"v1\",\n  \"event\": \"call_flow.run.started\",\n  \"request_id\": \"f1eebc99-9c0b-4ef8-bb6d-6bb9bd380a66\",\n  \"created_at\": \"2026-07-01T12:00:00.000000Z\",\n  \"data\": {\n    \"call\": {\n      \"id\": \"a1eebc99-9c0b-4ef8-bb6d-6bb9bd380a11\",\n      \"direction\": \"inbound\",\n      \"from\": \"+15551234567\",\n      \"to\": \"+15559876543\",\n      \"delivery_status\": \"call_in_progress\",\n      \"call_flow_run_id\": \"b1eebc99-9c0b-4ef8-bb6d-6bb9bd380a22\"\n    },\n    \"contact\": { \"id\": \"c1eebc99-9c0b-4ef8-bb6d-6bb9bd380a33\", \"name\": \"Jane Doe\" },\n    \"channel\": { \"id\": \"d1eebc99-9c0b-4ef8-bb6d-6bb9bd380a44\", \"name\": \"Support Line\" },\n    \"input\": null,\n    \"forward\": null,\n    \"customer_state\": { \"crm_ticket_id\": \"12345\" }\n  }\n}\n```\n\n---\n\n## `call_flow.input.received`\n\nGather digit/speech finished. `data.input` is set; `forward` is `null`.\n\n```json\n{\n  \"api_version\": \"v1\",\n  \"event\": \"call_flow.input.received\",\n  \"request_id\": \"f1eebc99-9c0b-4ef8-bb6d-6bb9bd380a66\",\n  \"created_at\": \"2026-07-01T12:00:00.000000Z\",\n  \"data\": {\n    \"call\": {\n      \"id\": \"a1eebc99-9c0b-4ef8-bb6d-6bb9bd380a11\",\n      \"direction\": \"inbound\",\n      \"from\": \"+15551234567\",\n      \"to\": \"+15559876543\",\n      \"delivery_status\": \"call_in_progress\",\n      \"call_flow_run_id\": \"b1eebc99-9c0b-4ef8-bb6d-6bb9bd380a22\"\n    },\n    \"contact\": { \"id\": \"c1eebc99-9c0b-4ef8-bb6d-6bb9bd380a33\", \"name\": \"Jane Doe\" },\n    \"channel\": { \"id\": \"d1eebc99-9c0b-4ef8-bb6d-6bb9bd380a44\", \"name\": \"Support Line\" },\n    \"input\": {\n      \"digits\": \"1\",\n      \"speech_result\": null,\n      \"reference_key\": \"main_menu\"\n    },\n    \"forward\": null,\n    \"customer_state\": { \"step\": \"awaiting_menu\" }\n  }\n}\n```\n\n---\n\n## `call_flow.forward.*` — dial / forward outcomes\n\nSame `data.forward` shape for every forward outcome event\n(`call_no_answer`, `call_busy`, `call_failed`, `call_cancelled`,\n`call_completed`, and unknown `completed`). `input` is `null`.\n\nExample — `call_flow.forward.call_no_answer`:\n\n```json\n{\n  \"api_version\": \"v1\",\n  \"event\": \"call_flow.forward.call_no_answer\",\n  \"request_id\": \"f1eebc99-9c0b-4ef8-bb6d-6bb9bd380a66\",\n  \"created_at\": \"2026-07-01T12:00:00.000000Z\",\n  \"data\": {\n    \"call\": {\n      \"id\": \"a1eebc99-9c0b-4ef8-bb6d-6bb9bd380a11\",\n      \"direction\": \"inbound\",\n      \"from\": \"+15551234567\",\n      \"to\": \"+15559876543\",\n      \"delivery_status\": \"call_in_progress\",\n      \"call_flow_run_id\": \"b1eebc99-9c0b-4ef8-bb6d-6bb9bd380a22\"\n    },\n    \"contact\": { \"id\": \"c1eebc99-9c0b-4ef8-bb6d-6bb9bd380a33\", \"name\": \"Jane Doe\" },\n    \"channel\": { \"id\": \"d1eebc99-9c0b-4ef8-bb6d-6bb9bd380a44\", \"name\": \"Support Line\" },\n    \"input\": null,\n    \"forward\": {\n      \"status\": \"call_no_answer\",\n      \"to\": \"client:user_42\",\n      \"from\": \"+15551234567\",\n      \"dial_call_sid\": \"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\n      \"parent_call_sid\": \"CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n    },\n    \"customer_state\": { \"attempt\": 1 }\n  }\n}\n```\n\nWhen the last dial was programmable `forward_to_team` and some members were\nnot dialed, `data.forward` also includes **`attempted_members`** and\n**`remaining_members`** (additive optional keys):\n\n```json\n{\n  \"event\": \"call_flow.forward.call_no_answer\",\n  \"data\": {\n    \"input\": null,\n    \"forward\": {\n      \"status\": \"call_no_answer\",\n      \"to\": \"client:user_42\",\n      \"from\": \"+15551234567\",\n      \"dial_call_sid\": \"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\n      \"parent_call_sid\": \"CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\n      \"attempted_members\": [\n        { \"type\": \"user_id\", \"value\": \"1\" },\n        { \"type\": \"number\", \"value\": \"+15550001111\" }\n      ],\n      \"remaining_members\": {\n        \"overflow\": [\n          { \"type\": \"user_id\", \"value\": \"11\" },\n          { \"type\": \"user_id\", \"value\": \"12\" }\n        ],\n        \"alert_filtered\": [\n          { \"type\": \"user_id\", \"value\": \"99\" }\n        ],\n        \"on_call_filtered\": [\n          { \"type\": \"user_id\", \"value\": \"7\" }\n        ]\n      }\n    }\n  }\n}\n```\n\nMember entries use the same `{ \"type\", \"value\" }` shape as `forward_to_team`\nargs, always **expanded** (`user_id` / `number` / `agent` — never raw\n`channel_id`).\n\n| Field | When present | Meaning |\n|-------|--------------|---------|\n| `attempted_members` | Last dial was `forward_to_team` **and** any remaining bucket is non-empty | Members that actually dialed (post on-call filter) |\n| `remaining_members.overflow` | Same | Members past the first 10 after alert filter — never scheduled in this dial |\n| `remaining_members.alert_filtered` | Same | Expanded users removed before batching (no incoming-call alert) |\n| `remaining_members.on_call_filtered` | Same | Members removed from the scheduled batch (already on a call, with no desk phone to ring — busy members whose desk phone still rings appear in `attempted_members`) |\n\n---\n\n## `call_flow.status.updated`\n\nTerminal parent/child `Call Status`. Mid-call statuses are not POSTed. `input` and `forward` are typically\n`null`.\n\n```json\n{\n  \"api_version\": \"v1\",\n  \"event\": \"call_flow.status.updated\",\n  \"request_id\": \"f1eebc99-9c0b-4ef8-bb6d-6bb9bd380a66\",\n  \"created_at\": \"2026-07-01T12:00:00.000000Z\",\n  \"data\": {\n    \"call\": {\n      \"id\": \"a1eebc99-9c0b-4ef8-bb6d-6bb9bd380a11\",\n      \"direction\": \"inbound\",\n      \"from\": \"+15551234567\",\n      \"to\": \"+15559876543\",\n      \"delivery_status\": \"call_completed\",\n      \"call_flow_run_id\": \"b1eebc99-9c0b-4ef8-bb6d-6bb9bd380a22\"\n    },\n    \"contact\": { \"id\": \"c1eebc99-9c0b-4ef8-bb6d-6bb9bd380a33\", \"name\": \"Jane Doe\" },\n    \"channel\": { \"id\": \"d1eebc99-9c0b-4ef8-bb6d-6bb9bd380a44\", \"name\": \"Support Line\" },\n    \"input\": null,\n    \"forward\": null,\n    \"customer_state\": { \"step\": \"done\" }\n  }\n}\n```\n","example":{"api_version":"v1","created_at":"2026-07-01T12:00:00.000000Z","data":{"call":{"call_flow_run_id":"b1eebc99-9c0b-4ef8-bb6d-6bb9bd380a22","delivery_status":"call_in_progress","direction":"inbound","from":"+15551234567","id":"a1eebc99-9c0b-4ef8-bb6d-6bb9bd380a11","to":"+15559876543"},"channel":{"id":"d1eebc99-9c0b-4ef8-bb6d-6bb9bd380a44","name":"Support Line"},"contact":{"id":"c1eebc99-9c0b-4ef8-bb6d-6bb9bd380a33","name":"Jane Doe"},"customer_state":{"crm_ticket_id":"12345"},"forward":null,"input":null},"event":"call_flow.run.started","request_id":"f1eebc99-9c0b-4ef8-bb6d-6bb9bd380a66"},"properties":{"api_version":{"enum":["v1"],"example":"v1","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"ISO-8601 UTC timestamp with microsecond precision","example":"2026-07-01T12:00:00.000000Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"data":{"description":"Event payload. `input` is set for `call_flow.input.received`; `forward`\nis set for any `call_flow.forward.*` event; otherwise those keys are null.\n","properties":{"call":{"description":"Active call message","properties":{"call_flow_run_id":{"description":"Active call flow run ID","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Whippy delivery status","example":"call_in_progress","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Call direction","example":"inbound","type":"string","x-struct":null,"x-validate":null},"from":{"description":"Caller phone","example":"+15551234567","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call / message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Callee / channel phone","example":"+15559876543","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"channel":{"description":"Channel that received the call (nullable when missing)","nullable":true,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"contact":{"description":"Contact on the call (nullable when missing)","nullable":true,"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"customer_state":{"additionalProperties":true,"description":"Opaque JSON echoed from the active call_flow_run","example":{"crm_ticket_id":"12345"},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"forward":{"description":"Set for any `call_flow.forward.*` event; otherwise null.\n\n`status` is the Whippy status (same string as the event name suffix) for\nknown DialCallStatus values, or the raw Twilio string for\n`call_flow.forward.completed` (unknown).\n\nWhen the last dial was programmable `forward_to_team` and some members were\nnot dialed, also includes **`attempted_members`** and **`remaining_members`**\n(additive optional keys — omitted when everyone was dialed in one attempt or\nthe last action was not a team dial).\n","nullable":true,"properties":{"attempted_members":{"description":"Present when the last dial was `forward_to_team` and any remaining bucket\nis non-empty. Members that actually appeared in dial TwiML (post on-call\nfilter). Same `{ \"type\", \"value\" }` shape as `forward_to_team` args,\nalways expanded (`user_id`, `number`, or `agent` — never raw `channel_id`).\n","example":[{"type":"user_id","value":"1"},{"type":"number","value":"+15550001111"}],"items":{"properties":{"type":{"description":"Expanded member type (never raw `channel_id`)","enum":["number","user_id","agent"],"example":"user_id","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Member destination (user id, E.164 number, or agent id)","example":"42","type":"string","x-struct":null,"x-validate":null}},"required":["type","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"dial_call_sid":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"from":{"example":"+15551234567","nullable":true,"type":"string","x-struct":null,"x-validate":null},"parent_call_sid":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"remaining_members":{"description":"Present together with `attempted_members` under the same conditions. All three\nsublists are always present; unused buckets are empty arrays. Each member\nappears in exactly one bucket (or in `attempted_members`). Whippy does not\nauto-dial remaining members.\n","example":{"alert_filtered":[{"type":"user_id","value":"99"}],"on_call_filtered":[{"type":"user_id","value":"7"}],"overflow":[{"type":"user_id","value":"11"},{"type":"user_id","value":"12"}]},"properties":{"alert_filtered":{"description":"Expanded users removed before batching (no incoming-call alert)","items":{"properties":{"type":{"description":"Expanded member type (never raw `channel_id`)","enum":["number","user_id","agent"],"example":"user_id","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Member destination (user id, E.164 number, or agent id)","example":"42","type":"string","x-struct":null,"x-validate":null}},"required":["type","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"on_call_filtered":{"description":"Members removed from the scheduled batch (already on a call, with no desk phone to ring — busy members whose desk phone still rings appear in `attempted_members`)","items":{"properties":{"type":{"description":"Expanded member type (never raw `channel_id`)","enum":["number","user_id","agent"],"example":"user_id","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Member destination (user id, E.164 number, or agent id)","example":"42","type":"string","x-struct":null,"x-validate":null}},"required":["type","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"overflow":{"description":"Members past the first 10 after alert filter — never scheduled in this dial","items":{"properties":{"type":{"description":"Expanded member type (never raw `channel_id`)","enum":["number","user_id","agent"],"example":"user_id","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Member destination (user id, E.164 number, or agent id)","example":"42","type":"string","x-struct":null,"x-validate":null}},"required":["type","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Whippy forward status (or raw Twilio for unknown)","example":"call_no_answer","type":"string","x-struct":null,"x-validate":null},"to":{"example":"client:user_42","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"input":{"description":"Set for `call_flow.input.received`; otherwise null","nullable":true,"properties":{"digits":{"example":"1","nullable":true,"type":"string","x-struct":null,"x-validate":null},"reference_key":{"description":"Menu reference key from the prior menu action","example":"main_menu","nullable":true,"type":"string","x-struct":null,"x-validate":null},"speech_result":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["call","input","forward"],"type":"object","x-struct":null,"x-validate":null},"event":{"description":"Event type (also sent as `X-Whippy-Event`). Branch on this value.\n\nFull list and per-event `data` shapes are in the schema description.\n","enum":["call_flow.run.started","call_flow.input.received","call_flow.forward.call_no_answer","call_flow.forward.call_busy","call_flow.forward.call_failed","call_flow.forward.call_cancelled","call_flow.forward.call_completed","call_flow.forward.completed","call_flow.status.updated"],"example":"call_flow.run.started","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Unique delivery id (also X-Whippy-Delivery-Id)","example":"f1eebc99-9c0b-4ef8-bb6d-6bb9bd380a66","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["api_version","event","request_id","created_at","data"],"title":"CallFlowWebhookRequest","type":"object","x-struct":null,"x-validate":null},"IndexTeamResponse":{"description":"Index Team Response schema","example":{"data":[{"assignment_method":"round_robin","color":"#F0F0F0","description":"Description","emoji":"👨🏻‍🔧","id":"1287a6e1-e678-40b5-b5e6-cc6d039ee71e","inserted_at":"2023-06-22T07:13:31","location_ids":["59d92c9f-978d-4073-9f2e-779a14ebce21","9e8ada8e-a823-47f8-bd2a-423bfdb89e6c"],"name":"Example name","team_members":[{"id":"0f3f226b-b62a-4ba3-94de-80955f94d8a3","inserted_at":"2023-06-22T07:13:31","team_id":"4f52953b-6e0f-494e-ac86-822b344c95da","updated_at":"2023-06-22T07:13:31","user_id":1,"user_organization_id":3,"work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":null,"team_member_id":"f7556808-ab86-4a57-9d6d-986f7f26c1ec","timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}],"updated_at":"2023-06-22T07:13:31","work_schedules":[{"ends_at":"23:59","id":"36309e61-83e4-4d5c-b2d1-89797c86809c","inserted_at":"2023-06-22T07:13:31","starts_at":"00:00","team_id":"0d53234c-112f-496e-9448-571b4d60ac57","team_member_id":null,"timezone":"Europe/Sofia","updated_at":"2023-06-22T07:13:31","weekday":"Monday"}]}],"total":1},"properties":{"data":{"description":"List of Teams","items":{"description":"An organization's team","properties":{"assignment_method":{"default":"manual","description":"  The team's assignment method. There are three options - \"manual\", \"round_robin\", \"balanced\".\n  1) Manual - Conversations are not automatically assigned\n  2) Round Robin - Conversations are assigned to teammates in sequential order\n  3) Balanced - Conversations are assigned to teammates with the fewest active conversations\n","enum":["manual","round_robin","balanced"],"example":"balanced","type":"string","x-struct":null,"x-validate":null},"color":{"description":"Color","example":"#F0F0F0","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"Team description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Emoji","example":"🇺🇸","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"location_ids":{"description":"List of Location IDs","example":["d8a717aa-b628-4adc-a6de-a1a7c0b0946c","9ae4aad6-41f5-4f8b-99bb-bf81fe1de48a"],"items":{"description":"Location ID","example":"aa2120f7-0d62-4b41-a21c-7d03e78ba7fe","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"description":"Team name","pattern":"[a-zA-Z][a-zA-Z0-9_]+","type":"string","x-struct":null,"x-validate":null},"team_members":{"description":"List of Team's Members","items":{"description":"A Team's Member","properties":{"id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null},"user_organization_id":{"description":"User Organization ID","type":"integer","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team Member's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"work_schedules":{"description":"List of Team's Work Schedles","items":{"description":"A Team/TeamMember's Work Schedule","properties":{"ends_at":{"description":"Time that the Team/TeamMember stops working","type":"string","x-struct":null,"x-validate":null},"id":{"description":"WorkSchedule ID","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"starts_at":{"description":"Time that the Team/TeamMember starts working","type":"string","x-struct":null,"x-validate":null},"team_id":{"description":"Team ID","type":"string","x-struct":null,"x-validate":null},"team_member_id":{"description":"Team Member ID","type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"The timezone of the Team/TeamMember the Work Schedule is about.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Juneau","title":"Timezone","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Metadata for cursor-based pagination. Present only on cursor-paginated responses.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total number of Teams in the organization that match the search criteria","type":"integer","x-struct":null,"x-validate":null}},"title":"IndexTeamResponse","type":"object","x-struct":null,"x-validate":null},"ListAgentResponse":{"description":"Response schema for listing agents.","example":{"data":[{"created_at":"2024-02-28T12:33:40Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"current_version":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"default_call_flow":{"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1},"deleted_at":null,"deleted_by":null,"draft_version":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"id":"8109be5c-7e87-4345-a1c0-46047f3373f9","organization":{"id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","name":"Hello Inc."},"status":"active","updated_at":"2024-02-28T12:38:32Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"usage_mode":"ai_minutes"}],"total":1},"properties":{"data":{"description":"List of agents","items":{"description":"Agent record","properties":{"created_at":{"description":"Time of creation of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Data for the user that created the agent","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version":{"description":"Agent current version","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_call_flow":{"description":"Agent default call flow","example":{"color":"#FFA500","created_by_id":1,"description":"Call flow from the AI Agent Adrian that forwards the call to him","emoji":"🤖","id":"053a06c7-7f57-490f-a2bd-6737d20e07c6","name":"Forward to Agent: Adrian","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","updated_by_id":1},"properties":{"color":{"description":"Call flow color","example":"#000000","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"User ID that created the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Call flow description","example":"Call flow from the AI Agent Adrian that forwards the call to him","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"Call flow emoji","example":"🤖","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Call flow ID","example":"053a06c7-7f57-490f-a2bd-6737d20e07c6","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Call flow name","example":"Forward to Agent: Adrian","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID that the call flow belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"User ID that updated the call flow","example":1,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"deleted_at":{"description":"Time of deletion of the agent in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"deleted_by":{"description":"Data for the user that deleted the agent","properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version":{"description":"Agent draft version","example":{"agent_id":"8109be5c-7e87-4345-a1c0-46047f3373f9","created_at":"2024-04-30T08:56:24.260121Z","created_by_id":1,"description":"Law Agent","id":"a2805e8a-f238-4277-8128-9ae1922cd72f","llm_id":"411763af-8b73-4fd8-ba7e-59f5586633f5","name":"Adrian","notes":"Updated the greeting and escalation instructions","organization_id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","placeholders_filters":{},"published_at":"2024-04-30T08:56:24Z","settings":{"allow_user_dtmf":true,"ambient_sound":null,"ambient_sound_volume":1.0,"backchannel_frequency":0.8,"backchannel_words":null,"begin_message_delay_ms":0,"boosted_keywords":null,"denoising_mode":"noise-cancellation","enable_backchannel":false,"end_call_after_silence_ms":600000,"fallback_voice_ids":null,"interruption_sensitivity":1.0,"language":"multi","max_call_duration_ms":3600000,"max_chat_duration_ms":86400000,"normalize_for_speech":false,"post_call_analysis_data":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"post_call_analysis_model":"gpt-5.6-luna","pronunciation_dictionary":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"reminder_max_count":1,"reminder_trigger_ms":10000,"responsiveness":1.0,"stt_mode":"fast","vocab_specialization":"general","voice_id":"cartesia-Adrian","voice_model":"sonic-3","voice_speed":1.0,"voice_temperature":1.0,"voicemail_option":{"action":{"type":"hangup"}},"volume":1.0}},"nullable":true,"properties":{"agent_id":{"description":"ID of agent that the agent version belongs to","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the agent version in ISO 8601 format","example":"2024-04-30T08:56:24.260121Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"ID of the user that created the agent version","example":1,"type":"integer","x-struct":null,"x-validate":null},"description":{"description":"Agent description","example":"Law Agent","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Agent version ID","example":"a2805e8a-f238-4277-8128-9ae1922cd72f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"ID of the LLM in use by the agent version","example":"411763af-8b73-4fd8-ba7e-59f5586633f5","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Agent name","example":"Adrian","type":"string","x-struct":null,"x-validate":null},"notes":{"description":"Notes about the agent version","example":"Updated the greeting and escalation instructions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"ID of organization that the agent version belongs to","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"placeholders_filters":{"additionalProperties":{"properties":{"filter":{"description":"Filter rules that define which records populate the variable.","items":{"properties":{"column":{"description":"The column on the resource on which the comparison should be executed.","example":"status","type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"The comparison operator to use.","enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"example":"==","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"The resource on which the filter should be applied.","example":"job","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Value to compare. Its type depends on the comparison operator.","example":"active","x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"description":"Maximum number of records to return for the variable.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"sort":{"description":"Rules that define how the returned records are sorted.","items":{"properties":{"column":{"description":"Resource column to sort by.","example":"created_at","type":"string","x-struct":null,"x-validate":null},"order":{"description":"Sort direction.","enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null},"resource":{"description":"Resource to sort.","example":"job","type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["filter"],"type":"object","x-struct":null,"x-validate":null},"description":"User-defined variables populated by filtering records with Whippy Query Language (WQL).\n\nEach key is a variable name, such as `available_jobs`. Its value contains the `filter` rules that define which\nrecords populate the variable and may also contain `limit` and `sort`.\n\nAt runtime, Whippy filters records for the current contact and, where applicable, the current agent, then makes\nthe results available in the agent instructions:\n\n  * `{{@repeat available_jobs}}...{{@endrepeat}}` repeats the enclosed content for each matching record.\n    Fields within the repeated content can use placeholders such as `{{custom.job.title}}`.\n  * `{{@if available_jobs}}...{{@else}}...{{@endif}}` renders the first block when records match, or the\n    optional `@else` block when none match.\n","example":{"available_jobs":{"filter":[{"column":"status","comparison":"==","resource":"job","value":"active"}],"limit":10,"sort":[{"column":"created_at","order":"desc","resource":"job"}]}},"type":"object","x-struct":null,"x-validate":null},"published_at":{"description":"Time the agent version was published in ISO 8601 format","example":"2024-04-30T08:56:24Z","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Agent settings","properties":{"allow_user_dtmf":{"default":true,"description":"Agent allow user DTMF option.\n\nControls whether the agent allows the user to input DTMF (Dual-tone multi-frequency) signals (e.g., pressing keys on the phone keypad) during the call.\n","example":true,"type":"boolean","x-struct":null,"x-validate":null},"ambient_sound":{"description":"Agent ambient environment sound","enum":["coffee-shop","convention-hall","summer-outdoor","mountain-outdoor","static-noise","call-center"],"example":"coffee-shop","type":"string","x-struct":null,"x-validate":null},"ambient_sound_volume":{"default":1.0,"description":"Agent ambient environment sound volume, from 0 to 2.","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_frequency":{"default":0.8,"description":"Agent backchannel frequency.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement. Must be from 0 to 1.\n","example":0.8,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"backchannel_words":{"description":"Agent backchannel words.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":["okay","uh-huh","mhmm","yah"],"items":{"description":"Backchannel word","example":"okay","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"begin_message_delay_ms":{"default":0,"description":"Agent begin message delay ms setting.\n\nControls the time in milliseconds that the agent will wait once the call starts before saying the begin message. Must be from 0 to 5000.\n","example":0,"maximum":5000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"boosted_keywords":{"description":"Agent boosted keywords to bias the STT (Speech To Text) model.\n\nCommonly used for names, brands, street, etc.\n","example":["Whippy"],"items":{"description":"Boosted keyword","example":"Whippy","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"denoising_mode":{"description":"Agent denoising mode.\n\nCurrently supports:\n  * `noise-cancellation`: Reduces background noise and echoes.\n  * `noise-and-background-speech-cancellation`: Reduces background noise, echoes, and background speech (e.g. voices from TVs or nearby conversations).\n","enum":["noise-cancellation","noise-and-background-speech-cancellation"],"example":"noise-cancellation","type":"string","x-struct":null,"x-validate":null},"enable_backchannel":{"default":false,"description":"Agent backchannel enabled option.\n\nBackchannel is when the agent interjects the speaker with phrases like \"yeah\", \"uh-huh\" to signify interest and engagement.\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"end_call_after_silence_ms":{"default":600000,"description":"Agent end call after silence ms setting.\n\nControls the time in milliseconds to end the call when the user is unresponsive. Must be at least 10000.\n","example":600000,"minimum":10000,"type":"integer","x-struct":null,"x-validate":null},"fallback_voice_ids":{"description":"Fallback voice IDs to be used in case voice ID isn't available.\n\n**Must be from different TTS provider than voice ID.**\n","example":["openai-Echo"],"items":{"description":"Fallback voice ID","example":"openai-Echo","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"interruption_sensitivity":{"default":1.0,"description":"Agent interruption sensitivity.\n\nControls how sensitive the agent is to user interruptions. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"language":{"default":"multi","description":"Agent language.\n\nOnly used for the STT (Speech To Text) model. Use `multi` to enable multilingual operation across all supported languages.\n","enum":["en-US","en-IN","en-GB","de-DE","es-ES","es-419","hi-IN","ja-JP","pt-PT","pt-BR","fr-FR","zh-CN","ru-RU","it-IT","ko-KR","nl-NL","pl-PL","tr-TR","vi-VN","multi","en-AU","en-NZ","fr-CA","ro-RO","bg-BG","ca-ES","da-DK","fi-FI","el-GR","hu-HU","id-ID","no-NO","sk-SK","sv-SE","nl-BE","th-TH","sw-KE"],"example":"multi","type":"string","x-struct":null,"x-validate":null},"max_call_duration_ms":{"default":3600000,"description":"Agent max call duration ms setting.\n\nControls the time in milliseconds that a call can take before being automatically terminated. Must be from 60000 to 7200000.\n","example":3600000,"maximum":7200000,"minimum":60000,"type":"integer","x-struct":null,"x-validate":null},"max_chat_duration_ms":{"default":86400000,"description":"Agent max chat duration ms setting.\n\nControls the time in milliseconds that a chat agent can take before being automatically terminated.\n","example":86400000,"type":"integer","x-struct":null,"x-validate":null},"normalize_for_speech":{"default":false,"description":"Agent normalize for speech option.\n\nThis feature normalizes the text to it's speech form, e.g. \"The payment is $24.12\" -> \"The payment is twenty four dollars twelve cents\".\n","example":false,"type":"boolean","x-struct":null,"x-validate":null},"post_call_analysis_data":{"description":"Post call analysis data to extract from the call for the Agent.\n\n**It's defined as a JSON Schema object.**\n","example":{"properties":{"experience_in_years":{"description":"User's years of experience at the job","type":"integer"},"method":{"description":"User's preferred contact method","enum":["sms","phone","email"],"type":"string"},"overtime":{"description":"User's availability to work overtime","type":"boolean"},"user_email":{"description":"User's email address for contacting purposes","examples":["john.wayne@whippy.co","jonnyw@google.com"],"format":"email","type":"string"}},"required":["user_email","method","overtime","experience_in_years"],"type":"object"},"properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"post_call_analysis_model":{"default":"gpt-5.6-luna","description":"Agent post call analysis model.\n\nSpecifies the model used for post call analysis to extract structured data from the call.\n","enum":["gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-5","gpt-5-mini","gpt-5-nano","gpt-5.1","gpt-5.2","gpt-5.4","gpt-5.4-mini","gpt-5.4-nano","gpt-5.5","gpt-5.6-luna","gpt-5.6-terra","gpt-5.6-sol","gpt-6-astra","gpt-6-sol","gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol","claude-4.5-haiku","claude-5.5-haiku","claude-4.5-sonnet","claude-4.6-sonnet","claude-5-sonnet","claude-5.5-sonnet","claude-4-7-opus","claude-4-8-opus","claude-5-5-opus","gemini-2.5-flash","gemini-2.5-flash-lite","gemini-3.0-flash","gemini-3.1-flash-lite","gemini-3.1-pro","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.6-flash","gemini-3.7-flash","gemini-3.8-flash","glm-5.3","glm-5.3-flash","deepseek-v4.1-flash","qwen3.8-max"],"example":"gpt-5.6-luna","type":"string","x-struct":null,"x-validate":null},"pronunciation_dictionary":{"description":"Agent pronunciation dictionary.\n\nGuides the audio synthesizer for consistent pronunciation.\n","example":[{"alphabet":"ipa","phoneme":"ˈæktʃuəli","word":"actually"}],"items":{"description":"Pronunciation dictionary item","properties":{"alphabet":{"description":"Phonetic alphabet","enum":["ipa"],"example":"ipa","type":"string","x-struct":null,"x-validate":null},"phoneme":{"description":"Word in the phonetic alphabet format","example":"ˈæktʃuəli","type":"string","x-struct":null,"x-validate":null},"word":{"description":"Word or phrase","example":"actually","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"reminder_max_count":{"default":1,"description":"Agent reminder max count.\n\nControls how many times the agent will remind the user when user is unresponsive.\n","example":1,"minimum":0,"type":"integer","x-struct":null,"x-validate":null},"reminder_trigger_ms":{"default":10000,"description":"Agent reminder trigger ms setting.\n\nControls how long the agent waits, in milliseconds, before reminding an unresponsive user. Must be from 1000 to 30000.\n","example":10000,"maximum":30000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null},"responsiveness":{"default":1.0,"description":"Agent responsiveness.\n\nControls how responsive the agent is. Must be from 0 to 1.\n","example":1.0,"maximum":1.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"stt_mode":{"default":"fast","description":"Agent speech-to-text (STT) mode.\n\nControls the mode of the speech-to-text engine used for transcribing calls.\n","enum":["fast","accurate"],"example":"fast","type":"string","x-struct":null,"x-validate":null},"user_dtmf_options":{"deprecated":true,"description":"Deprecated. Use `allow_user_dtmf` to enable or disable caller keypad input.\n\nConfiguration for user DTMF input, such as digit limit, termination key, and timeout in milliseconds.\n","example":{"digit_limit":25,"termination_key":"#","timeout_ms":5000},"properties":{"digit_limit":{"description":"Maximum number of digits the user can input per turn.\n\nOnce this limit is reached, the input is considered complete and a response will be generated immediately.\n","example":25,"maximum":50,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"termination_key":{"description":"Single key that terminates DTMF input.","example":"#","pattern":"^[0-9#*]$","type":"string","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Timeout in milliseconds for DTMF input.\n\nThe timer resets with each digit received. Must be from 1000 to 15000.\n","example":5000,"maximum":15000,"minimum":1000,"type":"integer","x-struct":null,"x-validate":null}},"required":["timeout_ms"],"type":"object","x-struct":null,"x-validate":null},"vocab_specialization":{"default":"general","description":"Agent vocabulary specialization.\n\nControls the vocabulary specialization used for the agent.\n","enum":["general","medical"],"example":"general","type":"string","x-struct":null,"x-validate":null},"voice_id":{"default":"cartesia-Adrian","description":"Agent voice ID\n\n**Must be from the same provider as the LLM model in case it's a speech-to-speech model.**\n","example":"cartesia-Adrian","type":"string","x-struct":null,"x-validate":null},"voice_model":{"description":"Agent voice model.\n\nLeave `voice_model` unset or set it to `null` to let Whippy choose the best model.\n\nCurrently supports:\n  * `eleven_flash_v2`: English, very fast, good quality.\n  * `eleven_flash_v2_5`: Multilingual, very fast, good quality.\n  * `eleven_multilingual_v2`: Multilingual, slow, great quality.\n  * `eleven_v3`: Multilingual, fast, great quality.\n  * `eleven_v4`: Multilingual, slowest, best quality.\n  * `eleven_v4_turbo`: Multilingual, fastest, great quality.\n  * `gpt-4o-mini-tts`: Fast, good quality (OpenAI).\n  * `tts-1`: Slow, great quality (OpenAI).\n  * `sonic-3`: Fast, good quality (Cartesia).\n\n**Only works with their respective voices respectively.**\n","enum":["sonic-3","tts-1","gpt-4o-mini-tts","eleven_multilingual_v2","eleven_flash_v2","eleven_flash_v2_5","eleven_v3","eleven_v4","eleven_v4_turbo"],"example":"eleven_flash_v2_5","nullable":true,"type":"string","x-struct":null,"x-validate":null},"voice_speed":{"default":1.0,"description":"Agent voice speed.\n\nControls the voice speed of the agent. Must be from 0.5 to 2.\n","example":1.0,"maximum":2.0,"minimum":0.5,"type":"number","x-struct":null,"x-validate":null},"voice_temperature":{"default":1.0,"description":"Agent voice temperature.\n\nControls how stable the voice of the agent is, from 0 to 2. **Only works with voices that use an `eleven_*` model.**\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null},"voicemail_option":{"default":{"action":{"type":"hangup"}},"description":"Agent voicemail option.\n\nCurrently supports:\n  * `nil`: Disable the voicemail detection.\n  * `%{\"action\" => %{\"type\" => \"hangup\"}}`: Hang up the call once a voicemail is detected.\n  * `%{\"action\" => %{\"type\" => \"prompt\", \"text\" => prompt}}`: Leaves an AI generated message on the voicemail.\n  * `%{\"action\" => %{\"type\" => \"static_text\", \"text\" => message}}`: Leaves a static message on the voicemail.\n\n","example":{"action":{"type":"hangup"}},"properties":{"action":{"properties":{"text":{"description":"Text to use for the voicemail.\n\nRequired for `prompt` and `static_text` types. Not used for `hangup` type.\n","example":"Hello, this is Adrian. Please return the call whenever you're available","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of voicemail action","enum":["hangup","static_text","prompt"],"example":"hangup","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"volume":{"default":1.0,"description":"Agent volume.\n\nControls how loud the agent is. Must be from 0 to 2.\n","example":1.0,"maximum":2.0,"minimum":0,"type":"number","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Agent ID","example":"8109be5c-7e87-4345-a1c0-46047f3373f9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization":{"description":"Data for the organization that the agent belongs to","example":{"id":"baf9549c-ac3e-44fb-a39f-2b561d60f980","name":"Hello Inc."},"properties":{"id":{"description":"Organization ID","example":"baf9549c-ac3e-44fb-a39f-2b561d60f980","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Organization name","example":"Hello Inc.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Agent status","enum":["draft","active","archived","deleted"],"example":"archived","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the agent in ISO 8601 format","example":"2024-01-06T12:19:39Z","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Data for the user that updated the agent","example":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"usage_mode":{"description":"Usage mode of the Agent","enum":["ai_minutes","completed_calls"],"example":"ai_minutes","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of agents that match the search criteria","type":"integer","x-struct":null,"x-validate":null}},"title":"ListAgentResponse","type":"object","x-struct":null,"x-validate":null},"UserChannelResponse":{"description":"Response schema for a user channel","example":{"channel_id":"d960d91a-fb7d-4acd-a3b8-e00215b56ce4","id":"bce84075-f4d1-4f47-9037-c4a4340ec154","user_id":123},"properties":{"channel_id":{"description":"Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"User ID","type":"integer","x-struct":null,"x-validate":null}},"title":"UserChannelResponse","type":"object","x-struct":null,"x-validate":null},"ListContactSequencesResponse":{"description":"Response schema for listing contact sequences data","example":{"data":[{"contact_id":"e4f7fbf1-0e62-49a7-b306-fd002cd5116b","contact_status":"active","sequence_access_level":"organization","sequence_description":"Sequence Description","sequence_id":"d811672e-b55b-4451-b15d-1192f69a9de1","sequence_inserted_at":"2023-04-05T14:49:53Z","sequence_status":"active","sequence_title":"Sequence Title","sequence_type":"sequential","sequence_updated_at":"2023-04-05T15:18:50Z","step_id":"c57897a7-fe6f-4a78-aeef-255dcce2a03f","step_status":"active","step_title":"Step Title"}],"total":1},"properties":{"data":{"description":"List of contact sequences data (sequences the contact currently is, will be or has been in).","items":{"description":"Data for a single contact sequence.","properties":{"contact_id":{"description":"Contact ID","example":"c2ca1151-d030-45e6-b817-2b5b2c78a08a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"contact_status":{"description":"Contact Status in the Sequence Step","enum":["pending","active","inactive","moved","finished"],"example":"active","type":"string","x-struct":null,"x-validate":null},"sequence_access_level":{"description":"Sequence Access Level","enum":["user","location","organization","global"],"example":"organization","type":"string","x-struct":null,"x-validate":null},"sequence_description":{"description":"Sequence Description","type":"string","x-struct":null,"x-validate":null},"sequence_id":{"description":"Sequence ID","example":"aa127848-e825-49e2-913c-c3ca12250654","format":"uuid","type":"string","x-struct":null,"x-validate":null},"sequence_inserted_at":{"description":"Time of creation of the sequence in ISO 8601 format","example":"2023-04-05 14:49:53.000000","format":"date-time","type":"string","x-struct":null,"x-validate":null},"sequence_status":{"description":"Sequence Status","enum":["draft","active"],"example":"active","type":"string","x-struct":null,"x-validate":null},"sequence_title":{"description":"Sequence Title","example":"Sequence Title","type":"string","x-struct":null,"x-validate":null},"sequence_type":{"description":"Sequence Type","enum":["sequential","branched"],"example":"sequential","type":"string","x-struct":null,"x-validate":null},"sequence_updated_at":{"description":"Time of last update of the sequence in ISO 8601 format","example":"2023-04-05 15:18:50.000000","format":"date-time","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"2c1e75e3-6d8b-4ef9-9f52-19db8fe81869","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_status":{"description":"Step Status","enum":["active"],"example":"active","type":"string","x-struct":null,"x-validate":null},"step_title":{"description":"Step Title","example":"Step Title","type":"string","x-struct":null,"x-validate":null}},"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total number of contact sequences matching the filters","example":1,"type":"integer","x-struct":null,"x-validate":null}},"title":"ListContactSequencesResponse","type":"object","x-struct":null,"x-validate":null},"UpdateAgentTestDraftParams":{"description":"Replaces fields on the editable draft. Published rows cannot be written.","example":{"revision":1,"situation":"Caller wants to cancel.","success_criteria":"Agent cancels the appointment."},"properties":{"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maximum_turns":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"revision":{"description":"Current draft revision.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_policy":{"description":"Which agent configuration this definition runs. This is not the test's draft or published state.","properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["revision"],"title":"UpdateAgentTestDraftParams","type":"object","x-struct":null,"x-validate":null},"CustomObjectRecordIndexUnprocessableContentErrorResponse":{"description":"List of error responses for invalid Custom Object Record index pagination params.","example":{"errors":[{"description":"Offset must be an integer greater than or equal to 0"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object Record index 422 errors","items":{"description":"Single 422 error","properties":{"description":{"enum":["Invalid cursor format","Limit must be greater than 0","Limit must be 500 or less","Offset parameter is not compatible with cursor-based pagination","Offset must be greater than or equal to 0","Offset must be an integer greater than or equal to 0"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectRecordIndexUnprocessableContentErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomData.Errors.IndexUnprocessableContent","x-validate":null},"ListDeveloperApplicationsResponse":{"description":"Response schema for listing developer applications.","example":{"data":[{"active":true,"api_key":{"active":true,"created_at":"2021-06-22T07:45:45","id":"893ae901-107e-4122-ba5c-24ac072f5898","name":"Zapier Integration Key","updated_at":"2021-06-22T07:45:45"},"created_at":"2021-06-22T07:45:45","deleted":false,"description":"Application for space travel with Whippy.","endpoints":[{"active":true,"created_at":"2021-06-22T07:45:45","deleted":false,"developer_application_id":"70c5c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","campaign.created","campaign.updated"],"id":"143ebc90-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.spacetravel.com/webhooks"},{"active":true,"created_at":"2021-06-22T07:45:45","deleted":false,"developer_application_id":"70c5c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","lead.new"],"id":"143ebc90-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.Interdimensionaltravel.com/webhooks"}],"id":"70c5c186-107e-4122-ba5c-24ac072f5898","name":"Space Application","organization_id":"89ca0f43db-107e-4122-ba5c-24ac072f5898","updated_at":"2021-06-22T07:45:45"},{"active":true,"api_key":{"active":true,"created_at":"2021-06-22T07:45:45","id":"09gae901-107e-4122-ba5c-24ac072f5898","name":"Logging Integration API Key","updated_at":"2021-06-22T07:45:45"},"created_at":"2021-06-22T07:45:45","deleted":false,"description":"Application for interdimensional travel with Whippy.","endpoints":[{"active":true,"created_at":"2021-06-22T07:45:45","deleted":false,"developer_application_id":"70c5c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","campaign.created","campaign.updated"],"id":"143ebc90-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.spacetravel.com/webhooks"},{"active":true,"created_at":"2021-06-22T07:45:45","deleted":false,"developer_application_id":"70c5c186-107e-4122-ba5c-24ac072f5898","event_types":["message.created","message.updated","lead.new"],"id":"143ebc90-107e-4122-ba5c-24ac072f5898","method":"POST","updated_at":"2021-06-22T07:45:45","url":"https://www.Interdimensionaltravel.com/webhooks"}],"id":"0ba4f325-6488-4d14-b926-49deb743881a","name":"Interdimensional Application","organization_id":"89ca0f43db-107e-4122-ba5c-24ac072f5898","updated_at":"2021-06-22T07:45:45"}],"total":2},"properties":{"data":{"description":"List of developer applications","items":{"description":"Single developer application data","properties":{"active":{"description":"Activated status of the developer applicaiton","example":true,"type":"boolean","x-struct":null,"x-validate":null},"api_key":{"description":"API Key that the application belongs to.","properties":{"active":{"description":"Activated status of the key","example":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Date the API key is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"API Key ID","example":"893ae901-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"API Key name","example":"Zapier Integration Key","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the API key was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_at":{"description":"Date the developer application is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"deleted":{"description":"Deleted flag for the developer application","type":"boolean","x-struct":null,"x-validate":null},"description":{"description":"Description of the developer application","example":"Application for space travel with Whippy.","type":"string","x-struct":null,"x-validate":null},"endpoints":{"description":"List of developer endpoints belonging to the application","items":{"description":"Data for a single endpoint in the application","properties":{"active":{"description":"Activated status of the endpoint","example":true,"type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Date the developer endpoint is created at in ISO 8601 format","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"deleted":{"description":"Deleted flag for the developer endpoint","type":"boolean","x-struct":null,"x-validate":null},"developer_application_id":{"description":"Developer Application ID","example":"70c5c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"event_types":{"description":"List of events the developer endpoint is subscribed to","example":["message.created","message.updated","message.opened","message.bounced","call.started","call.parked","call.unparked","call.ended","call.analyzed","conversation.created","conversation.updated","contact.created","contact.updated","contact.merged","communication_preference.updated","communication_preference.opt_out","lead.new","campaign.created","campaign.updated","sequence.created","sequence.updated","step.created","step.updated","step_contact.created","step_contact.updated","sequence_run.created","sequence_run.updated","custom_object.created","custom_object.updated","custom_object.deleted","custom_object_record.created","custom_object_record.updated","custom_object_record.deleted","custom_property.created","custom_property.updated","custom_property.deleted","message_template.created","message_template.updated","message_template.deleted","link.click","form_response.created","form_response.updated","form_response.submitted","agent_tool_execution.completed","conversation_agent_session.started","conversation_agent_session.ended","conversation_agent_session.analyzed"],"items":{"description":"Single event subscribed to. Includes the name of a resource and an action separated by a period.","example":"message.created","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Developer Endpoint ID","example":"143ebc90-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"method":{"description":"HTTP method the webhook would be sent with","enum":["POST"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the developer endpoint was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the endpoint that would receive webhooks","example":"https://www.spacetravel.com/webhooks","format":"url","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Developer Application ID","example":"70c5c186-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Name of the developer application","example":"Space Application","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID of the developer application organization","example":"89ca0f43db-107e-4122-ba5c-24ac072f5898","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the developer application was last updated at","example":"2021-06-22T07:45:45","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total count of developer applications","type":"integer","x-struct":null,"x-validate":null}},"title":"ListDeveloperApplicationsResponse","type":"object","x-struct":null,"x-validate":null},"TeamWorkScheduleIndexCreateBadRequestErrorResponse":{"description":"Work Schedule Bad Request Error Response schema for listing and creating team schedules","example":{"errors":[{"description":"Invalid path param Team ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Work Schedule 400 error","items":{"properties":{"description":{"enum":["Invalid path param Team ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"TeamWorkScheduleIndexCreateBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Teams.WorkSchedule.Errors.TeamIndexCreateBadRequest","x-validate":null},"PublicCallFlowNotFoundErrorResponse":{"description":"Call Flow not found. Also returned for cross-org ids, and for static IVR\nids on show or on update without `webhook_config` (convert requires a\nnon-blank `webhook_config.url`).\n","example":{"errors":[{"description":"Call Flow not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Call Flow 404 errors","items":{"properties":{"description":{"enum":["Call Flow not found"],"example":"Call Flow not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"PublicCallFlowNotFoundErrorResponse","type":"object","x-struct":null,"x-validate":null},"AgentSkillNotFoundErrorResponse":{"description":"Agent Skill Not Found Error Response schema","example":{"errors":[{"description":"Agent skill not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"enum":["Agent skill not found"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[404],"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentSkillNotFoundErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.AgentSkills.AgentSkill.Errors.NotFound","x-validate":null},"LLMUnprocessableContentErrorResponse":{"additionalProperties":false,"description":"List of error responses for invalid LLM requests.","example":{"errors":[{"description":"Limit must be between 1 and 100"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"LLM 422 errors","items":{"additionalProperties":false,"description":"Single 422 error","properties":{"description":{"description":"Human-readable explanation of the invalid request.","example":"Limit must be between 1 and 100","type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"LLMUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"CampaignUpdateIncludedAudience":{"description":"Whippy Query filter items for the contacts to include. Each item is a column comparison or a\n`logical_group`. Accepted for a draft or recurring campaign.\n","items":{"$ref":"#/components/schemas/CampaignAudienceFilterItem"},"title":"CampaignUpdateIncludedAudience","type":"array","x-struct":null,"x-validate":null},"SequenceRun":{"description":"The Sequence Run","properties":{"contact":{"description":"The Contact tied to the Sequence Run","properties":{"email":{"description":"The email of the contact.","example":"johndoe@gmail.com","format":"string","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Contact","example":"1ca3b287-d8e2-4a2e-9332-b040c40b3a59","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"The name of the contact tied to the sequence run.","example":"John Doe","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"The phone number of the contact.","example":"+14244019001","type":"string","x-struct":null,"x-validate":null}},"title":"Contact","type":"object","x-struct":null,"x-validate":null},"created_at":{"description":"The time the sequence run was created in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"custom_data":{"additionalProperties":{"properties":{"external_id":{"description":"The record's ID in the source system (e.g. the ATS)","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"description":"The Whippy ID of the custom object record","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":"The custom object records that matched the segment that enrolled the contact, keyed by custom object key. Resolved once when the run is created. Null when the contact wasn't enrolled by a segment, the segment doesn't filter on custom objects, or no record matched.","example":{"placement":{"external_id":"PL-1001","id":"0b8a6c1e-3f0d-4c2a-9d57-1f6e2b7c4a90"}},"nullable":true,"title":"SequenceRunCustomData","type":"object","x-struct":null,"x-validate":null},"id":{"description":"Sequence Run ID","example":"c929bb63-c272-418d-b00c-459133b1446e","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_contacts":{"description":"The Step Contact tied to the Sequence Run","properties":{"clicked_link":{"description":"A boolean reflecting if the user has clicked on the link tied to this step","example":true,"type":"boolean","x-struct":null,"x-validate":null},"contact_messages":{"description":"An array of messages","items":{"description":"The message data for a sequence run.","properties":{"body":{"description":"Message body","type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"delivery_status":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"sent","type":"string","x-struct":null,"x-validate":null},"error":{"description":"Message error","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"Message","type":"object","x-struct":null,"x-validate":null},"title":"ContactMessages","type":"array","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Step Contact","example":"5a61fa05-14f6-4b1a-8669-c687b32b8306","format":"uuid","type":"string","x-struct":null,"x-validate":null},"status":{"description":"The status of the Step Contact","enum":["pending","active","inactive","moved","finished"],"example":"removed","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"The ID of the Step that this Step Contact is associated with.","example":"3edeb8c7-e7dd-4052-b312-90b76721bacf","format":"uuid","type":"string","x-struct":null,"x-validate":null},"unsubscribed":{"description":"If the contact has chosen to unsubscribe to the sequence","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"title":"StepContact","type":"object","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the sequence run in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"title":"SequenceRun","type":"object","x-struct":null,"x-validate":null},"CreateDeveloperApplicationParams":{"description":"Request schema for creating a developer application in an organization.","example":{"active":true,"api_key":"893ae901-107e-4122-ba5c-24ac072f5898","description":"API Developer Application for cosmic integrations","name":"Space Application"},"properties":{"active":{"description":"Application active status","example":true,"type":"boolean","x-struct":null,"x-validate":null},"api_key":{"description":"API key token value to associate with the application. Required when authenticating with an OAuth bearer token; when using the X-WHIPPY-KEY header, the header value is used automatically.","example":"893ae901-107e-4122-ba5c-24ac072f5898","type":"string","x-struct":null,"x-validate":null},"description":{"description":"General application description","example":"Application for interstellar travel.","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Application name","example":"Space Application","type":"string","x-struct":null,"x-validate":null}},"title":"CreateDeveloperApplicationParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Developers.Application.CreateParams","x-validate":null},"CallFlowWebhookResponse":{"description":"Every successful webhook response is\n`{ \"action\": { \"command\", \"arg\" }, \"customer_state\"? }`.\n\nShapes below are the **only** accepted `action` values for programmable flows.\n\nRules:\n* One `action` object — `actions` arrays are rejected\n* Inline `arg` map (or `null` only for `end_call`) — string args /\n  config `reference_key` lookups are rejected\n* Invalid JSON / invalid `action` → Whippy `end_call` fallback\n\n---\n\n## `menu` — Prompts for digits / speech\n\nPlays a given text or audio file and waits for the user’s input. The digits pressed are\nthen sent back in the subsequent webhook call with the `call_flow.input.received` event,\nalong with the same reference key.\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `prompt.content_type` | yes | `\"text\"` or `\"recording_url\"` |\n| `prompt.content` | yes | Spoken text or recording URL |\n| `timeout_secs` | yes | Integer **1–60** (Twilio Gather timeout) |\n| `reference_key` | yes | Opaque string echoed on `input.received` |\n\n```json\n{\n  \"action\": {\n    \"command\": \"menu\",\n    \"arg\": {\n      \"prompt\": {\n        \"content_type\": \"text\",\n        \"content\": \"Press 1 for sales, 2 for support.\"\n      },\n      \"timeout_secs\": 15,\n      \"reference_key\": \"main_menu\"\n    }\n  },\n  \"customer_state\": { \"step\": \"awaiting_menu\" }\n}\n```\n\nRecording prompt:\n\n```json\n{\n  \"action\": {\n    \"command\": \"menu\",\n    \"arg\": {\n      \"prompt\": {\n        \"content_type\": \"recording_url\",\n        \"content\": \"https://cdn.example/prompts/main-menu.mp3\"\n      },\n      \"timeout_secs\": 10,\n      \"reference_key\": \"main_menu\"\n    }\n  }\n}\n```\n\n---\n\n## `forward_to_phone_number` — dial an E.164 number\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `phone_number` | yes | Valid E.164 |\n| `caller_id` | no | `\"caller\"` or `\"channel\"` (default when omitted), The Name/ID that will be displayed to the recipient. |\n\n```json\n{\n  \"action\": {\n    \"command\": \"forward_to_phone_number\",\n    \"arg\": {\n      \"phone_number\": \"+14155552671\",\n      \"caller_id\": \"channel\"\n    }\n  }\n}\n```\n\n---\n\n## `forward_to_user` — dial a Whippy user\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `user_id` | yes | String user id in the Call Flow's organization |\n\n```json\n{\n  \"action\": {\n    \"command\": \"forward_to_user\",\n    \"arg\": { \"user_id\": \"12590\" }\n  }\n}\n```\n\n---\n\n## `forward_to_agent` — hand off to an AI agent\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `agent_id` | yes | UUID of an agent in the organization |\n\n```json\n{\n  \"action\": {\n    \"command\": \"forward_to_agent\",\n    \"arg\": { \"agent_id\": \"9079b695-8421-44ee-bad4-386f5c8b04cf\" }\n  }\n}\n```\n\n---\n\n## `forward_to_team` — dial a member list\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `members` | yes | Non-empty list of `{ type, value }` |\n\nEach response's `members` list is evaluated from scratch — Whippy\ncarries no dial progress between responses, so the same list dials the same targets\nagain if you resend it.\n\n`channel_id` expands to the channel's subscribed users, and at most 10 targets ring together (Twilio's simultaneous dial limit).\n\nOn the next forward outcome event, `data.forward.remaining_members.overflow` lists members past that cap.\n\n```json\n{\n  \"action\": {\n    \"command\": \"forward_to_team\",\n    \"arg\": {\n      \"members\": [\n        { \"type\": \"user_id\", \"value\": \"42\" },\n        { \"type\": \"number\", \"value\": \"+15550001111\" },\n        { \"type\": \"channel_id\", \"value\": \"e1eebc99-9c0b-4ef8-bb6d-6bb9bd380a55\" }\n      ]\n    }\n  }\n}\n```\n\nIf no one from the given member list answers the call, Whippy POSTs\n`call_flow.forward.call_no_answer`. `data.forward.attempted_members`\n(targets that were dialed) and `data.forward.remaining_members` are optional:\nboth are omitted when every member was dialed. When some members were not dialed,\n`remaining_members`' `overflow`, `on_call_filtered`, and `alert_filtered` buckets list\nundialed targets — not attempted members. It’s up to the integrator to\ndecide the next action (dial remaining members, voicemail, forward to an\nagent, …).\n\n---\n\n## `ring_channel_user` — ring users assigned to the inbound channel\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `ring_order` | yes | `\"sequential\"`, `\"batch\"`, or `\"random\"` |\n\n```json\n{\n  \"action\": {\n    \"command\": \"ring_channel_user\",\n    \"arg\": { \"ring_order\": \"batch\" }\n  }\n}\n```\n\n---\n\n## `voicemail` — record a message\n\n| Field | Required | Notes |\n|-------|----------|-------|\n| `prompt.content_type` | yes | `\"text\"` or `\"recording_url\"` |\n| `prompt.content` | yes | Spoken text or recording URL |\n\n```json\n{\n  \"action\": {\n    \"command\": \"voicemail\",\n    \"arg\": {\n      \"prompt\": {\n        \"content_type\": \"text\",\n        \"content\": \"Please leave a message after the beep.\"\n      }\n    }\n  }\n}\n```\n\n---\n\n## `end_call` — hang up\n\nInline `prompt` is **optional**.\n\n| `arg` | Behavior |\n|-------|----------|\n| `null` | Plays Call Flow `closing_greeting` when present (may be empty) |\n| `{ \"prompt\": … }` | Plays your prompt instead |\n\nDelivery/validation failures use a separate apology path — not this response.\n\n```json\n{\n  \"action\": {\n    \"command\": \"end_call\",\n    \"arg\": {\n      \"prompt\": {\n        \"content_type\": \"text\",\n        \"content\": \"Thanks for calling. Goodbye.\"\n      }\n    }\n  },\n  \"customer_state\": { \"step\": \"done\" }\n}\n```\n\nNull arg (no custom prompt):\n\n```json\n{\n  \"action\": {\n    \"command\": \"end_call\",\n    \"arg\": null\n  }\n}\n```\n\n","example":{"action":{"arg":{"prompt":{"content":"Thanks for calling. Press 1 for sales, 2 for support.","content_type":"text"},"reference_key":"main_menu","timeout_secs":5},"command":"menu"},"customer_state":{"step":"awaiting_menu"}},"properties":{"action":{"description":"Single inline action Whippy executes next.\nFull field tables and JSON examples are in the schema description.\n","oneOf":[{"properties":{"arg":{"example":{"prompt":{"content":"Press 1 for sales, 2 for support.","content_type":"text"},"reference_key":"main_menu","timeout_secs":5},"properties":{"prompt":{"properties":{"content":{"description":"Spoken text or recording URL","type":"string","x-struct":null,"x-validate":null},"content_type":{"enum":["text","recording_url"],"type":"string","x-struct":null,"x-validate":null}},"required":["content_type","content"],"type":"object","x-struct":null,"x-validate":null},"reference_key":{"description":"Opaque string echoed on `call_flow.input.received`","example":"main_menu","type":"string","x-struct":null,"x-validate":null},"timeout_secs":{"description":"Twilio Gather timeout in seconds (1–60)","example":5,"maximum":60,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["prompt","timeout_secs","reference_key"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["menu"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"arg":{"example":{"caller_id":"channel","phone_number":"+14155552671"},"properties":{"caller_id":{"description":"Caller ID presented to the recipient (defaults to channel when omitted)","enum":["caller","channel"],"example":"channel","type":"string","x-struct":null,"x-validate":null},"phone_number":{"description":"E.164 destination number","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"required":["phone_number"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["forward_to_phone_number"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"arg":{"example":{"user_id":"12590"},"properties":{"user_id":{"description":"String user id in the Call Flow's organization","example":"12590","type":"string","x-struct":null,"x-validate":null}},"required":["user_id"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["forward_to_user"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"arg":{"example":{"agent_id":"9079b695-8421-44ee-bad4-386f5c8b04cf"},"properties":{"agent_id":{"description":"UUID of an agent in the organization","example":"9079b695-8421-44ee-bad4-386f5c8b04cf","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["agent_id"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["forward_to_agent"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"arg":{"additionalProperties":false,"example":{"members":[{"type":"user_id","value":"42"},{"type":"number","value":"+15550001111"}]},"properties":{"members":{"description":"Non-empty list of `{ type, value }` dial targets","items":{"properties":{"type":{"enum":["number","user_id","channel_id","agent"],"example":"user_id","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Member destination (E.164, user id, channel id, or agent id)","example":"42","type":"string","x-struct":null,"x-validate":null}},"required":["type","value"],"type":"object","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["members"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["forward_to_team"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"arg":{"example":{"ring_order":"batch"},"properties":{"ring_order":{"enum":["sequential","batch","random"],"example":"batch","type":"string","x-struct":null,"x-validate":null}},"required":["ring_order"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["ring_channel_user"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"arg":{"example":{"prompt":{"content":"Please leave a message after the beep.","content_type":"text"}},"properties":{"notification_emails":{"description":"Optional notification email addresses (max 10)","items":{"format":"email","type":"string","x-struct":null,"x-validate":null},"maxItems":10,"type":"array","x-struct":null,"x-validate":null},"prompt":{"properties":{"content":{"description":"Spoken text or recording URL","type":"string","x-struct":null,"x-validate":null},"content_type":{"enum":["text","recording_url"],"type":"string","x-struct":null,"x-validate":null}},"required":["content_type","content"],"type":"object","x-struct":null,"x-validate":null}},"required":["prompt"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["voicemail"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null},{"properties":{"arg":{"description":"`null` plays Call Flow closing_greeting when present; object plays inline prompt","example":{"prompt":{"content":"Thanks for calling. Goodbye.","content_type":"text"}},"nullable":true,"properties":{"prompt":{"properties":{"content":{"description":"Spoken text or recording URL","type":"string","x-struct":null,"x-validate":null},"content_type":{"enum":["text","recording_url"],"type":"string","x-struct":null,"x-validate":null}},"required":["content_type","content"],"type":"object","x-struct":null,"x-validate":null}},"required":["prompt"],"type":"object","x-struct":null,"x-validate":null},"command":{"enum":["end_call"],"type":"string","x-struct":null,"x-validate":null}},"required":["command","arg"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"customer_state":{"additionalProperties":true,"description":"Optional opaque JSON echoed on later webhook events.\nIntegrator-owned; Whippy does not interpret it.\n","example":{"step":"awaiting_menu"},"type":"object","x-struct":null,"x-validate":null}},"required":["action"],"title":"CallFlowWebhookResponse","type":"object","x-struct":null,"x-validate":null},"CampaignBadREquestErrorResponse":{"description":"Campaign Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Campaign 400 error","items":{"properties":{"description":{"enum":["Invalid path param ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"CampaignBadREquestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.Errors.BadRequest","x-validate":null},"ListCustomObjectsResponse":{"description":"Response schema for listing Custom Objects.","example":{"data":[{"ai_context":"This object tracks customer contact details for sales outreach","color":"#ffeb3b","created_at":"2023-07-27T14:56:01","created_by":{"attachment":{"content_type":"image/jpeg","url":"https://demo.twilio.com/owl.png"},"default_signature_id":null,"email":"example@whippy.co","id":"28487616-380a-4807-a419-65ab74491de1","name":null},"custom_properties":[{"created_at":"2023-07-27T14:56:01","created_by_id":42,"custom_object_id":"a3b0e0a0-a278-4b29-9386-129967265856","default":null,"id":"095c2507-fb20-4f05-b586-ddb54ce77e10","key":"city","label":"City","required":false,"type":"text","updated_at":"2023-07-27T14:56:01"}],"description":"description","emoji":"✨","id":"a3b0e0a0-a278-4b29-9386-129967265856","integration_client":null,"integration_id":null,"key":"contact_address","label":"Contact Address","updated_at":"2023-07-27T14:56:01","updated_by":{"attachment":{"content_type":"image/jpeg","url":"https://demo.twilio.com/owl.png"},"default_signature_id":null,"email":"example@whippy.co","id":"28487616-380a-4807-a419-65ab74491de1","name":null},"whippy_associations":[{"id":"123e4567-e89b-12d3-a456-426614174000","source_property_key":"candidate_id","target_property_key":"external_id","target_property_key_prefix":"cont-","target_whippy_resource":"contact","type":"one_to_one"}]}],"total":1},"properties":{"data":{"items":{"properties":{"ai_context":{"description":"Additional context information for AI features","example":"This object tracks customer contact details for sales outreach","type":"string","x-struct":null,"x-validate":null},"associations":{"items":{"properties":{"id":{"description":"The ID of the Association","example":"37145b8a-051a-4ecb-9970-19690f6767a5","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Optional relationship name that makes this association individually addressable when a type has multiple associations to the same target type.","example":"approving_client","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"The key of the Custom Property in the source Custom Object","example":"city","type":"string","x-struct":null,"x-validate":null},"target_data_type_id":{"description":"The ID of the Custom Object that contains the referenced Custom Property","example":"e1cad7a3-50a1-4695-96d9-80f3aede440b","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"The key of the Custom Property in the target Custom Object","example":"shop","type":"string","x-struct":null,"x-validate":null},"type":{"description":"The type of the Association","enum":["many_to_one","many_to_many","one_to_one","one_to_many"],"example":"one_to_many","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"color":{"description":"The color of the Custom Object","example":"#000000","type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"The date and time the Custom Object was inserted","example":"2023-07-27T14:56:01","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"description":"Created by user","example":{"attachment":{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/user.jpg"},"email":"example@whippy.co","id":1,"name":"User name"},"format":"date-time","properties":{"attachment":{"description":"User attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"email":{"description":"User email","example":"example@whippy.co","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"custom_properties":{"description":"The Custom Properties of the Custom Object","items":{"properties":{"created_at":{"description":"The date and time the Custom Property was inserted","example":"2023-07-27T14:56:01","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"The ID of the user who created this property. Null when an integration defined it.","example":42,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"default":{"description":"The default value of the Custom Property","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The id of the Custom Property","example":"095c2507-fb20-4f05-b586-ddb54ce77e10","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Property in snake case","example":"city","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Property","example":"City","type":"string","x-struct":null,"x-validate":null},"required":{"description":"Whether the Custom Property is required","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"The type of the Custom Property","enum":["text","number","float","boolean","date","list","map"],"example":"text","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Property was updated","example":"2023-07-27T14:56:01","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"minItems":0,"type":"array","x-struct":null,"x-validate":null},"description":{"description":"The label description of the Custom Object","example":"label description","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"The emoji of the Custom Object","example":"✨","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Custom Object","example":"a3b0e0a0-a278-4b29-9386-129967265856","type":"string","x-struct":null,"x-validate":null},"integration_client":{"description":"The integration provider slug (e.g. 'aqore', 'tempworks'). Null for manually-created Custom Objects.","example":"aqore","nullable":true,"type":"string","x-struct":null,"x-validate":null},"integration_id":{"description":"The ID of the integration this Custom Object belongs to. Null for manually-created Custom Objects.","example":"01934a59-2ef2-7903-bddc-284413538f41","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"key":{"description":"The key of the Custom Object in snake case","example":"contact_address","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The label of the Custom Object","example":"Contact Address","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"The date and time the Custom Object was updated","example":"2023-07-27T14:56:01","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"description":"Updated by user","example":{"attachment":{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/user.jpg"},"email":"example@whippy.co","id":1,"name":"User name"},"format":"date-time","properties":{"attachment":{"description":"User attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"email":{"description":"User email","example":"example@whippy.co","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"User name","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"whippy_associations":{"description":"Whippy associations for this Custom Object","example":[{"id":"123e4567-e89b-12d3-a456-426614174000","source_property_key":"candidate_id","target_property_key":"external_id","target_property_key_prefix":"cont-","target_whippy_resource":"contact","type":"one_to_one"}],"items":{"properties":{"id":{"description":"The ID of the WhippyAssociation","example":"123e4567-e89b-12d3-a456-426614174000","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Optional relationship name that makes this whippy association individually addressable when a type links to the same Whippy resource more than once.","example":"candidate_contact","type":"string","x-struct":null,"x-validate":null},"source_property_key":{"description":"Source property key","example":"candidate_id","type":"string","x-struct":null,"x-validate":null},"target_property_key":{"description":"Target property key on the Whippy resource","example":"external_id","type":"string","x-struct":null,"x-validate":null},"target_property_key_prefix":{"description":"Prefix for target property key","example":"cont-","type":"string","x-struct":null,"x-validate":null},"target_whippy_resource":{"description":"Target Whippy resource","example":"contact","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of association","example":"one_to_one","type":"string","x-struct":null,"x-validate":null}},"required":["type","target_whippy_resource","source_property_key","target_property_key"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"The total number of Custom Objects","example":1,"type":"integer","x-struct":null,"x-validate":null}},"title":"ListCustomObjectsResponse","type":"object","x-struct":null,"x-validate":null},"removeContactsParams":{"description":"Request schema for removing contacts on a sequence.","example":{"contacts":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}]},"properties":{"contacts":{"description":"List of contacts that would be removed to the sequence.","items":{"description":"Data for a contact that would be removed from the sequence.","properties":{"address":{"description":"Optional Address details of the Contact","example":{"address_line_one":"some street 1","address_line_two":null,"city":"Los Angeles","country":"USA","post_code":"90046","state":"CA"},"properties":{"address_line_one":{"description":"The first line of the address.","type":"string","x-struct":null,"x-validate":null},"address_line_two":{"description":"The second line of the address.","type":"string","x-struct":null,"x-validate":null},"city":{"description":"The city of the contact.","example":"Los Angeles","type":"string","x-struct":null,"x-validate":null},"country":{"description":"The country of the contact.","example":"USA","type":"string","x-struct":null,"x-validate":null},"post_code":{"description":"The postal code of the contact.","example":"90046","type":"string","x-struct":null,"x-validate":null},"state":{"description":"The state of the contact.","example":"CA","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"birth_date":{"description":"Birthday details of the Contact.","example":{"day":1,"month":1,"year":1980},"properties":{"day":{"description":"The day of the month.","example":1,"type":"integer","x-struct":null,"x-validate":null},"month":{"description":"The month of the year.","example":1,"type":"integer","x-struct":null,"x-validate":null},"year":{"description":"The year of the birth.","example":1980,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"default_channel_id":{"description":"The ID of the channel from which the contact should receive messages by default.","example":"b9416fea-0676-402d-a112-c45a8e194203","format":"uuid","type":"string","x-struct":null,"x-validate":null},"email":{"description":"Contact email","example":"ziggy.stardust@example.com","format":"email","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"external_id":{"description":"The external ID of a contact. It uniquely identifies a contact and\ncan be useful for associating whippy contacts with external systems.\n","example":"4321","type":"string","x-struct":null,"x-validate":null},"language":{"description":"The language preference of the Contact","example":"en","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Contact name","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"opt_in_email":{"description":"Whether the contact is opted in to email at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_in_sms":{"description":"Whether the contact is opted in to SMS at the organization level","type":"boolean","x-struct":null,"x-validate":null},"opt_out_of_all":{"description":"Whether the contact is opted out of all organization-level channel types","type":"boolean","x-struct":null,"x-validate":null},"phone":{"description":"Contact phone number","type":"string","x-struct":null,"x-validate":null},"properties":{"description":"Contact properties mapped to custom data. These properties are mapped to the custom object in the payload.\n\nThe properties keys should correspond to the keys of the custom properties that belong to the custom object.\n","example":{"employee_id":"9876"},"type":"object","x-struct":null,"x-validate":null}},"required":["phone"],"type":"object","x-struct":null,"x-validate":null},"maxItems":4000,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["contacts"],"title":"removeContactsParams","type":"object","x-struct":null,"x-validate":null},"CustomObjectBadRequestErrorResponse":{"description":"Custom Object Bad Request Error Response schema","example":{"errors":[{"description":"Invalid path param Custom Object ID: null"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Custom Object 400 error","items":{"properties":{"description":{"enum":["Invalid path param Custom Object ID: null"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[400],"type":"integer","x-struct":null,"x-validate":null}},"title":"CustomObjectBadRequestErrorResponse","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.CustomObjects.CustomDataType.Errors.BadRequest","x-validate":null},"ShowKnowledgeBaseItemResponse":{"additionalProperties":false,"description":"Response schema for knowledge base item records.","example":{"data":{"created_at":"2026-08-17T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"id":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","name":"Vacation policy","type":"text","updated_at":"2026-08-17T09:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"versions":[{"content":"Employees receive 15 days of PTO per year.","created_at":"2026-08-17T09:00:00Z","id":"6b63aba1-88c3-4e92-bd58-8fc407c07533","metadata":{},"settings":null,"url":null}]}},"properties":{"data":{"additionalProperties":false,"example":{"created_at":"2026-08-17T09:00:00Z","created_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"id":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","name":"Vacation policy","type":"text","updated_at":"2026-08-17T09:00:00Z","updated_by":{"email":"carl@gmail.com","id":1,"name":"Carl Sagan","phone":"+142481208301"},"versions":[{"content":"Employees receive 15 days of PTO per year.","created_at":"2026-08-17T09:00:00Z","id":"6b63aba1-88c3-4e92-bd58-8fc407c07533","metadata":{},"settings":null,"url":null}]},"properties":{"created_at":{"description":"Item creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"description":"Knowledge base item ID","example":"31771ec7-5ffd-4e96-bacd-c67f4ca3430a","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base item name","example":"Vacation policy","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Knowledge base item type","enum":["text","document","url","website","audio","video"],"example":"text","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Item update timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by":{"additionalProperties":false,"nullable":true,"properties":{"email":{"description":"User email","example":"carl@gmail.com","format":"email","type":"string","x-struct":null,"x-validate":null},"id":{"description":"User ID","example":1,"type":"integer","x-struct":null,"x-validate":null},"name":{"description":"User name","example":"Carl Sagan","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"User phone","example":"+142481208301","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"versions":{"description":"Item versions","items":{"additionalProperties":false,"properties":{"content":{"description":"Extracted or authored content","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Item version creation timestamp","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Item version ID","example":"6b63aba1-88c3-4e92-bd58-8fc407c07533","format":"uuid","type":"string","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Server-fetched file metadata for document, audio, and video items.\nTypical keys: filename, extension, size_kb.\n","example":{"extension":".pdf","filename":"handbook.pdf","size_kb":1024.0},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"settings":{"additionalProperties":false,"description":"Settings of the knowledge base item. Only the settings listed for the selected `type` are used.\n\n- `url`:\n  - **Optional:**\n    - `auto_refresh_enabled`: Whether to refresh the URL content automatically.\n\n- `website`:\n  - **Optional:**\n    - `include_paths`: Regex patterns of website paths to include when crawling.\n    - `exclude_paths`: Regex patterns of website paths to exclude when crawling.\n    - `auto_refresh_enabled`: Whether to refresh discovered child URL content automatically.\n    - `auto_crawl_enabled`: Whether to crawl automatically for new or removed website pages.\n\n- `text`, `document`, `audio`, and `video`:\n  - No settings are used.\n","example":{"auto_crawl_enabled":false,"auto_refresh_enabled":true,"exclude_paths":["/admin/*"],"include_paths":["/faq/*"]},"nullable":true,"properties":{"auto_crawl_enabled":{"description":"Whether to auto-crawl for new or removed website pages","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"auto_refresh_enabled":{"description":"Whether to auto-refresh a URL item or website-discovered child URL content","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"exclude_paths":{"description":"Regex patterns of website paths to exclude when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_paths":{"description":"Regex patterns of website paths to include when crawling","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"url":{"description":"Source URL when applicable","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["id","name","type","created_at","updated_at","versions"],"title":"KnowledgeBaseItem","type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowKnowledgeBaseItemResponse","type":"object","x-struct":null,"x-validate":null},"AgentUnprocessableContentErrorResponse":{"description":"List of error responses for invalid agent GET or POST requests.","example":{"errors":[{"description":"Name is invalid"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"description":"Agent 422 errors","items":{"description":"Single 422 error","properties":{"description":{"description":"Human-readable explanation of the invalid request.","example":"Agent must exist","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"UpdateKnowledgeBaseParams":{"additionalProperties":false,"description":"Request schema for updating a knowledge base draft. Omitted fields are preserved.\nIf no draft exists, one is created from the current published version.\n","example":{"description":"Answers common product questions","name":"Product FAQ"},"properties":{"description":{"description":"Description of the knowledge base (stored on the draft version)","example":"Answers common product questions","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Name of the knowledge base (stored on the draft version)","example":"Product FAQ","type":"string","x-struct":null,"x-validate":null}},"title":"UpdateKnowledgeBaseParams","type":"object","x-struct":null,"x-validate":null},"ShowWorkflowAppResponse":{"description":"Response schema for one workflow app with triggers and actions.","properties":{"data":{"properties":{"access_level":{"description":"`global` for apps published by Whippy to every organization, `private` for apps owned by your organization","enum":["global","private"],"example":"global","type":"string","x-struct":null,"x-validate":null},"actions":{"description":"Create actions exposed by the latest published app version","items":{"properties":{"description":{"description":"Display description for the operation","example":"Sends a message to a Slack channel.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Operation key from the app definition","example":"send_message","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display label for the operation","example":"Send Message","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"app_version_id":{"description":"ID of the published app version (required by input-options and step configuration)","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"brand_color":{"description":"6-digit hex brand color for the app, usable as a logo background","example":"#2563EB","nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"description":"The description of the workflow app","example":"Send messages and respond to events from Slack.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the workflow app","example":"d9f13faa-eaaa-49b0-a7e4-a27fd53d1958","format":"uuid","type":"string","x-struct":null,"x-validate":null},"logo_url":{"description":"Best single logo URL to display for the app (128px derivative when available, then 256, 512, master, 64). Null when the app has no logo.","example":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/128.png","nullable":true,"type":"string","x-struct":null,"x-validate":null},"logo_urls":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"All stored logo URLs keyed by size (`master`, `64`, `128`, `256`, `512`). Derivatives may be missing briefly after a logo upload. Null when the app has no logo.","example":{"128":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/128.png","master":"https://whippy-workflows.s3.amazonaws.com/apps/d9f13faa/logo/master.png"},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"name":{"description":"The display name of the workflow app","example":"Slack","type":"string","x-struct":null,"x-validate":null},"published_app_version_id":{"description":"Alias of `app_version_id` for clarity","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"triggers":{"description":"Triggers exposed by the latest published app version","items":{"properties":{"description":{"description":"Display description for the operation","example":"Sends a message to a Slack channel.","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Operation key from the app definition","example":"send_message","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display label for the operation","example":"Send Message","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"version":{"description":"Version of the published app version that these triggers and actions come from","example":"1.0.2","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","description","access_level","triggers","actions"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowWorkflowAppResponse","type":"object","x-struct":null,"x-validate":null},"AttachCampaignAutomationTemplatesResponse":{"description":"Response schema for the automation templates attached to a campaign","properties":{"data":{"description":"List of automation templates.","items":{"description":"Data for a specific automation template.","properties":{"access_level":{"description":"Automation Template access level","enum":["user","location","organization"],"type":"string","x-struct":null,"x-validate":null},"archived":{"description":"Automation Template archived state","type":"boolean","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the automation template in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"created_by_id":{"description":"Automation Template created by user ID","type":"integer","x-struct":null,"x-validate":null},"id":{"description":"Automation Template ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"8f704ce1-d324-4f9f-ae98-7dc9f5664f21","format":"uuid","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Automation Template title","example":"Ford Prefect's Title","type":"string","x-struct":null,"x-validate":null},"triggers":{"description":"List of automation template triggers","items":{"description":"Individual automation template trigger","properties":{"actions":{"description":"Actions associated with the trigger","items":{"description":"Single action","example":{"approval_required":false,"approval_required_by_id":null,"created_at":"2024-04-24T10:35:30.128623Z","enabled":true,"id":"a384dbe0-c594-4e64-bd37-7830526ffcc9","organization_id":"3df5997f-6261-4697-9ab4-606a8e894a01","params":{"body":"response for keyword"},"type":"send_message","updated_at":"2024-04-24T10:35:30.128623Z"},"properties":{"approval_required":{"default":false,"description":"Action require approval","type":"boolean","x-struct":null,"x-validate":null},"approval_required_by_id":{"description":"Action required approval by user ID","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Action enabled state","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Action ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"f47a0645-7026-46f5-9e49-f9e2c94da9ca","format":"uuid","type":"string","x-struct":null,"x-validate":null},"params":{"description":"Action params - they can vary depending on the action type.","oneOf":[{"description":"Send Message Action params used when processing the action.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Automated message, yay!"},"properties":{"attachment_urls":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments with content type","example":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"items":{"description":"Attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Body of a message action","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null}},"title":"SendMessageAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add Tags Action params used when processing the action.","example":{"tag_ids":["cfd6b4f5-f1a1-46f0-a4aa-d29f008cdac5","e6a00aac-d2ae-4077-89b8-527a741d500d"]},"properties":{"tag_ids":{"description":"List of tags to add to the contact","items":{"description":"Tag ID","example":"4bce3794-a94c-42d4-8d94-0b068e6ab091","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"AddTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove Tags Action params used when processing the action.","example":{"tag_ids":["90befc72-eef5-482b-a981-4b02d8ca8de0","ce451821-9ace-4c97-8c39-859312cb59c5"]},"properties":{"tag_ids":{"description":"List of tags to remove from the contact","items":{"description":"Tag ID","example":"9fce3dc5-3b0a-4545-b581-3c818f694553","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"RemoveTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Assign User Action params used when processing the action.","example":{"user_id":42},"properties":{"user_id":{"description":"ID of the user to assign to the conversation","example":42,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"title":"AssignUserAction","type":"object","x-struct":null,"x-validate":null},{"description":"Unassign User Action params used when processing the action.","example":{"user_id":null},"properties":{"user_id":{"description":"ID of the unassigned user. Can be null to use the currently assigned user for the conversation.","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"title":"UnassignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Assign Team Action params used when processing the action.","properties":{"team_id":{"description":"ID of the Team to assign","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["team_id"],"title":"AssignTeamAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign Team Action params used when processing the action.","properties":{},"title":"UnassignTeamAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add To Sequence Action params used when processing the action.","example":{"sequence_id":"5ba56520-c29d-4949-95ee-62f1e74ea43f"},"properties":{"sequence_id":{"description":"ID of the Sequence to add the contact to","example":"5cd8d422-80fd-4393-bec1-fe08475b7d32","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"AddToSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove From Sequence Action params used when processing the action.","example":{"sequence_id":"c71f3fd4-ebc6-4168-9260-2a1101b8a249"},"properties":{"sequence_id":{"description":"ID of the Sequence to remove the contact from","example":"db3cb416-31bf-4511-a4a4-6b849dd63431","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"RemoveFromSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Move TO Step Action params used when processing the action.","example":{"sequence_id":"ca58a7df-b63d-47d7-83df-518d6a9aa7e2","step_id":"c315b79f-f327-4a78-9a51-51a5aede8278"},"properties":{"sequence_id":{"description":"Sequence ID","example":"07f1895d-e19c-4e3e-9c6d-72ea967f795f","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"4565e005-26c9-4475-853a-47208b80921d","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id","step_id"],"title":"MoveToStepAction","type":"object","x-struct":null,"x-validate":null},{"description":"Opt In Action params used when processing the action.","example":{"location_ids":["28155517-1ef2-4557-a0f4-af3208a778dd"]},"properties":{"location_ids":{"description":"List of channels/locations to opt the contact in. Can be empty to use the current conversation that triggered the action.","items":{"description":"Channel/Location ID","example":"9cf03b7d-f2ac-49d2-93f4-be8b41f9abe8","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"OptInAction","type":"object","x-struct":null,"x-validate":null},{"description":"Opt Out Action params used when processing the action.","example":{"location_ids":["a8172dcb-8004-4b39-abbe-68e6e8bd8336"]},"properties":{"location_ids":{"description":"List of channels/locations to opt the contact out of. Can be empty to use the current conversation that triggered the action.","items":{"description":"Channel/Location ID","example":"0f42c688-d21b-4f29-9796-2da8a07d6f75","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"OptOutAction","type":"object","x-struct":null,"x-validate":null},{"description":"Notify Users Action params used when processing the action.","example":{"user_ids":["42","1024","2364"]},"properties":{"user_ids":{"description":"List of string user IDs","example":["42","1024","2364"],"items":{"description":"String ID of a user to be notified","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["user_ids"],"title":"NotifyUsersAction","type":"object","x-struct":null,"x-validate":null},{"description":"Update Conversation Status Action params used when processing the action.","example":{"status":"open"},"properties":{"status":{"description":"New conversation status","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null}},"required":["status"],"title":"UpdateConversationStatusAction","type":"object","x-struct":null,"x-validate":null},{"description":"Send Email Action params used when processing the action.","example":{"bcc":"john.constantine@example.com","body":"Automated email, yay!","cc":"superman@example.com","from":"","reply_to":"mycoolmail@example.com","subject":"Action Email","to":"batman@example.com"},"properties":{"bcc":{"description":"BCC email","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Email body. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"from":{"description":"From email","example":"myemail@example.com","type":"string","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"To email","example":"batman@example.com","type":"string","x-struct":null,"x-validate":null}},"title":"SendEmailAction","type":"object","x-struct":null,"x-validate":null},{"description":"AI Tagging Action params used when processing the action.","example":{"apply_to":["message"],"create_new_tags":false,"instructions":"","max_number_of_tags":1},"properties":{"apply_to":{"default":["message"],"description":"List of associations to be tagged with the AI suggestions.","example":["contact"],"items":{"description":"Association to be tagged with the AI suggestions.","enum":["message","contact"],"example":"message","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"create_new_tags":{"default":false,"description":"Indicates the AI can create new tags or only use existing ones.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"instructions":{"default":"","description":"Instructions given to the AI when generating suggestions.","example":"Tag candidates with the position they are looking for","type":"string","x-struct":null,"x-validate":null},"max_number_of_tags":{"default":1,"description":"Max number of tags suggestions by the AI.","example":2,"type":"integer","x-struct":null,"x-validate":null}},"title":"AITaggingAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Start Call Agent Action params used when processing the action.","properties":{"agent_id":{"description":"ID of the Agent to use for the call","example":"0204014d-4b6d-41c7-818d-7850be1a299d","format":"uuid","type":"string","x-struct":null,"x-validate":null},"bypass_quiet_hours":{"default":false,"description":"Whether to bypass quiet hours restrictions","example":false,"type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Custom placeholder values passed to the Agent","type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartCallAgentAction","type":"object","x-struct":null,"x-validate":null},{"description":"Start Chat Agent Action params used when processing the action.","example":{"agent_id":"37ab5c45-d124-4a3f-8c03-5a215b89ec57","send_initial_message":true},"properties":{"agent_id":{"description":"ID of the Agent to use for the chat","example":"b2bf5238-0c2c-4d9b-a190-01bf16cabdee","format":"uuid","type":"string","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether to send an initial message to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"title":"StartChatAgentAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Send HTTP Request Action params used when processing the action.","properties":{"method":{"enum":["GET","POST"],"type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Optional JSON request payload","type":"object","x-struct":null,"x-validate":null},"url":{"description":"Public HTTPS endpoint; private and internal hosts are rejected","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["method","url"],"title":"SendHttpRequestAction","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":{"description":"Type of action","enum":["send_message","add_tags","remove_tags","assign_user","unassign_user","assign_team","unassign_team","add_to_sequence","remove_from_sequence","move_to_step","opt_in","opt_out","notify_users","update_conversation_status","send_email","ai_tagging","start_call_agent","start_chat_agent","send_http_request"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the action in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"id":{"description":"Trigger ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"keyword":{"description":"Keyword associated with the trigger","properties":{"created_at":{"description":"Time of creation of the keyword in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"enabled":{"description":"Keyword enabled state","type":"boolean","x-struct":null,"x-validate":null},"exact_match":{"description":"Keyword exact match setting","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Keyword ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"keywords":{"description":"List of keywords","items":{"description":"Body of a single keyword phrase","example":"INTERESTED","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"negate_keywords":{"description":"List of keywords for negation","items":{"description":"Body of a single keyword phrase","example":"NOT INTERESTED","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID","example":"501421c9-3521-4157-961b-e27baff4cb52","format":"uuid","type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the keyword in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"schedule_options":{"description":"Schedule options for a trigger with type \"no_reply\"","properties":{"days":{"description":"Schedule option days","type":"string","x-struct":null,"x-validate":null},"hours":{"description":"Schedule option hours","type":"string","x-struct":null,"x-validate":null},"minutes":{"description":"Schedule option minutes","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Trigger type","enum":["reply","link_click","reply_containing_keyword","no_reply","inbound_message","reply_call","no_answer_call","voicemail_reached","ai_succeeded","ai_failed"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of last update of the automation template in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"updated_by_id":{"description":"Automation Template last updated by user ID","type":"integer","x-struct":null,"x-validate":null},"usage":{"description":"Automation Template usage","enum":["duplicate","as-is"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"AttachCampaignAutomationTemplatesResponse","type":"object","x-struct":null,"x-validate":null},"WorkflowBadRequestErrorResponse":{"description":"Bad Request Response schema for an invalid workflow id path param.","example":{"errors":[{"description":"Invalid path param ID: not-a-uuid"}],"status":400},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"required":["description"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":400,"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"WorkflowBadRequestErrorResponse","type":"object","x-struct":null,"x-validate":null},"AITaggingAction":{"description":"AI Tagging Action params used when processing the action.","example":{"apply_to":["message"],"create_new_tags":false,"instructions":"","max_number_of_tags":1},"properties":{"apply_to":{"default":["message"],"description":"List of associations to be tagged with the AI suggestions.","example":["contact"],"items":{"description":"Association to be tagged with the AI suggestions.","enum":["message","contact"],"example":"message","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"create_new_tags":{"default":false,"description":"Indicates the AI can create new tags or only use existing ones.","example":true,"type":"boolean","x-struct":null,"x-validate":null},"instructions":{"default":"","description":"Instructions given to the AI when generating suggestions.","example":"Tag candidates with the position they are looking for","type":"string","x-struct":null,"x-validate":null},"max_number_of_tags":{"default":1,"description":"Max number of tags suggestions by the AI.","example":2,"type":"integer","x-struct":null,"x-validate":null}},"title":"AITaggingAction","type":"object","x-struct":null,"x-validate":null},"CreateToolParams":{"additionalProperties":false,"description":"Request schema for creating a tool.","example":{"actions":[],"description":"Transfers the call at the contact's request.","label":"Transfer Call","name":"transfer_call","settings":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"signing_api_key_id":null,"type":"transfer_call"},"properties":{"actions":{"description":"Action params. Only applied when the tool type is `execute_actions`.","items":{"additionalProperties":false,"description":"Action associated with a segment, automation, or other trigger","example":{"enabled":true,"params":{"body":"Thanks for contacting us.","type":"static"},"type":"send_message"},"properties":{"enabled":{"description":"Action enabled state","type":"boolean","x-struct":null,"x-validate":null},"params":{"description":"Parameters for the selected action `type`.\n\n- `send_message`:\n  - **Required:**\n    - `body`: Message body.\n  - **Optional:**\n    - `type`: Whether the message body is `prompt` generated or `static`.\n    - `attachment_urls`: List of attachment URLs.\n    - `attachments`: List of attachments, each containing `url` and `content_type` (the MIME type).\n\n- `add_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to add to the contact.\n\n- `remove_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to remove from the contact.\n\n- `assign_user`:\n  - **Required:**\n    - `user_id`: Integer ID of the user to assign to the conversation.\n\n- `unassign_user`: No params are accepted; use `{}`.\n\n- `assign_team`:\n  - **Required:**\n    - `team_id`: UUID of the team to assign.\n\n- `unassign_team`: No params are accepted; use `{}`.\n\n- `add_to_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to add the contact to.\n\n- `remove_from_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to remove the contact from.\n\n- `move_to_step`:\n  - **Required:**\n    - `sequence_id`: Sequence UUID.\n    - `step_id`: Step UUID.\n\n- `opt_in`: No params are accepted; use `{}`.\n\n- `opt_out`: No params are accepted; use `{}`.\n\n- `notify_users`:\n  - **Required:**\n    - `user_ids`: List of integer user IDs or their digit-only string representations.\n\n- `update_conversation_status`:\n  - **Required:**\n    - `status`: New conversation status, either `open` or `closed`.\n\n- `send_email`:\n  - **Required:**\n    - `subject`: Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and the message-triggered `{{inbound_message}}`, `{{outbound_message}}`, and `{{form_transcript}}` placeholders.\n    - `body`: Email body. Supports the same Whippy placeholders as `subject`.\n  - **Optional:**\n    - `type`: Whether the email subject and body are `prompt` generated or `static`.\n    - `to`: Recipient email address.\n    - `from`: Sender email address.\n    - `cc`: CC email address.\n    - `bcc`: BCC email address.\n    - `reply_to`: Reply-to email address.\n\n- `start_call_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the call.\n  - **Optional:**\n    - `bypass_quiet_hours`: Whether to bypass quiet-hours restrictions.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `start_chat_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the chat.\n  - **Optional:**\n    - `send_initial_message`: Whether to send an initial message to the Agent.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `send_http_request`:\n  - **Required:**\n    - `method`: HTTP method, either `GET` or `POST`.\n    - `url`: Public HTTPS endpoint.\n  - **Optional:**\n    - `payload`: JSON request payload.\n","oneOf":[{"description":"Send Message Action params used when processing the action.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Automated message, yay!"},"properties":{"attachment_urls":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments with content type","example":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"items":{"description":"Attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Body of a message action","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the message body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["body"],"title":"SendMessageAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add Tags Action params used when processing the action.","example":{"tag_ids":["ced2dbc6-e796-46eb-ba83-40d48c0520d8","04760516-094d-4e40-942d-ab9000cdf262"]},"properties":{"tag_ids":{"description":"List of tags to add to the contact","items":{"description":"Tag ID","example":"ee75062b-3940-4ccf-83d2-e2b4e04db38d","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"AddTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove Tags Action params used when processing the action.","example":{"tag_ids":["03f7fa85-5a95-43fb-a2a0-a48cc02c04d8","4a1a8df4-3962-4f1a-80ff-dc9004c2b354"]},"properties":{"tag_ids":{"description":"List of tags to remove from the contact","items":{"description":"Tag ID","example":"e4de5335-898c-4593-bf48-845b9edd40d0","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"RemoveTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Assign User Action params used when processing the action.","example":{"user_id":42},"properties":{"user_id":{"description":"ID of the user to assign to the conversation","example":42,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"title":"AssignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign User Action params used when processing the action.","example":{},"properties":{},"title":"UnassignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Assign Team Action params used when processing the action.","properties":{"team_id":{"description":"ID of the Team to assign","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["team_id"],"title":"AssignTeamAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign Team Action params used when processing the action.","properties":{},"title":"UnassignTeamAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add To Sequence Action params used when processing the action.","example":{"sequence_id":"daa329b1-68d2-43cf-91dd-7b8cef71ca09"},"properties":{"sequence_id":{"description":"ID of the Sequence to add the contact to","example":"8b46a796-4560-4f8f-a959-6f8b4256b5d0","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"AddToSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove From Sequence Action params used when processing the action.","example":{"sequence_id":"66ee50cc-d2ba-4334-8da2-2895aa42dfa7"},"properties":{"sequence_id":{"description":"ID of the Sequence to remove the contact from","example":"53d62d3b-b6f2-4dd9-a37c-ac553f9cf40a","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"RemoveFromSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Move TO Step Action params used when processing the action.","example":{"sequence_id":"1620bf30-7313-4c61-8071-b9a5b6528382","step_id":"06ec2bbf-6727-4696-aaad-502d8dec2dc3"},"properties":{"sequence_id":{"description":"Sequence ID","example":"0eed5957-022c-4541-865a-5806245dfa10","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"ccee98c2-8c19-462f-95e4-6b58dc507aa7","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id","step_id"],"title":"MoveToStepAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt In Action params used when processing the action.","example":{},"properties":{},"title":"OptInAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt Out Action params used when processing the action.","example":{},"properties":{},"title":"OptOutAction","type":"object","x-struct":null,"x-validate":null},{"description":"Notify Users Action params used when processing the action.","example":{"user_ids":["42","1024","2364"]},"properties":{"user_ids":{"description":"List of string user IDs","example":["42","1024","2364"],"items":{"description":"Integer user ID or its digit-only string representation","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"pattern":"^\\d+$","type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["user_ids"],"title":"NotifyUsersAction","type":"object","x-struct":null,"x-validate":null},{"description":"Update Conversation Status Action params used when processing the action.","example":{"status":"open"},"properties":{"status":{"description":"New conversation status","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null}},"required":["status"],"title":"UpdateConversationStatusAction","type":"object","x-struct":null,"x-validate":null},{"description":"Send Email Action params used when processing the action.","example":{"bcc":"john.constantine@example.com","body":"Automated email, yay!","cc":"superman@example.com","from":"","reply_to":"mycoolmail@example.com","subject":"Action Email","to":"batman@example.com"},"properties":{"bcc":{"description":"BCC email","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Email body. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"from":{"description":"From email","example":"myemail@example.com","type":"string","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"To email","example":"batman@example.com","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the email subject and body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["subject","body"],"title":"SendEmailAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Start Call Agent Action params used when processing the action.","properties":{"agent_id":{"description":"ID of the Agent to use for the call","example":"26d565ed-09ca-472b-8a6d-56d4a200cc93","format":"uuid","type":"string","x-struct":null,"x-validate":null},"bypass_quiet_hours":{"default":false,"description":"Whether to bypass quiet hours restrictions","example":false,"type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Custom placeholder values passed to the Agent","type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartCallAgentAction","type":"object","x-struct":null,"x-validate":null},{"description":"Start Chat Agent Action params used when processing the action.","example":{"agent_id":"5b02f373-7414-4e67-8a68-67943d844b73","send_initial_message":true},"properties":{"agent_id":{"description":"ID of the Agent to use for the chat","example":"6576b2c5-e0ee-4caa-8be2-49403bfef109","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_placeholders_data":{"type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether to send an initial message to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartChatAgentAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Send HTTP Request Action params used when processing the action.","properties":{"method":{"enum":["GET","POST"],"type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Optional JSON request payload","type":"object","x-struct":null,"x-validate":null},"url":{"description":"Public HTTPS endpoint; private and internal hosts are rejected","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["method","url"],"title":"SendHttpRequestAction","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":{"description":"Action type","enum":["send_message","add_tags","remove_tags","assign_user","unassign_user","assign_team","unassign_team","add_to_sequence","remove_from_sequence","move_to_step","opt_in","opt_out","notify_users","update_conversation_status","send_email","start_call_agent","start_chat_agent","send_http_request"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","enabled","params"],"type":"object","x-struct":null,"x-validate":null},"maxItems":8,"type":"array","writeOnly":true,"x-struct":null,"x-validate":null},"description":{"description":"Description of what the tool does and when it should be used","example":"Transfers the call at the contact's request.","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"label":{"description":"Tool label","example":"Transfer Call","maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tool name","example":"transfer_call","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]{1,64}$","type":"string","x-struct":null,"x-validate":null},"settings":{"anyOf":[{"additionalProperties":false,"example":{"method":"POST","parameters":{"description":"Order lookup parameters","properties":{},"type":"object"},"speak_after_execution":true,"speak_during_execution":false,"url":"https://example.com/webhook"},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"headers":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request headers","type":"object","x-struct":null,"x-validate":null},"include_whippy_context":{"description":"Whether to add the current contact, conversation, and message as whippy_context in POST, PUT, and PATCH JSON bodies. During voice calls, the message body contains the dialogue so far","type":"boolean","x-struct":null,"x-validate":null},"method":{"default":"POST","enum":["POST","GET","PUT","PATCH","DELETE"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"parameters":{"description":"JSON Schema describing the custom tool input. The root schema requires a description.","properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"query_params":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request query parameters","type":"object","x-struct":null,"x-validate":null},"response_variables":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Values extracted from the response","type":"object","x-struct":null,"x-validate":null},"retry":{"additionalProperties":false,"properties":{"base_delay_ms":{"maximum":5000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_delay_ms":{"maximum":15000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_retries":{"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"retry_on_status_codes":{"items":{"enum":[408,429,500,502,503,504],"type":"integer","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["max_retries","base_delay_ms","max_delay_ms","retry_on_status_codes"],"type":"object","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":3000,"maximum":120000,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"url":{"description":"Publicly reachable HTTPS endpoint called by the Tool","example":"https://example.com/webhook","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["url","speak_after_execution","speak_during_execution"],"title":"CustomToolSettings","type":"object","x-struct":null,"x-validate":null},{"example":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"properties":{"check_availability_enabled":{"default":false,"description":"Enables live availability checks and busy-call behavior.\n\nMobile and desk phones are not supported. Users without live voice presence are treated as unavailable for direct transfers. Leave disabled for users relying on these devices.\n\nWhen omitted or false, transfer directly without checking availability or using busy-call rules.\n","type":"boolean","x-struct":null,"x-validate":null},"transfer_options":{"description":"Transfer options for the tool","items":{"properties":{"identifier":{"description":"Transfer option identifier","example":"Support","type":"string","x-struct":null,"x-validate":null},"on_call_behavior":{"default":"unavailable","description":"Behavior when no user or team member is available and at least one is on a call.\n\n* `enqueue`: Park the call in the destination channel's default queue.\n* `unavailable`: Leave the call with the agent and report the destination as unavailable.\n\nUsed only when `check_availability_enabled` is true. Ignored for agent, phone number, and PBX destinations.\n","enum":["enqueue","unavailable"],"example":"enqueue","type":"string","x-struct":null,"x-validate":null},"sip_auth":{"description":"Optional digest credentials for forward_to_sip_uri. Send username and password together. The password is encrypted at rest and responses return password_configured. Omit sip_auth when the trunk authenticates by IP.","example":{"password_configured":true,"username":"trunk"},"type":"object","x-struct":null,"x-validate":null},"target_channel_phone":{"description":"Optional E.164 channel phone number used as a transfer target. Applies to forward_to_user, forward_to_team, forward_to_agent, and forward_to_sip_uri. Uses the current call channel when omitted.","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Transfer option type","enum":["forward_to_user","forward_to_team","forward_to_agent","forward_to_phone_number","forward_to_sip_uri"],"example":"forward_to_agent","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Organization user ID, team UUID, agent UUID, E.164 phone number, or SIP URI. `forward_to_sip_uri` is a URI such as `sip:2105@pbx.example.com`.","example":"b2ed0207-6eb6-4cef-aaa4-cf2e843a0bab","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["identifier","type","value"],"type":"object","x-struct":null,"x-validate":null},"maxItems":36,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["transfer_options"],"title":"TransferCallToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"speak_after_execution":true,"speak_during_execution":false,"timeout_ms":5000},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":5000,"type":"integer","x-struct":null,"x-validate":null}},"required":["speak_after_execution","speak_during_execution"],"title":"ExecuteActionsToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"delay_ms":1000},"properties":{"delay_ms":{"description":"Delay before pressing the digit in milliseconds. Must be at least 0.","example":1000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"title":"PressDigitToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"cal_api_key":"cal_live_example","event_type_id":60444,"timezone":"America/Los_Angeles"},"properties":{"cal_api_key":{"description":"Cal.com API key","type":"string","x-struct":null,"x-validate":null},"event_type_id":{"description":"Cal.com event type ID","type":"number","x-struct":null,"x-validate":null},"timezone":{"description":"Calendar timezone","type":"string","x-struct":null,"x-validate":null}},"required":["cal_api_key","event_type_id"],"title":"CalendarToolSettings","type":"object","x-struct":null,"x-validate":null}],"description":"Settings of the Tool. Supported fields depend on the selected `type`.\n\n- `transfer_call`:\n  - **Required:**\n    - `transfer_options`: Between 1 and 36 destinations the agent can select when transferring a call. Each option contains:\n      - `identifier`: Name the agent uses to identify the destination.\n      - `type`: One of `forward_to_user`, `forward_to_team`, `forward_to_agent`, `forward_to_phone_number`, or `forward_to_sip_uri`.\n      - `value`: User ID, team UUID, agent UUID, or E.164 phone number matching `type`. For `forward_to_sip_uri`, this is the SIP URI, such as `sip:2105@pbx.example.com`. Optional `sip_auth` holds a digest `username` and `password`. The password is encrypted at rest and returned as `password_configured`.\n      - `target_channel_phone`: Optional E.164 channel phone number used as a target for the transfer. Applies to `forward_to_user`, `forward_to_team`, `forward_to_agent`, and `forward_to_sip_uri`. Uses the current call channel when omitted.\n      - `on_call_behavior`: Optional `enqueue` (park the call) or `unavailable` (default). Applies only to user/team destinations and is ignored for agent, phone, and PBX destinations.\n  - **Optional:**\n    - `check_availability_enabled`: Defaults to false. Set true to enable availability checks and busy-call behavior. When omitted or false, the agent and tool transfer directly without availability checks; busy-call rules are ignored.\n\n- `execute_actions`:\n  - **Required:**\n    - `speak_after_execution`: Whether the agent speaks after executing the actions. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks while executing the actions. Recommended when execution takes more than one second.\n  - **Optional:**\n    - `timeout_ms`: Time in milliseconds before action execution times out.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n\n- `check_availability_cal` and `book_appointment_cal`:\n  - **Required:**\n    - `cal_api_key`: Cal.com API key used by the Tool.\n    - `event_type_id`: Cal.com event type ID used by the Tool.\n  - **Optional:**\n    - `timezone`: IANA timezone used for the calendar operation.\n\n- `press_digit`:\n  - **Optional:**\n    - `delay_ms`: Time in milliseconds to wait before pressing the digit, allowing a slow IVR menu to finish playing. Must be at least 0.\n\n- `custom`:\n  - **Required:**\n    - `url`: Publicly reachable HTTPS endpoint called by the Tool.\n    - `speak_after_execution`: Whether the agent speaks after tool execution. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks during tool execution. Recommended when the request takes more than one second.\n  - **Optional:**\n    - `method`: HTTP method used for the request. One of `POST`, `GET`, `PUT`, `PATCH`, or `DELETE`; defaults to `POST`.\n    - `timeout_ms`: Time in milliseconds before the request times out. Must be between 1 and 120000.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n    - `headers`: HTTP request headers. Keys and values must be strings.\n    - `query_params`: HTTP query parameters. Keys and values must be strings.\n    - `response_variables`: Values extracted from the response and made available as dynamic variables. Keys and values must be strings.\n    - `parameters`: JSON Schema describing the Tool input. The root schema must include a description.\n    - `retry`: Retry policy. When provided, it requires:\n      - `max_retries`: Number of retry attempts, from 1 to 3.\n      - `base_delay_ms`: Initial retry delay in milliseconds, from 200 to 5000.\n      - `max_delay_ms`: Maximum retry delay in milliseconds, from 200 to 15000.\n      - `retry_on_status_codes`: Non-empty list containing only `408`, `429`, `500`, `502`, `503`, or `504`.\n    - `include_whippy_context`: Whether to add a `whippy_context` object to the JSON request body containing the current contact, conversation, and message when available. Only applies to `POST`, `PUT`, and `PATCH` requests. During voice calls, the message body contains the dialogue so far.\n\n","x-struct":null,"x-validate":null},"signing_api_key_id":{"description":"Active signing API key in the authenticated organization","format":"uuid","nullable":true,"type":"string","writeOnly":true,"x-struct":null,"x-validate":null},"type":{"description":"Tool type","enum":["custom","transfer_call","execute_actions","press_digit","check_availability_cal","book_appointment_cal"],"example":"transfer_call","type":"string","x-struct":null,"x-validate":null}},"required":["type","name","description","settings"],"title":"CreateToolParams","type":"object","x-struct":null,"x-validate":null},"ListMetricEventFieldsResponse":{"description":"Response schema for the fields a metric event can filter, group and aggregate by.","example":{"data":[{"aggregatable":false,"aggregate_types":[],"analysis_field":false,"comparisons":["in","not_in"],"defined_by_agents":[],"description":null,"field":"channel_id","field_type":"uuid","filter_type":null,"filterable":true,"groupable":true,"label":"Channel","millisecond_precision":false,"observed_values":[],"profile":null,"resource":"channel","suggested_use":null,"system_field":false,"value_source":{"method":"GET","path":"/v1/channels"},"values":[]},{"aggregatable":true,"aggregate_types":["count","sum","avg","min","max"],"analysis_field":false,"comparisons":[">=","<="],"defined_by_agents":[],"description":null,"field":"duration","field_type":"seconds","filter_type":null,"filterable":true,"groupable":false,"label":"Duration","millisecond_precision":true,"observed_values":[],"profile":null,"resource":null,"suggested_use":null,"system_field":false,"value_source":null,"values":[]},{"aggregatable":false,"aggregate_types":[],"analysis_field":true,"comparisons":["in","not_in","eq","not_eq"],"defined_by_agents":[{"id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Front desk","status":"active"},{"id":"2f3e4d5c-6b7a-4980-a1b2-c3d4e5f6a7b8","name":"Payroll line","status":"archived"}],"description":"The caller's reason for calling.","field":"workflow_type","field_type":"string","filter_type":null,"filterable":true,"groupable":true,"label":null,"millisecond_precision":false,"observed_values":["scheduling","general_faq"],"profile":{"average":null,"computed_at":"2026-10-29T06:40:03Z","coverage":0.8202,"distinct_count":4,"event_count":1240,"last_seen_at":"2026-10-28T17:42:10Z","max":null,"min":null,"produced_by_agents":[{"count":972,"id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Front desk"},{"count":45,"id":"2f3e4d5c-6b7a-4980-a1b2-c3d4e5f6a7b8","name":"Payroll line"}],"set_count":1017,"top_values":[{"count":512,"share":0.5034,"value":"scheduling"},{"count":310,"share":0.3048,"value":"general_faq"},{"count":150,"share":0.1475,"value":"billing"},{"count":45,"share":0.0442,"value":"payroll_faq"}],"window_days":30},"resource":null,"suggested_use":"group_by","system_field":false,"value_source":null,"values":["scheduling","billing","payroll_faq"]}],"metadata":{"event_aggregate_types":["count","percentage"]}},"properties":{"data":{"items":{"properties":{"aggregatable":{"type":"boolean","x-struct":null,"x-validate":null},"aggregate_types":{"description":"The `aggregate_type`s an `aggregate` on this field accepts.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether the field comes from the call's post-call analysis. An `aggregate` on such a field must include `\"analysis_field\": true`.","type":"boolean","x-struct":null,"x-validate":null},"comparisons":{"description":"The comparisons a filter on this field accepts.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"defined_by_agents":{"description":"`call.analyzed` analysis fields only: every agent whose current version defines the field, oldest first. Empty for system fields and for other fields.","items":{"properties":{"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Archived and deleted agents are listed: their past calls still carry the field.","enum":["template","draft","active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"field":{"description":"The value for a filter's `column`, a `group_by` `field` or an `aggregate` `field`.","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Copy onto a filter on this field as `field_type`; filters route on it.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter_type":{"description":"Copy onto a filter on this field as `filter_type` when set (e.g. `list`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filterable":{"type":"boolean","x-struct":null,"x-validate":null},"groupable":{"type":"boolean","x-struct":null,"x-validate":null},"label":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"max_values":{"description":"`non_custom` reports only. The most values an `in` filter on this field accepts.","type":"integer","x-struct":null,"x-validate":null},"millisecond_precision":{"description":"Whether an `aggregate` on this field can use `\"field_type\": \"milliseconds\"`, which sums and averages each call's exact duration instead of rounding it up to whole seconds first. Only a call's `duration` sets it.","type":"boolean","x-struct":null,"x-validate":null},"observed_values":{"description":"`call.analyzed` string analysis fields only: the distinct values the organization's calls actually recorded, refreshed daily and capped at 100 (newest kept). Values agents no longer produce stay listed. Empty for other fields, and for analysis fields nothing has been recorded for yet, system fields, booleans and numbers.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"profile":{"description":"`call.analyzed` analysis fields only: how the organization's calls used the field over the last `window_days` days, rebuilt daily. With `agent_id`, only that agent's calls. Null for other fields, for fields not profiled yet, and with `agent_id`, for fields the agent doesn't define and its calls never set, or every field when the agent had no calls in the window.","nullable":true,"properties":{"average":{"description":"Numeric fields only.","nullable":true,"type":"number","x-struct":null,"x-validate":null},"computed_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"coverage":{"description":"`set_count` / `event_count`: the share of calls that set the field.","type":"number","x-struct":null,"x-validate":null},"distinct_count":{"description":"Distinct values. A list field counts each element.","type":"integer","x-struct":null,"x-validate":null},"event_count":{"description":"`call.analyzed` events in the window.","type":"integer","x-struct":null,"x-validate":null},"last_seen_at":{"description":"The last call in the window that set the field.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"max":{"description":"Numeric fields only.","nullable":true,"type":"number","x-struct":null,"x-validate":null},"min":{"description":"Numeric fields only.","nullable":true,"type":"number","x-struct":null,"x-validate":null},"produced_by_agents":{"description":"The agents whose calls set the field, most calls first.","items":{"properties":{"count":{"description":"That agent's calls that set the field.","type":"integer","x-struct":null,"x-validate":null},"id":{"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"set_count":{"description":"Events that set the field: a string, number or boolean other than an empty string.","type":"integer","x-struct":null,"x-validate":null},"top_values":{"description":"Up to 10 most common values. `share` is of `set_count`, so a list field's shares can add up to more than 1. Null for numeric fields.","items":{"properties":{"count":{"type":"integer","x-struct":null,"x-validate":null},"share":{"type":"number","x-struct":null,"x-validate":null},"value":{"description":"A string, number or boolean.","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"window_days":{"description":"The trailing window the profile covers.","type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"required":{"description":"`non_custom` reports only. The filter must appear exactly once.","type":"boolean","x-struct":null,"x-validate":null},"resource":{"description":"For fields holding IDs, the resource the IDs belong to (e.g. `channel`, `user`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"suggested_use":{"description":"A hint worked out from `profile`; null when `profile` is. `group_by`: 2 to 20 values on at least 20% of calls. `aggregate`: a numeric field. `filter`: too many values to break down by, or set on too few calls. `none`: set on under 5% of calls, a single value, or mostly distinct values (free text or identifiers).","enum":["group_by","filter","aggregate","none"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"system_field":{"description":"Whether the field is a `call.analyzed` analysis field every agent's calls are scored on (e.g. `user_sentiment`), rather than one an agent defines.","type":"boolean","x-struct":null,"x-validate":null},"value_source":{"description":"For fields holding IDs, the public endpoint that lists valid IDs.","nullable":true,"properties":{"method":{"type":"string","x-struct":null,"x-validate":null},"path":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"values":{"description":"The values the field is configured to take, when it has a fixed set. For a `call.analyzed` analysis field, the combined enums of the agents in `defined_by_agents`: what agents are configured to produce, not what calls recorded (see `observed_values`). Empty otherwise.","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"properties":{"event_aggregate_types":{"description":"Aggregates that take no field: `count` (an empty `aggregate`) and `percentage`, which needs a `group_by`.","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ListMetricEventFieldsResponse","type":"object","x-struct":null,"x-validate":null},"Contact":{"description":"The Contact tied to the Sequence Run","properties":{"email":{"description":"The email of the contact.","example":"johndoe@gmail.com","format":"string","type":"string","x-struct":null,"x-validate":null},"id":{"description":"The ID of the Contact","example":"1ca3b287-d8e2-4a2e-9332-b040c40b3a59","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"The name of the contact tied to the sequence run.","example":"John Doe","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"The phone number of the contact.","example":"+14244019001","type":"string","x-struct":null,"x-validate":null}},"title":"Contact","type":"object","x-struct":null,"x-validate":null},"UpdateToolParams":{"additionalProperties":false,"description":"Request schema for updating a tool. Omitted fields are preserved and type is immutable.","example":{"description":"Transfers the call to the support team.","label":"Transfer to Support"},"properties":{"actions":{"description":"Action params. Only applied when the tool type is `execute_actions`.","items":{"additionalProperties":false,"description":"Action associated with a segment, automation, or other trigger","example":{"enabled":true,"params":{"body":"Thanks for contacting us.","type":"static"},"type":"send_message"},"properties":{"enabled":{"description":"Action enabled state","type":"boolean","x-struct":null,"x-validate":null},"params":{"description":"Parameters for the selected action `type`.\n\n- `send_message`:\n  - **Required:**\n    - `body`: Message body.\n  - **Optional:**\n    - `type`: Whether the message body is `prompt` generated or `static`.\n    - `attachment_urls`: List of attachment URLs.\n    - `attachments`: List of attachments, each containing `url` and `content_type` (the MIME type).\n\n- `add_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to add to the contact.\n\n- `remove_tags`:\n  - **Required:**\n    - `tag_ids`: List of tag UUIDs to remove from the contact.\n\n- `assign_user`:\n  - **Required:**\n    - `user_id`: Integer ID of the user to assign to the conversation.\n\n- `unassign_user`: No params are accepted; use `{}`.\n\n- `assign_team`:\n  - **Required:**\n    - `team_id`: UUID of the team to assign.\n\n- `unassign_team`: No params are accepted; use `{}`.\n\n- `add_to_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to add the contact to.\n\n- `remove_from_sequence`:\n  - **Required:**\n    - `sequence_id`: UUID of the sequence to remove the contact from.\n\n- `move_to_step`:\n  - **Required:**\n    - `sequence_id`: Sequence UUID.\n    - `step_id`: Step UUID.\n\n- `opt_in`: No params are accepted; use `{}`.\n\n- `opt_out`: No params are accepted; use `{}`.\n\n- `notify_users`:\n  - **Required:**\n    - `user_ids`: List of integer user IDs or their digit-only string representations.\n\n- `update_conversation_status`:\n  - **Required:**\n    - `status`: New conversation status, either `open` or `closed`.\n\n- `send_email`:\n  - **Required:**\n    - `subject`: Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and the message-triggered `{{inbound_message}}`, `{{outbound_message}}`, and `{{form_transcript}}` placeholders.\n    - `body`: Email body. Supports the same Whippy placeholders as `subject`.\n  - **Optional:**\n    - `type`: Whether the email subject and body are `prompt` generated or `static`.\n    - `to`: Recipient email address.\n    - `from`: Sender email address.\n    - `cc`: CC email address.\n    - `bcc`: BCC email address.\n    - `reply_to`: Reply-to email address.\n\n- `start_call_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the call.\n  - **Optional:**\n    - `bypass_quiet_hours`: Whether to bypass quiet-hours restrictions.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `start_chat_agent`:\n  - **Required:**\n    - `agent_id`: UUID of the Agent to use for the chat.\n  - **Optional:**\n    - `send_initial_message`: Whether to send an initial message to the Agent.\n    - `custom_placeholders_data`: Custom placeholder values passed to the Agent.\n    - `schedule_options`: Scheduling data with optional `days`, `hours`, `minutes`, `timezone`, `type`, and `description` fields. `type`, when present, must be `prompt`.\n\n- `send_http_request`:\n  - **Required:**\n    - `method`: HTTP method, either `GET` or `POST`.\n    - `url`: Public HTTPS endpoint.\n  - **Optional:**\n    - `payload`: JSON request payload.\n","oneOf":[{"description":"Send Message Action params used when processing the action.","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Automated message, yay!"},"properties":{"attachment_urls":{"description":"List of attachment URLs","example":["https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"],"items":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"attachments":{"description":"List of attachments with content type","example":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"items":{"description":"Attachment","properties":{"content_type":{"description":"MIME Type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"Attachment URL","example":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Body of a message action","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the message body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["body"],"title":"SendMessageAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add Tags Action params used when processing the action.","example":{"tag_ids":["e33ef6ce-3176-4ad9-875f-6ee6a0a72999","6818e3fa-e7f9-4426-ba7d-98a8493b960d"]},"properties":{"tag_ids":{"description":"List of tags to add to the contact","items":{"description":"Tag ID","example":"07f2f28b-2bfa-45d1-b2e2-3d437d36a4c1","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"AddTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove Tags Action params used when processing the action.","example":{"tag_ids":["9194f444-c83a-4ae4-aa6e-3f84107077ce","503f663d-67b6-47ad-ad26-04a0a24d1f74"]},"properties":{"tag_ids":{"description":"List of tags to remove from the contact","items":{"description":"Tag ID","example":"a5d4268a-87a3-48d3-b043-036797ae1cdb","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["tag_ids"],"title":"RemoveTagsAction","type":"object","x-struct":null,"x-validate":null},{"description":"Assign User Action params used when processing the action.","example":{"user_id":42},"properties":{"user_id":{"description":"ID of the user to assign to the conversation","example":42,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"title":"AssignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign User Action params used when processing the action.","example":{},"properties":{},"title":"UnassignUserAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Assign Team Action params used when processing the action.","properties":{"team_id":{"description":"ID of the Team to assign","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["team_id"],"title":"AssignTeamAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Unassign Team Action params used when processing the action.","properties":{},"title":"UnassignTeamAction","type":"object","x-struct":null,"x-validate":null},{"description":"Add To Sequence Action params used when processing the action.","example":{"sequence_id":"c7317146-c40d-49f7-bc4f-ea604c4c4bff"},"properties":{"sequence_id":{"description":"ID of the Sequence to add the contact to","example":"6cb8dacf-a23e-4a1d-b14c-be99371490ab","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"AddToSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Remove From Sequence Action params used when processing the action.","example":{"sequence_id":"fc2f2a1d-714a-4f69-813a-7e6fa74e1cb8"},"properties":{"sequence_id":{"description":"ID of the Sequence to remove the contact from","example":"c7cd8412-3c5d-43ec-b11a-974b3c298686","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id"],"title":"RemoveFromSequenceAction","type":"object","x-struct":null,"x-validate":null},{"description":"Move TO Step Action params used when processing the action.","example":{"sequence_id":"0dc4d0ff-f0e4-467c-b2fd-7de80873cd5a","step_id":"ff123a8b-c541-4a7a-a9d7-4e2af328aa95"},"properties":{"sequence_id":{"description":"Sequence ID","example":"bee0c632-c1ac-4daf-aba9-ceaa1ee27afc","format":"uuid","type":"string","x-struct":null,"x-validate":null},"step_id":{"description":"Step ID","example":"7254e628-7e84-4171-bbc9-4c9e718f7d4f","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["sequence_id","step_id"],"title":"MoveToStepAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt In Action params used when processing the action.","example":{},"properties":{},"title":"OptInAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Opt Out Action params used when processing the action.","example":{},"properties":{},"title":"OptOutAction","type":"object","x-struct":null,"x-validate":null},{"description":"Notify Users Action params used when processing the action.","example":{"user_ids":["42","1024","2364"]},"properties":{"user_ids":{"description":"List of string user IDs","example":["42","1024","2364"],"items":{"description":"Integer user ID or its digit-only string representation","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"pattern":"^\\d+$","type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["user_ids"],"title":"NotifyUsersAction","type":"object","x-struct":null,"x-validate":null},{"description":"Update Conversation Status Action params used when processing the action.","example":{"status":"open"},"properties":{"status":{"description":"New conversation status","enum":["open","closed"],"example":"open","type":"string","x-struct":null,"x-validate":null}},"required":["status"],"title":"UpdateConversationStatusAction","type":"object","x-struct":null,"x-validate":null},{"description":"Send Email Action params used when processing the action.","example":{"bcc":"john.constantine@example.com","body":"Automated email, yay!","cc":"superman@example.com","from":"","reply_to":"mycoolmail@example.com","subject":"Action Email","to":"batman@example.com"},"properties":{"bcc":{"description":"BCC email","example":"john.constantine@example.com","type":"string","x-struct":null,"x-validate":null},"body":{"description":"Email body. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"You are lucky! This automated response is fast!","type":"string","x-struct":null,"x-validate":null},"cc":{"description":"CC email","example":"superman@example.com","type":"string","x-struct":null,"x-validate":null},"from":{"description":"From email","example":"myemail@example.com","type":"string","x-struct":null,"x-validate":null},"reply_to":{"description":"Reply To email","example":"mycoolmail@example.com","type":"string","x-struct":null,"x-validate":null},"subject":{"description":"Email subject. Supports placeholders such as `{{first_name}}`, `{{custom.<object>.<property>:contact}}`, and, for message-triggered automations, `{{inbound_message}}` (the contact's reply), `{{outbound_message}}` (the sequence step or campaign message they replied to), and `{{form_transcript}}` (the form response transcript).","example":"Hi from Whippy!","type":"string","x-struct":null,"x-validate":null},"to":{"description":"To email","example":"batman@example.com","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Whether the email subject and body is static or generated from a prompt","enum":["prompt","static"],"type":"string","x-struct":null,"x-validate":null}},"required":["subject","body"],"title":"SendEmailAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Start Call Agent Action params used when processing the action.","properties":{"agent_id":{"description":"ID of the Agent to use for the call","example":"7f90e727-c702-4dbb-aaeb-68c99b00ac39","format":"uuid","type":"string","x-struct":null,"x-validate":null},"bypass_quiet_hours":{"default":false,"description":"Whether to bypass quiet hours restrictions","example":false,"type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Custom placeholder values passed to the Agent","type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartCallAgentAction","type":"object","x-struct":null,"x-validate":null},{"description":"Start Chat Agent Action params used when processing the action.","example":{"agent_id":"822fdc38-6aad-49ad-9475-eae7dbc74437","send_initial_message":true},"properties":{"agent_id":{"description":"ID of the Agent to use for the chat","example":"0d38d266-b07b-4306-b511-1d2064c580c9","format":"uuid","type":"string","x-struct":null,"x-validate":null},"custom_placeholders_data":{"type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"send_initial_message":{"default":false,"description":"Whether to send an initial message to the agent","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartChatAgentAction","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Send HTTP Request Action params used when processing the action.","properties":{"method":{"enum":["GET","POST"],"type":"string","x-struct":null,"x-validate":null},"payload":{"description":"Optional JSON request payload","type":"object","x-struct":null,"x-validate":null},"url":{"description":"Public HTTPS endpoint; private and internal hosts are rejected","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["method","url"],"title":"SendHttpRequestAction","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":{"description":"Action type","enum":["send_message","add_tags","remove_tags","assign_user","unassign_user","assign_team","unassign_team","add_to_sequence","remove_from_sequence","move_to_step","opt_in","opt_out","notify_users","update_conversation_status","send_email","start_call_agent","start_chat_agent","send_http_request"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","enabled","params"],"type":"object","x-struct":null,"x-validate":null},"maxItems":8,"type":"array","writeOnly":true,"x-struct":null,"x-validate":null},"description":{"description":"Description of what the tool does and when it should be used","example":"Transfers the call at the contact's request.","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"label":{"description":"Tool label","example":"Transfer Call","maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Tool name","example":"transfer_call","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]{1,64}$","type":"string","x-struct":null,"x-validate":null},"settings":{"anyOf":[{"additionalProperties":false,"example":{"method":"POST","parameters":{"description":"Order lookup parameters","properties":{},"type":"object"},"speak_after_execution":true,"speak_during_execution":false,"url":"https://example.com/webhook"},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"headers":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request headers","type":"object","x-struct":null,"x-validate":null},"include_whippy_context":{"description":"Whether to add the current contact, conversation, and message as whippy_context in POST, PUT, and PATCH JSON bodies. During voice calls, the message body contains the dialogue so far","type":"boolean","x-struct":null,"x-validate":null},"method":{"default":"POST","enum":["POST","GET","PUT","PATCH","DELETE"],"example":"POST","type":"string","x-struct":null,"x-validate":null},"parameters":{"description":"JSON Schema describing the custom tool input. The root schema requires a description.","properties":{"$defs":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Definitions of reusable JSON Schema properties that can be referenced using $ref.\n\nEach key/value pair corresponds to a reusable property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","type":"object","x-struct":null,"x-validate":null},"properties":{"additionalProperties":{"oneOf":[{"description":"String type JSON Schema property","properties":{"default":{"description":"Default value of the string property","x-struct":null,"x-validate":null},"description":{"description":"Description of the string property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed string property values","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the string property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"format":{"description":"Format of the string property","enum":["date-time","time","date","duration","email","hostname","ipv4","ipv6","uuid"],"example":"email","type":"string","x-struct":null,"x-validate":null},"pattern":{"description":"Pattern of the string property","example":"^@[a-zA-Z0-9_]+$","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Title of the string property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["string"],"example":"string","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Boolean type JSON Schema property","properties":{"default":{"description":"Default value of the boolean property","x-struct":null,"x-validate":null},"description":{"description":"Description of the boolean property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed boolean property values","items":{"type":"boolean","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the boolean property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the boolean property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["boolean"],"example":"boolean","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Integer type JSON Schema property","properties":{"default":{"description":"Default value of the integer property","x-struct":null,"x-validate":null},"description":{"description":"Description of the integer property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed integer property values","items":{"type":"integer","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the integer property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the integer property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["integer"],"example":"integer","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Number type JSON Schema property","properties":{"default":{"description":"Default value of the number property","x-struct":null,"x-validate":null},"description":{"description":"Description of the number property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed number property values","items":{"type":"number","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the number property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"exclusiveMaximum":{"description":"Exclusive maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"exclusiveMinimum":{"description":"Exclusive minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"maximum":{"description":"Maximum value of the number property","example":100.0,"type":"number","x-struct":null,"x-validate":null},"minimum":{"description":"Minimum value of the number property","example":0.0,"type":"number","x-struct":null,"x-validate":null},"multipleOf":{"description":"Allowed 'multiple of' value for the number property","example":1.0,"type":"number","x-struct":null,"x-validate":null},"title":{"description":"Title of the number property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["number"],"example":"number","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Null type JSON Schema property","properties":{"default":{"description":"Default value of the null property","x-struct":null,"x-validate":null},"description":{"description":"Description of the null property","type":"string","x-struct":null,"x-validate":null},"enum":{"description":"Enumeration of allowed null property values","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the null property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the null property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["null"],"example":"null","type":"string","x-struct":null,"x-validate":null}},"required":["type"],"type":"object","x-struct":null,"x-validate":null},{"description":"Array type JSON Schema property","properties":{"default":{"description":"Default value for the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"description":{"description":"Description of the array property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the array property","items":{"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"items":{"description":"Schema for items in the array property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"maxItems":{"description":"Maximum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"minItems":{"description":"Minimum number of items in the array","type":"integer","x-struct":null,"x-validate":null},"title":{"description":"Title of the array property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["array"],"example":"array","type":"string","x-struct":null,"x-validate":null}},"required":["type","items"],"type":"object","x-struct":null,"x-validate":null},{"description":"Object type JSON Schema property","properties":{"default":{"description":"Default value for the object property","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Description of the object property","type":"string","x-struct":null,"x-validate":null},"examples":{"description":"Examples of the object property","items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"properties":{"additionalProperties":true,"description":"Properties of the object property.\n\nEach key/value pair corresponds to a property that can be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Any of\n- Reference\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the object property","items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Title of the object property","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of property per JSON Schema definition","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Any of JSON Schema property","properties":{"anyOf":{"description":"Schemas for the any of JSON Schema property.","items":{"description":"Schema for the any of JSON Schema property.\n\nCan be any of:\n- String\n- Boolean\n- Integer\n- Number\n- Object\n- Array\n- Reference\n","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["anyOf"],"type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"description":"Reference JSON Schema property","properties":{"$ref":{"description":"Reference to a JSON Schema definition","example":"#/$defs/my_schema","type":"string","x-struct":null,"x-validate":null}},"required":["$ref"],"type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"description":"Properties of the JSON Schema.\n\nEach key/value pair corresponds to a property.\n- **It's validated against all defined types and their properties.**\n- **It supports additional JSON Schema definitions outside the AI Agent's `post_call_analysis_data`.**\n","x-struct":null,"x-validate":null},"required":{"description":"Required properties of the JSON Schema.\n\nMust be keys defined in the properties.\n","example":[],"items":{"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"type":{"description":"Type of the JSON Schema","enum":["object"],"example":"object","type":"string","x-struct":null,"x-validate":null}},"required":["type","properties","required"],"type":"object","x-struct":null,"x-validate":null},"query_params":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"HTTP request query parameters","type":"object","x-struct":null,"x-validate":null},"response_variables":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Values extracted from the response","type":"object","x-struct":null,"x-validate":null},"retry":{"additionalProperties":false,"properties":{"base_delay_ms":{"maximum":5000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_delay_ms":{"maximum":15000,"minimum":200,"type":"integer","x-struct":null,"x-validate":null},"max_retries":{"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"retry_on_status_codes":{"items":{"enum":[408,429,500,502,503,504],"type":"integer","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["max_retries","base_delay_ms","max_delay_ms","retry_on_status_codes"],"type":"object","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":3000,"maximum":120000,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"url":{"description":"Publicly reachable HTTPS endpoint called by the Tool","example":"https://example.com/webhook","format":"uri","pattern":"^https://","type":"string","x-struct":null,"x-validate":null}},"required":["url","speak_after_execution","speak_during_execution"],"title":"CustomToolSettings","type":"object","x-struct":null,"x-validate":null},{"example":{"check_availability_enabled":true,"transfer_options":[{"identifier":"Sales","on_call_behavior":"enqueue","type":"forward_to_user","value":1},{"identifier":"Support","type":"forward_to_agent","value":"8f924d9a-1914-41b4-a1a8-1a4813c3281e"}]},"properties":{"check_availability_enabled":{"default":false,"description":"Enables live availability checks and busy-call behavior.\n\nMobile and desk phones are not supported. Users without live voice presence are treated as unavailable for direct transfers. Leave disabled for users relying on these devices.\n\nWhen omitted or false, transfer directly without checking availability or using busy-call rules.\n","type":"boolean","x-struct":null,"x-validate":null},"transfer_options":{"description":"Transfer options for the tool","items":{"properties":{"identifier":{"description":"Transfer option identifier","example":"Support","type":"string","x-struct":null,"x-validate":null},"on_call_behavior":{"default":"unavailable","description":"Behavior when no user or team member is available and at least one is on a call.\n\n* `enqueue`: Park the call in the destination channel's default queue.\n* `unavailable`: Leave the call with the agent and report the destination as unavailable.\n\nUsed only when `check_availability_enabled` is true. Ignored for agent, phone number, and PBX destinations.\n","enum":["enqueue","unavailable"],"example":"enqueue","type":"string","x-struct":null,"x-validate":null},"sip_auth":{"description":"Optional digest credentials for forward_to_sip_uri. Send username and password together. The password is encrypted at rest and responses return password_configured. Omit sip_auth when the trunk authenticates by IP.","example":{"password_configured":true,"username":"trunk"},"type":"object","x-struct":null,"x-validate":null},"target_channel_phone":{"description":"Optional E.164 channel phone number used as a transfer target. Applies to forward_to_user, forward_to_team, forward_to_agent, and forward_to_sip_uri. Uses the current call channel when omitted.","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Transfer option type","enum":["forward_to_user","forward_to_team","forward_to_agent","forward_to_phone_number","forward_to_sip_uri"],"example":"forward_to_agent","type":"string","x-struct":null,"x-validate":null},"value":{"description":"Organization user ID, team UUID, agent UUID, E.164 phone number, or SIP URI. `forward_to_sip_uri` is a URI such as `sip:2105@pbx.example.com`.","example":"b2ed0207-6eb6-4cef-aaa4-cf2e843a0bab","oneOf":[{"type":"integer","x-struct":null,"x-validate":null},{"type":"string","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["identifier","type","value"],"type":"object","x-struct":null,"x-validate":null},"maxItems":36,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["transfer_options"],"title":"TransferCallToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"speak_after_execution":true,"speak_during_execution":false,"timeout_ms":5000},"properties":{"execution_message_description":{"description":"Exact phrase or instruction describing what the agent should say when starting execution","type":"string","x-struct":null,"x-validate":null},"speak_after_execution":{"description":"Whether the agent speaks after execution","type":"boolean","x-struct":null,"x-validate":null},"speak_during_execution":{"description":"Whether the agent speaks during execution","type":"boolean","x-struct":null,"x-validate":null},"timeout_ms":{"description":"Tool execution timeout in milliseconds","example":5000,"type":"integer","x-struct":null,"x-validate":null}},"required":["speak_after_execution","speak_during_execution"],"title":"ExecuteActionsToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"delay_ms":1000},"properties":{"delay_ms":{"description":"Delay before pressing the digit in milliseconds. Must be at least 0.","example":1000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},"title":"PressDigitToolSettings","type":"object","x-struct":null,"x-validate":null},{"additionalProperties":false,"example":{"cal_api_key":"cal_live_example","event_type_id":60444,"timezone":"America/Los_Angeles"},"properties":{"cal_api_key":{"description":"Cal.com API key","type":"string","x-struct":null,"x-validate":null},"event_type_id":{"description":"Cal.com event type ID","type":"number","x-struct":null,"x-validate":null},"timezone":{"description":"Calendar timezone","type":"string","x-struct":null,"x-validate":null}},"required":["cal_api_key","event_type_id"],"title":"CalendarToolSettings","type":"object","x-struct":null,"x-validate":null}],"description":"Settings of the Tool. Supported fields depend on the selected `type`.\n\n- `transfer_call`:\n  - **Required:**\n    - `transfer_options`: Between 1 and 36 destinations the agent can select when transferring a call. Each option contains:\n      - `identifier`: Name the agent uses to identify the destination.\n      - `type`: One of `forward_to_user`, `forward_to_team`, `forward_to_agent`, `forward_to_phone_number`, or `forward_to_sip_uri`.\n      - `value`: User ID, team UUID, agent UUID, or E.164 phone number matching `type`. For `forward_to_sip_uri`, this is the SIP URI, such as `sip:2105@pbx.example.com`. Optional `sip_auth` holds a digest `username` and `password`. The password is encrypted at rest and returned as `password_configured`.\n      - `target_channel_phone`: Optional E.164 channel phone number used as a target for the transfer. Applies to `forward_to_user`, `forward_to_team`, `forward_to_agent`, and `forward_to_sip_uri`. Uses the current call channel when omitted.\n      - `on_call_behavior`: Optional `enqueue` (park the call) or `unavailable` (default). Applies only to user/team destinations and is ignored for agent, phone, and PBX destinations.\n  - **Optional:**\n    - `check_availability_enabled`: Defaults to false. Set true to enable availability checks and busy-call behavior. When omitted or false, the agent and tool transfer directly without availability checks; busy-call rules are ignored.\n\n- `execute_actions`:\n  - **Required:**\n    - `speak_after_execution`: Whether the agent speaks after executing the actions. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks while executing the actions. Recommended when execution takes more than one second.\n  - **Optional:**\n    - `timeout_ms`: Time in milliseconds before action execution times out.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n\n- `check_availability_cal` and `book_appointment_cal`:\n  - **Required:**\n    - `cal_api_key`: Cal.com API key used by the Tool.\n    - `event_type_id`: Cal.com event type ID used by the Tool.\n  - **Optional:**\n    - `timezone`: IANA timezone used for the calendar operation.\n\n- `press_digit`:\n  - **Optional:**\n    - `delay_ms`: Time in milliseconds to wait before pressing the digit, allowing a slow IVR menu to finish playing. Must be at least 0.\n\n- `custom`:\n  - **Required:**\n    - `url`: Publicly reachable HTTPS endpoint called by the Tool.\n    - `speak_after_execution`: Whether the agent speaks after tool execution. Recommended when the user needs an execution update.\n    - `speak_during_execution`: Whether the agent speaks during tool execution. Recommended when the request takes more than one second.\n  - **Optional:**\n    - `method`: HTTP method used for the request. One of `POST`, `GET`, `PUT`, `PATCH`, or `DELETE`; defaults to `POST`.\n    - `timeout_ms`: Time in milliseconds before the request times out. Must be between 1 and 120000.\n    - `execution_message_description`: What the agent should say when starting execution. It can be an exact phrase or an instruction.\n    - `headers`: HTTP request headers. Keys and values must be strings.\n    - `query_params`: HTTP query parameters. Keys and values must be strings.\n    - `response_variables`: Values extracted from the response and made available as dynamic variables. Keys and values must be strings.\n    - `parameters`: JSON Schema describing the Tool input. The root schema must include a description.\n    - `retry`: Retry policy. When provided, it requires:\n      - `max_retries`: Number of retry attempts, from 1 to 3.\n      - `base_delay_ms`: Initial retry delay in milliseconds, from 200 to 5000.\n      - `max_delay_ms`: Maximum retry delay in milliseconds, from 200 to 15000.\n      - `retry_on_status_codes`: Non-empty list containing only `408`, `429`, `500`, `502`, `503`, or `504`.\n    - `include_whippy_context`: Whether to add a `whippy_context` object to the JSON request body containing the current contact, conversation, and message when available. Only applies to `POST`, `PUT`, and `PATCH` requests. During voice calls, the message body contains the dialogue so far.\n\n","x-struct":null,"x-validate":null},"signing_api_key_id":{"description":"Active signing API key in the authenticated organization","format":"uuid","nullable":true,"type":"string","writeOnly":true,"x-struct":null,"x-validate":null}},"title":"UpdateToolParams","type":"object","x-struct":null,"x-validate":null},"ShowChannelResponse":{"description":"Response schema for an individual channel.","example":{"data":{"address":"Test Company","ai_context":"This channel is used for customer support inquiries","automatic_response_closed":"We're closed now!","automatic_response_open":"We're open now!","automatic_response_settings":{"closed":{"message":"We're closed now!","type":"message"},"open":{"message":"We're open now!","type":"message"},"send_when":"always"},"call_flow_id":"c78079d2-04fd-4d7f-99c6-15a8eff4fd02","color":"#000000","description":"Test Description","emoji":"👨‍👩‍👧‍👦","id":"525a21ed-1b0e-4852-8e0d-a66c4a686f3e","is_hosted_sms":false,"name":"Manhattan Office","opening_hours":[{"closes_at":"22:30","opens_at":"08:00","state":"open","weekday":"Thursday"}],"phone":"+195389819491","send_automatic_response_when":"always","timezone":"America/Chicago"}},"properties":{"data":{"description":"Data for a single channel","properties":{"address":{"description":"Channel address","type":"string","x-struct":null,"x-validate":null},"ai_context":{"description":"Additional context information for AI features","example":"This channel is used for customer support inquiries","type":"string","x-struct":null,"x-validate":null},"automatic_response_closed":{"description":"Automatic response when a contact sends a message outside business hours","type":"string","x-struct":null,"x-validate":null},"automatic_response_open":{"description":"Automatic response when a contact sends a message during business hours","type":"string","x-struct":null,"x-validate":null},"automatic_response_settings":{"description":"Automatic response settings configuration","properties":{"closed":{"description":"Action to perform when channel is closed (outside business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"open":{"description":"Action to perform when channel is open (business hours)","properties":{"config":{"description":"Configuration object for the action. Structure varies by type:\n- For 'message': { \"message\": \"Your message text\" }\n- For 'agent': { \"agent_id\": \"uuid\" }\n- For 'sequence': { \"sequence_id\": \"uuid\" }\n","example":{"message":"Thanks for contacting us!"},"type":"object","x-struct":null,"x-validate":null},"type":{"description":"Type of automatic response action","enum":["message","agent","sequence"],"example":"message","type":"string","x-struct":null,"x-validate":null}},"required":["type","config"],"title":"AutomaticResponseAction","type":"object","x-struct":null,"x-validate":null},"send_when":{"description":"When to send automatic responses","enum":["always","never","open","closed"],"example":"always","type":"string","x-struct":null,"x-validate":null}},"title":"AutomaticResponseSettings","type":"object","x-struct":null,"x-validate":null},"call_flow_id":{"description":"Assigned programmable Call Flow ID, or null when none is assigned","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"color":{"description":"The Hexadecimal value that represents the color","example":"#009874","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Description","example":"The channel used by Team A","type":"string","x-struct":null,"x-validate":null},"emoji":{"description":"The unicode that represents an emoji","example":"👋","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Channel ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"is_hosted_sms":{"default":false,"description":"Defines if the channel is hosted SMS","example":false,"type":"boolean","x-struct":null,"x-validate":null},"name":{"description":"Channel name","type":"string","x-struct":null,"x-validate":null},"opening_hours":{"description":"Opening hours settings for different weekdays for the channel corresponding to a physical location or business hours in general","properties":{"closes_at":{"description":"Time that the business closes","type":"string","x-struct":null,"x-validate":null},"opens_at":{"description":"Time that the business opens","type":"string","x-struct":null,"x-validate":null},"state":{"description":"Setting for the open or closed status of the business on a certain weekday","type":"string","x-struct":null,"x-validate":null},"weekday":{"description":"Weekday that the business hours apply to","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"phone":{"description":"Chanel phone","type":"string","x-struct":null,"x-validate":null},"send_automatic_response_when":{"description":"Setting that determines when to send automatic responses","enum":["always","never","open","closed"],"type":"string","x-struct":null,"x-validate":null},"sending_email_address":{"description":"Email address this channel sends from.","example":"news@example.com","nullable":true,"type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"Timezone setting for the channel","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/North","Australia/NSW","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa"],"example":"America/Phoenix","title":"Timezone","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"ShowChannelResponse","type":"object","x-struct":null,"x-validate":null},"StartCallAgentAction":{"additionalProperties":false,"description":"Start Call Agent Action params used when processing the action.","properties":{"agent_id":{"description":"ID of the Agent to use for the call","example":"b514e377-c87f-4ab2-867c-fb7622f755e3","format":"uuid","type":"string","x-struct":null,"x-validate":null},"bypass_quiet_hours":{"default":false,"description":"Whether to bypass quiet hours restrictions","example":false,"type":"boolean","x-struct":null,"x-validate":null},"custom_placeholders_data":{"description":"Custom placeholder values passed to the Agent","type":"object","x-struct":null,"x-validate":null},"schedule_options":{"additionalProperties":false,"properties":{"days":{"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"hours":{"type":"string","x-struct":null,"x-validate":null},"minutes":{"type":"string","x-struct":null,"x-validate":null},"timezone":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["prompt"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"StartCallAgentAction","type":"object","x-struct":null,"x-validate":null},"SendSMSParams":{"description":"Request schema for creating and sending SMS messages.\n\nOne of `body` or `attachments` is required.\n","example":{"attachments":["https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"],"body":"Greetings, earthlings!","conversation_status":"open","from":"+14155552672","opt_in_to":["a95d53cd-c41c-49bf-ae4c-792c55a34a7c","bafca7c2-a25b-4924-af18-37a889d7a170"],"opt_in_to_all_channels":false,"to":"+14155552671"},"properties":{"attachments":{"description":"List of attachment URLs","items":{"description":"Attachment URL","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Message body","maxLength":1000,"type":"string","x-struct":null,"x-validate":null},"conversation_status":{"description":"Status to set for the conversation. If not provided, the conversation status remains unchanged.","enum":["automated","open","closed"],"type":"string","x-struct":null,"x-validate":null},"from":{"description":"Phone of an existing channel belonging to your organization","type":"string","x-struct":null,"x-validate":null},"opt_in_to":{"description":"Setting to opt in contact to specific channels","items":{"description":"Channel","properties":{"id":{"description":"Channel ID","example":"10408b85-3dfa-4cab-ac51-9a0aca824f93","type":"string","x-struct":null,"x-validate":null},"phone":{"description":"Channel phone number","example":"+14155552671","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"opt_in_to_all_channels":{"description":"Setting to opt in contact to all channels","type":"boolean","x-struct":null,"x-validate":null},"schedule_at":{"description":"Scheduling time for the message. Requires ISO 8601 format.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Destination phone number","type":"string","x-struct":null,"x-validate":null}},"required":["to","from"],"title":"SendSMSParams","type":"object","x-struct":"Elixir.DashboardApiWeb.Public.V1.Documentation.Messaging.Message.CreateParams","x-validate":null},"AuditLogUnprocessableContentErrorResponse":{"example":{"errors":[{"description":"Limit must be less than or equal to 100"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"enum":[422],"type":"integer","x-struct":null,"x-validate":null}},"required":["status","errors"],"title":"AuditLogUnprocessableContentErrorResponse","type":"object","x-struct":null,"x-validate":null},"SearchToolExecutionsResponse":{"description":"Recorded agent tool executions that match the search.","example":{"data":[{"channel_type":"phone","error_message":"upstream timeout","id":"761dace8-387f-400d-a029-bd0883b774b8","status":"error","tool_name":"lookup_order"}],"total":1},"properties":{"data":{"description":"Matching executions.","items":{"description":"A recorded agent tool execution.","properties":{"knowledge_bases":{"description":"Knowledge bases this execution queried.","items":{"properties":{"id":{"description":"Knowledge base ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Knowledge base name.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Queried knowledge base version ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"agent_version_id":{"description":"Agent version ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"inserted_at":{"description":"When the row was inserted.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"latency_ms":{"description":"Execution latency in milliseconds.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_id":{"description":"Tool ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"call_id":{"description":"Call ID. Same value as message_id.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_id":{"description":"LLM ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status_code":{"description":"Upstream HTTP status, when present.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source":{"description":"Where the execution was recorded.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"message_id":{"description":"Call or message ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"description":"Execution status.","enum":["pending","success","error"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"When the row was last updated.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Tool execution ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_name":{"description":"Agent name at search time.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"provider":{"description":"Voice or chat provider.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"contact_id":{"description":"Contact ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"conversation_agent_session_id":{"description":"Chat agent session ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"Whippy channel ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_name":{"description":"Whippy channel name.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_type":{"description":"Tool type.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"additionalProperties":true,"description":"Redacted tool response.","nullable":true,"type":"object","x-struct":null,"x-validate":null},"error_message":{"description":"Redacted error text.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"provider_tool_call_id":{"description":"Provider tool call ID.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"request":{"additionalProperties":true,"description":"Redacted tool request.","type":"object","x-struct":null,"x-validate":null},"tool_name":{"description":"Tool name.","example":"lookup_order","type":"string","x-struct":null,"x-validate":null},"completed_at":{"description":"When the tool call completed.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"channel_type":{"description":"Channel type.","enum":["phone","chat"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"conversation_id":{"description":"Conversation ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"description":"LLM version ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_id":{"description":"Agent ID.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metadata":{"additionalProperties":true,"description":"Execution metadata.","type":"object","x-struct":null,"x-validate":null},"started_at":{"description":"When the tool call started.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"description":"Organization ID.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"title":"ToolExecution","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"description":"Total matching executions.","example":1,"type":"integer","x-struct":null,"x-validate":null}},"title":"SearchToolExecutionsResponse","type":"object","x-struct":null,"x-validate":null},"UnassignUserAction":{"description":"Unassign User Action params used when processing the action.","example":{"user_id":null},"properties":{"user_id":{"description":"ID of the unassigned user. Can be null to use the currently assigned user for the conversation.","example":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"title":"UnassignUserAction","type":"object","x-struct":null,"x-validate":null},"ConversationNote":{"description":"Single message data","example":{"attachments":[{"content_type":"image/jpeg","url":"https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg"}],"body":"Give yourself a little present today!","channel_id":"161547c1-65ad-449e-9360-e9a25516d999","created_at":"2021-06-22T07:45:45","direction":"NOTE","from":"+14243051234","id":"10c052db-9ed0-4b8c-b063-d823bc67799b","to":"+14243056789","type":"note","updated_at":"2021-06-22T07:45:45","user_id":42},"properties":{"attachments":{"description":"List of attachments belonging to the message","items":{"description":"Single message attachment","properties":{"content_type":{"description":"MIME type of the attachment","example":"image/jpeg","type":"string","x-struct":null,"x-validate":null},"url":{"description":"URL for the attachment","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"body":{"description":"Original message body","type":"string","x-struct":null,"x-validate":null},"channel_id":{"description":"ID of the channel the conversation belongs to","type":"integer","x-struct":null,"x-validate":null},"created_at":{"description":"Date the message is created at in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"direction":{"description":"Direction of the message - for notes it can be only NOTE","enum":["NOTE"],"type":"string","x-struct":null,"x-validate":null},"email_html_body":{"description":"Email html body","type":"string","x-struct":null,"x-validate":null},"email_subject":{"description":"Email subject","type":"string","x-struct":null,"x-validate":null},"from":{"description":"Address of the channel the note was added on","example":"+14243051234","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Message ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"to":{"description":"Address of the contact the note relates to","example":"+14243056789","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Type of the message - for notes it can be only note","enum":["note"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Date the message was last updated at","format":"date-time","type":"string","x-struct":null,"x-validate":null},"user_id":{"description":"ID of the user who sent the message","type":"integer","x-struct":null,"x-validate":null}},"title":"ConversationNote","type":"object","x-struct":null,"x-validate":null},"DomainListResponse":{"description":"Domains the organization has access to, newest first","example":{"data":[{"apexDomain":"acme.com","createdAt":"2026-11-03T19:00:00Z","expiresAt":null,"id":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","name":"mail.acme.com","purchase":null,"purchasedAt":null,"purposes":{"email":{"provider":"mailgun","requiredDnsRecords":[],"setupState":"awaiting_dns","status":"pending","verificationRecords":[{"name":"smtp._domainkey.mail","priority":null,"ttl":null,"type":"TXT","value":"k=rsa; p=MIGfMA0..."}]},"links":{"requiredDnsRecords":[{"name":"mail","priority":null,"ttl":null,"type":"CNAME","value":"cname.vercel-dns.com"}],"setupState":"active","status":"active","verificationRecord":null}},"renew":null,"setupType":"add","status":"active","updatedAt":"2026-11-03T19:00:00Z"}],"limit":50,"offset":0,"total":1},"properties":{"data":{"items":{"description":"An organization-scoped custom domain and its per-purpose setup state","example":{"apexDomain":"acme.com","createdAt":"2026-11-03T19:00:00Z","expiresAt":null,"id":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","name":"mail.acme.com","purchase":null,"purchasedAt":null,"purposes":{"email":{"provider":"mailgun","requiredDnsRecords":[],"setupState":"awaiting_dns","status":"pending","verificationRecords":[{"name":"smtp._domainkey.mail","priority":null,"ttl":null,"type":"TXT","value":"k=rsa; p=MIGfMA0..."}]},"links":{"requiredDnsRecords":[{"name":"mail","priority":null,"ttl":null,"type":"CNAME","value":"cname.vercel-dns.com"}],"setupState":"active","status":"active","verificationRecord":null}},"renew":null,"setupType":"add","status":"active","updatedAt":"2026-11-03T19:00:00Z"},"properties":{"apexDomain":{"example":"acme.com","type":"string","x-struct":null,"x-validate":null},"createdAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null},"expiresAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"example":"mail.acme.com","type":"string","x-struct":null,"x-validate":null},"purchase":{"nullable":true,"properties":{"status":{"enum":["pending","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null}},"required":["status"],"type":"object","x-struct":null,"x-validate":null},"purchasedAt":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"purposes":{"properties":{"email":{"properties":{"provider":{"enum":["mailgun",null],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["status","setupState","provider","verificationRecords","requiredDnsRecords"],"title":"DomainEmailPurpose","type":"object","x-struct":null,"x-validate":null},"links":{"properties":{"requiredDnsRecords":{"items":{"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"setupState":{"enum":["not_requested","queued","awaiting_dns","verifying","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["not_requested","pending","active","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"verificationRecord":{"nullable":true,"properties":{"name":{"description":"Record host relative to the DNS zone","maxLength":255,"type":"string","x-struct":null,"x-validate":null},"priority":{"description":"MX priority","minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"ttl":{"minimum":0,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["A","AAAA","CNAME","TXT","MX","CAA"],"type":"string","x-struct":null,"x-validate":null},"value":{"maxLength":4096,"type":"string","x-struct":null,"x-validate":null}},"required":["type","name","value","priority","ttl"],"title":"DomainDnsRecord","type":"object","x-struct":null,"x-validate":null}},"required":["status","setupState","verificationRecord","requiredDnsRecords"],"title":"DomainLinksPurpose","type":"object","x-struct":null,"x-validate":null}},"required":["links","email"],"type":"object","x-struct":null,"x-validate":null},"renew":{"description":"Auto-renewal, only for `buy` domains","nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"setupType":{"description":"`add`: caller-owned domain; `buy`: registered through Whippy; `managed`: provisioned by Whippy","enum":["add","buy","managed"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","active","cancelled","expired","deleted"],"type":"string","x-struct":null,"x-validate":null},"updatedAt":{"format":"date-time","nullable":false,"type":"string","x-struct":null,"x-validate":null}},"required":["id","name","apexDomain","setupType","status","renew","purchase","purchasedAt","expiresAt","purposes","createdAt","updatedAt"],"title":"Domain","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"type":"integer","x-struct":null,"x-validate":null},"offset":{"type":"integer","x-struct":null,"x-validate":null},"total":{"description":"Total matching domains","type":"integer","x-struct":null,"x-validate":null}},"title":"DomainListResponse","type":"object","x-struct":null,"x-validate":null},"ListSequencesResponse":{"description":"Response schema for listing sequences","example":{"data":[{"access_level":"user","created_at":"2023-04-01T15:59:15","description":"Some Sequence Description","id":"00a2864c-6aa6-41cc-88c2-decc4b28f476","settings":{"default_call_flow":{"call_flow_id":null,"enabled":false},"link_tracking":{"disabled":false,"domain_id":null},"max_add_per_time":1,"max_add_time":86400,"max_contact_sequence_runs":5,"max_time":null,"on_re_add":"exclude","on_response":"continue","only_send_during_business_hours":{"enabled":true,"use_contact_timezone":false},"skip_sending_on_weekend":{"enabled":true,"use_contact_timezone":true},"support_sms_quiet_hours":{"enabled":true,"use_contact_timezone":true}},"status":"draft","title":"Some Sequence Title","updated_at":"2023-04-01T15:59:15"},{"access_level":"location","created_at":"2023-04-01T18:45:20","description":"Some Sequence Description","id":"9558999f-e1cc-4743-be45-c451461507af","settings":{"default_call_flow":{"call_flow_id":null,"enabled":false},"link_tracking":{"disabled":false,"domain_id":null},"max_add_per_time":1,"max_add_time":86400,"max_contact_sequence_runs":5,"max_time":null,"on_re_add":"include","on_response":"remove","only_send_during_business_hours":{"enabled":true,"use_contact_timezone":false},"skip_sending_on_weekend":{"enabled":true,"use_contact_timezone":true},"support_sms_quiet_hours":{"enabled":true,"use_contact_timezone":true}},"status":"active","title":"Some Sequence Title","updated_at":"2023-04-01T22:13:08"}],"total":2},"properties":{"data":{"description":"List of sequences","items":{"description":"Single sequence","properties":{"access_level":{"description":"Access level for the sequence","enum":["user","location","organization"],"type":"string","x-struct":null,"x-validate":null},"created_at":{"description":"Time of creation of the sequence in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Sequence description","type":"string","x-struct":null,"x-validate":null},"id":{"description":"Sequence ID","format":"uuid","type":"string","x-struct":null,"x-validate":null},"settings":{"description":"Settings for the sequence and how it handles contact responses","properties":{"default_call_flow":{"description":"Default call flow settings:\n  * `enabled`: Should a default call flow be used for the sequence inbound calls?\n  * `call_flow_id`: Default call flow that will be used to answer inbound calls that are a response to a sequence message.\n","example":{"call_flow_id":null,"enabled":false},"type":"object","x-struct":null,"x-validate":null},"link_tracking":{"description":"Link tracking settings:\n  * `disabled`: Should link tracking be disabled for the sequence?\n  * `domain_id`: Domain that will be used for the sequence.\n\nThe `disabled` setting only applies in case link tracking is enabled for the organization and for the used location.\n","example":{"disabled":false,"domain_id":null},"type":"object","x-struct":null,"x-validate":null},"max_add_per_time":{"description":"Maximum number of times a contact can be added to the sequence in a given time period","type":"integer","x-struct":null,"x-validate":null},"max_add_time":{"description":"Time in seconds within which the `max_add_per_time` contacts can be added to the Sequence.","type":"integer","x-struct":null,"x-validate":null},"max_contact_sequence_runs":{"description":"Maximum number of times a contact can run through the sequence","type":"integer","x-struct":null,"x-validate":null},"max_time":{"description":"Maximum time in seconds that a contact can remain in the sequence, nil is equal to no limit","type":"integer","x-struct":null,"x-validate":null},"on_re_add":{"description":"Determines whether a contact should be excluded or included if they are added to the sequence again after being removed","enum":["exclude","include"],"type":"string","x-struct":null,"x-validate":null},"on_response":{"description":"Determines what should happen to a contact when they respond to a message in the sequence","enum":["remove","continue"],"type":"string","x-struct":null,"x-validate":null},"only_send_during_business_hours":{"description":"Should business hours be enforced?","example":{"enabled":true,"use_contact_timezone":true},"type":"object","x-struct":null,"x-validate":null},"skip_sending_on_weekend":{"description":"Should SMS be delivered only on weekdays?","example":{"enabled":true,"use_contact_timezone":true},"type":"object","x-struct":null,"x-validate":null},"support_sms_quiet_hours":{"description":"Should quiet hours be enforced?","example":{"enabled":true,"use_contact_timezone":true},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"description":"Sequence status","enum":["draft","active","archived","deleted"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Sequence title","type":"string","x-struct":null,"x-validate":null},"type":{"description":"Sequence type","enum":["sequential","branched"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"description":"Time of the last update of the sequence in ISO 8601 format","format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"metadata":{"description":"Metadata for cursor-based pagination. Returned on both cursor and offset responses.","nullable":true,"properties":{"cursor_reset":{"description":"`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.","type":"boolean","x-struct":null,"x-validate":null},"next_cursor":{"description":"Cursor for the next page of results. The value is null when there are no more results.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"description":"Total count of sequences","type":"integer","x-struct":null,"x-validate":null}},"title":"ListSequencesResponse","type":"object","x-struct":null,"x-validate":null}},"securitySchemes":{"authorization":{"in":"header","name":"X-WHIPPY-KEY","type":"apiKey"},"bearer":{"description":"OAuth Access token","scheme":"bearer","type":"http"}}},"info":{"description":"Whippy Public API.\n\n## Authentication\n\nThe Whippy Public API supports two authentication methods:\n\n**API Key** — Generate an organization API token and send it with every request as the `X-WHIPPY-KEY` header.\n\n**OAuth Bearer Token** — Obtain an access token via the OAuth authorization flow and send it as a Bearer token in the `Authorization` header (e.g. `Authorization: Bearer <access_token>`).\n\n## Rate Limiting\n\nAuthenticated requests are limited per API key or OAuth client and per organization. The limit depends on the endpoint. See https://docs.whippy.ai/docs/rate-limiting.\nEach authenticated response includes:\n * `x-ratelimit-max`: The maximum number of requests that the consumer is permitted to make in the given time period.\n * `x-ratelimit-remaining`: The number of requests remaining in the current rate limit window.\n * `x-ratelimit-interval-milliseconds`: The rate limit window in milliseconds.\n * `x-ratelimit-remaining-interval-milliseconds`: The time in milliseconds until the rate limit window resets.\n\nUnauthenticated requests, including `GET /openapi.json`, are limited per path. The path bucket key is that path id. It defaults to 5 requests per 1000 milliseconds and can change without a deploy. A request with no `cf-connecting-ip` header uses only that path bucket.\n\nWhen the request includes `cf-connecting-ip` and the first IPv4 octet is in the configured `top_level_subnets` list, a separate subnet bucket is checked first. Its key is the path id plus that octet, so addresses such as `203.0.113.10` and `203.0.113.20` share it. It defaults to 1 request per 2000 milliseconds and can change without a deploy. An octet that is not in the list skips this bucket. The path bucket is unchanged and still uses the path id alone.\n\nA per-IP bucket, keyed by the full IP, is separate from both. It has no fixed size: it applies only when its configuration supplies an integer request count and an integer window in milliseconds, and it is off otherwise. A request without `cf-connecting-ip` is not limited per IP or by subnet.\n\n## Errors\n\nError responses use standard HTTP status codes. JSON error bodies keep their existing,\nendpoint-specific fields (for example `status` and `errors`, or `errors.detail`) and also carry:\n\n* `code` - stable machine-readable error class\n* `message` - human-readable summary\n* `resolution` - what to do about it\n* `docs_url` - documentation page for the error\n* `request_id` - the request identifier, when available\n\nError responses that are not JSON are returned unchanged.\n\nDefault status to `code`. An endpoint can return a more specific `code` than the one listed\nfor its status (for example a `409` of `stale_draft` instead of `conflict`):\n\n* `400` - `bad_request`\n* `401` - `unauthenticated`\n* `403` - `forbidden`\n* `404` - `not_found`\n* `405` - `method_not_allowed`\n* `406` - `not_acceptable`\n* `409` - `conflict`\n* `413` - `payload_too_large`\n* `415` - `unsupported_media_type`\n* `422` - `validation_failed`\n* `429` - `rate_limited`\n* `500` - `internal_error`\n* `503` - `service_unavailable`\n\nSee https://docs.whippy.ai/docs/errors for details.\n\n","title":"Whippy Public API","version":"1.0"},"openapi":"3.0.0","paths":{"/v1/custom_objects/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a Custom Object. Аll Custom Properties and Custom Object Records associated with the Custom Object will be deleted as well.\n","operationId":"deleteCustomObject","parameters":[{"description":"Custom Object ID","example":"59cbb3ae-96f1-41fe-8e3d-0797233193fe","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectResponse"}}},"description":"deleteCustomObject Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBadRequestErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Custom Object","tags":["Objects"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates an existing Custom Object.\nYou can update `label`, `description`, `color`, `emoji`, `ai_context`, `editable`, `hidden`, and `custom_properties`.\n\nSending `custom_properties` updates the property list. A property a user created is kept when the payload omits it. An integration that later defines that key takes ownership of the property. On an MCP request, changing a property the integration defined returns 422.\nThe Custom Property API still updates one property at a time.\n","operationId":"updateCustomObject","parameters":[{"description":"Custom Object ID","example":"663e8807-b732-44ed-ba3a-958c6dc6d6e1","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomObjectParams"}}},"description":"updateCustomObject Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectResponse"}}},"description":"updateCustomObject Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Custom Object","tags":["Objects"]}},"/v1/knowledge_bases":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a knowledge base with an initial draft version.\n","operationId":"createKnowledgeBase","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKnowledgeBaseParams"}}},"description":"Create Knowledge Base Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseResponse"}}},"description":"Create Knowledge Base Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Knowledge Base","tags":["Knowledge Bases"]}},"/v1/knowledge_bases/{knowledge_base_id}/items/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Removes an item from a knowledge base draft. The item record itself is not destroyed.\nChild items cannot be deleted directly. If no draft exists, one is created from the current published version.\n","operationId":"deleteKnowledgeBaseItem","parameters":[{"description":"Knowledge Base ID","example":"485a9c4f-ef59-4e55-9038-9c3545a455c5","in":"path","name":"knowledge_base_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Knowledge Base Item ID","example":"f6c064d6-df25-45c9-985d-de6dd8f40060","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Path Parameter"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/KnowledgeBaseItemNotFoundErrorResponse"},{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}],"x-struct":null,"x-validate":null}}},"description":"Knowledge Base Item or Knowledge Base Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Knowledge Base Item","tags":["Knowledge Base Items"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates an item on a knowledge base draft. Omitted fields are preserved. Type cannot be changed.\nIf no draft exists, one is created from the current published version.\n","operationId":"updateKnowledgeBaseItem","parameters":[{"description":"Knowledge Base ID","example":"58d315d4-34e1-438f-9056-4d3f03ba29c7","in":"path","name":"knowledge_base_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Knowledge Base Item ID","example":"989e67b2-e825-4f38-b887-c241fefffcd2","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKnowledgeBaseItemParams"}}},"description":"Update Knowledge Base Item Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseItemResponse"}}},"description":"Update Knowledge Base Item Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Path Parameter"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/KnowledgeBaseItemNotFoundErrorResponse"},{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}],"x-struct":null,"x-validate":null}}},"description":"Knowledge Base Item or Knowledge Base Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Knowledge Base Item","tags":["Knowledge Base Items"]}},"/v1/sequences/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific sequence.","operationId":"getSequence","parameters":[{"description":"Sequence ID","example":"e44534ce-292a-440e-9308-3b86745c9af4","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowSequenceResponse"}}},"description":"Sequence"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Sequence","tags":["Sequences"]}},"/v1/channels/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific channel with working hours.","operationId":"getChannel","parameters":[{"description":"Channel ID","example":"6af60e2a-6cd3-4596-9c53-86bf4306bd7c","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowChannelResponse"}}},"description":"Channel"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Channel","tags":["Channels"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates display details for a channel.\n\nOnly `name`, `address`, `emoji`, `color`, `description`, `timezone`, and `opening_hours` can be changed.\nSend the fields to update; omitted fields stay as they are. At least one of those fields is required.\nSend null for `emoji`, `color`, or `description` to clear them.\n\n`emoji` must be an emoji. `description` is at most 255 characters. `address` cannot be blank.\n`timezone` is an IANA name such as `America/New_York`. Abbreviations such as `PST` are not accepted.\n`opening_hours` updates business hours for the weekdays you send. Other weekdays stay as they are.\nEach weekday requires `weekday`, `state`, `opens_at`, and `closes_at`.\n`weekday` is `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, or `Sunday`.\n`state` is `open` or `closed`. A state of `closed` keeps that weekday closed.\n`opens_at` and `closes_at` are 24-hour `HH:MM`, such as `09:00`. `00:00` is midnight.\n`00:00` to `00:00` means open all day.\n","operationId":"updateChannel","parameters":[{"description":"Channel ID","example":"fe524f7d-75a0-44b6-afa7-55fbfae111d7","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateChannelParams"}}},"description":"Update Channel Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowChannelResponse"}}},"description":"Channel"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Channel","tags":["Channels"]}},"/v1/messaging/note":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a note in a conversation.\n\nThe note body must be less than 1000 characters. Attachment-only notes are also accepted.\n\nThe note body supports mentioning of users by using the `@` symbol followed by the user's ID wrapped in double curly brackets. For example, `@{{12}}` will mention the user with ID 12. A mentioned user will be notified of the mention via email/SMS/push notifications, depending on their notification settings.\n\nIf there is no contact corresponding to the `to` parameter for the organization, a new contact will be created, along with a conversation with the `from` number channel. If there is an existing contact but no conversation, a new conversation will be created.\n\nThe `opt_in_to_all_channels` and `opt_in_to` params are optional and they will be processed in the cases where a new contact is created. These params reflect which of the organization channels the contact will be opted in to.\n\nThe optional `conversation_status` param sets the status of the conversation the note is added to. If it is omitted, the conversation status is left unchanged. Creating a note never marks the conversation as unread.\n","operationId":"createConversationNote","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationNoteParams"}}},"description":"Create Conversation Note Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationNoteResponse"}}},"description":"Note"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Note","tags":["Messages"]}},"/v1/contacts/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Archives a contact without deleting them from the database.","operationId":"deleteContact","parameters":[{"description":"Contact ID","example":"1aab6a75-d889-480f-bcaa-6e7183ce7ca2","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowContactResponse"}}},"description":"Contact"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Contact","tags":["Contacts"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific contact with notes, communication preferences, and contact tags.","operationId":"getContact","parameters":[{"description":"Contact ID","example":"43283da6-2453-4081-97e7-c6fec5d12761","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowContactResponse"}}},"description":"Contact"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Contact","tags":["Contacts"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a contact.","operationId":"updateContact","parameters":[{"description":"Contact ID","example":"19e0c449-6f9a-47e7-9b44-ca4cb937e3d0","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactParams"}}},"description":"Contact Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowContactResponse"}}},"description":"Contact"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Contact","tags":["Contacts"]}},"/v1/conversations":{"get":{"callbacks":{},"deprecated":false,"description":"Lists conversations in an organization.\n\nConversations with no last_message_date will be excluded as they're regarded as empty.\n\nThe default offset is 0 and the default limit is 50.\nThe max limit is 500.\n","operationId":"getConversations","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"unread_count","example":10,"in":"query","name":"unread_count","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"status","example":"open","in":"query","name":"status[]","required":false,"schema":{"description":"Statuses list","example":["open","automated"],"items":{"description":"Conversation status","enum":["open","closed","spam","automated"],"example":"closed","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"type","example":["phone"],"in":"query","name":"type[]","required":false,"schema":{"description":"Filter by conversation `channel_type`. Must be a list of channel types.","example":["phone"],"items":{"enum":["phone","email","fax"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"channel IDs","example":["6c309a1a-e279-4eaf-89ac-c0e29442006a","7c662f45-4ac0-4b61-a417-00282f568124"],"in":"query","name":"channels[][id]","required":false,"schema":{"description":"IDs of channels with conversations.","items":{"description":"Channel ID","example":"9c124d13-48dc-452c-b61d-084d10813d1a","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"channel phones","example":["+14155552671","+14155552672"],"in":"query","name":"channels[][phone]","required":false,"schema":{"description":"Phones of channels with conversations.","items":{"description":"Channel phone","example":"+14155552671","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"contact IDs","example":["f12fd3eb-a664-4582-8618-b096e715fbb3","5d2c7413-c819-4f7e-8d2e-13f2f3c10285"],"in":"query","name":"contacts[][id]","required":false,"schema":{"description":"IDs of contacts with conversations.","items":{"description":"Contact ID","example":"6a52bffd-f484-41d1-b91e-600feca25cc7","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"contact phones","example":["+14155552681","+14155552682"],"in":"query","name":"contacts[][phone]","required":false,"schema":{"description":"Phones of contacts with conversations.","items":{"description":"Contact phone","example":"+14155552681","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"contact email","example":["brucewayne@example.com","clarkkent@example.com"],"in":"query","name":"contacts[][email]","required":false,"schema":{"description":"Emails of contacts with conversations.","items":{"description":"Contact email","example":"brucewayne@example.com","format":"email","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"contact name","example":["Bruce Wayne","Clark Kent"],"in":"query","name":"contacts[][name]","required":false,"schema":{"description":"Names of contacts with conversations.","items":{"description":"Contact name","example":"Bruce Wayne","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"last message date","example":{"after":"2026-11-26T16:37:59.281885Z","before":"2026-11-24T16:37:59.281852Z"},"explode":true,"in":"query","name":"last_message_date","required":false,"schema":{"description":"Last Message Date in ISO 8601","properties":{"after":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"},{"description":"updated at date","example":{"after":"2026-11-26T16:37:59.281895Z","before":"2026-11-24T16:37:59.281891Z"},"explode":true,"in":"query","name":"updated_at","required":false,"schema":{"description":"Updated At Date in ISO 8601","properties":{"after":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"},{"description":"created at date","example":{"after":"2026-11-26T16:37:59.281906Z","before":"2026-11-24T16:37:59.281900Z"},"explode":true,"in":"query","name":"created_at","required":false,"schema":{"description":"Created At Date in ISO 8601","properties":{"after":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"},{"description":"assigned user IDs","example":[1,7,10],"in":"query","name":"assigned_users[]","required":false,"schema":{"description":"IDs of users that are assigned to conversations","items":{"description":"Assigned User ID","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"Conversation Sorting Options","example":{"column":"waiting_since","order":"desc"},"explode":true,"in":"query","name":"sort","required":false,"schema":{"description":"Sorting options","properties":{"column":{"enum":["last_message_timestamp","waiting_since"],"example":"waiting_since","type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"},{"description":"waiting since","example":{"after":"2026-11-26T16:37:59.285053Z","before":"2026-11-24T16:37:59.285021Z"},"explode":true,"in":"query","name":"waiting_since","required":false,"schema":{"description":"Waiting Since Date in ISO 8601","properties":{"after":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListConversationsResponse"}}},"description":"Conversations"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Conversations","tags":["Conversations"]}},"/v1/contacts/upsert":{"post":{"callbacks":{},"deprecated":false,"description":"Bulk creates or updates contacts in an organization.\n\nOptionally, it can opt in contacts to all organization channels or specific channels.\nAlso, the contacts in the list can optionally be associated with a custom object by providing the custom object ID\nin the top level of the request body and the properties of the custom object in the `properties` key of each contact.\nА contact's relationship with a custom object is always one-to-one.\n\n**Important: The following fields of a contact are unique and also nullable**:\n  - `external_id`\n  - `phone`\n  - `email`\n\nThis means that if a contact with the same value for any of these fields already exists in the organization,\nthe contact will be updated instead of created.\nThe following update strategy is applied:\n- If a contact is present in the payload where the `external_id` conflicts with the `external_id` of an existing contact:\n  - If the existing contact has a different `email` and `phone` than the new contact, the existing contact will be updated with the new data and the email and phone will be overwritten, as long as no other contact has the same email or phone.\n- If a contact is present in the payload where the `phone` conflicts with the `phone` of an existing contact:\n  - If the existing contact has the same `external_id` as the new contact or its value is not set, the existing contact will be updated with the new data.\n  - If the existing contact has a different `external_id` than the new contact, a new contact without a phone will be created.\n- If a contact is present in the payload where the `email` conflicts with the `email` of an existing contact:\n  - If the existing contact has the same `external_id` and `phone` as the new contact or their values are not set, the existing contact will be updated with the new data.\n  - If the existing contact has a different `external_id` and `phone` than the new contact, a new contact without an email will be created.\n","operationId":"upsertContacts","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertContactParams"}}},"description":"Contact Upsert","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertContactResponse"}}},"description":"Contact Upsert Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Upsert Contacts","tags":["Contacts"]}},"/v1/workflow-connections":{"get":{"callbacks":{},"deprecated":false,"description":"Lists connections (authenticated accounts) across all workflow apps for the organization.\n\nOptional filters: `app_id`, `status`, `search`, `limit`, `offset`. Secrets are never\nreturned. Connections are sensitive, so OAuth callers require `workflows:update`.\n","operationId":"listWorkflowConnections","parameters":[{"description":"Filter by connection name","example":"work","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter by workflow app ID","example":"660e8400-e29b-41d4-a716-446655440001","in":"query","name":"app_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Filter by connection status","example":"active","in":"query","name":"status","required":false,"schema":{"enum":["pending","active","needs_reconnect","stale"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of connections to return.","example":20,"in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of connections to skip.","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowConnectionsResponse"}}},"description":"List connections"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionNotFound"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionUnprocessableContent"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow Connections","tags":["Connections"]}},"/v1/leads":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a lead contact, an inbound message, a contact event with type `api_lead`,\nand optionally an outbound message. The outbound message can be optionally scheduled.\n\nIf the contact exists and is opted out, only an inbound message and an event will be created.\n\nPassing a phone number that is already used by an existing contact would get the existing contact.\nIt would not try to create a new contact with a duplicate phone number.\n","operationId":"createLead","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLeadParams"}}},"description":"Create Lead Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLeadResponse"}}},"description":"Lead"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLeadUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Lead","tags":["Leads"]}},"/v1/campaigns/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific campaign.","operationId":"getCampaign","parameters":[{"description":"Campaign ID","example":"fbb516a7-38d9-4125-a9a9-b440f31fd116","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowCampaignResponse"}}},"description":"Campaign"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Campaign","tags":["Campaigns"]}},"/v1/llms/versions/{version_id}/meta":{"put":{"callbacks":{},"deprecated":false,"description":"Updates metadata for an LLM version that belongs to the authenticated organization.","operationId":"updateLLMVersionMeta","parameters":[{"description":"LLM version ID","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLLMVersionMetaParams"}}},"description":"Update LLM Version Metadata Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMVersionResponse"}}},"description":"Update LLM Version Metadata Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMVersionNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update LLM Version Metadata","tags":["LLMs"]}},"/v1/agents/{agent_id}/tests":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a page of saved agent tests for the organization. Use `limit` and `offset` to page,\n`lifecycle` to narrow by publication state, `filter` and `sort` for JSON-encoded criteria,\nand `include_archived` to include archived tests, which lists hide by default.\n\nLimited to the tests of the agent in the path.","operationId":"listAgentTestsForAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Page size","in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Page offset","in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"JSON-encoded filter array (see schema example)","in":"query","name":"filter","required":false,"schema":{"description":"JSON-encoded array of filter clauses (`resource`, `column`, `comparison`, `value`). Example: `[{\"resource\":\"agent_test\",\"column\":\"id\",\"comparison\":\"==\",\"value\":\"<uuid>\"}]`","example":"[{\"resource\":\"agent_test\",\"column\":\"name\",\"comparison\":\"ilike\",\"value\":\"billing\"}]","type":"string","x-struct":null,"x-validate":null}},{"description":"JSON-encoded sort array (see schema example)","in":"query","name":"sort","required":false,"schema":{"description":"JSON-encoded array of sort clauses (`resource`, `column`, `order`). Example: `[{\"resource\":\"agent_test\",\"column\":\"inserted_at\",\"order\":\"desc\"}]`","example":"[{\"resource\":\"agent_test\",\"column\":\"inserted_at\",\"order\":\"desc\"}]","type":"string","x-struct":null,"x-validate":null}},{"description":"Lifecycle filter","in":"query","name":"lifecycle","required":false,"schema":{"description":"never_published, published, and unpublished_changes are separate conditions.\nA test can match published and unpublished_changes at the same time.\n","enum":["never_published","published","unpublished_changes"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Include archived tests","in":"query","name":"include_archived","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":[{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestScenariosResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List agent tests","tags":["Tests"]}},"/v1/workflow-apps/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns one workflow app by ID with its triggers and create actions from\nthe currently published app version, plus the app's `logo_url`, `logo_urls`,\n`brand_color`, `access_level`, and published `version`.\n\nMalformed path IDs are rejected with 400 by the public API path-param\nvalidator. Accessible apps without a published version return 404.\n\nOAuth callers require the `workflows:read` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"getWorkflowApp","parameters":[{"description":"Workflow app ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowAppResponse"}}},"description":"getWorkflowApp Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAppBadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAppNotFoundResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Workflow App","tags":["Apps"]}},"/v1/agent_test_runs/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns run status, transcript, machine verdict, and optional human override.","operationId":"showAgentTestRun","parameters":[{"description":"Agent test run ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestRunResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show agent test run","tags":["Test Runs"]}},"/v1/links":{"get":{"callbacks":{},"deprecated":false,"description":"Lists tracked links for the current organization.\n\nDefault `status` is `active`. Deleted links are never returned. Default order is\n`updated_at` descending, then `id` descending.\n\nSupports cursor (`cursor`/`limit`) or offset (`offset`/`limit`) pagination — not both.\n","operationId":"listLinks","parameters":[{"description":"Offset the returned results. Cannot be combined with cursor.","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use next_cursor from the previous response.","example":"eyJ1cGRhdGVkX2F0IjoiMjAyNi0xMS0wM1QxOTowMDowMFoiLCJpZCI6ImRkODQwNjczLWQ1NDQtNDRiOS05OWYxLWY2NDM4NDcxZDJmMyJ9","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Limit the number of results returned (max 100).","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Link status filter. Defaults to active.","example":"active","in":"query","name":"status","required":false,"schema":{"default":"active","enum":["active","archived"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter by custom domain ID","example":"b7368865-d7c8-48b4-b597-c8146ebf8224","in":"query","name":"domain_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Case-insensitive match on description, destination URL, or short key","example":"forklift","in":"query","name":"q","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLinks"}}},"description":"List Links Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInsufficientScopeErrorResponse"}}},"description":"Insufficient Scope Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List links","tags":["Links"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a tracked link. Required: `url`. Omit `short_key` to generate an 8-character key.\nOmit `domain_id` to use the default short domain (`m.whippy.co`).\n","operationId":"createLink","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLinkParams"}}},"description":"Create Link Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLink"}}},"description":"Create Link Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInsufficientScopeErrorResponse"}}},"description":"Insufficient Scope Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create link","tags":["Links"]}},"/v1/custom_objects/{custom_object_id}/properties":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a new custom property.\nThe `key` field is used to identify the custom property, it's written in snake case and it must be unique within the custom object.\nThe `label` field can be used to give a human readable name to the custom property.\nThe `type` field is used to define the type of the custom property i.e. `text`, `number`, `float` `boolean`, `date`, `list`, `map`.\nThe `required` field is a boolean used to define if the custom property is required or not.\nThe `default` field is used to define the default value of the custom property.\nThe `default` field is required if the custom property is required and its value should match the type defined in the `type` field.\nThe `references` field is used to define the associations between the given custom property and custom properties of other custom objects.\nSetting a `reference` will not only update the `references` of the given custom property but also the `references` of the custom properties that is being referenced.\n","operationId":"createCustomProperty","parameters":[{"description":"Custom Object ID","example":"de805458-9b23-40fb-9c46-038727337b9e","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomPropertyParams"}}},"description":"createCustomProperty Request","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomPropertyResponse"}}},"description":"createCustomProperty Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPropertyBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPropertyUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Custom Property","tags":["Properties"]}},"/v1/agent-skills":{"get":{"callbacks":{},"deprecated":false,"description":"Lists Whippy AI skills visible to the authenticated organization and user:\nglobal platform skills, organization skills, and the current user's skills.\n\nColliding slugs are **not** collapsed here — management clients see every\nvisible row. Agent runtime resolution (user → organization → global) still\napplies when the agent loads skills via meta-tools.\n","operationId":"listAgentSkills","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexAgentSkillResponse"}}},"description":"Agent Skill Index Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Agent Skills","tags":["Skills"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates an organization- or user-scoped agent skill.\n\nGlobal skills cannot be created through this API (use the admin API).\nUser-scoped skills are always owned by the acting user.\n","operationId":"createAgentSkill","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentSkillParams"}}},"description":"Agent Skill Create Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentSkillResponse"}}},"description":"Agent Skill Create Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Agent Skill","tags":["Skills"]}},"/v1/calls/search":{"post":{"callbacks":{},"deprecated":false,"description":"Search calls for an organization based on filters.\n\nOptionally, the call records can be filtered by a set of filters:\n  - `before` - will return call records created before the given date.\n  - `after` - will return call records created after the given date.\n  - `from` - will return call records from the given caller phone number.\n  - `to` - will return call records to the given callee phone number.\n  - `direction` - will return call records in the given direction (`INBOUND` or `OUTBOUND`). This is a filter, not a cursor direction.\n  - `delivery_status` - will return call records with the given delivery status.\n  - `mode` - will return call records with the given mode.\n  - `language` - will return call records in the given language.\n  - `call_completion_rating` - will return call records with the given call completion rating.\n  - `voicemail` - will return call records that reached voicemail (`call_metadata.voicemail`), including a short clip and a call with no saved message.\n  - `voicemail_recorded` - `true` will return call records that saved a voicemail message. `delivery_status` is `call_no_answer.caller_left_voicemail_message`, `call_completed.caller_left_voicemail_message`, or that suffix on `call_queued`, `call_initiated`, `call_ringing`, `call_missed`, `call_busy`, or `call_failed`. `false` will return call records that have no saved voicemail message, such as `call_no_answer`, `call_no_answer.reached_voicemail_no_message`, or `call_in_progress`.\n  - `min_duration` - will return call records with given minimum duration in milliseconds.\n  - `max_duration` - will return call records with given maximum duration in milliseconds.\n  - `agent_id` - will return call records from the given agent ID.\n  - `agent_version_id` - will return call records from the given agent version ID.\n  - `contact_id` - will return call records from/to the given contact ID.\n  - `conversation_id` - will return call records from the given conversation ID.\n  - `channel_id` - will return call records from/to the given channel ID.\n\nAll fields, with the exception of `before`, `after`, `min_duration`, `max_duration`, `voicemail`, `voicemail_recorded`, `call_successful`, and `internal_call`, accept a single value or an array of values.\n\nPrefer **cursor** pagination (`cursor` and `limit`) over `offset` and `limit`. Cursor pagination is\nstable and performant on large datasets. It is triggered automatically when a `cursor` parameter is\nprovided, and `cursor` and `offset` cannot be combined.\n\n**Offset-based** pagination (`offset` and `limit`) is also supported for shallow pages. `offset + limit`\nmust not exceed 10,000. Requests past that window are rejected — use `cursor` to page further.\n\nBoth methods return a `metadata` object with a `next_cursor` field. Pass it back as `cursor` to fetch\nthe next page; when `next_cursor` is `null`, there are no more results. Paging is forward only.\nFilters are not encoded in the cursor, so include them on every request.\n","operationId":"searchCalls","parameters":[{"description":"Maximum number of calls to return. Defaults to 50. Must be between 1 and 500.\n\nWhen used with `offset`, `offset + limit` must not exceed 10,000. Prefer `cursor` over `offset` and `limit`.\n","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Preferred over `offset` and `limit`.\n\nUse the `next_cursor` value from the previous response. Cannot be combined with `offset`. Use this to page past the 10,000 `offset + limit` window. Paging is forward only.\n","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Number of calls to skip. Defaults to 0. Cannot be combined with `cursor`.\n\n`offset + limit` must not exceed 10,000. Prefer `cursor` over `offset` and `limit`.\n","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchCallsParams"}}},"description":"Search Calls Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchCallResponse"}}},"description":"List Calls Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Calls","tags":["Calls"]}},"/v1/domains/purchase-quotes":{"post":{"callbacks":{},"deprecated":false,"description":"Checks whether an apex domain can be bought and returns its price in integer minor units.\nAvailable quotes expire after 15 minutes. Unavailable domains return `available: false`\nand `null` quote fields.\n\nBuying a domain takes three calls: quote, intent, confirm. Quotes and intents are\nnon-binding; only Confirm Purchase Intent can lead to a registrar charge.\n\n","operationId":"quoteDomainPurchase","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPurchaseQuoteParams"}}},"description":"Purchase Quote Params","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPurchaseQuoteResponse"}}},"description":"Purchase Quote Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Purchase Quote","tags":["Domain Purchases"]}},"/v1/workflow-runs":{"get":{"callbacks":{},"deprecated":false,"description":"Lists workflow runs for the authenticated organization with optional full-text\nsearch, filtering, sorting, and pagination.\n\nSearch matches workflow name, step input/output, errors, console logs, and run\nID (when the search value is a UUID). Filtering, search, sort, and pagination\nare performed server-side.\n\nResults are always scoped to the authenticated organization. OAuth callers\nrequire the `workflows:read` scope (and matching workspace permission). API key\ncallers are authorized by organization membership.\n\nResults default to newest-first by `started_at`. Use `sort=started_at` for\noldest-first.\n\n## Pagination\n\nTwo pagination modes are supported (same contract as other public list\nendpoints):\n\n* **Offset-based** — pass `offset` with `limit`. Served from the search\n  index; `offset + limit` must not exceed 10,000.\n* **Cursor-based** (required past the 10k window; preferred for large\n  result sets) — pass `cursor` with the opaque `metadata.next_cursor`\n  value from a previous response. Cursors encode `started_at` + `id`\n  keyset position and are served from Postgres. `cursor` and `offset`\n  cannot be combined.\n\nEvery successful response includes `metadata.next_cursor` and\n`metadata.cursor_reset`. On offset pages, `next_cursor` bootstraps a\ntransition to cursor pagination. When `next_cursor` is `null`, there are no\nmore results. `cursor_reset` is `true` when a supplied cursor could not be\nused as a position and the page was reset to the start.\n\nFilters, search, and sort are not encoded in the cursor — re-send them on\nevery page request.\n","operationId":"listWorkflowRuns","parameters":[{"description":"Filter runs belonging to a specific workflow.","example":"99b01875-dc57-45cd-a045-aefdcabf96aa","in":"query","name":"workflow_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Filter runs by status.","example":"failed","in":"query","name":"status","required":false,"schema":{"enum":["in_progress","completed","failed","filtered"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Full-text search across indexed workflow run data, including workflow name,\nstep input/output, errors, console logs, and run ID when the value is a UUID.\n","example":"inbound lead","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Only include runs that started at or after this ISO8601 timestamp.","example":"2026-07-01T00:00:00Z","in":"query","name":"started_after","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"Only include runs that started at or before this ISO8601 timestamp.","example":"2026-07-31T23:59:59Z","in":"query","name":"started_before","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of runs to return.","example":20,"in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of runs to skip for offset pagination. Cannot be combined with\n`cursor`. `offset + limit` must not exceed 10,000; use `cursor` for\ndeeper pages.\n","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Opaque keyset cursor (`started_at` + `id`). Use the\n`metadata.next_cursor` value from a previous response. Cannot be\ncombined with `offset`. Filters, search, and sort are not encoded in\nthe cursor — re-send them on each request.\n","example":"eyJzdGFydGVkX2F0IjoiMjAyNi0wNy0yOFQxNDoxMDowMFoiLCJpZCI6IjY5MzEyYWEzLWQ3YWMtNDcyZS04MGNhLWE1NGVhNzJmYTczOSJ9","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Sort by run start time. Use `-started_at` (default) for newest first, or\n`started_at` for oldest first.\n","example":"-started_at","in":"query","name":"sort","required":false,"schema":{"default":"-started_at","enum":["started_at","-started_at"],"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowRunsResponse"}}},"description":"listWorkflowRuns Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowRunsUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow Runs","tags":["Runs"]}},"/v1/custom_objects/{custom_object_id}/records/{custom_object_record_id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Soft deletes a CustomObjectRecord in an Organization. All of its associated CustomPropertyValues will be set as\narchived as a result.\n","operationId":"deleteCustomObjectRecord","parameters":[{"description":"CustomObject ID","example":"27cf970c-f9d8-402c-bec2-d1208faea5d2","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Custom Object Record ID","example":"1038928a-3bc7-43db-9ed8-cd0ba0873820","in":"path","name":"custom_object_record_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"deleteCustomObjectRecord Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Custom Object Record","tags":["Records"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a custom object record.\nThe properties of the custom object record can be updated by providing the `properties` field.\nEach key in the `properties` field must be a valid custom property key for the custom object, in case of an invalid key, the key will be ignored.\nThe value of each key in the `properties` field must be a valid value for the custom property, in case of an invalid value, an error will be returned.\nIn case a null value is provided for a custom property, the value of the custom property will be set to null, unless the custom property is required.\nIf an attempt is made to set a required custom property to nil an error will be returned.\nIn case the custom object record has properties which are not present in the update payload, those properties will not be changed.\n","operationId":"updateCustomObjectRecord","parameters":[{"description":"Custom Object ID","example":"a24120f8-29d9-4880-a278-6143b4bf49e7","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Custom Object Record ID","example":"901a3864-2954-45b4-bb00-53c8a683a24d","in":"path","name":"custom_object_record_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectRecordParams"}}},"description":"updateCustomObjectRecord Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectRecordResponse"}}},"description":"updateCustomObjectRecord Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Custom Object Record","tags":["Records"]}},"/v1/workflows/{id}/versions":{"get":{"callbacks":{},"deprecated":false,"description":"Lists versions for a workflow.\n\nOAuth callers require the `workflows:read` scope.\n","operationId":"listWorkflowVersions","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of versions to return.","in":"query","name":"limit","required":false,"schema":{"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of versions to skip.","in":"query","name":"offset","required":false,"schema":{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowVersionsResponse"}}},"description":"listWorkflowVersions Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow Versions","tags":["Workflows"]}},"/v1/agents/versions/{version_id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific agent version in the authenticated organization.","operationId":"getAgentVersion","parameters":[{"description":"Agent version ID","example":"44a63b5f-a3a5-46fe-9e8f-88eaca25313c","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentVersionResponse"}}},"description":"Show Agent Version Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Agent Version","tags":["Agents"]}},"/v1/tags/{id}/convert":{"put":{"callbacks":{},"deprecated":false,"description":"Convert a `system` Tag in a given organization.","operationId":"convertTag","parameters":[{"description":"System Tag ID","example":"0fdcd093-9ebe-4ab4-9618-452fa486e6ec","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertTagsResponse"}}},"description":"Convert Tag Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBadRequestErrorResponse"}}},"description":"Not Authenticated Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Convert Tag","tags":["Tags"]}},"/v1/forms/field-types":{"get":{"callbacks":{},"deprecated":false,"description":"Returns the authoritative element-type catalog that create_form / update_form_draft validation enforces: types, required properties, option_shape, grading_shape (quiz correct answers on choice elements), quiz_settings, http-request select modes, rating/star-rating notes, form styles, logic combinators/actions, element_shape, chat_settings allowed keys, and logic_rule_shape example. Logic branches on prior answers (trigger_element_id + equals/is_answered/… → jump_to/end_form/set_variable). Quiz: settings.quiz.is_quiz + properties.grading.{point_value,correct_answers}. For {{answers.*}} / {{steps.*}} / contact piping tokens, call listOrganizationVariables (with form_id after elements exist). Call before authoring.","operationId":"listFormFieldTypes","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormFieldTypesResponse"}}},"description":"Form Field Types"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Form Field Types","tags":["Forms"]}},"/v1/conversations/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific conversation with a subset of its messages.\n\nThe default offset for the messages subquery is 0\nand the default limit for it is 10.\n\nThe max messages limit is 500.\n\nNote: This API is for GET requests only. To send messages please use the Messaging API.\n","operationId":"getConversation","parameters":[{"description":"Conversation ID","example":"37f6c780-6647-457d-8c9b-b1f4844790cc","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"messages","example":{"after":"2026-11-26T16:37:59.103895Z","before":"2026-11-24T16:37:59.103860Z","limit":"50","offset":"0"},"explode":true,"in":"query","name":"messages","required":false,"schema":{"description":"Messages filters such as limit and offset","properties":{"after":{"description":"After date in ISO 8601","format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"description":"Before date in ISO 8601","format":"date-time","type":"string","x-struct":null,"x-validate":null},"limit":{"default":"10","description":"Limit of conversation messages to return","example":"50","type":"string","x-struct":null,"x-validate":null},"offset":{"default":"0","description":"Offset for the messages filter","example":"0","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowConversationResponse"}}},"description":"Conversation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationIndexUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Conversation","tags":["Conversations"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a conversation.","operationId":"updateConversation","parameters":[{"description":"Conversation ID","example":"5d9f4584-8496-49c3-a932-5f4425254dbb","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversationParams"}}},"description":"Conversation Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversationResponse"}}},"description":"Conversation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Conversation","tags":["Conversations"]}},"/v1/campaigns/whatsapp/{id}":{"put":{"callbacks":{},"deprecated":false,"description":"Updates a WhatsApp campaign at `PUT /v1/campaigns/whatsapp/:id`. The campaign type is set to\n`whatsapp`. `from` is the phone number of a WhatsApp channel and is required when the campaign\nis not already whatsapp.\n\nThe campaign must have finished preprocessing and be `draft`, `scheduled`, `recurring`, or\n`recurring_paused`. A `scheduled` campaign accepts `title`, `schedule_at`, `status`, and\n`automation_templates`. A draft or recurring campaign also accepts the message, `from`,\naudience filters, and `recurring_settings`. `draft` to `scheduled` sends once at `schedule_at`.\n`draft` to `recurring` starts the series.\n","operationId":"updateWhatsappCampaign","parameters":[{"description":"Campaign ID","example":"d9049597-cbda-4465-b3ce-6f9bb03452bd","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappCampaignUpdateParams"}}},"description":"Update WhatsApp Campaign Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignResponse"}}},"description":"Campaign"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentUpdateErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update WhatsApp Campaign","tags":["WhatsApp"]}},"/v1/agents/{id}/publish":{"post":{"callbacks":{},"deprecated":false,"description":"Publishes the staged Agent draft through the coordinated Agent lifecycle. The linked LLM draft is also published when it has changes. Changing the live post call analysis model requires permission unless the new model is gpt-5.6-luna. When tests are linked to the agent, every one must be passing on Draft; otherwise the publish returns 409 `tests_not_passing` listing them. Pass `skip_test_gate: true` to publish anyway. Each publish records its test evidence and any override.","operationId":"publishAgent","parameters":[{"description":"Agent ID","example":"1a5ffa27-c517-4cbf-9f06-04dc325bf64f","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"skip_test_gate":{"default":false,"description":"Publish even though linked tests are not passing on Draft. The override and each test's\nstatus are recorded with the publish.\n","type":"boolean","x-struct":null,"x-validate":null}},"title":"PublishAgentParams","type":"object","x-struct":null,"x-validate":null}}},"description":"Publish options","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Publish Agent Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Agent Not Found"},"409":{"content":{"application/json":{"schema":{"description":"Linked tests are not passing on Draft. Run them, or publish with `skip_test_gate`.","properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"example":"tests_not_passing","type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":409,"type":"integer","x-struct":null,"x-validate":null},"tests":{"items":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"title":"TestsNotPassingError","type":"object","x-struct":null,"x-validate":null}}},"description":"Tests Not Passing"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Publish Agent","tags":["Agents"]}},"/v1/llms/versions/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches LLM versions in the authenticated organization based on filters.\n\nOptionally, LLM version records can be filtered by `llm_id`, `model`, and `published`.\n","operationId":"searchLLMVersions","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchLLMVersionsParams"}}},"description":"Search LLM Versions Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchLLMVersionsResponse"}}},"description":"Search LLM Versions Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search LLM Versions","tags":["LLMs"]}},"/v1/contacts/{id}/sequences":{"post":{"callbacks":{},"deprecated":false,"description":"Returns data about all sequences a contact is part of — including:\n  - the last step they completed\n  - the step they're currently in\n  - and the next step that's coming up\n\nAlso, the `ID` and `title` of both the Sequence and Step are returned, making it easier to reference them in your system.\nYou can filter the results using `sequence_status` and `contact_status` - here's what those mean:\n\n* contact_status - tells you where the contact is inside a step:\n  * `\"pending\"` - waiting to enter the step\n  * `\"active\"` - currently in the step\n  * `\"inactive\"` - currently inactive in the step. Won't receive the step message\n  * `\"moved\"` - they've been moved to another step\n  * `\"finished\"` - they've completed the step\n\n* sequence_status - shows the state of the whole sequence:\n  * `\"active\"` - working normally, accessible, contacts can be added and messages can be sent\n  * `\"draft\"` - accessible but no contacts can be added and no messages can be sent\n  * `\"archived\"` - old and not in use anymore\n\n* Possible Body Parameters:\n  * limit - the number of sequences to return\n    * defaults to `50` when not provided\n    * maximum is `500`\n  * offset - the number of sequences to skip\n  * sequence_id - the ID of the Sequence to filter by. Could be used to check if a contact is in a specific sequence.\n  * contact_status - status of the Contact in latest sequence step to filter by\n    * possible values: pending, active, inactive, moved, finished\n  * `sequence_status` - status of the Sequence to filter by\n    * possible values: draft, active\n","operationId":"publicV1ListContactSequences","parameters":[{"description":"Contact ID","example":"0efc9ccf-00cd-4aa5-ae67-663297d828f2","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactSequencesParams"}}},"description":"Contact Sequences Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactSequencesResponse"}}},"description":"Contact Sequences Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Contact Sequences","tags":["Contacts"]}},"/v1/agent_tool_executions/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches recorded AI Agent tool executions for the authenticated organization.\n\nThese are runtime logs of tools a voice or chat Agent called, not tool definitions.\nRequires the `ai_agents:read` permission, the same permission used to read tools.\n","operationId":"searchToolExecutions","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchToolExecutionsParams"}}},"description":"Search Tool Executions Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchToolExecutionsResponse"}}},"description":"Search Tool Executions Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolExecutionUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Tool Executions","tags":["Tool Executions"]}},"/v1/channels/{id}/users/{user_id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Removes a user from a channel","operationId":"removeUserFromChannel","parameters":[{"description":"Channel ID","example":"b9d97780-5bda-4dd0-8127-5b133505c4b0","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"User ID","example":123,"in":"path","name":"user_id","required":true,"schema":{"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Remove User from Channel","tags":["Channels"]}},"/v1/users/invites":{"get":{"callbacks":{},"deprecated":false,"description":"Lists all pending user invites in an organization","operationId":"getInvitesV1","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInvitesResponse"}}},"description":"List Invites Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List user invites","tags":["Invites"]},"post":{"callbacks":{},"deprecated":false,"description":"Invites a user to your organization in Whippy","operationId":"createInviteV1","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreateParams"}}},"description":"Invite Create","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableUserResponse"}}},"description":"Existing user enabled response"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInviteResponse"}}},"description":"Invite Create Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create a User Invite","tags":["Invites"]}},"/v1/forms/{id}/duplicate":{"post":{"callbacks":{},"deprecated":false,"description":"Copies the form's live version into the caller's organization.","operationId":"duplicateForm","parameters":[{"description":"Form ID","example":"06ff01be-ce31-4e0c-84b6-17f2813a8acd","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateFormsResponse"}}},"description":"Duplicated Forms"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Duplicate Form","tags":["Forms"]}},"/v1/agents/{id}/chat":{"post":{"callbacks":{},"deprecated":false,"description":"Starts a chat agent session in a conversation.\n\n**Agent must be active and use an active LLM.**\n**The agent cannot access past messages unless the `conversation_history` placeholder is included in the prompt.**\n**Be sure to include it if past messages are important for the use case.**\n\nAccepts an optional `schedule_at` parameter to schedule the chat session instead of placing it immediately, but attention, the API\nresponds with `202 Accepted` instead of `201 Created` in this case. Scheduled accepted responses include `data.id`, the stable ID that\nthe eventual chat agent session will use when the scheduled job creates it. **Acceptance does not guarantee downstream chat agent session\ncreation succeeds**.\n","operationId":"startAgentChat","parameters":[{"description":"ID of the agent to be used in the chat session.\n\n**Agent must:**\n  * Be active.\n  * Use an active LLM.\n","example":"29c98ca4-a724-46a7-aa24-0aeb65cd35a6","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartAgentChatParams"}}},"description":"Start Agent Chat Request","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartAgentChatResponse"}}},"description":"Start Agent Chat Response"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartChatScheduledResponse"}}},"description":"Start Agent Chat Scheduled Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Start Agent Chat","tags":["Agents"]}},"/v1/conversations/upload":{"post":{"callbacks":{},"deprecated":false,"description":"Handles a json file upload containing a list of messages.\n\nIf a Location with that phone exists then for each param object\nthe following is created:\n  - a Contact (if it doesn't already exist)\n  - a Conversation (if it doesn't already exist)\n  - a message in the conversation with type `imported`\n","operationId":"uploadConversation","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadConversationsParams"}}},"description":"Conversation Upload","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadConversationResponse"}}},"description":"Conversation Import"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Import Conversations","tags":["Conversations"]}},"/v1/developers/applications/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a developer application in the organization.","operationId":"deleteDeveloperApplication","parameters":[{"description":"Developer Application ID","example":"695cefb5-bd98-4c7e-a8d0-ea7cb7bb7d52","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerApplicationResponse"}}},"description":"Developer Application"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Developer Application","tags":["Applications"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific developer application.","operationId":"getDeveloperApplication","parameters":[{"description":"Developer Application ID","example":"c15c82da-ccc6-45e1-88d0-126983d93beb","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerApplicationResponse"}}},"description":"Developer Application"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Developer Application","tags":["Applications"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a developer application.","operationId":"updateDeveloperApplication","parameters":[{"description":"Developer Application ID","example":"16f1c17c-5ca7-4c34-bcbf-62f7b3db9050","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDeveloperApplicationParams"}}},"description":"Developer Application Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerApplicationResponse"}}},"description":"Developer Application"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Developer Application","tags":["Applications"]}},"/v1/contacts/segments/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a contact segment.","operationId":"deleteContactSegment","parameters":[{"description":"Contact Segment ID","example":"2042bd61-76da-4806-9f8f-352b50350268","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowSegmentResponse"}}},"description":"Contact Segment"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Contact Segment","tags":["Segments"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific contact segment.","operationId":"getContactSegment","parameters":[{"description":"Contact Segment ID","example":"ecbdd396-a527-49e9-a1ff-5aae82d27ac2","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowSegmentResponse"}}},"description":"Contact Segment"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Contact Segment","tags":["Segments"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a contact segment.","operationId":"updateContactSegment","parameters":[{"description":"Contact Segment ID","example":"79adf352-f1f3-4812-a646-6ed42d78cdf9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactSegmentParams"}}},"description":"Contact Segment Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowSegmentResponse"}}},"description":"Contact Segment"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Contact Segment","tags":["Segments"]}},"/v1/workflow-connections/{id}/authorize":{"post":{"callbacks":{},"deprecated":false,"description":"Returns a short-lived Whippy URL for the user to complete OAuth or custom/API-key\nauthentication. Never paste secrets into the LLM — open the URL in a browser,\nthen call `test`.\n\nOAuth callers require `workflows:update`.\n","operationId":"authorizeWorkflowConnection","parameters":[{"description":"Connection ID","example":"550e8400-e29b-41d4-a716-446655440000","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeWorkflowConnectionResponse"}}},"description":"Authorize URL"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionNotFound"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Authorize Workflow Connection","tags":["Connections"]}},"/v1/calls/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific call.","operationId":"getCall","parameters":[{"description":"Call ID","example":"7f4fb84f-1403-4f8b-a60c-d86600e47f77","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowCallResponse"}}},"description":"Show Call Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Call","tags":["Calls"]}},"/v1/agents/{id}/versions/{version_id}/meta":{"put":{"callbacks":{},"deprecated":false,"description":"Updates metadata for an agent version that belongs to the authenticated organization.","operationId":"updateAgentVersionMeta","parameters":[{"description":"Agent ID","example":"9ce807e3-3bbb-4e8d-9929-60b268833a2f","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Agent version ID","example":"7165b6fa-32cf-43eb-8f58-2af8a57421b5","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentVersionMetaParams"}}},"description":"Update Agent Version Metadata Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentVersionResponse"}}},"description":"Update Agent Version Metadata Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"},{"$ref":"#/components/schemas/AgentVersionNotFoundErrorResponse"}],"x-struct":null,"x-validate":null}}},"description":"Agent or Agent Version Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Agent Version Metadata","tags":["Agents"]}},"/v1/metrics/events":{"get":{"callbacks":{},"deprecated":false,"description":"Lists the events a metric can be built from, with the charts each supports. Use it with\nList Metric Event Fields to build a metric's `events`.\n\n- `whippy_event` — events Whippy records for the organization (e.g. `call.analyzed`).\n- `custom_event` — events the organization sends to Whippy.\n- `non_custom` — reports defined by Whippy (e.g. `new_conversations`). These take only the\n  filters and group-by fields List Metric Event Fields returns for them.\n\nWhippy and custom events are the ones the organization recorded in the last year\n(`seen_recently: true`). Pass `include_inactive=true` to also list Whippy events the\norganization hasn't recorded yet, to set a metric up before the data arrives.\n","operationId":"listMetricEvents","parameters":[{"description":"Only list events of this type.","in":"query","name":"type","required":false,"schema":{"enum":["whippy_event","custom_event","non_custom"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Only list events whose name or label contains this text (case-insensitive).","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Also list the Whippy events the organization hasn't recorded.","in":"query","name":"include_inactive","required":false,"schema":{"default":false,"type":"boolean","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetricEventsResponse"}}},"description":"List Metric Events Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Metric Events","tags":["Metrics"]}},"/v1/llms/versions/{version_id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific LLM version in the authenticated organization.","operationId":"getLLMVersion","parameters":[{"description":"LLM version ID","example":"1842e450-df7b-4693-ac4c-58a6ca77cb5f","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMVersionResponse"}}},"description":"Show LLM Version Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMVersionNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show LLM Version","tags":["LLMs"]}},"/v1/agent_test_fix_proposals/{id}/apply":{"post":{"callbacks":{},"deprecated":false,"description":"Writes the proposal's edits to the agent's Draft prompt and, unless `run_on_draft` is false,\nruns the failing test on Draft (`verification_run_id`). Nothing goes Live until the agent is\npublished. Returns 409 when the Draft prompt changed since the proposal was written.\n","operationId":"applyAgentTestFixProposal","parameters":[{"description":"Fix proposal ID","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"run_on_draft":{"default":true,"description":"Queue the proposal's test against Draft after applying it","type":"boolean","x-struct":null,"x-validate":null}},"title":"ApplyAgentTestFixProposalParams","type":"object","x-struct":null,"x-validate":null}}},"description":"Apply options","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposalResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Fix proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Stale proposal"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Apply a fix proposal to the agent's Draft","tags":["Test Runs"]}},"/v1/forms/{id}/draft/ensure":{"post":{"callbacks":{},"deprecated":false,"description":"Copies the active version into a draft workspace when the form has no draft.","operationId":"ensureFormDraft","parameters":[{"description":"Form ID","example":"9e244233-ba4f-454a-af70-5864d80e3397","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Ensure Form Draft","tags":["Forms"]}},"/v1/domains/purchase-intents/{id}/cancel":{"post":{"callbacks":{},"deprecated":false,"description":"Cancels a pending purchase intent. Cancelling an already-cancelled intent returns it unchanged.","operationId":"cancelDomainPurchaseIntent","parameters":[{"description":"Purchase intent ID","example":"5b1d7c0e-8f2a-4d3b-9c6e-7a8b9c0d1e2f","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPurchaseIntentResponse"}}},"description":"Purchase Intent Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Conflict"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Cancel Purchase Intent","tags":["Domain Purchases"]}},"/v1/llms/{id}/duplicate":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a distinct, server-configured draft copy from the LLM's current version. Active unpublished draft changes are not copied. The duplicated LLM must be published before it can be used.","operationId":"duplicateLLM","parameters":[{"description":"LLM ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Duplicate LLM Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Duplicate LLM","tags":["LLMs"]}},"/v1/agent_test_runs":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a page of agent test runs for the organization, newest first by default. Pass\n`agent_test_id` to limit the list to one test, and `filter` and `sort` for JSON-encoded criteria.\n","operationId":"listAgentTestRuns","parameters":[{"description":"Page size","in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Page offset","in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Limit runs to one agent test","in":"query","name":"agent_test_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"JSON-encoded filter array (see schema example)","in":"query","name":"filter","required":false,"schema":{"description":"JSON-encoded array of filter clauses (`resource`, `column`, `comparison`, `value`). Example: `[{\"resource\":\"agent_test\",\"column\":\"id\",\"comparison\":\"==\",\"value\":\"<uuid>\"}]`","example":"[{\"resource\":\"agent_test\",\"column\":\"name\",\"comparison\":\"ilike\",\"value\":\"billing\"}]","type":"string","x-struct":null,"x-validate":null}},{"description":"JSON-encoded sort array (see schema example)","in":"query","name":"sort","required":false,"schema":{"description":"JSON-encoded array of sort clauses (`resource`, `column`, `order`). Example: `[{\"resource\":\"agent_test\",\"column\":\"inserted_at\",\"order\":\"desc\"}]`","example":"[{\"resource\":\"agent_test\",\"column\":\"inserted_at\",\"order\":\"desc\"}]","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":[{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestRunsResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List agent test runs","tags":["Test Runs"]}},"/v1/domains":{"get":{"callbacks":{},"deprecated":false,"description":"Lists the custom domains the organization has access to, newest first.\n\nEach purpose (`links`, `email`) reports a stable `setupState`:\n`not_requested`, `queued`, `awaiting_dns` (you need to add the listed DNS records),\n`verifying`, `active`, `failed`, or `cancelled`.\n","operationId":"listDomains","parameters":[{"description":"Case-insensitive substring match on the domain name","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Domain status","in":"query","name":"status","required":false,"schema":{"enum":["pending","active","cancelled","expired","deleted"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Page size (1-500, default 50)","in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of domains to skip","in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainListResponse"}}},"description":"Domain List Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Domains","tags":["Domains"]},"post":{"callbacks":{},"deprecated":false,"description":"Adds a domain the organization already owns and starts setup for the requested purposes.\nThe response lists the DNS records to add once a purpose reaches `awaiting_dns`.\n\nTo buy a new domain, use Create Purchase Quote, Create Purchase Intent, and Confirm Purchase Intent.\n","operationId":"createDomain","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDomainParams"}}},"description":"Add Domain Params","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}},"description":"Domain Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Add Domain","tags":["Domains"]}},"/v1/workflows/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Retrieves a single workflow by ID, including draft and current version\nsummaries with steps when present.\n\nOAuth callers require the `workflows:read` scope.\n","operationId":"getWorkflow","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowResponse"}}},"description":"getWorkflow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Workflow","tags":["Workflows"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates workflow metadata (`name` and/or `description`).\n\nOAuth callers require the `workflows:update` scope.\n","operationId":"updateWorkflow","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}}},"description":"Fields to update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowResponse"}}},"description":"updateWorkflow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Workflow","tags":["Workflows"]}},"/v1/sequences/{sequence_id}/step_contacts/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Get a single step contact based on the sequence id and the step contact id.\n","operationId":"getSingleStepContact","parameters":[{"description":"Sequence ID","in":"path","name":"sequence_id","required":true,"schema":{"example":"2ec23efe-dccd-4cb4-9a53-d6b629a2019e","format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Step Contact ID","in":"path","name":"id","required":true,"schema":{"example":"e3bd15c1-f5d7-471d-83e1-e7be92e65772","format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleStepContactResponse"}}},"description":"Step Contact"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowStepContactBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepContactNotFoundErrorResponse"}}},"description":"Sequence or Step Contact Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Step Contact","tags":["Sequences"]}},"/v1/teams/{team_id}/team_members/{team_member_id}/work_schedules":{"get":{"callbacks":{},"deprecated":false,"description":"for the given Team Member","operationId":"getTeamMemberWorkSchedules","parameters":[{"description":"Team ID","example":"750ec2fd-b078-415d-a437-7a1518c723e4","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"5e4f48bd-8164-47f0-915f-5982bd81c4ce","in":"path","name":"team_member_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexWorkScheduleResponse"}}},"description":"Work Schedule Index Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberWorkScheduleIndexCreateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Work Schedules","tags":["Member Schedules"]},"post":{"callbacks":{},"deprecated":false,"description":"Create Work Schedule with the given parameters.","operationId":"createTeamMemberWorkSchedule","parameters":[{"description":"Team ID","example":"f67f6bac-2db6-4497-9b1f-e30e7e77f2ed","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"7dd1a59f-2cd4-4e30-83ae-3d1176f2d29b","in":"path","name":"team_member_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkScheduleParams"}}},"description":"Work Schedule Create Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkScheduleResponse"}}},"description":"Work Schedule Create Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberWorkScheduleIndexCreateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Work Schedule","tags":["Member Schedules"]}},"/v1/agent_test_runs/{id}/override":{"post":{"callbacks":{},"deprecated":false,"description":"Sets `human_override` without changing the machine `result` / `rationale`.","operationId":"overrideAgentTestRun","parameters":[{"description":"Agent test run ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"example":{"rationale":"Incorrect handling","result":"fail"},"properties":{"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"required":["result"],"title":"OverrideTestRunRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Override","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestRunResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Override agent test run judgment","tags":["Test Runs"]}},"/v1/llms/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes an LLM that belongs to the authenticated organization. Deletion is rejected while the LLM is referenced by the current version of a template, active, or archived Agent.","operationId":"deleteLLM","parameters":[{"description":"LLM ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Delete LLM Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete LLM","tags":["LLMs"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific LLM.","operationId":"getLLM","parameters":[{"description":"LLM ID","example":"c6282fef-06c9-4a8e-8c8c-9d38001aea2b","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Show LLM Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show LLM","tags":["LLMs"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates an LLM that belongs to the authenticated organization.","operationId":"updateLLM","parameters":[{"description":"LLM ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLLMParams"}}},"description":"Update LLM Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Update LLM Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update LLM","tags":["LLMs"]}},"/v1/sequences/{sequence_id}/sequence_runs/{sequence_run_id}":{"get":{"callbacks":{},"deprecated":false,"description":"Get a single sequence run based on the sequence id and the sequence run id.\n","operationId":"getSingleSequenceRun","parameters":[{"description":"Sequence ID","in":"path","name":"sequence_id","required":true,"schema":{"example":"d7e7d470-0d1d-406e-9102-ed5196fc4308","format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Sequence Run ID","in":"path","name":"sequence_run_id","required":true,"schema":{"example":"95ae7193-c0bd-46ea-9ee8-57aa61ebb777","format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleSequenceRunResponse"}}},"description":"Sequence Run"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowSequenceRunBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceNotFoundErrorResponse"}}},"description":"Sequence or Sequence Run Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceRunUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Sequence Run","tags":["Runs"]}},"/v1/workflow-runs/batch-retry":{"post":{"callbacks":{},"deprecated":false,"description":"Queues eligible workflow runs for asynchronous retry. Each requested run is\nvalidated independently for existence, organization ownership, retry\neligibility, and existing queued or running retries.\n\nEligible runs are queued asynchronously. The response includes a result for\nevery requested ID (`queued` or `rejected` with a reason). One invalid run\ndoes not fail the entire request.\n\nA maximum of 100 workflow run IDs is\nallowed per request.\n\nOAuth callers require the `workflows:update` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"batchRetryWorkflowRuns","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"workflow_run_ids":{"description":"Workflow run IDs to queue for retry. Maximum\n100 IDs per request.\n","example":["69312aa3-d7ac-472e-80ca-a54ea72fa739","04404052-b9d0-41c1-a5c8-a55d978380b8"],"items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["workflow_run_ids"],"type":"object","x-struct":null,"x-validate":null}}},"description":"Workflow run IDs to retry","required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRetryWorkflowRunsResponse"}}},"description":"batchRetryWorkflowRuns Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowRunsUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Batch Retry Workflow Runs","tags":["Runs"]}},"/v1/agent_test_runs/search":{"post":{"callbacks":{},"deprecated":false,"description":"Same results as listing agent test runs, with the filter and sort criteria sent as a JSON body\ninstead of JSON-encoded query parameters.\n","operationId":"searchAgentTestRuns","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"filter":{"items":{"properties":{"column":{"type":"string","x-struct":null,"x-validate":null},"comparison":{"enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["agent","agent_test","agent_test_run","created_by","updated_by"],"type":"string","x-struct":null,"x-validate":null},"value":{"anyOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"type":"object","x-struct":null,"x-validate":null},{"items":{"anyOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"type":"object","x-struct":null,"x-validate":null}],"nullable":true,"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"description":"Filter comparison value. Shape depends on the operator; matches the private v2 search validators (scalar string, number, boolean, or null; list for `in` / `not_in`; or object).","nullable":true,"x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"limit":{"type":"integer","x-struct":null,"x-validate":null},"offset":{"type":"integer","x-struct":null,"x-validate":null},"sort":{"items":{"properties":{"column":{"type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["agent","agent_test","agent_test_run","created_by","updated_by"],"type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}}},"description":"Search filters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":[{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestRunsResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search agent test runs","tags":["Test Runs"]}},"/v1/custom_objects/{custom_object_id}/records":{"get":{"callbacks":{},"deprecated":false,"description":"Lists custom object records of a custom object.\nOptionally, the custom object records can be filtered by the `associated_resource_id` and `associated_resource_type` fields.\n\nRecords are ordered by `inserted_at` descending, then `id` descending (newest first).\n\nSupports two pagination methods:\n* **Cursor-based** (recommended): pass `cursor` (with `limit`) to page forward. The response\n  includes a `metadata` object whose `next_cursor` is `null` on the last page. Cursor\n  pagination is triggered automatically when a `cursor` value is provided; `cursor` and\n  `offset` cannot be combined.\n* **Offset-based** (deprecated): pass `offset` (with `limit`).\n","operationId":"listCustomObjectRecords","parameters":[{"description":"Custom Object ID","example":"56e1b7ca-9a53-4c57-af8e-a2f2992a330a","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Associated Resource ID","example":"83e9a603-f24d-409c-8db9-c1dadeff4534","in":"query","name":"associated_resource_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Associated Resource Type","example":"contact","in":"query","name":"associated_resource_type","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Number of results to skip. Cannot be combined with cursor.","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomObjectRecordResponse"}}},"description":"list CustomObject Records Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordIndexBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordIndexUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Custom Object Records","tags":["Records"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a new custom object record, or updates an existing one if a duplicate is found.\n\nThis endpoint performs an upsert operation:\n* If a custom object record with the same `external_id` exists, it will be updated\n* If a custom object record with the same `associated_resource_id` and `associated_resource_type` combination exists, it will be updated\n* If no matching record exists, a new custom object record will be created\n* `external_id` and the associated resource may both be omitted. That creates a new record\n  identified by its id, and repeating the request creates another record\n\nWhen updating an existing record, the properties are merged:\n* Existing properties not included in the request are preserved\n* Properties included in the request are updated with the new values\n* New properties can be added to the existing record\n\nThe custom object with its custom properties must be created before creating a custom object record.\nThe `associated_resource_id` field is used to associate the custom object record with a Whippy resource.\nThe `associated_resource_type` field is used to specify the type of the Whippy resource e.g. `contact`, `conversation`, `message`, `tag`.\nThe `properties` field is used to specify what custom properties should be set for the custom object record and their values.\nIf the custom object has a required custom property, and its key is not present in the `properties` field,\nthen the default value of the custom property will be used.\n\nNote: When updating via this endpoint, validation rules still apply to the merged data. Required properties must be present in the final merged result.\n","operationId":"createCustomObjectRecord","parameters":[{"description":"Custom Object ID","example":"074c5927-25dc-49da-aeb9-597ecb8d2451","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectRecordParams"}}},"description":"createCustomObjectRecord Request","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectRecordResponse"}}},"description":"createCustomObjectRecord Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordCreateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Custom Object Record","tags":["Records"]}},"/v1/variables":{"get":{"callbacks":{},"deprecated":false,"description":"Returns the organization merge / piping variable catalog for composing\ntemplated copy across messages, sequences, agents, campaigns, and forms.\n\nWithout `form_id`: form-safe and message-only builtins (tagged with\n`products`) plus custom-object properties as\n`{{custom.<object>.<property>:contact}}`.\n\nAPI keys receive the full catalog. OAuth tokens receive custom-object\ntokens only with the `custom_data_types:read` scope and matching\nworkspace permission, and `data.form` only with `forms:read`. Builtins\nare always included. A missing scope omits that section; it does not\nreject the request.\n\nWith `form_id` (pass after the form has elements — create or draft): also\nreturns `data.form` with concrete `{{answers.<element_id>}}`,\n`{{params.*}}`, `{{vars.*}}`, and `{{steps.<http-id>.<var>}}` tokens plus\nform `syntax` notes. Form branching on prior answers uses logic rules\n(`trigger_element_id` + conditions → jump_to / end_form / set_variable),\nnot this catalog — see `GET /v1/forms/field-types` `logic_rule_shape`.\n\nA malformed `form_id` (not a UUID) returns 422 when the caller can read\nforms. Copy tokens exactly — never invent custom paths.\n","operationId":"listOrganizationVariables","parameters":[{"description":"Optional form UUID. After elements exist, response.data.form lists answers/params/vars/steps tokens and syntax ({{answers.<element_id>}}, …). Omit for org builtins/custom only.","in":"query","name":"form_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationVariablesResponse"}}},"description":"Organization Variables"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariablesUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Organization Variables","tags":["Variables"]}},"/v1/integrations":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a list of available integration applications. Only integrations with an open state are returned.\nEach item contains the integration's `id`, `key`, and `name`.\n","operationId":"listIntegrationApplications","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIntegrationApplicationsResponse"}}},"description":"listIntegrationApplications Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Integration Applications","tags":["Integrations"]}},"/v1/llms/{id}/publish":{"post":{"callbacks":{},"deprecated":false,"description":"Publishes the staged LLM draft through the existing LLM lifecycle. A never-published draft LLM is activated. Changing the live model requires permission unless the new model is gpt-5.6-luna.","operationId":"publishLLM","parameters":[{"description":"LLM ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Publish LLM Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Publish LLM","tags":["LLMs"]}},"/v1/llms/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches LLMs in the authenticated organization based on filters.\n\nOptionally, LLM records can be filtered by `status` and `model`.\n","operationId":"searchLLMs","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchLLMsParams"}}},"description":"Search LLMs Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchLLMsResponse"}}},"description":"Search LLMs Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search LLMs","tags":["LLMs"]}},"/v1/teams/{team_id}/team_members":{"get":{"callbacks":{},"deprecated":false,"description":"in the current Team.","operationId":"getTeamMembers","parameters":[{"description":"Team ID","example":"e0a3b61c-b9f2-4a9b-b759-137a5bdb7427","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexTeamMemberResponse"}}},"description":"Team Member Index Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Team Members","tags":["Team Members"]},"post":{"callbacks":{},"deprecated":false,"description":"Create Team Member with the given parameters.","operationId":"createTeamMember","parameters":[{"description":"Team ID","example":"ec3c8df2-537e-46f0-b697-c9aa3d7ae0a1","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamMemberParams"}}},"description":"Team Member Create Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamMemberResponse"}}},"description":"Team Member Create Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Team Member","tags":["Team Members"]}},"/v1/workflow-apps":{"get":{"callbacks":{},"deprecated":false,"description":"Returns workflow apps available to the authenticated organization, including\neach app's triggers and create actions from the currently published app version.\n\nEvery app also includes its branding and metadata: `logo_url` (the best single\nlogo to display), `logo_urls` (every stored size), `brand_color`, `access_level`,\nthe published `version`, and `app_version_id` / `published_app_version_id` (the\npublished version UUID required by input-options and step configuration).\n\nOnly published apps are returned. Unpublished versions, other organizations'\nprivate apps, and operations marked as hidden are excluded. Credentials,\nsource code, and other internal configuration are never included.\n\nResults are paginated (default `limit` 50, maximum 500; `offset` maximum\n1_000_000) and include a filtered `total`.\n\nOAuth callers require the `workflows:read` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"listWorkflowApps","parameters":[{"description":"Maximum number of workflow apps to return","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":500,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of workflow apps to skip","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Case-insensitive substring search on app name","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Case-insensitive substring search on app description","in":"query","name":"description","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowAppsResponse"}}},"description":"listWorkflowApps Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAppValidationErrorResponse"}}},"description":"Validation Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow Apps","tags":["Apps"]}},"/v1/sequences/{id}/contacts":{"get":{"callbacks":{},"deprecated":false,"description":"Lists sequence contacts based on filters.\n\nCommon filters are limit and offset.\n\nReceives filters as query string parameters.\n\nFilter options are:\n  - `status` - will return sequence contacts with the given status. Can be one of: `pending`, `active`, `inactive`, `moved`, `complete`, `removed`.\n\n  - `step_ids` - will return sequence contacts that belongs to the given step IDs. Step ID's must be separated by comma.\n\n  - `responded` (true/false) - will return sequence contacts that responded to the sequence.\n\n  - `unsubscribed` (true/false) - will return sequence contacts that unsubscribed after the sequence.\n\n  - `clicked_link` (true/false) - will return sequence contacts that clicked a link from the sequence.\n\nThe filters can be grouped, which allows users to get, for instance, all contacts\nthat responded to a sequence and clicked on a link, or contacts that completed a sequence\nstep.\n","operationId":"getSequenceContacts","parameters":[{"description":"Sequence ID","example":"b53de647-8e19-475d-aa08-4186c1c4d61c","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"status","example":"active","in":"query","name":"status","required":false,"schema":{"enum":["pending","active","inactive","moved","complete","removed"],"type":"string","x-struct":null,"x-validate":null}},{"description":"step_ids","example":"39535a3c-0035-45d3-9122-0cb57c28cb07,3327a682-1daf-4cb6-9cde-007d6fc78d5a,c2cf31ce-efe1-4aa3-8c0c-db23ab04358e","in":"query","name":"step_ids","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"responded","example":true,"in":"query","name":"responded","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"unsubscribed","example":false,"in":"query","name":"unsubscribed","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"clicked_link","example":true,"in":"query","name":"clicked_link","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSequenceContactsResponse"}}},"description":"Sequence Contacts"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Sequence Contacts","tags":["Sequences"]},"post":{"callbacks":{},"deprecated":false,"description":"Adds contacts to the sequence in the specified step.\n\nSend `to` or `included_audience`, not both. `to` is a list of phone numbers or emails.\nA new contact is created when no contact in the organization matches an entry in `to`.\n`included_audience` is a list of Whippy Query filter items, the same item shape as the `filter`\narray on the public contact filter. It selects contacts that already exist and does not create contacts. `custom_data`\nand `voice_options` apply only to `to`. When `included_audience` is used and the step already\nhas a channel, that channel is the sender. A different `from` is rejected, and a disabled step channel\nis rejected.\n\nIf a new contact is created, it also creates a new conversation with the `from` number or email channel or the step's location (if any) when provided.\nIf there is an existing contact but no conversation, a new conversation will be created.\n\nIf there is more than one contact in the `to` list, the contacts will be tagged with an upload tag with a timestamp corresponding to the time of the request.\n\nIf contact is already in the specified sequence step it will be reprocessed and if it is `active` or `pending` in another step of the sequence it will be ignored.\nBesides that, if contact is already in the sequence its up to the sequence settings if the contact will be added again or ignored.\n\nIf the contacts in the list do not contain the necessary contact information in the list, they will be ignored.\nFor example, if adding contacts to an email sequence, we will only add the contacts with an email address.\nContacts with invalid email addresses will be ignored.\n\nFor **fax** steps, use a **fax** channel as `from` and ensure each contact has a **phone** number (the fax destination).\n\nWhen custom_data is provided, the contacts will be associated with a custom object. The custom object and its custom properties must be created before the contacts are added to the sequence. When specifying custom data, the `resource` field must be set to `contact` or `step_contact` in order to associate the custom data with the contact or the step contact respectively.\n\nWhen voice_options is provided, the contacts will be added to the step with them. It will be used to answer inbound calls from the contacts that are a response to a sequence message.\nIf provided, it takes priority over the sequence settings default call flow ID.\n\nThe process will run in the background, therefore a `202 Accepted` status is initially returned on success.\n","operationId":"createSequenceContacts","parameters":[{"description":"Sequence ID","example":"188e94e2-f1b6-4870-8419-5b6e6afd671a","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"examples":{"defaulting_to_first_step_in_sequence":{"summary":"Creating step contacts using the first step of the sequence (Assuming step has an associated location)","value":{"step_id":"47bed9ee-1a31-4a20-9340-4be0a1076c63","to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}]}},"from_email_and_step_id":{"summary":"Creating step contacts from an email channel and a specific step id","value":{"from":"sending@example.com","step_id":"7663402d-c6ce-4602-b88e-7291c75ef1b3","to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}]}},"from_phone_and_step_id":{"summary":"Scheduling a creation of step contacts from a phone channel and a specific step id","value":{"from":"+14155552672","schedule_at":"2026-11-26T16:37:59.279119Z","step_id":"ddac8864-7541-421f-bcd3-588eac7dea0f","to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}]}},"override_all_steps_voice_options":{"summary":"Creating step contacts with voice options overriding all voice steps settings","value":{"step_id":"61cadb23-dd25-43d4-acfe-7160ea73fa55","to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}],"voice_options":{"default_call_flow_id":"a2646cc3-5a5f-4928-b3c7-7dd1437c9aa6","step_overrides":{"agent_id":"1d2d7b80-41bf-4d4d-b9b2-b0a4e15adfae"}}}},"override_specific_step_voice_options":{"summary":"Creating step contacts with voice options overriding a specific step settings","value":{"to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}],"voice_options":{"default_call_flow_id":"ebd3d7ac-96cf-420c-848e-da94dbe2a10a","step_overrides":{"agent_id":"a787b596-8f31-4dba-b62a-c648cc76bd55","step_id":"287d94d3-ebd6-43a7-a38b-cd159ed9911b"}}}},"override_steps_voice_options":{"summary":"Creating step contacts with voice options overriding multiple steps settings","value":{"to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}],"voice_options":{"step_overrides":[{"agent_id":"a5416167-6389-4a68-9758-28eca61664c5","custom_placeholders_data":{"job_description":"Job description..."},"step_id":"c1d72c44-5486-4c2a-948f-4f3388cea449"},{"agent_id":"6128c432-c4ce-4233-a335-708077fcac81","custom_placeholders_data":{"interview_date":"2025-07-21"},"step_id":"84bbf342-1df6-415b-bc13-321eac19b3a5"}]}}},"step_id_with_location":{"summary":"Creating step contacts where the step id has an associated location","value":{"step_id":"ee3c1b77-6176-4ace-901f-874f7c787a50","to":[{"email":"space.invader@example.com","name":"Space Invader","phone":"+14155552671"},{"email":"william.riker@example.com","name":"William Riker","phone":"+14155552672"}]}}},"schema":{"$ref":"#/components/schemas/CreateContactsParams"}}},"description":"Create Sequence Contacts Params","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSequenceContactsResponse"}}},"description":"Sequence"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Sequence Contacts","tags":["Sequences"]}},"/v1/agents/{id}/voices":{"get":{"callbacks":{},"deprecated":false,"description":"Returns the curated voice catalog compatible with a specific agent.","operationId":"getAgentVoices","parameters":[{"description":"Agent ID","example":"703258e4-4c58-4cc6-8a42-f1efb98f980e","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentVoicesResponse"}}},"description":"Get Agent Voices Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Agent Voices","tags":["Agents"]}},"/v1/agents/{id}/versions/search/snapshots":{"post":{"callbacks":{},"deprecated":false,"description":"Searches the published version history for a specific agent in the authenticated organization.\n\nEach snapshot pairs the agent version and LLM version that were current at the same time.\n","operationId":"searchAgentVersionSnapshots","parameters":[{"description":"Agent ID","example":"cd9f3a26-561e-4169-b854-af866f356f8b","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAgentVersionSnapshotsParams"}}},"description":"Search Agent Version Snapshots Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAgentVersionSnapshotsResponse"}}},"description":"Search Agent Version Snapshots Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Agent Version Snapshots","tags":["Agents"]}},"/v1/metrics/events/fields":{"get":{"callbacks":{},"deprecated":false,"description":"Lists the fields a metric event can filter, group and aggregate by, with what each supports.\n\nBuilding an event from the response:\n- **Filter**: a field with `filterable: true` becomes a filter\n  `{\"column\": field, \"comparison\": one of comparisons, \"value\": ...}`. Copy `field_type`\n  (and `filter_type` when set) onto the filter. `in`/`not_in` take a list. When `values`\n  is not empty, the field takes one of those values; when `value_source` is set, the field\n  holds IDs listed by that endpoint.\n- **Group by**: a field with `groupable: true` becomes `{\"field\": field}` in `group_by`.\n- **Aggregate**: a field with `aggregatable: true` becomes\n  `{\"aggregate_type\": one of aggregate_types, \"field\": field, \"field_type\": field_type}`,\n  plus `\"analysis_field\": true` when the field has `analysis_field: true`. A field with\n  `millisecond_precision: true` (a call's `duration`) can set `\"field_type\": \"milliseconds\"`\n  instead, so a sum or average uses each call's exact duration rather than rounding each\n  call up to whole seconds; without `display_units` the values still come back in seconds.\n  `metadata.event_aggregate_types` are the aggregates that take no field.\n\nFor `non_custom` reports, fields with `required: true` must be filtered exactly once, and\n`max_values` caps the values of an `in` filter.\n\nFor `call.analyzed` analysis fields (`analysis_field: true`), `values` is what agents are\nconfigured to produce: the combined enums of every agent in `defined_by_agents`.\n`observed_values` is what the organization's calls actually recorded; build filters from it\nwhen it is not empty, since configured values a call never recorded match nothing.\n`defined_by_agents` lists the agents whose current version defines the field, oldest first,\nincluding archived and deleted ones. When agents disagree on a field's type, the oldest\nagent's type is used. Fields with `system_field: true` are scored on every call rather than\ndefined by an agent, so their `defined_by_agents` is empty.\n\n`observed_values` is refreshed daily and has known gaps: it keeps the newest 100 values\nand never drops any, so values agents no longer produce stay listed; and it is empty for\nsystem fields, booleans and numbers, which aren't collected.\n\n`call.analyzed` analysis fields, system fields included, also carry a `profile` of how the\norganization's calls used them over the last 30 days, rebuilt daily: `coverage` (the share\nof calls that set the field), `distinct_count`, `top_values` (or `min`/`max`/`average` for\nnumbers) and `produced_by_agents`. `suggested_use` is a hint worked out from it: prefer\n`group_by` fields for breakdowns, and check `coverage` before filtering, since a filter on a\nfield few calls set leaves little data. Pass `agent_id` to profile one agent's calls, e.g.\nto tell which fields that agent produces. `profile` and `suggested_use` are null for fields\nnot profiled yet.\n\nFor `custom_object_record.*` events, pass `custom_data_type_id` to include that custom\nobject type's properties.\n\nFor `form_response.*` events, pass `form_id` (as listed by List Forms) to include that form's\nrating and scale questions as `answer:<element_id>` fields. Duplicated forms share element\nids, so an event that filters, groups or aggregates by an answer field must also filter\n`form_id` to that single form (`eq`, or `in` with one value).\n\n`agent_tool_execution.completed` takes only the fields listed for it. A metric that filters,\ngroups or aggregates by any other key of the event, such as the tool's `request`, `response`,\n`error_message` or `metadata`, or by a `nested_path`, is rejected. Its counts are of\nexecutions: an execution whose status changes after it was recorded (a success, then an\nerror) is sent again and counted once. Grouped or pivoted by `status`, though, it counts in\nboth `success` and `error`, so for an exact failure rate divide a count filtered to\n`status` `error` by the unfiltered count. `latency_ms` aggregates read every send.\n","operationId":"listMetricEventFields","parameters":[{"description":"The event's `type`, as listed by List Metric Events.","in":"query","name":"type","required":true,"schema":{"enum":["whippy_event","custom_event","non_custom"],"type":"string","x-struct":null,"x-validate":null}},{"description":"The event's `name`, as listed by List Metric Events.","example":"call.analyzed","in":"query","name":"name","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Scopes a `custom_object_record.*` event to one custom object type.","in":"query","name":"custom_data_type_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Scopes a `form_response.*` event to one form, adding its questions as `answer:<element_id>` fields. Ignored for other events.","in":"query","name":"form_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Narrows `call.analyzed` fields' `profile` and `suggested_use` to this agent's calls (as listed by List Agents). Ignored for other events.","in":"query","name":"agent_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetricEventFieldsResponse"}}},"description":"List Metric Event Fields Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricEventNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Metric Event Fields","tags":["Metrics"]}},"/v1/workflows/{id}/unpublish":{"post":{"callbacks":{},"deprecated":false,"description":"Unpublishes a workflow (returns it to draft and unsubscribes triggers).\n\nOAuth callers require the `workflows:update` scope.\n","operationId":"unpublishWorkflow","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowResponse"}}},"description":"unpublishWorkflow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Unpublish Workflow","tags":["Workflows"]}},"/v1/workflows/{id}/steps":{"get":{"callbacks":{},"deprecated":false,"description":"Lists steps on the workflow's current draft. When no draft exists, returns\nsteps from the published current version.\n\nOAuth callers require the `workflows:read` scope.\n","operationId":"listWorkflowSteps","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowStepsResponse"}}},"description":"listWorkflowSteps Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow Steps","tags":["Steps"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates one step on the workflow draft without requiring a full-graph sync.\nPrefer this over any full draft replace when building or editing workflows\nas an agent.\n\n## Agent workflow\n\n1. Call `listWorkflowStepTypes` (optionally with `workflow_id` +\n   `parent_step_id`) to discover valid options and copy a create-ready\n   `step_template`. Default responses are summary-sized (no schemas).\n2. Call `listWorkflowStepTypes` again with `detail=full` and `id=<option_id>`\n   when you need input/output field schemas for configuration.\n3. Call this endpoint with the template fields (`name`, `type`, `data`,\n   plus `previous_step_id` or `previous_step_alias` / `parent_step_id` or\n   `parent_step_alias` / `child_role` as needed).\n   For **linear** chains, use the returned `data.id` as the next\n   `previous_step_id` — no list call needed. For **splits/branches**, pass\n   `include=steps` to get the full draft step list in the same response.\n4. Call `updateWorkflowStep` to fill input mappings / credentials.\n5. Call `testWorkflowStep` to verify behavior.\n6. Call `publishWorkflow` when the draft is ready.\n\n## Validation\n\n- Ensures the workflow exists and belongs to the authenticated organization.\n- Ensures `previous_step_id` / `parent_step_id` (when provided) reference\n  steps on the editable draft (or published current version when no draft\n  exists yet).\n- `previous_step_alias` / `parent_step_alias` are alternatives to the UUID\n  fields and resolve against the same editable steps. Providing both an id\n  and its alias pair returns **422**. An unknown alias returns **404**.\n- Enforces graph placement (trigger only at root, allowed next steps,\n  nested child roles under loop / wait_for).\n- Uses optimistic concurrency against the draft (or published version when\n  creating a draft). Concurrent races return **409** `stale_draft`.\n- Full step config completeness (required fields per action/app) is\n  validated on **publish**, not on create — incomplete `data` is allowed\n  while the agent is still configuring the step.\n\nIf no draft exists yet, creates one from the published version (step IDs\nmay remap for links that pointed at published steps).\n\nOAuth callers require the `workflows:update` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"createWorkflowStep","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"When `steps`, also return the full editable draft step list as a top-level\n`steps` array (same shape as each `listWorkflowSteps` item). Use after\ncreating forks (`split_in_paths` / `condition_path`) so you can wire\nbranch successors via predecessor links (`previous_step_id` /\n`previous_step_alias`) without a separate list call. `parent_step_id` /\n`parent_step_alias` remain for nesting under loop / wait_for only. Omit\nfor linear chains — chain on `data.id` instead. Default response is\nunchanged (`data` only).\n","in":"query","name":"include","required":false,"schema":{"enum":["steps"],"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"example":{"data":{"actionSubtype":"http","operation":{"perform":{"method":"GET","url":"https://example.com/leads/123"}},"subtype":"http"},"name":"HTTP Request","previous_step_alias":"webhook","type":"action"},"properties":{"alias":{"description":"Stable step alias (defaults from name when omitted)","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"child_role":{"description":"Child role when nesting under wait_for","enum":["setup","validation","setup_and_validation","clean_up"],"type":"string","x-struct":null,"x-validate":null},"data":{"description":"Step configuration / input mapping. Copy `step_template.data` from\n`listWorkflowStepTypes`. Keep identity fields such as `subtype`,\n`app_id`, `app_version_id`, and `credential_id` at the top level of\n`data`; put operation fields inside `data.operation.perform`.\n\nFor example, schedule configuration belongs at\n`data.operation.perform.cron` and\n`data.operation.perform.timezone`. Never invent a mapping path:\ntest the upstream step and copy its documented output path. Action\nresults commonly use `${alias.output.data.field}`; trigger values\nmay use `${alias.input.field}`. Never use `{{steps.alias.field}}`.\n","type":"object","x-struct":null,"x-validate":null},"description":{"description":"Optional step description","type":"string","x-struct":null,"x-validate":null},"metadata":{"description":"Step metadata","type":"object","x-struct":null,"x-validate":null},"name":{"description":"Step display name","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"parent_step_alias":{"description":"Alternative to parent_step_id: alias of the parent loop / wait_for step on the editable draft.","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"parent_step_id":{"description":"Parent step when nesting under loop / wait_for. Mutually exclusive with parent_step_alias. Must be an id from listWorkflowSteps on this workflow.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"previous_step_alias":{"description":"Alternative to previous_step_id: alias of the previous step on the editable draft (e.g. \"webhook\"). Prefer this when chaining without listing step UUIDs.","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"previous_step_id":{"description":"Previous step in the linear chain. Required for non-trigger steps. Mutually exclusive with previous_step_alias. Must be an id from listWorkflowSteps on this workflow.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"sample_input":{"description":"Sample input used when testing","type":"object","x-struct":null,"x-validate":null},"sample_output":{"description":"Sample output from the last successful test","type":"object","x-struct":null,"x-validate":null},"type":{"description":"Step type. Prefer values from `listWorkflowStepTypes` / `step_template.type`.","enum":["trigger","action","empty","wait","filter","split_in_paths","condition_path","error_path","success_path","app","loop","wait_for"],"type":"string","x-struct":null,"x-validate":null}},"required":["name","type"],"type":"object","x-struct":null,"x-validate":null}}},"description":"Step to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowStepResponse"}}},"description":"createWorkflowStep Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Workflow Step","tags":["Steps"]}},"/v1/knowledge_bases/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a knowledge base that belongs to the authenticated organization. Deletion is rejected while the knowledge base is referenced by the live or draft version of any non-deleted LLM.","operationId":"deleteKnowledgeBase","parameters":[{"description":"Knowledge Base ID","example":"d5e45fa0-22e0-4ef5-be0e-73ae844c5da3","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Knowledge Base ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}}},"description":"Knowledge Base Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Knowledge Base","tags":["Knowledge Bases"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns a knowledge base that belongs to the authenticated organization.","operationId":"getKnowledgeBase","parameters":[{"description":"Knowledge Base ID","example":"7c813d3a-7ff7-4e62-8427-cd7bfd9e3fef","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseResponse"}}},"description":"Show Knowledge Base Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Knowledge Base ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}}},"description":"Knowledge Base Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Knowledge Base","tags":["Knowledge Bases"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates the draft version of a knowledge base that belongs to the authenticated organization.\nIf no draft exists, one is created from the current published version.\n","operationId":"updateKnowledgeBase","parameters":[{"description":"Knowledge Base ID","example":"342242a9-526e-458b-bde5-7f4a5ad5dfc3","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKnowledgeBaseParams"}}},"description":"Update Knowledge Base Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseResponse"}}},"description":"Update Knowledge Base Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Knowledge Base ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}}},"description":"Knowledge Base Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Knowledge Base","tags":["Knowledge Bases"]}},"/v1/domains/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a domain owned by the organization and removes its link and email setup.\nReturns the domain with `status: deleted`. Domains with active subdomains can't be deleted.\n","operationId":"deleteDomain","parameters":[{"description":"Domain ID","example":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}},"description":"Domain Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Domain","tags":["Domains"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns one domain. Use it to reconcile after a lifecycle event.\n\nEach purpose (`links`, `email`) reports a stable `setupState`:\n`not_requested`, `queued`, `awaiting_dns` (you need to add the listed DNS records),\n`verifying`, `active`, `failed`, or `cancelled`.\n","operationId":"getDomain","parameters":[{"description":"Domain ID","example":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}},"description":"Domain Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Domain","tags":["Domains"]},"patch":{"callbacks":{},"deprecated":false,"description":"Changes the purposes of a domain owned by the organization, or the auto-renewal of a domain\nbought through Whippy. Domains shared with the organization by another owner return `409 domain_read_only`.\n","operationId":"updateDomain","parameters":[{"description":"Domain ID","example":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDomainParams"}}},"description":"Update Domain Params","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}},"description":"Domain Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Domain","tags":["Domains"]}},"/v1/agents/{agent_id}/tests/{id}/execute":{"post":{"callbacks":{},"deprecated":false,"description":"Enqueues runs of the selected test version against `agent_id`. The default selection is the current publication.\nA test with no publication does not fall back to its draft. `run_count` is at most 3.\nReturns **202 Accepted** with run ids. Cancellation targets a run. A later edit does not change a queued run.\n\nLimited to the tests of the agent in the path.","operationId":"executeAgentTestForAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"agent_version":{"description":"Agent configuration to run against without editing the test. `live` runs the published agent, `draft` runs unpublished edits, `pinned` runs one saved agent version. Omit to use the test's `version_policy`.","example":{"mode":"draft"},"nullable":true,"properties":{"mode":{"enum":["live","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when `mode` is `pinned`.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"run_count":{"description":"Runs to queue. Omit to run once per caller model (simulation) or once (next reply); a simulation that would exceed the turn budget runs fewer callers.","example":3,"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"simulator_models":{"description":"Caller models to run the test with, one run per model. Omit to use the default caller models.","items":{"type":"string","x-struct":null,"x-validate":null},"maxItems":3,"type":"array","x-struct":null,"x-validate":null},"test_version":{"description":"Which test definition to run. Omitted selection uses the current published version.\nA test with no publication does not fall back to its draft.\nversion_policy on the definition still selects the agent configuration and is not this object.\n","properties":{"selection":{"enum":["current_published","draft","version"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when selection is version. Only a published version is accepted.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}}},"description":"Run options","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"example":{"data":{"aggregate":{"fail":0,"pass":0,"run_count":1,"unknown":0},"runs":[{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}]}},"properties":{"data":{"properties":{"aggregate":{"properties":{"fail":{"type":"integer","x-struct":null,"x-validate":null},"pass":{"type":"integer","x-struct":null,"x-validate":null},"run_count":{"type":"integer","x-struct":null,"x-validate":null},"unknown":{"type":"integer","x-struct":null,"x-validate":null}},"required":["run_count","pass","fail","unknown"],"type":"object","x-struct":null,"x-validate":null},"runs":{"items":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["runs","aggregate"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ExecuteTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Accepted — poll run show for verdict"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Execute agent test","tags":["Tests"]}},"/v1/workflows/{id}/tags":{"get":{"callbacks":{},"deprecated":false,"description":"Lists the tags assigned to a workflow. Tags are multi-select, so the\nresult is a list. A well-formed workflow id with no tag rows returns an\nempty list. A malformed id is rejected with **400** before the lookup.\n\nTags are returned in the same shape as `getTag` / `listTags`, so a tag\nid from this response can be looked up directly via `GET /v1/tags/:id`\nor filtered via `GET /v1/tags?type=workflow`.\n\nOAuth callers require the `workflows:read` scope.\n","operationId":"listWorkflowTags","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowTagsResponse"}}},"description":"listWorkflowTags Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow Tags","tags":["Workflows"]}},"/v1/domains/purchase-intents":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a non-binding, 10-minute purchase intent from an unexpired quote. The price is\ncopied from the quote and is never accepted from the request. Requires the organization\nadmin role or the `domains:purchase` permission.\n\nBuying a domain takes three calls: quote, intent, confirm. Quotes and intents are\nnon-binding; only Confirm Purchase Intent can lead to a registrar charge.\n\n","operationId":"createDomainPurchaseIntent","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDomainPurchaseIntentParams"}}},"description":"Purchase Intent Params","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPurchaseIntentResponse"}}},"description":"Purchase Intent Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Purchase Intent","tags":["Domain Purchases"]}},"/v1/tags/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a tag which disassociates all contacts from the tag.","operationId":"deleteTag","parameters":[{"description":"Tag ID","example":"bfd8230c-cabf-407d-a0db-021e93f30db2","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagsResponse"}}},"description":"Delete Tags Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBadRequestErrorResponse"}}},"description":"Not Authenticated Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Tag","tags":["Tags"]},"get":{"callbacks":{},"deprecated":false,"description":"Show a Tag in a given organization.","operationId":"getTag","parameters":[{"description":"Tag ID","example":"31584b67-bbba-4d0b-9c0b-5dcd5f0e0f33","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagsResponse"}}},"description":"Show Tag Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBadRequestErrorResponse"}}},"description":"Not Authenticated Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Tag","tags":["Tags"]},"put":{"callbacks":{},"deprecated":false,"description":"Update a Tag in a given organization.","operationId":"updateTag","parameters":[{"description":"Tag ID","example":"58d44600-21d4-452a-b321-344e486013cd","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTagsParams"}}},"description":"Update Tag Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagsResponse"}}},"description":"Update Tag Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBadRequestErrorResponse"}}},"description":"Not Authenticated Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Tag","tags":["Tags"]}},"/v1/agent_test_fix_proposals/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns one fix proposal, including its status and proposed prompt edits. Poll this endpoint\nafter requesting a proposal until the status leaves `generating`.\n","operationId":"getAgentTestFixProposal","parameters":[{"description":"Fix proposal ID","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposalResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Fix proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get a fix proposal","tags":["Test Runs"]}},"/v1/campaigns/email":{"post":{"callbacks":{},"deprecated":false,"description":"Creates an email campaign.\n\n`from` is the channel's `sending_email_address`. `subject`, `sender_name`, and `sender_email`\nare optional on a draft and required when `status` is `scheduled` or `recurring`. `reply_to`\nis optional. The body has no length limit here.\n\n**Draft.** Pass `status: \"draft\"`. A draft is not sent. Returns `201 Created`.\n\n**Scheduled.** Pass `status: \"scheduled\"`, `schedule_at` (ISO 8601), and `included_audience`.\nThe campaign is sent once at that time. Returns `201 Created`.\n\n**Recurring.** Pass `status: \"recurring\"`, `included_audience`, and `recurring_settings`\n(`cron_expression`, `timezone`, `start_date`, optional `end_date`). The series starts\nimmediately. Returns `201 Created` for the series parent.\n\nThere is no `to` list. SMS sends stay on `POST /v1/campaigns/sms`.\n","operationId":"createEmailCampaign","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCampaignParams"}}},"description":"Create Email Campaign Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraftCampaignResponse"}}},"description":"Campaign"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentCreateDraftErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Email Campaign","tags":["Email"]}},"/v1/tools/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches tools for an organization using forward cursor pagination.","operationId":"searchTools","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchToolsParams"}}},"description":"Search Tools Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchToolsResponse"}}},"description":"Search Tools Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Tools","tags":["Tools"]}},"/v1/developers/applications":{"get":{"callbacks":{},"deprecated":false,"description":"Lists developer applications in an organization.","operationId":"getDeveloperApplications","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"name","example":"Space Application","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"active","example":true,"in":"query","name":"active","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDeveloperApplicationsResponse"}}},"description":"Developer Applications"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Developer Applications","tags":["Applications"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a developer application.","operationId":"createDeveloperApplication","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDeveloperApplicationParams"}}},"description":"Developer Application Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerApplicationResponse"}}},"description":"Developer Application"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Developer Application","tags":["Applications"]}},"/v1/metrics/preview":{"post":{"callbacks":{},"deprecated":false,"description":"Runs a metric definition without saving it and returns its generated data. A definition\nthat previews successfully can be created as is: preview accepts exactly what Create\nMetric does (`title` is optional), and returns the same `results` Show Metric returns for\nthe saved metric over the same range.\n\nThe window is set like Show Metric's: `start` and `end` (ISO 8601, together) in\n`timezone` (default `America/Chicago`), or the trailing four weeks when omitted.\n\nA metric is a chart (`chart`) over one or more events (`events`). Build events with List\nMetric Events and List Metric Event Fields:\n\n- `type` and `name` come from List Metric Events, which also lists the charts each supports.\n- `filter`, `group_by` and `aggregate` use the fields List Metric Event Fields returns.\n- `non_custom` events (and a metric `type` of `non_custom`) name a report; only the reports\n  List Metric Events lists are accepted, with the filters and group-by fields it describes.\n\nRules that span events: linked metrics (`linked: true`) have exactly two events, one\n`whippy_event` and one `custom_event`, with different `rank`s; funnel steps are ordered by\n`rank`; heatmaps take no `aggregate`; bar, column and line charts group by at most one field;\n`group_colors` and event `color` take `#RRGGBB` hex colors.\n\n","operationId":"previewMetric","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"description":"A metric definition to run without saving, and the window to run it over.","example":{"chart":"bar","events":[{"filter":[{"column":"duration","comparison":">=","field_type":"integer","filter_type":"seconds","value":30}],"group_by":[{"field":"channel_id"}],"name":"call.analyzed","type":"whippy_event"}],"title":"AI calls by channel","type":"custom"},"properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"end":{"description":"ISO 8601 range end.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"start":{"description":"ISO 8601 range start.","format":"date-time","type":"string","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the range is interpreted in.","type":"string","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null}},"required":["events","chart"],"title":"PreviewMetricRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Metric definition","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewMetricResponse"}}},"description":"Preview Metric Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricWriteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Preview Metric","tags":["Metrics"]}},"/v1/agent-skills/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes an organization- or user-scoped agent skill.\n\nGlobal skills cannot be deleted through this API. User skills may only be\ndeleted by their owner.\n","operationId":"deleteAgentSkill","parameters":[{"description":"Agent Skill ID","example":"95019ba0-862a-41dc-942e-1a4005cb3532","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"Delete Agent Skill Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Agent Skill","tags":["Skills"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns an agent skill visible to the authenticated organization and user.","operationId":"showAgentSkill","parameters":[{"description":"Agent Skill ID","example":"3b4f533c-5e50-4c92-8629-66218fd61869","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentSkillResponse"}}},"description":"Agent Skill Show Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Agent Skill","tags":["Skills"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates an organization- or user-scoped agent skill.\n\nGlobal skills are immutable through this API. User skills may only be\nupdated by their owner.\n","operationId":"updateAgentSkill","parameters":[{"description":"Agent Skill ID","example":"63d1dc96-3774-4091-84e4-76956567f8bc","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentSkillParams"}}},"description":"Agent Skill Update Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentSkillResponse"}}},"description":"Agent Skill Update Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Agent Skill","tags":["Skills"]}},"/v1/contacts/segments":{"get":{"callbacks":{},"deprecated":false,"description":"Lists the contact segments of an organization.\n\nNote: Only active segments are returned. No deleted segments are returned.\n","operationId":"getContactSegments","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"name","example":"local contacts","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"color","example":"44FFFF","in":"query","name":"color","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactSegmentsResponse"}}},"description":"Contact Segments"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Contact Segments","tags":["Segments"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a contact segment in an organization.\n\nThe `filters` body uses the same Whippy Query Language (WQL) shape as\n`POST /v1/contacts/filter`. Pass bare JSON scalars, arrays, or objects for `value`\n(e.g. `\"Interview\"`, `true`, `50000`, `[\"Interview\", \"Offer\"]`, `{\"key\": \"value\"}`) — never\nwrap as `{\"value\": ...}`, `{\"values\": [...]}`, or `{\"scalar\": ...}`.\nMatch comparison to property type: text→ilike/in; number/float→</>/between;\nlist→contains/has_any (not in); map→contains; contact.geo→in_radius.\n","operationId":"createContactSegment","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactSegmentParams"}}},"description":"Contact Segment Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowSegmentResponse"}}},"description":"Contact Segment"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Contact Segment","tags":["Segments"]}},"/v1/channels":{"get":{"callbacks":{},"deprecated":false,"description":"Lists channels (locations) for an organization.\n\n`type` is one of phone, whatsapp, messenger, instagram, email, fax.\n","operationId":"getChannels","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListChannelsResponse"}}},"description":"Channels"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Channels","tags":["Channels"]}},"/v1/campaigns/sms":{"post":{"callbacks":{},"deprecated":false,"description":"Creates an SMS campaign. Pass a `to` list without `status` to send. `schedule_at` delays that send.\nPass `status: \"draft\"` without `to` to save a draft. Pass `status: \"scheduled\"` with `schedule_at`\nand `included_audience` to send once later. Pass `status: \"recurring\"` without `to` to start a series.\n\nEmail campaigns use `POST /v1/campaigns/email`. WhatsApp campaigns use `POST /v1/campaigns/whatsapp`.\nFax campaigns use `POST /v1/campaigns/fax`.\n\n**Send.** Creates and sends an SMS campaign. Attachments for MMS campaigns are also accepted.\nMessages use the channel for `from`. The message body must be less than 1000 characters.\nAttachment-only messages are also accepted.\n\nIf there is no contact for the organization corresponding to the parameters in the `to` list, a new\ncontact will be created, along with a conversation with the `from` number channel. If there is an\nexisting contact but no conversation, a new conversation will be created. All contacts will be tagged\nwith an upload tag with a timestamp corresponding to the time of creation of the campaign.\n\nThe contacts in the `to` list will be formatted to E.164 and validated. Invalid numbers are removed\nand processing continues with the valid ones. If no valid numbers remain, a 422 is returned.\n\nWhen `custom_data` is provided, the contacts will be associated with a custom object. The custom\nobject and its custom properties must exist first. Set `resource` to `contact` or `campaign_contact`.\n\nA successful send returns `202 Accepted` while the campaign is processed in the background.\n\n**Draft.** Pass `status: \"draft\"`. Do not pass `to`. `from` is a phone channel. Optional Whippy\nQuery filter items go in `included_audience` and `excluded_audience`. `automation_templates` is\noptional and capped at 50. A draft never creates contacts and is never sent automatically. A\nsuccessful draft returns `201 Created`.\n\n**Scheduled.** Pass `status: \"scheduled\"`, `schedule_at`, and `included_audience`. Do not pass `to`.\nThe campaign is sent once at that time. A successful request returns `201 Created`.\n\n**Recurring.** Pass `status: \"recurring\"`. Do not pass `to`. Requires `included_audience`\nand `recurring_settings` (`cron_expression`, `timezone`, `start_date`; optional `end_date`).\n`cron_expression` is a five-field cron evaluated in `timezone` (`0 9 * * *` is 09:00 every day).\nThe series starts immediately. A successful request returns `201 Created` for the series parent.\n","operationId":"sendCampaign","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCampaignParams"}}},"description":"Create Campaign Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraftCampaignResponse"}}},"description":"Campaign Draft"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSMSCampaignResponse"}}},"description":"Campaign"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentCreateDraftErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create SMS Campaign","tags":["SMS"]}},"/v1/agent_test_fix_proposals/{id}/dismiss":{"post":{"callbacks":{},"deprecated":false,"description":"Marks a fix proposal as dismissed without changing the agent's Draft prompt.","operationId":"dismissAgentTestFixProposal","parameters":[{"description":"Fix proposal ID","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposalResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Fix proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Dismiss a fix proposal","tags":["Test Runs"]}},"/v1/knowledge_bases/query":{"post":{"callbacks":{},"deprecated":false,"description":"Semantically searches the current published version of one or more knowledge bases.\n\nEvery requested ID must belong to the organization, have a published current version,\nand have `embedding_status: completed`.\n","operationId":"queryKnowledgeBases","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryKnowledgeBasesParams"}}},"description":"Query Knowledge Bases Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryKnowledgeBasesResponse"}}},"description":"Query Knowledge Bases Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Query Knowledge Bases","tags":["Knowledge Bases"]}},"/v1/teams/{team_id}/work_schedules/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"  Delete Work Schedule. If the Work Schedule entry does not exist,\n  a response with status code `404` will be returned.\n","operationId":"deleteTeamWorkSchedule","parameters":[{"description":"Team ID","example":"448f8671-4db7-4dc3-b6cd-b893ab263354","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Work Schedule ID","example":"52a18ade-17eb-4e5b-aac3-62400b385096","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"Delete Work Schedule Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamWorkScheduleBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Work Schedule","tags":["Team Schedules"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns the details of Team's Work Schedule with the given ID.","operationId":"getTeamWorkSchedule","parameters":[{"description":"Team ID","example":"1f7d136c-49d0-4b42-a6c8-5a9502924d6f","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Work Schedule ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkScheduleResponse"}}},"description":"Work Schedule Show Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamWorkScheduleBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Work Schedule","tags":["Team Schedules"]},"put":{"callbacks":{},"deprecated":false,"description":"Update the schedule data. May also update to which Team it belongs to.","operationId":"updateTeamWorkSchedule","parameters":[{"description":"Team ID","example":"0a5b0313-2372-4bb9-be37-234880d90510","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Work Schedule ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkScheduleParams"}}},"description":"Work Schedule Update Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkScheduleResponse"}}},"description":"Work Schedule Update Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamWorkScheduleBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Work Schedule","tags":["Team Schedules"]}},"/v1/domains/purchase-intents/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a purchase intent, including the created domain once it is confirmed.","operationId":"getDomainPurchaseIntent","parameters":[{"description":"Purchase intent ID","example":"5b1d7c0e-8f2a-4d3b-9c6e-7a8b9c0d1e2f","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPurchaseIntentResponse"}}},"description":"Purchase Intent Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Purchase Intent","tags":["Domain Purchases"]}},"/v1/messaging/sms":{"post":{"callbacks":{},"deprecated":false,"description":"Creates and Sends an SMS or MMS message.\n\nMessages will be sent using the channel that corresponds to the `from` request parameter. The message body must be less than 1000 characters. Attachment-only messages are also accepted.\n\nIf there is no contact corresponding to the `to` parameter for the organization, a new contact will be created, along with a conversation with the `from` number channel. If there is an existing contact but no conversation, a new conversation will be created.\n\nThe `opt_in_to_all_channels` and `opt_in_to` params are optional and they will be processed in the cases where a new contact is created. These params reflect which of the organization channels the contact will be opted in to.\n\nNote: The Messaging API is designed for creating and managing messages and can only process POST requests. To view messages, navigate to the Conversation section where you can use the Show Conversation API to GET messages within a specific conversation.\n","operationId":"sendSMS","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSMSParams"}}},"description":"Send SMS Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSMSResponse"}}},"description":"Message"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SMSUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Send SMS","tags":["Messages"]}},"/v1/agents/{id}/meta":{"put":{"callbacks":{},"deprecated":false,"description":"Updates metadata for an agent that belongs to the authenticated organization.","operationId":"updateAgentMeta","parameters":[{"description":"Agent ID","example":"77f02195-0df7-4d4c-8904-8af30d471dbd","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentMetaParams"}}},"description":"Update Agent Metadata Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Update Agent Metadata Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Agent Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Agent Metadata","tags":["Agents"]}},"/v1/knowledge_bases/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches knowledge bases for an organization using forward cursor pagination.\n","operationId":"searchKnowledgeBases","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchKnowledgeBasesParams"}}},"description":"Search Knowledge Bases Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchKnowledgeBasesResponse"}}},"description":"Search Knowledge Bases Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Knowledge Bases","tags":["Knowledge Bases"]}},"/v1/custom_objects/{custom_object_id}/properties/{custom_property_id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Soft deletes a Custom Property of a Custom Object. All of its associated Custom Property Values will be set as\narchived as a result.\n","operationId":"deleteCustomProperty","parameters":[{"description":"Custom Object ID","example":"73ad064c-1ff6-42e9-8ee8-c2c4cfb75363","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Custom Property ID","example":"3d986e0f-7563-47df-abb2-aa910b9b561d","in":"path","name":"custom_property_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomPropertyResponse"}}},"description":"deleteCustomProperty Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPropertyNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPropertyUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Custom Property","tags":["Properties"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates an existing CustomProperty.\nThe following fields can be updated:\n- `label`\n- `required`\n- `default`\n- `references`\n\nThe same validations apply as when creating a Custom Property.\nNote, that the `type` of a Custom Property cannot be changed, the reason for this is that the Custom Object Records\nthat have a value for the Custom Property would be invalid if the type of the Custom Property was changed.\n\nUpdates to the `references`:\n- If a reference should be removed, the `delete` field of that reference should be set to `true`.\n- If an existing reference should be updated, the `id` field of that reference should be set to the ID of the existing reference.\n- If a new reference should be added, the existing list of references should be included in the payload and the new reference should be added to that list with the `id` and `delete` fields set to `null`.\n","operationId":"updateCustomProperty","parameters":[{"description":"Custom Object ID","example":"108f2841-ee0f-4731-b1b9-067314574791","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Custom Property ID","example":"dedc7792-a4e0-4bc1-9c0f-4e7f08ea24dc","in":"path","name":"custom_property_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePropertyParams"}}},"description":"Custom Property Update","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomPropertyResponse"}}},"description":"updateCustomProperty Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPropertyNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPropertyUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Custom Property","tags":["Properties"]}},"/v1/knowledge_bases/{knowledge_base_id}/items":{"post":{"callbacks":{},"deprecated":false,"description":"Adds an item to a knowledge base draft. If no draft exists, one is created from the current published version.\n","operationId":"createKnowledgeBaseItem","parameters":[{"description":"Knowledge Base ID","example":"3da9f071-3ce1-44e4-89c0-fd2d8379dc2a","in":"path","name":"knowledge_base_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKnowledgeBaseItemParams"}}},"description":"Create Knowledge Base Item Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseItemResponse"}}},"description":"Create Knowledge Base Item Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Knowledge Base ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}}},"description":"Knowledge Base Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Knowledge Base Item","tags":["Knowledge Base Items"]}},"/v1/users/invites/{invite_id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Delete a single invite record by its ID.","operationId":"deleteInviteV1","parameters":[{"description":"Invite ID","example":12345,"in":"path","name":"invite_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"No Content Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete a User Invite","tags":["Invites"]}},"/v1/agents/{agent_id}/tests/run":{"post":{"callbacks":{},"deprecated":false,"description":"Queues every scenario linked to the agent, or the listed ones, as one batch. Each scenario runs\nits published version, or its draft when it was never published. Scenarios that cannot run are\nreturned in `skipped` instead of failing the batch.\n","operationId":"runAgentTestSuite","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Queues every scenario linked to the agent, or the listed ones, as one batch. Each scenario runs\nits published version, or its draft when it was never published. Scenarios that cannot run are\nreturned in `skipped` instead of failing the batch.\n","example":{"agent_version":{"mode":"draft"},"only":"not_passing"},"properties":{"agent_test_ids":{"description":"Omit to run every scenario linked to the agent.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":50,"type":"array","x-struct":null,"x-validate":null},"agent_version":{"description":"Agent configuration to run against without editing the test. `live` runs the published agent, `draft` runs unpublished edits, `pinned` runs one saved agent version. Omit to use the test's `version_policy`.","example":{"mode":"draft"},"nullable":true,"properties":{"mode":{"enum":["live","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when `mode` is `pinned`.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"only":{"default":"all","description":"`not_passing` skips scenarios already passing on the target configuration.","enum":["all","not_passing"],"type":"string","x-struct":null,"x-validate":null},"run_count":{"description":"Runs per scenario. Omit to run each scenario once per caller model (simulation) or once (next reply); a simulation that would exceed its turn budget runs fewer callers.","maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"simulator_models":{"description":"Caller models to run each test with, one run per model. Omit to use the default caller models.","items":{"type":"string","x-struct":null,"x-validate":null},"maxItems":3,"type":"array","x-struct":null,"x-validate":null}},"title":"RunAgentTestSuiteRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Suite options","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"example":{"data":{"batch_id":"6f0c8f0e-3b8d-4f50-9a77-3d7c2f5a9b10","runs":[],"skipped":[]}},"properties":{"data":{"properties":{"batch_id":{"description":"Null when nothing was queued","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"runs":{"items":{"additionalProperties":true,"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"skipped":{"items":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"code":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"RunAgentTestSuiteResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Accepted — poll runs for verdicts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Run agent test scenarios as a batch","tags":["Tests"]}},"/v1/custom_objects/{custom_object_id}/records/upsert":{"post":{"callbacks":{},"deprecated":false,"description":"Upserts multiple Custom Object Records.\n\nIt accepts a list of custom object records and creates or updates them if they already exist.\nEach custom object record in this bulk request must provide either an `external_id` or a combination of `associated_resource_id` and `associated_resource_type`. A record with neither is skipped. A single create can omit both and insert a standalone record; this bulk endpoint cannot.\n* Alternatively to `associated_resource_id`, an `associated_resource_data` list can be provided, which is composed of a list of maps with the keys `key` and `value`. This list will be used to find the associated resource and get its ID.\nExample of `associated_resource_data`: `[{\"key\": \"phone\", \"value\": \"1234567890\"}]`\n\nIn case the custom object record should not be associated with a Whippy resource the `associated_resource_id` and `associated_resource_type` fields should be omitted, and only the `external_id` field should be provided.\n\nEach custom object record must have a `properties` field in this format `{\"custom_property_key\": \"custom_property_value\"}`.\n\nEach key in the `properties` field must be a valid custom property key for the custom object, in case of an invalid key, the custom object record will not be created or updated.\n\nThe value of each key in the `properties` field must be a valid value for the custom property, in case of an invalid value, the custom object record will not be created or updated.\n\nIn case a null value is provided for a custom property, the value of the custom property will be set to null, unless the custom property is required.\n\nIf an attempt is made to set a required custom property to null, the custom object record will not be created or updated.\n","operationId":"upsertCustomObjectRecords","parameters":[{"description":"Custom Object ID","example":"ee4b122b-9a9f-4bff-b6da-cd384d6c544c","in":"path","name":"custom_object_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertCustomObjectRecordsParams"}}},"description":"upsertCustomObjectRecords Request","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertCustomObjectRecordsResponse"}}},"description":"upsertCustomObjectRecords Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Upsert Custom Object Records","tags":["Records"]}},"/v1/teams/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"  Deletes team. If the Team's entry does not exist,\n  a response with status code `404` will be returned.\n","operationId":"deleteTeam","parameters":[{"description":"Team ID","example":"2c45ef55-f3c5-41a1-9552-49fcf3b107d2","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"Delete Team Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Team","tags":["Teams"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns the details of Team with the given ID.","operationId":"getTeam","parameters":[{"description":"Team ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowTeamResponse"}}},"description":"Team Show Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Team","tags":["Teams"]},"put":{"callbacks":{},"deprecated":false,"description":"A request to this endpoint can be used to:\n  - set/update `name`\n  - set/update the `assignment_method`\n  - set/update the team's `locations`\n","operationId":"updateTeam","parameters":[{"description":"Team ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamParams"}}},"description":"Team Update Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamResponse"}}},"description":"Team Update Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Team","tags":["Teams"]}},"/v1/users":{"get":{"callbacks":{},"deprecated":false,"description":"List Users in the current organization with applicable filters.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) is also supported. Both methods return a\n`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when\n`next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include them\non every request.\n\nParams/Filters for searching users are:\n- `name`    -\tsearch by name, case insensitive, partial match\n- `email`\t\t-\tsearch by email, case insensitive, complete match\n- `phone`\t\t-\tsearch by phone number, complete match\n- `role`\t\t-\tsearch by role, case insensitive, complete match\n- `state`\t\t-\tsearch by state, case insensitive, complete match\n- `limit`\t\t-\tsets the number of records to return\n- `cursor`\t-\tcursor for keyset pagination (use the next_cursor from the previous response)\n- `offset`\t-\tsets the number of records to skip (cannot be combined with cursor)\n","operationId":"getUsers","parameters":[{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"name","example":"John","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"email","example":"test@example.com","in":"query","name":"email","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"phone","example":"+17125697385","in":"query","name":"phone","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"role","example":"admin","in":"query","name":"role","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"state","example":"archived","in":"query","name":"state","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserIndexResponse"}}},"description":"User Index Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Users","tags":["Users"]}},"/v1/knowledge_bases/{id}/versions/{version_id}/rollback":{"post":{"callbacks":{},"deprecated":false,"description":"Stages a previously published version as the knowledge base draft, replacing any existing draft.\nThis does not change the current published version; call `POST /v1/knowledge_bases/{id}/publish` to make it live.\n","operationId":"rollbackKnowledgeBase","parameters":[{"description":"Knowledge Base ID","example":"b6d2fc41-f5fc-403a-a85d-3939ec270714","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Knowledge Base Version ID to rollback to","example":"2c092019-209f-4cc8-b342-a69b540cdb19","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseResponse"}}},"description":"Rollback Knowledge Base Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Path Parameter"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"},{"$ref":"#/components/schemas/KnowledgeBaseVersionNotFoundErrorResponse"}],"x-struct":null,"x-validate":null}}},"description":"Knowledge Base or Knowledge Base Version Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Rollback Knowledge Base Version","tags":["Knowledge Bases"]}},"/v1/contacts/communication_preferences/opt_in":{"post":{"callbacks":{},"deprecated":false,"description":"Opts in a list of contacts to a list of channels.","operationId":"optInCommunicationPreference","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Parameters-With-Specific-Channels"}}},"description":"Opt In Communication Preference Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCommunicationPreferencesResponse"}}},"description":"Communication Preferences"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationPreferenceUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Opt In","tags":["Preferences"]}},"/v1/workflows/{id}/steps/{step_id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes one step on the workflow draft and relinks linear successors to keep\nthe chain intact. Rejects deletes when nested child steps still reference the\ntarget as their parent — delete children first (via this endpoint).\n\n## Validation\n\n- Ensures the workflow and step exist on the editable draft for the\n  authenticated organization.\n- Re-validates graph placement after the delete + relink.\n- Uses optimistic concurrency against the draft (or published version when\n  creating a draft). Concurrent races return **409** `stale_draft`.\n\nReturns the deleted step payload. OAuth callers require the\n`workflows:update` scope (and matching workspace permission). API key\ncallers are authorized by organization membership.\n","operationId":"deleteWorkflowStep","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Step ID","in":"path","name":"step_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowStepResponse"}}},"description":"deleteWorkflowStep Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Workflow Step","tags":["Steps"]},"patch":{"callbacks":{},"deprecated":false,"description":"Partially updates one step on the workflow draft (input mapping, credential,\naction config via `data`, plus optional `name` / `metadata` / samples).\n\nDeep-merges `data` and `metadata` into the existing step. If no draft exists\nyet, creates one from the published version — step IDs may remap; the\nresponse returns the updated draft step.\n\nKeep template identity fields such as `subtype`, `app_id`, `app_version_id`,\nand `credential_id` at the top level of `data`; put operation fields inside\n`data.operation.perform`. Never invent a mapping path: test the upstream step\nand copy its documented output path. Action results commonly use\n`${alias.output.data.field}`; trigger values may use `${alias.input.field}`.\nNever use `{{steps.alias.field}}`.\n\n## Validation\n\n- Ensures the workflow and step exist on the editable draft for the\n  authenticated organization.\n- When `data` / `metadata` change, re-validates graph placement for the\n  draft.\n- Uses optimistic concurrency against the draft (or published version when\n  creating a draft). Concurrent races return **409** `stale_draft`.\n- Full step config completeness is validated on **publish**, not on patch —\n  incomplete `data` is allowed while the agent is still configuring.\n\nTypical agent loop after `createWorkflowStep`: patch inputs →\n`testWorkflowStep` → `publishWorkflow`.\n\nOAuth callers require the `workflows:update` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"updateWorkflowStep","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Step ID","in":"path","name":"step_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Step configuration. Deep-merged into the existing step data.\nKeep identity fields such as `subtype`, `app_id`,\n`app_version_id`, and `credential_id` at the top level of `data`;\nput operation fields inside `data.operation.perform`. Never invent\na mapping path: test the upstream step and copy its documented\noutput path. Action results commonly use\n`${alias.output.data.field}`; trigger values may use\n`${alias.input.field}`. Never use `{{steps.alias.field}}`.\n","type":"object","x-struct":null,"x-validate":null},"metadata":{"description":"Step metadata. Deep-merged into the existing metadata.","type":"object","x-struct":null,"x-validate":null},"name":{"description":"Step display name","type":"string","x-struct":null,"x-validate":null},"sample_input":{"description":"Sample input used when testing","type":"object","x-struct":null,"x-validate":null},"sample_output":{"description":"Sample output from the last successful test","type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}}},"description":"Step fields to update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowStepResponse"}}},"description":"updateWorkflowStep Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Workflow Step","tags":["Steps"]}},"/v1/templates/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a template.","operationId":"deleteTemplate","parameters":[{"description":"Template ID","example":"60077e05-09ed-4065-af30-9d66f637e76e","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplatesResponse"}}},"description":"Delete Template Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete template","tags":["Templates"]},"get":{"callbacks":{},"deprecated":false,"description":"Show a Template in a given organization.","operationId":"getTemplate","parameters":[{"description":"Template ID","example":"2de8b5eb-3cc4-4037-ae7c-1a3d40c732da","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplatesResponse"}}},"description":"Show Tag Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Template","tags":["Templates"]},"put":{"callbacks":{},"deprecated":false,"description":"Update a Template in a given organization.","operationId":"updateTemplate","parameters":[{"description":"Template ID","example":"730fa3dc-1f2c-4871-b113-3bbe75c0d83f","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateParams"}}},"description":"Update Template Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplatesResponse"}}},"description":"Update Tag Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Template","tags":["Templates"]}},"/v1/contacts/search":{"post":{"callbacks":{},"deprecated":false,"description":"Search contacts in an organization.\n\nThis endpoint supports two pagination methods:\n\n1. **Offset-based pagination** (default): Use `offset` and `limit` request body fields\n   - Default offset is 0 and default limit is 50\n   - Maximum limit is 500\n\n2. **Cursor-based pagination**: Use `cursor` and `limit` request body fields\n   - Default limit is 50\n   - Maximum limit is 500\n   - Provides more efficient pagination for large datasets\n   - Uses the same ordering on contact name (and ID as a tiebreaker)\n   - Use the `next_cursor` from `metadata` for subsequent requests\n   - Filters are not included in the cursor - you still have to include them in subsequent requests\n     or you'll get different data.\n   - When `next_cursor` is null, there are no more results\n   - Note: Only forward pagination is supported (no backward navigation for now)\n\nCursor-based pagination is automatically triggered when a `cursor` field is provided,\nif the `offset` field is not specified. If both fields are provided, an error is returned.\n\nBoth pagination methods return a `metadata` object containing a `next_cursor` field.\nWhen there are more results available, `next_cursor` contains a cursor string that can be used\nto fetch the next page. When there are no more results, `next_cursor` is `null`.\nThis allows you to start with offset-based pagination and switch to cursor-based pagination\nfor subsequent requests if desired.\n\nIt is recommended to use cursor-based pagination for large datasets,\nand offset-based pagination for random access at various parts of the dataset.\n\nThe cursor is a base64-encoded string that represents a position in the dataset,\nbased on the default composite ordering by ascending name first, and ID second (as a tiebreaker when there are tied names), used in order to have\nmore deterministic results.\n\nThe cursor is built from a JSON object that has a contact ID and the name of the contact\nthat corresponds to the ID. It has a format of `{\"name\": \"contact_name\", \"id\": \"contact_id\"}`, encoded as a URL-safe base64 string,\nwith padding removed. If necessary, you can generate the cursor before making an initial request, and start directly at the provided cursor, if it is valid.\n\nFor example, this is how you could do that in Python:\n```python\nimport json\nimport base64\n\ndef encode_cursor(name, id):\n    cursor_data = {\n        \"name\": name,\n        \"id\": id\n    }\n\n    json_string = json.dumps(cursor_data)\n    base64_bytes = base64.urlsafe_b64encode(json_string.encode('utf-8'))\n\n    # remove padding (trailing '=' characters)\n    return base64_bytes.decode('utf-8').rstrip('=')\n```\n\n**Invalid or unusable cursors**\n\n- A **malformed** cursor — not valid URL-safe base64, not JSON, or a JSON\n  object without exactly the `name` and `id` keys — is rejected with a\n  `422 Unprocessable Content` and `{\"description\": \"Invalid cursor format\"}`.\n  The literal strings `null` and `undefined` are treated as malformed.\n- A **well-formed but stale** cursor (e.g. the contact it pointed at was\n  since deleted or renamed) is still a valid position: the request succeeds\n  and returns the contacts after that position. `cursor_reset` is `false`.\n- A **well-formed but unusable** cursor (correct keys, but a value that\n  can't be a position — e.g. an `id` that isn't a UUID) does not error.\n  The request resets to the first page and the response sets\n  `cursor_reset` to `true` so you can detect the reset rather than looping.\n","operationId":"searchContacts","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchContactsParams"}}},"description":"Search Contact Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactsResponse"}}},"description":"Contacts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIndexUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Contacts","tags":["Contacts"]}},"/v1/campaigns/fax/{id}":{"put":{"callbacks":{},"deprecated":false,"description":"Updates a fax campaign at `PUT /v1/campaigns/fax/:id`. The campaign type is set to\n`fax`. `from` is the phone number of a fax channel and is required when the campaign\nis not already fax.\n\nThe campaign must have finished preprocessing and be `draft`, `scheduled`, `recurring`, or\n`recurring_paused`. A `scheduled` campaign accepts `title`, `schedule_at`, `status`, and\n`automation_templates`. A draft or recurring campaign also accepts the message, `from`,\naudience filters, and `recurring_settings`. `draft` to `scheduled` sends once at `schedule_at`.\n`draft` to `recurring` starts the series.\n","operationId":"updateFaxCampaign","parameters":[{"description":"Campaign ID","example":"ee925f37-58b9-4348-a650-92bf3c7677cb","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxCampaignUpdateParams"}}},"description":"Update Fax Campaign Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignResponse"}}},"description":"Campaign"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentUpdateErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Fax Campaign","tags":["Fax"]}},"/v1/campaigns/{id}/automation_templates":{"post":{"callbacks":{},"deprecated":false,"description":"Attaches automation templates to an existing campaign at `POST /v1/campaigns/:id/automation_templates`, including one that has already been sent. The campaign can be SMS, email, WhatsApp, or fax.\n\nTemplates are added to the ones already on the campaign; nothing is replaced or removed. Templates of type `\"as-is\"` are linked to the campaign, and templates of type `\"duplicate\"` have their triggers, actions, and keywords copied onto it.\n\nThe request is safe to retry: a template that is already on the campaign is skipped, so its automations never run twice for the same reply.\n\nAutomations only run for replies received after they are attached. Contacts who replied earlier are not processed again. When possible, pass `automation_templates` when sending the campaign instead.\n\nThe campaign must have finished preprocessing and be in a `draft`, `scheduled`, `queued`, `in_progress`, `paused` or `complete` status. Every template must belong to the organization and must not be archived; otherwise nothing is attached.\n","operationId":"attachCampaignAutomationTemplates","parameters":[{"description":"Campaign ID","example":"b283e959-aacd-4fa2-9e5b-892be8bd03ee","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachCampaignAutomationTemplatesParams"}}},"description":"Attach Automation Templates Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachCampaignAutomationTemplatesResponse"}}},"description":"Automation Templates"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentAttachAutomationTemplatesErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Attach Automation","tags":["Automation Templates"]}},"/v1/knowledge_bases/{id}/versions/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches versions of a knowledge base using forward cursor pagination.\n","operationId":"searchKnowledgeBaseVersions","parameters":[{"description":"Knowledge Base ID","example":"908396cc-6b69-4352-93b2-ac78acd37326","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchKnowledgeBaseVersionsParams"}}},"description":"Search Knowledge Base Versions Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchKnowledgeBaseVersionsResponse"}}},"description":"Search Knowledge Base Versions Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Knowledge Base ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}}},"description":"Knowledge Base Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Knowledge Base Versions","tags":["Knowledge Bases"]}},"/v1/developers/endpoints":{"get":{"callbacks":{},"deprecated":false,"description":"Lists developer endpoints in an organization.","operationId":"getEndpoints","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"event_type","example":"message.created","in":"query","name":"event_type","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"url","example":"www.spacetravel.com","in":"query","name":"url","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"active","example":true,"in":"query","name":"active","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDeveloperEndpointsResponse"}}},"description":"Developer Endpoints"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Endpoints","tags":["Endpoints"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a developer endpoint.","operationId":"createDeveloperEndpoint","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointParams"}}},"description":"Developer Endpoint Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerEndpointResponse"}}},"description":"Developer Endpoint"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Developer Endpoint","tags":["Endpoints"]}},"/v1/contacts/lists/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Delete a Contact List in an organization.","operationId":"deleteContactList","parameters":[{"description":"Contact List ID","example":"b83e5195-8c3b-49ab-a643-3cee6900757b","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactLists"}}},"description":"Delete Contact List Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListsUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Contact List","tags":["Lists"]},"get":{"callbacks":{},"deprecated":false,"description":"Show a Contact List in an organization, including its member contacts.\n\nThe member contacts are returned in a defined, stable order: by contact `name`\nascending (contacts without a name last), with `id` as the tiebreaker.\n\nMembers support two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and\nperformant on large lists; it is triggered automatically when a `cursor` parameter is\nprovided, and `cursor` and `offset` cannot be combined. The cursor-based response returns a\n`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next\npage; when `next_cursor` is `null`, there are no more results. **Offset-based**\n(`offset`) remains supported but is deprecated and always returns a fixed page of 50\nmembers; its response also includes a `metadata.next_cursor` you can use to move onto\ncursor pagination.\n","operationId":"showContactList","parameters":[{"description":"Contact List ID","example":"852ea28a-ea25-4be4-8e7d-989223c0f59f","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination of the members. Use the next_cursor value from the previous response. Cannot be combined with offset.","example":"eyJuYW1lIjoiSmFuZSBEb2UiLCJpZCI6IjExYTM3ZTA1LTJkYzItNGQ3Ni04Nzg1LWJhODA1MGE5YjE5OSJ9","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Number of members to return per page (cursor path only). Defaults to 50.","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Deprecated. Number of members to skip. Cannot be combined with cursor.","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowContactLists"}}},"description":"Show Contact List Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Contact List","tags":["Lists"]},"put":{"callbacks":{},"deprecated":false,"description":"Update a Contact List in an organization.","operationId":"updateContactList","parameters":[{"description":"Contact List ID","example":"6b1e27c5-4276-4510-97dd-bb6aeb0d3e31","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactListParams"}}},"description":"Update Template Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactLists"}}},"description":"Update Contact List Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListsUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Contact List","tags":["Lists"]}},"/v1/teams/{team_id}/team_members/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Delete Team Member. If the Team Member's entry does not exist,\n        a response with status code `404` will be returned.","operationId":"deleteTeamMember","parameters":[{"description":"Team ID","example":"d9e72153-ac8c-4369-a0b1-e1a2dd86e794","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"cbba0822-f794-43b7-9194-9af9da7ede96","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"Delete Team Member Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Team Member","tags":["Team Members"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns the details of Team Member with the given ID.","operationId":"getTeamMember","parameters":[{"description":"Team ID","example":"2724d864-346d-4adb-af07-20db7db4ec35","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowTeamMemberResponse"}}},"description":"Team Member Show Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Team Member","tags":["Team Members"]},"put":{"callbacks":{},"deprecated":false,"description":"Update Team Member with the given parameters","operationId":"updateTeamMember","parameters":[{"description":"Team ID","example":"f3b5c406-717f-44aa-b2c1-2968b42015e6","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamMemberParams"}}},"description":"Team Member Update Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamMemberResponse"}}},"description":"Team Member Update Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Team Member","tags":["Team Members"]}},"/v1/workflow-apps/{id}/actions/{action_key}/input-options":{"post":{"callbacks":{},"deprecated":false,"description":"Fetches dynamic dropdown / search options for a workflow app action by\ninvoking the app version with `is_filling_dynamic_dropdown` set.\n\nUse this when `listWorkflowStepTypes` `detail=full` shows a field with\n`dynamic` or `search` metadata (e.g. Slack `channel` uses\n`list_channels.id`). Pass the perform key as `action_key`, the app's\n`app_version_id`, a `credential_id`, and the `app_action_type` (`search`\nor `create`) that contains that `action_key`.\n\nExample — list Slack channels the bot has joined:\n\n```\nPOST /v1/workflow-apps/{slack_app_id}/actions/list_channels/input-options\n{ \"app_version_id\": \"...\", \"app_action_type\": \"search\", \"credential_id\": \"...\" }\n```\n\nThen set the chosen option's `value` on the step's `operation.perform.inputs`.\n\n`action_key` is the perform key from the app definition (create or search).\nCallers must supply `app_version_id` from the public catalog field\n(`app_version_id` / `published_app_version_id`) or from existing step config.\n\nOAuth callers require `workflows:read` for `app_action_type=search`, and\n`workflows:update` for `app_action_type=create`.\n","operationId":"getWorkflowAppActionInputOptions","parameters":[{"description":"Workflow app ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Action or search perform key from the app definition","example":"list_channels","in":"path","name":"action_key","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"app_action_type":{"description":"Which action bucket to invoke for dropdown options. `search` requires workflows:read; `create` requires workflows:update.","enum":["search","create"],"type":"string","x-struct":null,"x-validate":null},"app_version_id":{"description":"App version ID to invoke","format":"uuid","type":"string","x-struct":null,"x-validate":null},"credential_id":{"description":"Optional credential for authenticated invokes","format":"uuid","type":"string","x-struct":null,"x-validate":null},"cursor":{"description":"Optional cursor for cursor-based pagination","type":"string","x-struct":null,"x-validate":null},"input_data":{"description":"Inputs required by the action / search (e.g. dependent field values)","type":"object","x-struct":null,"x-validate":null},"page":{"description":"Optional page for paginated options","minimum":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["app_version_id","app_action_type"],"type":"object","x-struct":null,"x-validate":null}}},"description":"Input options request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAppActionInputOptionsResponse"}}},"description":"getWorkflowAppActionInputOptions Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAppBadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAppNotFoundResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAppValidationErrorResponse"}}},"description":"Validation Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Workflow App Action Input Options","tags":["Apps"]}},"/v1/agent_tests/{id}/versions":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a page of version summaries. The mutable draft is included with every\npublished copy and sorts first because its version_number is null. Full definition\ncontent, including conversation prefixes and mock fixtures, is loaded from show version.\nlimit defaults to 25 and cannot exceed 100.\n","operationId":"listAgentTestVersions","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Page size. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of versions to skip. Defaults to 0.","in":"query","name":"offset","required":false,"schema":{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Page of version summaries. The mutable draft is included. Full definition content\nis available from the show version operation.\n","example":{"data":[{"agent_test_id":"00000000-0000-4000-8000-000000000003","content_fingerprint":"example","id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"test_type":"simulation","updated_at":"2026-01-01T12:00:00.000000Z","version_number":1}],"total":1},"properties":{"data":{"items":{"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListAgentTestVersionsResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List agent test versions","tags":["Tests"]}},"/v1/sequences/contacts/remove":{"post":{"callbacks":{},"deprecated":false,"description":"Remove contacts from all sequences in a given organization.\n\nA contact will only be removed from any sequence it exists in.\nThe request's `body` accepts the list of contacts as `to` list in the parameters.\n\nIf any given contact doesn't exist in an organization, it will create a contact only for the current organization, but that contact won't have any impact on any sequence.\nThe contacts will be tagged with an upload tag with a timestamp corresponding to the time of the request. Then the status of the contact will be updated to `Finished`.\n\nThe process will run in the background, therefore a `202 Accepted` status is initially returned on success.\n","operationId":"removeContactsFromAllSequences","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/removeContactsParams"}}},"description":"Remove Contacts From All Sequences Params","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveContactsFromAllSequencesResponse"}}},"description":"Sequence"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Remove Contacts From All Sequences","tags":["Sequences"]}},"/v1/forms/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Soft-deletes a form by setting archived_at. Hard delete is not supported.","operationId":"deleteForm","parameters":[{"description":"Form ID","example":"b20ae60a-b4d8-41cc-8dc8-0f1d5fd6a838","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Form","tags":["Forms"]},"get":{"callbacks":{},"deprecated":false,"description":"Retrieves a form plus a version's authoring payload (`form_elements`,\n`settings`, `logic`, `endings`, `variables`) so a client can round-trip\nedit → publish.\n\nVersion selection:\n  * `version=active` (default) — live version fillers see\n  * `version=draft` — editable draft workspace\n  * `version_number` — a specific version number\n","operationId":"showForm","parameters":[{"description":"ID of the form to retrieve.","example":"d09ca496-839f-41f6-a68a-b013a630f8b1","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Select the active or draft version. Defaults to active.","example":"active","in":"query","name":"version","required":false,"schema":{"enum":["active","draft"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Select a specific version number (takes precedence over version=active).","example":1,"in":"query","name":"version_number","required":false,"schema":{"minimum":1,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Form","tags":["Forms"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates form metadata (name, slug, notifications, tags, is_public). Does not change the questionnaire.","operationId":"updateForm","parameters":[{"description":"Form ID","example":"fb70a782-3576-4ba7-ba70-4b36d4fa8834","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFormParams"}}},"description":"Update Form Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Form Metadata","tags":["Forms"]}},"/v1/agents/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches agents in the authenticated organization based on filters.\n\nOptionally, agent records can be filtered by `name`, `status`, and `llm_id`.\n","operationId":"searchAgents","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAgentsParams"}}},"description":"Search Agents Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAgentsResponse"}}},"description":"Search Agents Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Agents","tags":["Agents"]}},"/v1/teams/{team_id}/team_members/{team_member_id}/work_schedules/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"  Delete Work Schedule. If the Work Schedule entry does not exist,\n  a response with status code `404` will be returned.\n","operationId":"deleteTeamMemberWorkSchedule","parameters":[{"description":"Team ID","example":"e80faf64-16bf-433a-bea8-a948cb0e5216","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"a04eb1d3-be35-4ad4-93f6-4414d71794fb","in":"path","name":"team_member_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Work Schedule ID","example":"45ddd8b7-0147-47a1-adc3-767bfd7316a8","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"Delete Work Schedule Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberWorkScheduleBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Work Schedule","tags":["Member Schedules"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns the details of Work Schedule with the given ID.","operationId":"getTeamMemberWorkSchedule","parameters":[{"description":"Team ID","example":"d43ec412-aa01-4026-b239-1fa0e6159d3a","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"a74e23c5-2f13-4408-8e8a-b00f3971563c","in":"path","name":"team_member_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Work Schedule ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkScheduleResponse"}}},"description":"Work Schedule Show Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberWorkScheduleBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Work Schedule","tags":["Member Schedules"]},"put":{"callbacks":{},"deprecated":false,"description":"Update the schedule data. May also update to which TeamMember it belongs to.","operationId":"updateTeamMemberWorkSchedule","parameters":[{"description":"Team ID","example":"a73692c3-d973-47fe-a6e3-498e80019383","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Team Member ID","example":"985e8142-6463-4159-bb15-ca4c183287ba","in":"path","name":"team_member_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Work Schedule ID","example":"4b206179-f731-8ab7-f19c-34e19d22ide9","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkScheduleParams"}}},"description":"Work Schedule Update Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkScheduleResponse"}}},"description":"Work Schedule Update Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberWorkScheduleBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Work Schedule","tags":["Member Schedules"]}},"/v1/workflows/{id}/steps/{step_id}/test":{"post":{"callbacks":{},"deprecated":false,"description":"Runs a single workflow step with the provided input and returns the\nresulting step execution (`status`, `input`, `output`, `errors`,\n`console_logs`).\n\nOn success, the workflows service may persist `sample_input` (triggers) or\n`sample_output` (other steps) onto the step.\n\nOAuth callers require the `workflows:update` scope.\n","operationId":"testWorkflowStep","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Step ID","in":"path","name":"step_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"input":{"description":"Input payload for the step test","type":"object","x-struct":null,"x-validate":null},"loop_index":{"description":"Optional loop iteration index when testing steps inside a loop","type":"integer","x-struct":null,"x-validate":null},"loop_item":{"description":"Optional loop iteration item when testing steps inside a loop","x-struct":null,"x-validate":null},"workflow_version_id":{"description":"Optional version context for the test run","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"required":["input"],"type":"object","x-struct":null,"x-validate":null}}},"description":"Test payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWorkflowStepResponse"}}},"description":"testWorkflowStep Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Test Workflow Step","tags":["Steps"]}},"/v1/dashboards/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a dashboard saved in the organization and returns its definition. The metrics it\nshowed are not deleted.\n\nBuilt-in dashboards (`source: whippy`) can't be deleted.\n","operationId":"deleteDashboard","parameters":[{"description":"Dashboard ID","example":"100aa859-d948-46cb-883c-ba3956818934","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDefinitionResponse"}}},"description":"Dashboard Definition Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardWriteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Dashboard","tags":["Dashboards"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns a dashboard and runs it, returning the generated data — one result entry per metric.\n\nBoth built-in and saved dashboards are retrieved this way: built-in dashboards resolve by\ntheir stable reserved IDs (prefix `00000000-0000-4000-`, discoverable via List Dashboards)\nand return `null` `created_at`/`updated_at`. Each of their result entries carries the\n`metric_id` of the corresponding built-in metric.\n\nOptionally provide an absolute date range to generate the dashboard over:\n  - `start` - range start in ISO 8601 format.\n  - `end` - range end in ISO 8601 format.\n  - `timezone` - IANA timezone the range is interpreted in (defaults to `America/Chicago`).\n\n`start` and `end` must be supplied together. When omitted, a saved dashboard uses its stored\ntimeframe; a built-in dashboard runs over the trailing four weeks.\n\nA saved dashboard runs with its `default_filters` unless the request sends `filters`, a\nJSON-encoded array of dashboard filters (same shape as `default_filters`) that replaces them\nfor this request; `[]` runs it unfiltered. A built-in dashboard has no `default_filters`, so\nit runs with the request's `filters`, if any. IDs outside the organization are ignored. The\nresponse's `filters` are the ones the run applied, and a result whose events don't carry a\nfilter's column lists it in `dashboard_filters_not_applied`. So does every result of a\nbuilt-in metric on usage or IVR data, which the filters can't reach.\n\nFor built-in time-series metrics, ranges longer than six months are bucketed by week instead\nof hour/day to keep result sizes bounded.\n","operationId":"getDashboard","parameters":[{"description":"Dashboard ID","example":"01a962ea-f6dd-4405-b13f-87918743ccdf","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"ISO 8601 datetime; start of the range the dashboard is generated over.","example":"2026-01-01T00:00:00Z","in":"query","name":"start","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"ISO 8601 datetime; end of the range the dashboard is generated over.","example":"2026-02-01T00:00:00Z","in":"query","name":"end","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"IANA timezone the date range is interpreted in.","example":"America/Chicago","in":"query","name":"timezone","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"JSON-encoded array of dashboard filters to run with instead of the saved `default_filters`; `[]` runs the dashboard unfiltered. A built-in dashboard runs with these filters, or unfiltered.","example":"[{\"column\":\"duration\",\"comparison\":\">=\",\"value\":60}]","in":"query","name":"filters","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDashboardResponse"}}},"description":"Show Dashboard Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Dashboard","tags":["Dashboards"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a dashboard saved in the organization. Only the fields sent change: `metrics`\nreplaces the whole layout when sent, `tags` and `default_filters` replace the tags and the\nsaved filters (`[]` clears them), and `null` clears `description` or `default_timeframe`. A dashboard read with Show Dashboard or List\nDashboards can be sent back as is.\n\nBuilt-in dashboards (`source: whippy`) can't be updated.\n\nA dashboard shows saved metrics in a layout (`metrics`), each at a `size`. Build the metrics\nfirst: find existing ones with List Metrics, or try a definition with Preview Metric and save\nit with Create Metric, then reference the IDs here. Built-in metrics of type `custom`\n(`source: whippy` and `type: custom` in List Metrics) can be added by their IDs too, beside the\norganization's own. They stay read-only and always run Whippy's current definition.\n\n`default_timeframe` is the relative interval the dashboard runs over when Show Dashboard is\ncalled without `start`/`end`. `default_filters` scope every chart on the dashboard, by agent,\nagent version, channel or call duration. `tags` are the IDs of the organization's `report` tags.\n\n","operationId":"updateDashboard","parameters":[{"description":"Dashboard ID","example":"1dc2e553-9fe0-4bab-ad95-39c72b44eedd","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Fields to change. Omitted fields keep their stored values; `metrics` replaces the whole layout when sent.","example":{"default_filters":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"default_timeframe":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"description":"Inbound calls by channel and AI call outcomes","metrics":[{"metric_id":"5b1d6f0e-2c7a-4c55-9e3f-7a9f1c2d4b6e","size":"large"},{"metric_id":"8e4c2a19-7f3b-4d6e-a1c5-0b9d8e7f6a52","size":"medium"}],"tags":["c3a9e1f4-6b2d-4e8a-9f7c-1d5b3a2e4c6f","f7d2b8a1-3e5c-4a9b-8d6f-2c1e9b7a5d3e"],"title":"Calls overview"},"properties":{"default_filters":{"description":"Filters the dashboard applies to every chart when Show Dashboard is called without `filters`. Replaces the saved filters when sent; `[]` clears them. At most one filter per column. `agent_id`, `agent_version_id` and `channel_id` take `in` and a list of IDs of the organization's agents, agent versions or channels. `source_type` (a call's direction) takes `in` and `INBOUND` and/or `OUTBOUND`, and `call_completion_rating` takes `in` and `Complete` and/or `Incomplete`. `duration` takes `>=` or `<=` and a whole number of seconds: calls lasting at least or at most that long, with each call's duration rounded up to the second. A chart whose events don't carry a filter's column (a message chart under a duration filter, say) is left unfiltered by it, and its result lists the column in `dashboard_filters_not_applied`.","items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_timeframe":{"description":"The relative interval the dashboard runs over when a request gives no `start`/`end`. `null` clears it, and the dashboard then runs over the trailing four weeks. On update, the fields sent change and the others keep their stored values; a dashboard without a stored timeframe needs both `interval_type` and `interval_length`.","nullable":true,"properties":{"interval_length":{"description":"Number of interval units.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"interval_type":{"description":"Interval unit.","enum":["hour","day","week","month","year"],"type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the interval is evaluated in. Defaults to `America/Chicago`.","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Dashboard description. `null` clears it.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metrics":{"description":"The dashboard's layout: the metrics it shows, in order. Each is a metric saved in the organization, or a built-in metric of type `custom` (`source: whippy` and `type: custom` in List Metrics). The same metric can appear more than once, at different sizes.","items":{"properties":{"metric_id":{"description":"ID of the metric (see `/v1/metrics`).","format":"uuid","type":"string","x-struct":null,"x-validate":null},"size":{"description":"Display size of the chart.","enum":["small","medium","large"],"type":"string","x-struct":null,"x-validate":null}},"required":["metric_id","size"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"tags":{"description":"IDs of the organization's `report` tags. Replaces the dashboard's tags when sent; `[]` clears them. The `{id, name}` objects reads return are accepted too.","items":{"oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"additionalProperties":true,"description":"A tag as reads return it: `{id, name}`.","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Dashboard title","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null}},"title":"UpdateDashboardRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Dashboard fields to change","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDefinitionResponse"}}},"description":"Dashboard Definition Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardWriteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Dashboard","tags":["Dashboards"]}},"/v1/forms/{id}/publish":{"post":{"callbacks":{},"deprecated":false,"description":"Publishes the draft: it becomes the live version fillers see. Rejects with 422 when there are no changes.","operationId":"publishForm","parameters":[{"description":"Form ID","example":"dda9a834-934c-4762-8aa5-714ae5a6ac12","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishFormParams"}}},"description":"Publish Form Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Publish Form","tags":["Forms"]}},"/v1/campaigns/whatsapp":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a WhatsApp campaign.\n\n`from` is the phone number of a WhatsApp channel. The body is limited to 1000 characters.\n\n**Draft.** Pass `status: \"draft\"`. A draft is not sent. Returns `201 Created`.\n\n**Scheduled.** Pass `status: \"scheduled\"`, `schedule_at` (ISO 8601), and `included_audience`.\nThe campaign is sent once at that time. Returns `201 Created`.\n\n**Recurring.** Pass `status: \"recurring\"`, `included_audience`, and `recurring_settings`\n(`cron_expression`, `timezone`, `start_date`, optional `end_date`). The series starts\nimmediately. Returns `201 Created` for the series parent.\n\nThere is no `to` list. Use `POST /v1/campaigns/whatsapp` for this channel.\n","operationId":"createWhatsappCampaign","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappCampaignParams"}}},"description":"Create WhatsApp Campaign Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraftCampaignResponse"}}},"description":"Campaign"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentCreateDraftErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create WhatsApp Campaign","tags":["WhatsApp"]}},"/v1/agent_test_runs/{id}/fix_proposals":{"post":{"callbacks":{},"deprecated":false,"description":"Queues a model call that proposes edits to the agent's Draft prompt so the failing test passes.\nPoll `GET /v1/agent_test_fix_proposals/{id}` until the status leaves `generating`. Returns the\nopen proposal when the run already has one. A failing reproduction of a flagged call requests a\nproposal on its own.\n","operationId":"requestAgentTestFixProposal","parameters":[{"description":"Agent test run ID","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposalResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Fix proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Propose a prompt fix from a failing run","tags":["Test Runs"]}},"/v1/domains/{id}/retry":{"post":{"callbacks":{},"deprecated":false,"description":"Restarts setup for every purpose whose `setupState` is `failed`. Returns `409 nothing_to_retry` when none failed.","operationId":"retryDomainSetup","parameters":[{"description":"Domain ID","example":"6a3f0c1e-2b4d-4e8f-9a7b-1c2d3e4f5a6b","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}},"description":"Domain Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Conflict"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Retry Domain Setup","tags":["Domains"]}},"/v1/llms/{id}/draft":{"delete":{"callbacks":{},"deprecated":false,"description":"Discards staged LLM changes by resetting the draft workspace to the live version. This is a safe no-op when no staged changes exist and never changes the live version.","operationId":"discardLLMDraft","parameters":[{"description":"LLM ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Discard LLM Draft Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Discard LLM Draft","tags":["LLMs"]}},"/v1/agent_tests/search":{"post":{"callbacks":{},"deprecated":false,"description":"Same results as listing agent tests, with the filter and sort criteria sent as a JSON body\ninstead of JSON-encoded query parameters. Useful when the criteria are too long for a URL.\n","operationId":"searchAgentTests","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"filter":{"items":{"properties":{"column":{"type":"string","x-struct":null,"x-validate":null},"comparison":{"enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["agent_test","created_by","draft_version","updated_by"],"type":"string","x-struct":null,"x-validate":null},"value":{"anyOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"type":"object","x-struct":null,"x-validate":null},{"items":{"anyOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"type":"object","x-struct":null,"x-validate":null}],"nullable":true,"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"description":"Filter comparison value. Shape depends on the operator; matches the private v2 search validators (scalar string, number, boolean, or null; list for `in` / `not_in`; or object).","nullable":true,"x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_archived":{"description":"Include archived tests. Lists hide them by default.","type":"boolean","x-struct":null,"x-validate":null},"lifecycle":{"description":"never_published, published, and unpublished_changes are separate conditions.\nA test can match published and unpublished_changes at the same time.\n","enum":["never_published","published","unpublished_changes"],"type":"string","x-struct":null,"x-validate":null},"limit":{"type":"integer","x-struct":null,"x-validate":null},"offset":{"type":"integer","x-struct":null,"x-validate":null},"sort":{"items":{"properties":{"column":{"type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["agent_test","created_by","draft_version","updated_by"],"type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}}},"description":"Search filters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":[{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestScenariosResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search agent tests","tags":["Tests"]}},"/v1/audit_logs/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches audit logs for the authenticated organization. Filter by action,\nactor, timestamp, associated resources, or supported related resources.\nResults default to newest first.\n\nUse `limit` and `offset` for pagination. The maximum limit is 100.\n","operationId":"searchAuditLogs","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAuditLogSearchParams"}}},"description":"Audit Log Search Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAuditLogSearchResponse"}}},"description":"Audit Log Search Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Audit Logs","tags":["Audit Logs"]}},"/v1/knowledge_bases/{id}/publish":{"post":{"callbacks":{},"deprecated":false,"description":"Publishes the draft version of a knowledge base, promoting it to the current published version.\nEmbedding generation starts asynchronously; check `embedding_status` on the current version.\n","operationId":"publishKnowledgeBase","parameters":[{"description":"Knowledge Base ID","example":"77d446da-9dab-4390-9332-9655652113e5","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseResponse"}}},"description":"Publish Knowledge Base Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Knowledge Base ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseNotFoundErrorResponse"}}},"description":"Knowledge Base Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Publish Knowledge Base","tags":["Knowledge Bases"]}},"/v1/knowledge_bases/versions/{version_id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a knowledge base version that belongs to the authenticated organization.","operationId":"getKnowledgeBaseVersion","parameters":[{"description":"Knowledge Base Version ID","example":"3d440524-40a9-4eee-8293-b2f11f2ad283","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowKnowledgeBaseVersionResponse"}}},"description":"Show Knowledge Base Version Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseBadRequestErrorResponse"}}},"description":"Invalid Knowledge Base Version ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseVersionNotFoundErrorResponse"}}},"description":"Knowledge Base Version Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Knowledge Base Version","tags":["Knowledge Bases"]}},"/v1/metrics/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a metric saved in the organization and removes it from every dashboard that shows\nit. Returns the deleted metric's definition.\n\nBuilt-in metrics (`source: whippy`) can't be deleted.\n","operationId":"deleteMetric","parameters":[{"description":"Metric ID","example":"94cdf575-df50-441a-8bae-6562c205bd1e","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricDefinitionResponse"}}},"description":"Metric Definition Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricWriteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Metric","tags":["Metrics"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns a metric and runs it, returning the generated data.\n\nBoth built-in and saved metrics are retrieved this way: built-in metrics resolve by their\nstable reserved IDs (prefix `00000000-0000-4000-`, discoverable via List Metrics) and return\n`null` `created_at`/`updated_at`.\n\nMetrics have no stored timeframe, so the window is determined by an optional absolute date range:\n  - `start` - range start in ISO 8601 format.\n  - `end` - range end in ISO 8601 format.\n  - `timezone` - IANA timezone the range is interpreted in (defaults to `America/Chicago`).\n\n`start` and `end` must be supplied together. When omitted, the metric runs over the trailing\nfour weeks.\n\nFor built-in time-series metrics, ranges longer than six months are bucketed by week instead\nof hour/day to keep result sizes bounded.\n","operationId":"getMetric","parameters":[{"description":"Metric ID","example":"d91152e1-d1e2-41e6-a781-60452c81659b","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"ISO 8601 datetime; start of the range the metric is generated over.","example":"2026-01-01T00:00:00Z","in":"query","name":"start","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"ISO 8601 datetime; end of the range the metric is generated over.","example":"2026-02-01T00:00:00Z","in":"query","name":"end","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"IANA timezone the date range is interpreted in.","example":"America/Chicago","in":"query","name":"timezone","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowMetricResponse"}}},"description":"Show Metric Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Metric","tags":["Metrics"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a metric saved in the organization. Only the fields sent change; `events` is\nreplaced as a whole when sent. A metric read with Show Metric or List Metrics can be sent\nback as is.\n\nBuilt-in metrics (`source: whippy`) can't be updated.\n\nA metric is a chart (`chart`) over one or more events (`events`). Build events with List\nMetric Events and List Metric Event Fields:\n\n- `type` and `name` come from List Metric Events, which also lists the charts each supports.\n- `filter`, `group_by` and `aggregate` use the fields List Metric Event Fields returns.\n- `non_custom` events (and a metric `type` of `non_custom`) name a report; only the reports\n  List Metric Events lists are accepted, with the filters and group-by fields it describes.\n\nRules that span events: linked metrics (`linked: true`) have exactly two events, one\n`whippy_event` and one `custom_event`, with different `rank`s; funnel steps are ordered by\n`rank`; heatmaps take no `aggregate`; bar, column and line charts group by at most one field;\n`group_colors` and event `color` take `#RRGGBB` hex colors.\n\n","operationId":"updateMetric","parameters":[{"description":"Metric ID","example":"8e417bb0-8580-4746-a0f4-e018f87dafbf","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Fields to change. Omitted fields keep their stored values.","example":{"chart":"bar","events":[{"filter":[{"column":"duration","comparison":">=","field_type":"integer","filter_type":"seconds","value":30}],"group_by":[{"field":"channel_id"}],"name":"call.analyzed","type":"whippy_event"}],"title":"AI calls by channel","type":"custom"},"properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null}},"title":"UpdateMetricRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Metric fields to change","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricDefinitionResponse"}}},"description":"Metric Definition Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricWriteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Metric","tags":["Metrics"]}},"/v1/agents/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes an agent that belongs to the authenticated organization.","operationId":"deleteAgent","parameters":[{"description":"Agent ID","example":"233fba79-4a23-4825-adb9-a44a146fc8ce","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Delete Agent Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Agent Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Agent","tags":["Agents"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific agent.","operationId":"getAgent","parameters":[{"description":"Agent ID","example":"31decc89-3221-473d-baf5-a0e8cfe40bc0","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Show Agent Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Agent","tags":["Agents"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates an agent that belongs to the authenticated organization.","operationId":"updateAgent","parameters":[{"description":"Agent ID","example":"72f8e9f4-479d-4d41-94ba-94e219f604e4","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentParams"}}},"description":"Update Agent Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Update Agent Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Agent Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Agent","tags":["Agents"]}},"/v1/custom_events/bulk":{"post":{"callbacks":{},"deprecated":false,"description":"Creates multiple custom events in a single request.\nValid events are processed together for better performance - they are then returned in the `successful` list in the response.\nEvents that were parsed as invalid are returned separately in the response - in the `failed` list in the response.\nIf there are bottlenecks in processing the events due to unforeseen circumstances, they will be queued for async processing.\nThe queued events will be returned in the `queued` list in the response.\n\nReturns 201 when all events are successfully created.\nReturns 202 when all events are queued for async processing.\nReturns 201 for mixed results (some successful, some queued, or some failed).\n\nReturning mixed results can happen if during the bulk processing of events, some events are successfully processed,\nsome are queued for async processing.\n\nIf there are invalid events in the payload, the whole payload wouldn't be processed and a 422 response is expected.\n\nTherefore, the `failed` list in the response should always be empty, but it is kept there for completeness.\n","operationId":"createBulkCustomEvents","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateCustomEventParams"}}},"description":"Bulk Create Custom Events Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateCustomEventResponse"}}},"description":"Custom Events"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateCustomEventResponse"}}},"description":"Accepted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomEventBulkUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Custom Events in Bulk","tags":["Events"]}},"/v1/users/search":{"post":{"callbacks":{},"deprecated":false,"description":"Search Users in the current organization with applicable filters.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` value is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) is also supported. Both methods return a\n`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when\n`next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include them\non every request.\n\nParams/Filters for searching users are:\n- `name`    -\tsearch by name, case insensitive, partial match\n- `email`\t\t-\tsearch by email, case insensitive, complete match\n- `phone`\t\t-\tsearch by phone number, complete match\n- `role`\t\t-\tsearch by role, case insensitive, complete match\n- `state`\t\t-\tsearch by state, case insensitive, complete match\n- `limit`\t\t-\tsets the number of records to return\n- `cursor`\t-\tcursor for keyset pagination (use the next_cursor from the previous response)\n- `offset`\t-\tsets the number of records to skip (cannot be combined with cursor)\n","operationId":"searchUsers","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchUsersParams"}}},"description":"Search User Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserIndexResponse"}}},"description":"User Index Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Users","tags":["Users"]}},"/v1/forms/responses":{"get":{"callbacks":{},"deprecated":false,"description":"Retrieves a list of form responses with filtering and pagination","operationId":"listFormResponses","parameters":[{"description":"Filter responses by form ID","example":"278ec409-ebfa-4ae2-bb9d-613aedeca4cb","in":"query","name":"form_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Filter responses by form version number","example":2,"in":"query","name":"version_number","required":false,"schema":{"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Filter responses submitted after this date","example":"2024-01-01T00:00:00Z","in":"query","name":"submitted_at","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"Filter responses by completion status","example":true,"in":"query","name":"completed","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"Number of records to skip for pagination","example":20,"in":"query","name":"offset","required":false,"schema":{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of records to return (max 100)","example":10,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponsesResponse"}}},"description":"Form Responses List Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Form Responses","tags":["Responses"]}},"/v1/custom_events":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a custom event.\n\nReturns 201 when the event is successfully created.\nReturns 202 when the event is queued for async processing.\n","operationId":"createCustomEvent","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomEventParams"}}},"description":"Create Custom Event Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomEventResponse"}}},"description":"Custom Event"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuedCustomEventResponse"}}},"description":"Accepted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomEventCreateUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Custom Event","tags":["Events"]}},"/v1/custom_objects/{custom_data_type_id}/search":{"post":{"callbacks":{},"deprecated":false,"description":"Search Custom Object Records based on the provided filters.\n\nEach filter uses `key`, `comparison`, and `value`. Use `=` for equality:\n\n```json\n{\n  \"filters\": [\n    {\"key\": \"talent_id\", \"comparison\": \"=\", \"value\": 206837201}\n  ]\n}\n```\n\n`==` is also accepted as a compatibility alias for `=`. The remaining operators are\n`!=`, `>`, `>=`, `<`, `<=`, `in`, and `not in`. The `in` and `not in` operators\nrequire an array value; all other operators require a scalar value.\n\nResults are ordered by `inserted_at` ascending, then `id` ascending (oldest first).\n\nSupports two pagination methods, supplied in the request body alongside `filters`:\n* **Cursor-based** (recommended): pass `cursor` (with `limit`) to page forward. The response\n  includes a `metadata` object whose `next_cursor` is `null` on the last page. Cursor\n  pagination is triggered automatically when a `cursor` value is provided; `cursor` and\n  `offset` cannot be combined. The cursor encodes only the sort position (`inserted_at`,\n  `id`) — resend the same `filters` on every page.\n* **Offset-based** (deprecated): pass `offset` (with `limit`).\n","operationId":"searchCustomObject","parameters":[{"description":"Custom Object ID","example":"951e1afc-6040-4708-a51d-a59df6a3c118","in":"path","name":"custom_data_type_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchCustomObjectRequestParams"}}},"description":"searchCustomObjectPublic Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomObjectRecordResponse"}}},"description":"searchCustomObject Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchCustomObjectInvalidParamsResponse"}}},"description":"Invalid parameters"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Records","tags":["Records"]}},"/v1/users/{user_id}":{"patch":{"callbacks":{},"deprecated":false,"description":"Updates one or more attributes of the specified user. \nThis endpoint supports partial updates. For example, to enable or disable a user, pass the `state` field \nin the request body with the value `enabled` or `disabled`.\nOnly the provided fields will be updated; all other fields will remain unchanged.\nThe operation is idempotent: sending the same request multiple times will produce the same result.\nCurrently, only the `state` attribute is supported.\n","operationId":"patchUserUser","parameters":[{"description":"User ID","example":6,"in":"path","name":"user_id","required":true,"schema":{"type":"integer","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchUserParams"}}},"description":"Patch User Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}},"description":"Patch User Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedAssigneeErrorResponse"}}},"description":"Invalid Assignee"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Patch User","tags":["Users"]}},"/v1/custom_objects/archive":{"post":{"callbacks":{},"deprecated":false,"description":"Archives a Custom Object based on the provided filters.\n","operationId":"archiveCustomObject","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveCustomObjectParams"}}},"description":"archiveCustomObject Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveCustomObjectResponse"}}},"description":"archiveCustomObject Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveCustomObjectInvalidParamsResponse"}}},"description":"Invalid parameters"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Archive Custom Object","tags":["Objects"]}},"/v1/contacts/merge_contacts":{"post":{"callbacks":{},"deprecated":false,"description":"Merges two contacts into one.\n\n* Parameters (there are two ways to identify the contacts to be merged):\n  * By Contact IDs:\n    * `from_contact_id` - the ID of the contact to be merged into the main contact.\n    * `to_contact_id` - the ID of the contact in which the merge will be performed.\n    * `update_name` - whether to update the name of the TO contact with the name of the FROM contact. Default is false.\n  * By Contact Phones:\n    * `from_contact_phone` - the phone of the contact to be merged into the main contact.\n    * `to_contact_phone` - the phone of the contact in which the merge will be performed.\n    * `update_name` - whether to update the name of the TO contact with the name of the FROM contact. Default is false.\n\n* Once merged, the `from_contact` will have:\n  * its `email` and `phone` fields set to `null`\n  * its `state` value set to `merged`\n  * will no longer be accessible/visible/usable (as its information will now belong to the `to_contact`).\n\n* The `to_contact` will have:\n  * its `email` and `phone` fields set to the values of the `from_contact` if they are not `null`.\n    Otherwise, it will keep its current values.\n  * if `update_name` parameter is set to `true`, its `name`, `first_name`, `last_name` fields will inherit the `from_contact`'s values.\n\n* Many records in related tables are inherited, merged, overwritten, deleted or updated based during the merge process.\n  * Conversations, Messages, Message Attachments, Contact Events, Conversation Events:\n    * `email` conversations are inherited by the `to_contact`.\n    * `phone` conversations:\n      * are inherited by the `to_contact` for channels it doesn't already have conversations with.\n      * have their messages and attachments transferred to the corresponding existing conversation\n        for every channel it already has conversation on.\n    * `whatsapp` conversations follow the same rules as `phone` conversations.\n    * All Scheduled Message Jobs for the inherited messages are deleted.\n    * All Contact Events are inherited by the `to_contact`.\n    * All Conversation Events are inherited by the `to_contact` (and shown in the respective conversation).\n\n  * Communication Preference:\n    * if `from_contact` doesn't have preferences, `to_contact`'s preferences remain unchanged.\n    * if `from_contact` has preferences, `to_contact` loses its current ones and inherits `from_contact`'s.\n\n  * Conversation Agent Session:\n    * All currently existing agent sessions `to_contact` has remain unchanged.\n    * All new ones are inherited by `to_contact`'s respective conversations.\n\n  * Contact Integration:\n    * All are inherited by `to_contact`.\n\n  * Contact Tag:\n    * Any currently existing tags `tocontact` has remain unchanged.\n    * All new tags are inherited by `to_contact`.\n\n  * Note:\n    * Any currently existing notes `to_contact` has remain unchanged.\n    * All new notes are inherited by `to_contact`.\n\n  * Any existing data related to Sequence Runs, Steps, Campaigns that `from_contact` has\n    is updated to point to the `to_contact` respectively (as it's the inheritor of `from_contact`).\n\n  * No other information(data) is moved/merged/inherited by the `to_contact`.\n","operationId":"publicV1mergeContacts","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeContactsParamsV1"}}},"description":"Merge Contacts Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeContactsResponseV1"}}},"description":"Merge Contacts Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMergeContactsUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Merge Contacts","tags":["Contacts"]}},"/v1/agent_tests/{id}/trace":{"get":{"callbacks":{},"deprecated":false,"description":"The regression trace of one test: its source, every run, fix, and publish that counted it, in\ntime order. `steps` condenses it into the improvement loop: reproduced, fix_proposed,\nfix_applied, draft_passing, published, live_passing.\n","operationId":"getAgentTestTrace","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"The regression trace of one test: its source, every run, fix, and publish that counted it, in\ntime order. `steps` condenses it into the improvement loop: reproduced, fix_proposed,\nfix_applied, draft_passing, published, live_passing.\n","properties":{"data":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"events":{"items":{"properties":{"at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"detail":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"ref":{"additionalProperties":true,"type":"object","x-struct":null,"x-validate":null},"title":{"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["flagged","created","run","fix_proposed","fix_applied","fix_dismissed","published"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"name":{"type":"string","x-struct":null,"x-validate":null},"proposals":{"items":{"description":"A proposed change to the agent's Draft prompt, written from a failing run. `generating` while\nthe model writes it, then `proposed` or `failed`. `applied` once written to Draft;\n`verification_run_id` is the run of the same test on Draft queued when it was applied.\n","properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"applied_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"applied_llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"edits":{"description":"Applied in order. `find` must match the prompt exactly once; `append` adds to the end.","items":{"properties":{"append":{"type":"string","x-struct":null,"x-validate":null},"find":{"type":"string","x-struct":null,"x-validate":null},"replace":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"error":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"original_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"proposed_prompt":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["generating","proposed","failed","applied","dismissed"],"type":"string","x-struct":null,"x-validate":null},"summary":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"verification_run_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"title":"AgentTestFixProposal","type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source":{"properties":{"call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"feedback":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation","manual"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"steps":{"items":{"properties":{"at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"key":{"enum":["reproduced","fix_proposed","fix_applied","draft_passing","published","live_passing"],"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["done","current","failed","pending","skipped"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestTraceResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Trace"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Regression trace of an agent test","tags":["Tests"]}},"/v1/llms":{"post":{"callbacks":{},"deprecated":false,"description":"Creates an LLM for the authenticated organization.","operationId":"createLLM","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLLMParams"}}},"description":"Create LLM Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Create LLM Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create LLM","tags":["LLMs"]}},"/v1/messaging/fax":{"post":{"callbacks":{},"deprecated":false,"description":"Sends a fax using the fax channel that matches the `from` phone number.\n\nProvide **`body`** (plain text, converted to a PDF at send time), **`attachments`** (HTTPS URLs to\nPDF/TIFF or similar documents), or both. One of `body` or `attachments` is required. When both are\npresent, the body PDF is sent first, then each attachment in order.\n\nEach `attachments` URL must use **HTTPS**. Whippy downloads your files, stores copies in your\norganization storage, and sends the fax from those Whippy-hosted URLs (same model as SMS/MMS\nattachments). Scheduled sends re-host attachments when the request is accepted; body-only faxes\nare composed when the scheduled job runs.\n\nIf there is no contact for `to`, a new contact is created along with a fax conversation on the `from` channel.\n\nOptional `schedule_at` queues the fax for a future time (ISO 8601). Optional `conversation_status`\ncan set the conversation to `automated`, `open`, or `closed` when sending.\n\n**Reading inbound and outbound fax:** Use the same Conversation APIs as for SMS—list or show a conversation\nand its messages to view fax history; there is no separate fax-only read API.\n","operationId":"sendFax","parameters":[],"requestBody":{"content":{"application/json":{"examples":{"Attachments only":{"summary":"HTTPS document URLs (re-hosted to Whippy storage)","value":{"attachments":["https://example.com/documents/letter.pdf"],"from":"+14155552672","to":"+14155552671"}},"Body and attachments":{"summary":"Body PDF first, then re-hosted attachment URLs","value":{"attachments":["https://example.com/documents/letter.pdf"],"body":"Cover letter — see attached document.","from":"+14155552672","to":"+14155552671"}},"Body only":{"summary":"Text body (server-generated PDF at send)","value":{"body":"Please call us back at your earliest convenience.","from":"+14155552672","to":"+14155552671"}}},"schema":{"$ref":"#/components/schemas/SendFaxParams"}}},"description":"Send fax params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendFaxResponse"}}},"description":"Fax message"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Send Fax","tags":["Messages"]}},"/v1/teams":{"get":{"callbacks":{},"deprecated":false,"description":"List Teams in the current organization with possibility to\nfilter by `name` and `assignment_method`.\n\nTeams are returned in a defined, stable order — oldest team first\n(`inserted_at` ascending, `id` as tiebreaker) — on both pagination methods.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) remains supported. Cursor responses include a\n`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when\n`next_cursor` is `null`, there are no more results. A malformed `cursor` (bad encoding or wrong shape)\nreturns `422`; a well-formed cursor carrying a value that can't be used as a position falls back to the\nfirst page with `metadata.cursor_reset` set to `true` (a stale cursor whose row no longer exists still\npaginates normally). Filters are not encoded in the cursor, so include them on every request.\n","operationId":"getTeams","parameters":[{"description":"name","example":"Name-1","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"assignment_method","example":"round_robin","in":"query","name":"assignment_method","required":false,"schema":{"default":"manual","type":"string","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexTeamResponse"}}},"description":"Team Index Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Teams","tags":["Teams"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a Team with the given parameters.","operationId":"createTeam","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamParams"}}},"description":"Team Create Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamResponse"}}},"description":"Team Create Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Team","tags":["Teams"]}},"/v1/links/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Soft-deletes the link and removes its short links. Repeating the delete returns 404.","operationId":"deleteLink","parameters":[{"description":"Link ID","example":"dd840673-d544-44b9-99f1-f6438471d2f3","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteLink"}}},"description":"Delete Link Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInsufficientScopeErrorResponse"}}},"description":"Insufficient Scope Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkNotFoundErrorResponse"}}},"description":"Not Found Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete link","tags":["Links"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns a tracked link by ID. Another organization's link and a deleted link are both not found.","operationId":"getLink","parameters":[{"description":"Link ID","example":"dd840673-d544-44b9-99f1-f6438471d2f3","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLink"}}},"description":"Get Link Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInsufficientScopeErrorResponse"}}},"description":"Insufficient Scope Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkNotFoundErrorResponse"}}},"description":"Not Found Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get link","tags":["Links"]},"put":{"callbacks":{},"deprecated":false,"description":"Partial update. Omitted fields stay. `null` clears nullable fields (`description`, UTM fields,\n`domain_id`, `custom_card_description`). `url` cannot be changed.\n","operationId":"updateLink","parameters":[{"description":"Link ID","example":"dd840673-d544-44b9-99f1-f6438471d2f3","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLinkParams"}}},"description":"Update Link Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLink"}}},"description":"Update Link Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInsufficientScopeErrorResponse"}}},"description":"Insufficient Scope Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkNotFoundErrorResponse"}}},"description":"Not Found Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update link","tags":["Links"]}},"/v1/custom_objects/{custom_object_key}/properties/{property_key}/distinct_values":{"get":{"callbacks":{},"deprecated":false,"description":"Lists distinct values for a property across active records of a custom object in the authenticated organization.\n\nUse this endpoint to discover valid values before building contact segments or other filters that reference custom object data. Values are sorted alphabetically, null values are excluded, and `search` performs a case-insensitive contains match.\n\nOAuth callers require the `custom_data:read` scope (and matching workspace permission). API key callers are authorized by organization membership.\n","operationId":"listDistinctCustomObjectPropertyValues","parameters":[{"description":"Custom Object Key","example":"placement_finish_details","in":"path","name":"custom_object_key","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Custom Property Key","example":"text_1","in":"path","name":"property_key","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of values to return.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of values to skip.","in":"query","name":"offset","required":false,"schema":{"default":0,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Case-insensitive substring the returned values must contain.","in":"query","name":"search","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDistinctCustomObjectPropertyValuesResponse"}}},"description":"Distinct property values"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDistinctCustomObjectPropertyValuesUnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Distinct Custom Object Property Values","tags":["Properties"]}},"/v1/tools":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a tool for the authenticated organization.","operationId":"createTool","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateToolParams"}}},"description":"Create Tool Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowToolResponse"}}},"description":"Create Tool Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Tool","tags":["Tools"]}},"/v1/agent_tests":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a page of saved agent tests for the organization. Use `limit` and `offset` to page,\n`lifecycle` to narrow by publication state, `filter` and `sort` for JSON-encoded criteria,\nand `include_archived` to include archived tests, which lists hide by default.\n","operationId":"listAgentTests","parameters":[{"description":"Page size","in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Page offset","in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"JSON-encoded filter array (see schema example)","in":"query","name":"filter","required":false,"schema":{"description":"JSON-encoded array of filter clauses (`resource`, `column`, `comparison`, `value`). Example: `[{\"resource\":\"agent_test\",\"column\":\"id\",\"comparison\":\"==\",\"value\":\"<uuid>\"}]`","example":"[{\"resource\":\"agent_test\",\"column\":\"name\",\"comparison\":\"ilike\",\"value\":\"billing\"}]","type":"string","x-struct":null,"x-validate":null}},{"description":"JSON-encoded sort array (see schema example)","in":"query","name":"sort","required":false,"schema":{"description":"JSON-encoded array of sort clauses (`resource`, `column`, `order`). Example: `[{\"resource\":\"agent_test\",\"column\":\"inserted_at\",\"order\":\"desc\"}]`","example":"[{\"resource\":\"agent_test\",\"column\":\"inserted_at\",\"order\":\"desc\"}]","type":"string","x-struct":null,"x-validate":null}},{"description":"Lifecycle filter","in":"query","name":"lifecycle","required":false,"schema":{"description":"never_published, published, and unpublished_changes are separate conditions.\nA test can match published and unpublished_changes at the same time.\n","enum":["never_published","published","unpublished_changes"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Include archived tests","in":"query","name":"include_archived","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":[{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestScenariosResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List agent tests","tags":["Tests"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a saved test and an editable draft. The definition may be incomplete.\nUse initialize_from to copy suggested content from a call or AI chat session.\nCreation does not execute the test. The body may be wrapped in agent_test.\n","operationId":"createAgentTest","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"description":"Creates a saved test and an editable draft. The definition may be incomplete.\nDo not send definition fields together with initialize_from. Creation from initialize_from queues one reproduction run unless reproduce is false; otherwise creation does not execute the test.\nThe same object may be wrapped in agent_test.\n","properties":{"agent_ids":{"description":"Omission preserves links. An empty list clears them. Null is invalid.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"nullable":false,"type":"array","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft":{"description":"Optional nested definition. Top-level definition fields are equivalent.","properties":{"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"maximum_turns":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_policy":{"description":"Which agent configuration this definition runs. This is not the test's draft or published state.","properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"initialize_from":{"description":"Copies suggested content into the saved draft. Supplying sources does not initialize content.\nWhen sources is omitted, the import source is recorded as evidence.\n","properties":{"feedback":{"description":"What the submitter said about the source conversation. Send skipped true to save\nwithout a description. Send skipped false with what_went_wrong to feed generation.\n","properties":{"skipped":{"type":"boolean","x-struct":null,"x-validate":null},"what_went_wrong":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"reproduce":{"default":true,"description":"Queue one run of the new draft against the agent and LLM versions that handled the source. It should fail; a pass means the scenario does not capture the problem yet.","type":"boolean","x-struct":null,"x-validate":null},"test_type":{"default":"simulation","enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"turn_index":{"description":"Required for next_reply. One-based user turn.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maximum_turns":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"provenance":{"nullable":true,"type":"object","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_policy":{"description":"Which agent configuration this definition runs. This is not the test's draft or published state.","properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"CreateTestScenarioRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Create agent test","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Created agent test"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"oneOf":[{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null},{"example":{"errors":[{"attachment_status":{"transcript":"pending"},"code":"attachments_pending","description":"Call attachments are not ready yet.","redaction_status":"redacted","source_trust":"production_call"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"attachment_status":{"type":"object","x-struct":null,"x-validate":null},"code":{"example":"attachments_pending","type":"string","x-struct":null,"x-validate":null},"description":{"example":"Call attachments are not ready yet.","type":"string","x-struct":null,"x-validate":null},"redaction_status":{"example":"redacted","type":"string","x-struct":null,"x-validate":null},"source_trust":{"example":"production_call","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestAttachmentsPendingError","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create agent test","tags":["Tests"]}},"/v1/channels/{id}/users":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a list of Users in given Organization with access to the Channel(Location).\nEach entry is an object containing only the `ID` and `Name` of the User.\nQuery filters `limit` and `offset` can be used to paginate the results.\n","operationId":"getChannelUsers","parameters":[{"description":"Channel ID","example":"27ad8eca-e57b-45bd-9da7-6b577982c563","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListChannelUsersResponse"}}},"description":"Channel"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Channel Users","tags":["Channels"]},"post":{"callbacks":{},"deprecated":false,"description":"Adds a user to a channel","operationId":"addUserToChannel","parameters":[{"description":"Channel ID","example":"fb2704a3-5e87-417d-895c-f16a346ce750","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"User ID","example":123,"type":"integer","x-struct":null,"x-validate":null}},"required":["user_id"],"type":"object","x-struct":null,"x-validate":null}}},"description":"User to add to channel","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserChannelResponse"}}},"description":"User Channel"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Add User to Channel","tags":["Channels"]}},"/v1/sequences/{id}/sequence_runs":{"get":{"callbacks":{},"deprecated":false,"description":"Lists sequence runs based on filters.\n\nCommon filters are limit and offset. If limit and offset are not provided it will default to 50 and 0 respectively.\n\nReceives filters as query string parameters.\n\nThe additional filter options are:\n  - `phone` - will return sequence runs where the contact's phone number match the phone provided. Note that we prove the numbers with no spaces.\n\n  - `status` - will return sequence runs where the status of the sequence run matches the status provided.\n\n  - `channel_id` - will return sequence runs where the channel ID of the step contact belonging to the sequence run matches the channel ID provided.\n\n  - `before` - will return sequence runs that have a start time before or equal to the provided date. The date provided must be in a ISO8601 format.\n\n  - `after` - will return sequence runs that have a start time after or equal to the provided date. The date provided must be in a ISO8601 format.\n\nThe filters can be grouped, which allows users to get, for instance, all sequence runs\nthat match a specific number, before or after some date.\n","operationId":"getSequenceRuns","parameters":[{"description":"Sequence ID","example":"c4e47538-e838-4fc4-b518-4899acb754c0","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"This phone number of the contact that we're interested in.\n","example":"+14244019001","in":"query","name":"phone","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"The status of the sequence runs.\n","in":"query","name":"status","required":false,"schema":{"description":"The status of the sequence runs.","enum":["active","finished"],"example":"finished","type":"string","x-struct":null,"x-validate":null}},{"description":"The channel id of the Step Contact that belongs to the sequence run.\n","example":"5f9f2acf-5435-485c-8c74-b1974fc7f558","in":"query","name":"channel_id","required":false,"schema":{"example":"8f23a3b3-8fdc-40a4-b37d-1aeaeb671aae","format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"This field helps us query the sequence runs based off its date. If you provide a date here then\nthe results returned would be the sequence runs with a start time that happened before or at the same time \nas the date time provided.\n","example":"2022-11-03T00:00:00Z","in":"query","name":"before","required":false,"schema":{"example":"2023-09-27T14:36:28Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"This field helps us query the sequence runs based off its date. If you provide a date here then\nthe results returned would be the sequence runs with a start time that happened after or at the same time \nas the date time provided.\n","example":"2022-12-03T00:00:00Z","in":"query","name":"after","required":false,"schema":{"example":"2023-10-27T14:36:28Z","format":"date-time","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSequenceRunsResponse"}}},"description":"Sequence Runs"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexSequenceRunBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceRunUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Sequence Runs","tags":["Runs"]}},"/v1/agents/{id}/call":{"post":{"callbacks":{},"deprecated":false,"description":"Starts an agent call.\n\n**Agent must be active and use an active LLM, and channel must support agent calls, i.e. support AI agents.**\n\nBy default, calls respect quiet hours restrictions (weekdays 10 PM - 7 AM, no calls on weekends) and business hours,\ncalculated using the channel's timezone (defaults to \"America/Los_Angeles\"). When restrictions apply, calls are\nautomatically scheduled for the next available time. Use the `bypass_quiet_hours` parameter to bypass these restrictions,\nbut be careful as this may result in contacting people at inappropriate times.\n\nAccepts an optional `schedule_at` parameter to schedule the call instead of placing it immediately, but attention, even when scheduled\nquiet hours restrictions still apply, unless the `bypass_quiet_hours` parameter is used. Also, the schedule call might be delayed\ndepending on the organization's ongoing call volume, although it's prioritized over non scheduled calls.\n\nAccepted responses include `data.id`, the stable ID that the eventual call record will use when async processing creates it.\nReading that call by ID can return not found until the worker persists the record. **Acceptance does not guarantee downstream\ncall creation succeeds**.\n","operationId":"startAgentCall","parameters":[{"description":"ID of the agent to be used in the call.\n\n**Agent must:**\n  * Be active.\n  * Use an active LLM.\n","example":"43afac85-a3a8-47ec-a2cc-f45584698f10","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartAgentCallParams"}}},"description":"Start Agent Call Request","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartAgentCallResponse"}}},"description":"Start Agent Call Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Start Agent Call","tags":["Agents"]}},"/v1/agents/{agent_id}/tests/search":{"post":{"callbacks":{},"deprecated":false,"description":"Same results as listing agent tests, with the filter and sort criteria sent as a JSON body\ninstead of JSON-encoded query parameters. Useful when the criteria are too long for a URL.\n\nLimited to the tests of the agent in the path.","operationId":"searchAgentTestsForAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"filter":{"items":{"properties":{"column":{"type":"string","x-struct":null,"x-validate":null},"comparison":{"enum":["==","!=","<",">","<=",">=","in","like","ilike","not_in","contains","not_contains","is_contained","has_any","has_none","not_like","not_ilike","ilike_any","not_ilike_all","between","in_radius","not_in_radius"],"type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["agent_test","created_by","draft_version","updated_by"],"type":"string","x-struct":null,"x-validate":null},"value":{"anyOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"type":"object","x-struct":null,"x-validate":null},{"items":{"anyOf":[{"type":"string","x-struct":null,"x-validate":null},{"type":"number","x-struct":null,"x-validate":null},{"type":"boolean","x-struct":null,"x-validate":null},{"type":"object","x-struct":null,"x-validate":null}],"nullable":true,"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}],"description":"Filter comparison value. Shape depends on the operator; matches the private v2 search validators (scalar string, number, boolean, or null; list for `in` / `not_in`; or object).","nullable":true,"x-struct":null,"x-validate":null}},"required":["resource","column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"include_archived":{"description":"Include archived tests. Lists hide them by default.","type":"boolean","x-struct":null,"x-validate":null},"lifecycle":{"description":"never_published, published, and unpublished_changes are separate conditions.\nA test can match published and unpublished_changes at the same time.\n","enum":["never_published","published","unpublished_changes"],"type":"string","x-struct":null,"x-validate":null},"limit":{"type":"integer","x-struct":null,"x-validate":null},"offset":{"type":"integer","x-struct":null,"x-validate":null},"sort":{"items":{"properties":{"column":{"type":"string","x-struct":null,"x-validate":null},"order":{"enum":["asc","desc"],"type":"string","x-struct":null,"x-validate":null},"resource":{"enum":["agent_test","created_by","draft_version","updated_by"],"type":"string","x-struct":null,"x-validate":null}},"required":["resource","column","order"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}}},"description":"Search filters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":[{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}],"total":1},"properties":{"data":{"items":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"total":{"example":1,"type":"integer","x-struct":null,"x-validate":null}},"required":["data","total"],"title":"ListTestScenariosResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search agent tests","tags":["Tests"]}},"/v1/contacts/communication_preferences":{"get":{"callbacks":{},"deprecated":false,"description":"Lists the communication preferences of an organization.","operationId":"getContactCommunicationPreferences","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"channel IDs","example":["81fcc598-3569-4cf9-ad58-ed33541a24dd","e7a076f8-a83c-42f5-8c5c-06fc0384712c"],"in":"query","name":"channels[][id]","required":false,"schema":{"description":"IDs of channels contacts have been opted in or out of.","items":{"description":"Channel ID","example":"77fdb4d1-95e3-452c-9fbb-345608dcfa4e","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"channel phones","example":["+14155552671","+14155552672"],"in":"query","name":"channels[][phone]","required":false,"schema":{"description":"Phones of channels contacts have been opted in or out of.","items":{"description":"Channel phone","example":"+14155552671","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCommunicationPreferencesResponse"}}},"description":"Contacts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Preferences","tags":["Preferences"]}},"/v1/custom_objects":{"get":{"callbacks":{},"deprecated":false,"description":"Applies limit and offset to Custom Objects and returns a list of them.\n","operationId":"listCustomObjects","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomObjectsResponse"}}},"description":"listCustomObjects Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Custom Objects","tags":["Objects"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a new custom object in an organization.\nThe `key` field is used to identify the custom object, it's written in snake case and it must be unique.\nThe `label` field can be used to give a human readable name to the custom object.\nThe `custom_properties` field is a list of custom properties that will be created with the custom object.\nThe `custom_properties` field is optional and properties can be added separately (one by one) via the custom property API.\n","operationId":"createCustomObject","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectParams"}}},"description":"createCustomObject Request","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectResponse"}}},"description":"createCustomObject Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Custom Object","tags":["Objects"]}},"/v1/agent_tests/{id}/versions/{version_id}/rollback":{"post":{"callbacks":{},"deprecated":false,"description":"Copies an existing published version into the editable draft. It does not rewrite that\npublication or change the current published pointer.\n","operationId":"rollbackAgentTest","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Published version ID","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishAgentTestParams"}}},"description":"Rollback","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Stale draft revision"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Load a published version into the draft","tags":["Tests"]}},"/v1/campaigns/email/{id}":{"put":{"callbacks":{},"deprecated":false,"description":"Updates an email campaign. The campaign type is set to `email`. `from` is the channel's\n`sending_email_address` and is required when the campaign is not already email. A non-draft\nemail campaign needs `subject`, `sender_name`, and `sender_email`. `reply_to` is optional.\n\nThe campaign must have finished preprocessing and be `draft`, `scheduled`, `recurring`, or\n`recurring_paused`. A `scheduled` campaign accepts `title`, `schedule_at`, `status`, and\n`automation_templates`. A draft or recurring campaign also accepts the message, `from`,\naudience filters, and `recurring_settings`. `draft` to `scheduled` sends once at `schedule_at`.\n`draft` to `recurring` starts the series.\n","operationId":"updateEmailCampaign","parameters":[{"description":"Campaign ID","example":"14f0bb42-0d82-4edc-a17a-9496ed1de5af","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCampaignUpdateParams"}}},"description":"Update Email Campaign Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignResponse"}}},"description":"Campaign"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentUpdateErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Email Campaign","tags":["Email"]}},"/v1/agent_tests/{id}/publish":{"post":{"callbacks":{},"deprecated":false,"description":"Copies the draft into a new immutable version and points the test at it.\nThe draft row stays editable. Publishing does not execute the test.\n","operationId":"publishAgentTest","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishAgentTestParams"}}},"description":"Publish draft","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Stale draft revision"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Publish the agent test draft","tags":["Tests"]}},"/v1/call_flows/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a programmable Call Flow by id.\n\nStatic IVR flows and cross-org ids return **404** (Public Call Flows are\nprogrammable-only; existence of static flows is not leaked).\n","operationId":"getCallFlow","parameters":[{"description":"Call Flow ID","example":"5dbda105-9bb3-4a02-8ffb-bf2a974d2900","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowPublicCallFlowResponse"}}},"description":"Show Call Flow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCallFlowNotFoundErrorResponse"}}},"description":"Not Found Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show programmable call flow","tags":["Call Flows"]},"put":{"callbacks":{"programmableCallFlowWebhook":{"{$request.body#/webhook_config/url}":{"post":{"callbacks":{},"deprecated":false,"description":"Whippy POSTs telephony events to your `webhook_config.url`.\n\nReturn 2xx with `{ \"action\": { \"command\", \"arg\" }, \"customer_state\"? }`.\n\n**Headers:** `X-Whippy-Event`, `X-Whippy-Delivery-Id`, and optionally\n`X-Whippy-Signature` when `signing_api_key_id` is set.\n\n**Request / events:** see `CallFlowWebhookRequest` for the full event\ncatalog (`run.started`, `input.received`, `forward.*` outcomes,\n`status.updated`), headers, and inline payload examples.\n\n**Response / actions:** see `CallFlowWebhookResponse` for field tables,\nrejected shapes, and inline JSON examples for every accepted\n`action.command`.\n","operationId":"receiveCallFlowWebhook","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallFlowWebhookRequest"}}},"description":"Call Flow Webhook Event","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallFlowWebhookResponse"}}},"description":"Integrator action response.\n\nReturn one inline `action` (optional `customer_state`). Full field\ntables, rules, rejected shapes, and JSON examples are documented on\n`CallFlowWebhookResponse`.\n"}},"summary":"Integrator webhook (Whippy → you)","tags":["Call Flows"]}}}},"deprecated":false,"description":"Updates a programmable Call Flow.\n\nCannot clear `webhook_config.url`. Unknown / Private-only keys are ignored.\n`channel_id` assigns / `null` clears / omit leaves unchanged.\n\n**Convert static → programmable:** PUT an org-owned static IVR id **with**\n`webhook_config.url` and sets the webhook (keeps\nthe same id and channel assignment). PUT on a static id without\n`webhook_config` returns **404**.\n","operationId":"updateCallFlow","parameters":[{"description":"Call Flow ID","example":"ecf842af-f08d-4e47-a248-2bbffe0daad0","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePublicCallFlowParams"}}},"description":"Update Call Flow Params","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePublicCallFlowResponse"}}},"description":"Update Call Flow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCallFlowNotFoundErrorResponse"}}},"description":"Not Found Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCallFlowUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update programmable call flow","tags":["Call Flows"]}},"/v1/dashboards":{"get":{"callbacks":{},"deprecated":false,"description":"Lists dashboards using bidirectional cursor pagination: Whippy's built-in dashboards first,\nin a fixed order, followed by the organization's saved dashboards (newest first).\n\nA dashboard is a collection of metrics. The individual charts are exposed\nseparately under `/v1/metrics`.\n\nBuilt-in dashboards (`source: whippy`) are the standard Agents, Conversations, Campaigns,\nCalls, and Usage analytics. They have stable reserved IDs (prefix `00000000-0000-4000-`) and\n`null` `created_at`/`updated_at`. Saved dashboards (`source: organization`) are sorted by\n`created_at` descending, with `id` as a tiebreaker.\n\n## Pagination\n\n- **First page:** omit `cursor` (or use `direction=forward`, the default).\n- **Next page:** use `metadata.next_cursor` with `direction=forward`.\n- **Previous page:** use `metadata.prev_cursor` with `direction=backward`.\n- **`direction=backward` without `cursor`:** returns 422.\n- **`offset`:** not supported.\n\nCursors are opaque, base64-encoded tokens that decode to `{\"inserted_at\": \"<ISO8601>\", \"id\": \"<uuid>\"}`.\n\n## Filtering\n\n- `source` — optionally filter by `whippy` (built-in dashboards) or `organization`\n  (dashboards saved in the organization). Omitting it returns both.\n","operationId":"listDashboards","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Opaque cursor from a previous response (`metadata.next_cursor` or `metadata.prev_cursor`).","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Pagination direction. `forward` (default) fetches the next page; `backward` fetches the previous page.","in":"query","name":"direction","required":false,"schema":{"enum":["forward","backward"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter dashboards by origin: `whippy` for built-in dashboards, `organization` for dashboards saved in the organization. Omit for both.","in":"query","name":"source","required":false,"schema":{"enum":["whippy","organization"],"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDashboardResponse"}}},"description":"List Dashboards Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Dashboards","tags":["Dashboards"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a dashboard in the organization. The response is the dashboard's definition; run it\nwith Show Dashboard.\n\nA dashboard shows saved metrics in a layout (`metrics`), each at a `size`. Build the metrics\nfirst: find existing ones with List Metrics, or try a definition with Preview Metric and save\nit with Create Metric, then reference the IDs here. Built-in metrics of type `custom`\n(`source: whippy` and `type: custom` in List Metrics) can be added by their IDs too, beside the\norganization's own. They stay read-only and always run Whippy's current definition.\n\n`default_timeframe` is the relative interval the dashboard runs over when Show Dashboard is\ncalled without `start`/`end`. `default_filters` scope every chart on the dashboard, by agent,\nagent version, channel or call duration. `tags` are the IDs of the organization's `report` tags.\n\nRequests made with an API key are attributed to the user who created the key.\n","operationId":"createDashboard","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"description":"A dashboard definition.","example":{"default_filters":[{"column":"agent_version_id","comparison":"in","value":["2f8a4c1e-9b3d-4e7a-8c6f-1d5e3b9a7c2d"]},{"column":"duration","comparison":">=","value":60}],"default_timeframe":{"interval_length":4,"interval_type":"week","timezone":"America/Chicago"},"description":"Inbound calls by channel and AI call outcomes","metrics":[{"metric_id":"5b1d6f0e-2c7a-4c55-9e3f-7a9f1c2d4b6e","size":"large"},{"metric_id":"8e4c2a19-7f3b-4d6e-a1c5-0b9d8e7f6a52","size":"medium"}],"tags":["c3a9e1f4-6b2d-4e8a-9f7c-1d5b3a2e4c6f","f7d2b8a1-3e5c-4a9b-8d6f-2c1e9b7a5d3e"],"title":"Calls overview"},"properties":{"default_filters":{"description":"Filters the dashboard applies to every chart when Show Dashboard is called without `filters`. Replaces the saved filters when sent; `[]` clears them. At most one filter per column. `agent_id`, `agent_version_id` and `channel_id` take `in` and a list of IDs of the organization's agents, agent versions or channels. `source_type` (a call's direction) takes `in` and `INBOUND` and/or `OUTBOUND`, and `call_completion_rating` takes `in` and `Complete` and/or `Incomplete`. `duration` takes `>=` or `<=` and a whole number of seconds: calls lasting at least or at most that long, with each call's duration rounded up to the second. A chart whose events don't carry a filter's column (a message chart under a duration filter, say) is left unfiltered by it, and its result lists the column in `dashboard_filters_not_applied`.","items":{"additionalProperties":false,"properties":{"column":{"description":"Field to filter on.","enum":["agent_id","agent_version_id","channel_id","source_type","call_completion_rating","duration"],"type":"string","x-struct":null,"x-validate":null},"comparison":{"description":"`in` for the list columns, `>=` or `<=` for `duration`.","enum":["in",">=","<="],"type":"string","x-struct":null,"x-validate":null},"value":{"description":"The IDs or values to keep, or for `duration` the bound in whole seconds.","oneOf":[{"items":{"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},"required":["column","comparison","value"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"default_timeframe":{"description":"The relative interval the dashboard runs over when a request gives no `start`/`end`. `null` clears it, and the dashboard then runs over the trailing four weeks.","nullable":true,"properties":{"interval_length":{"description":"Number of interval units.","minimum":1,"type":"integer","x-struct":null,"x-validate":null},"interval_type":{"description":"Interval unit.","enum":["hour","day","week","month","year"],"type":"string","x-struct":null,"x-validate":null},"timezone":{"description":"IANA timezone the interval is evaluated in. Defaults to `America/Chicago`.","type":"string","x-struct":null,"x-validate":null}},"required":["interval_type","interval_length"],"type":"object","x-struct":null,"x-validate":null},"description":{"description":"Dashboard description. `null` clears it.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"metrics":{"description":"The dashboard's layout: the metrics it shows, in order. Each is a metric saved in the organization, or a built-in metric of type `custom` (`source: whippy` and `type: custom` in List Metrics). The same metric can appear more than once, at different sizes.","items":{"properties":{"metric_id":{"description":"ID of the metric (see `/v1/metrics`).","format":"uuid","type":"string","x-struct":null,"x-validate":null},"size":{"description":"Display size of the chart.","enum":["small","medium","large"],"type":"string","x-struct":null,"x-validate":null}},"required":["metric_id","size"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"tags":{"description":"IDs of the organization's `report` tags. Replaces the dashboard's tags when sent; `[]` clears them. The `{id, name}` objects reads return are accepted too.","items":{"oneOf":[{"format":"uuid","type":"string","x-struct":null,"x-validate":null},{"additionalProperties":true,"description":"A tag as reads return it: `{id, name}`.","type":"object","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"title":{"description":"Dashboard title","maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null}},"required":["title"],"title":"CreateDashboardRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Dashboard definition","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDefinitionResponse"}}},"description":"Dashboard Definition Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardWriteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Dashboard","tags":["Dashboards"]}},"/v1/workflows":{"get":{"callbacks":{},"deprecated":false,"description":"Lists workflows for the authenticated organization with optional search,\nstate filter, sorting, and offset pagination.\n\nOAuth callers require the `workflows:read` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"listWorkflows","parameters":[{"description":"Case-insensitive substring search on workflow name.","example":"inbound","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter by workflow state.","example":"published","in":"query","name":"state","required":false,"schema":{"enum":["draft","published","archived"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of workflows to return.","example":20,"in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of workflows to skip for pagination.","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Sort field. Prefix with `-` for descending order.","example":"-updated_at","in":"query","name":"sort","required":false,"schema":{"default":"-updated_at","enum":["updated_at","-updated_at","name","-name","inserted_at","-inserted_at"],"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowsResponse"}}},"description":"listWorkflows Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflows","tags":["Workflows"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a new workflow in `draft` state.\n\nOAuth callers require the `workflows:create` scope.\n","operationId":"createWorkflow","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"description":"Optional description","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Workflow name","example":"Process inbound lead","type":"string","x-struct":null,"x-validate":null}},"required":["name"],"type":"object","x-struct":null,"x-validate":null}}},"description":"Workflow fields","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowResponse"}}},"description":"createWorkflow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Workflow","tags":["Workflows"]}},"/v1/workflow-runs/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Retrieves a single workflow run by ID for the authenticated organization.\n\nOAuth callers require the `workflows:read` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"getWorkflowRun","parameters":[{"description":"The workflow run ID","example":"69312aa3-d7ac-472e-80ca-a54ea72fa739","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowRunResponse"}}},"description":"getWorkflowRun Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunNotFoundErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Workflow Run","tags":["Runs"]}},"/v1/campaigns":{"get":{"callbacks":{},"deprecated":false,"description":"Lists campaigns for an organization based on filters.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) remains supported. Both methods return a\n`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when\n`next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include them\non every request.\n","operationId":"getCampaigns","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"title","example":"Very Good News","in":"query","name":"title","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"statuses","example":["complete","in_progress"],"in":"query","name":"status[]","required":false,"schema":{"description":"Campaign statuses list","items":{"description":"Campaign status","example":"complete","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"channel IDs","example":["d166fbc9-204f-4b48-ae00-45ad8c80cfe4","0df6ddaa-18f2-45ff-8f14-29d0b8ad0ca7"],"in":"query","name":"channels[][id]","required":false,"schema":{"description":"IDs of channels campaigns have been sent from.","items":{"description":"Channel ID","example":"1aeeefed-7fa2-4aad-b25a-dbc8bc2b4b15","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"channel phones","example":["+14155552671","+14155552672"],"in":"query","name":"channels[][phone]","required":false,"schema":{"description":"Phones of channels campaigns have been sent from.","items":{"description":"Channel phone","example":"+14155552671","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"created by user IDs","example":[7,42],"in":"query","name":"created_by[]","required":false,"schema":{"description":"IDs of users that created campaigns","items":{"description":"Created by User ID","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"updated by user IDs","example":[8,43],"in":"query","name":"updated_by[]","required":false,"schema":{"description":"IDs of users that updated campaigns","items":{"description":"Updated by User ID","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCampaignsResponse"}}},"description":"Campaigns"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Campaigns","tags":["Campaigns"]}},"/v1/organization":{"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific organization. No parameters are required as the organization is derived from the API key used.","operationId":"getOrganization","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowOrganizationResponse"}}},"description":"Organization"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Organization","tags":["Organization"]}},"/v1/messages/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches messages for an organization using bidirectional cursor pagination (oldest first).\n\nThis endpoint behaves like `GET /v1/messages/list`, but accepts a richer set of\nmessage filters. Messages are sorted by `inserted_at` ascending, with `id` as a tiebreaker.\n\n## Pagination\n\n- **First page:** omit `cursor` (or use `direction=forward`, the default).\n- **Next page (newer messages):** use `metadata.next_cursor` with `direction=forward`.\n- **Previous page (older messages):** use `metadata.prev_cursor` with `direction=backward`.\n- **`direction=backward` without `cursor`:** returns 422.\n- **`offset`:** not supported.\n\nCursors are opaque, base64-encoded tokens that decode to\n`{\"inserted_at\": \"<ISO8601>\", \"id\": \"<uuid>\"}`. A malformed cursor (bad\nbase64/JSON or wrong keys) returns a `422` with `\"Invalid cursor format\"`;\na well-formed but stale cursor keeps working (`cursor_reset: false`); a\nwell-formed but unusable cursor (e.g. a non-UUID `id`) resets to the first\npage with `cursor_reset: true`. Repeat the same filter\nparameters in the request body on every request; they are **not** encoded in the cursor.\n\n## Filters\n\nIn addition to the basic list filters (`conversation_id`, `contact_id`, `sequence_id`,\n`campaign_id`, `user_id`, `channel_id`, `type`, `delivery_status`,\n`after`, `before`), search supports:\n\n- `body` — partial, case-insensitive match on the message body (max 1000 characters).\n- `translated_body` — partial, case-insensitive match on the translated message body (max 1000 characters).\n- `source_type` — one or more message directions (`INBOUND`, `OUTBOUND`, `NOTE`).\n- `mode` — one or more message modes.\n- `language` — one or more message languages.\n- `translation_language` — one or more translation languages.\n","operationId":"searchMessages","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchMessagesParams"}}},"description":"Search Messages Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMessagesResponse"}}},"description":"Search Messages Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Messages","tags":["Messages"]}},"/v1/agents/{id}/duplicate":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a distinct, server-configured draft copy from the Agent's current version and current linked LLM. Active unpublished draft changes are not copied. The duplicated Agent must be published before it can be used.","operationId":"duplicateAgent","parameters":[{"description":"Agent ID","example":"06b483fb-54a9-4972-8055-f7cf42908e75","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Duplicate Agent Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Agent Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Duplicate Agent","tags":["Agents"]}},"/v1/call_flows":{"post":{"callbacks":{"programmableCallFlowWebhook":{"{$request.body#/webhook_config/url}":{"post":{"callbacks":{},"deprecated":false,"description":"Whippy POSTs telephony events to your `webhook_config.url`.\n\nReturn 2xx with `{ \"action\": { \"command\", \"arg\" }, \"customer_state\"? }`.\n\n**Headers:** `X-Whippy-Event`, `X-Whippy-Delivery-Id`, and optionally\n`X-Whippy-Signature` when `signing_api_key_id` is set.\n\n**Request / events:** see `CallFlowWebhookRequest` for the full event\ncatalog (`run.started`, `input.received`, `forward.*` outcomes,\n`status.updated`), headers, and inline payload examples.\n\n**Response / actions:** see `CallFlowWebhookResponse` for field tables,\nrejected shapes, and inline JSON examples for every accepted\n`action.command`.\n","operationId":"receiveCallFlowWebhook","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallFlowWebhookRequest"}}},"description":"Call Flow Webhook Event","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallFlowWebhookResponse"}}},"description":"Integrator action response.\n\nReturn one inline `action` (optional `customer_state`). Full field\ntables, rules, rejected shapes, and JSON examples are documented on\n`CallFlowWebhookResponse`.\n"}},"summary":"Integrator webhook (Whippy → you)","tags":["Call Flows"]}}}},"deprecated":false,"description":"Creates a programmable Call Flow (`webhook_config.url` required).\n\nOptional `channel_id` assigns one organization channel (1 channel ↔ 1\nprogrammable Call Flow). Static IVR (`ivr_flow_config`) is **not**\nsupported on the Public API.\n\nAfter create, Whippy POSTs telephony events to `webhook_config.url` and\nexecutes the single inline `action` you return. See the\n`programmableCallFlowWebhook` callback for the runtime request/response\nschemas.\n","operationId":"createCallFlow","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicCallFlowParams"}}},"description":"Create Call Flow Params","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicCallFlowResponse"}}},"description":"Create Call Flow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCallFlowUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create programmable call flow","tags":["Call Flows"]}},"/v1/forms":{"get":{"callbacks":{},"deprecated":false,"description":"Retrieves a list of forms with filtering and pagination","operationId":"listForms","parameters":[{"description":"Filter forms by active status.\n\n**Options:**\n  * `true` - Only forms with an active version\n  * `false` - Only forms without an active version\n  * Omit parameter to include all forms\n","example":true,"in":"query","name":"is_active","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"Number of records to skip for pagination.\n\n**Default:** 0\n**Minimum:** 0\n","example":20,"in":"query","name":"offset","required":false,"schema":{"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of records to return.\n\n**Default:** 20\n**Range:** 1-100\n","example":10,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormsListResponse"}}},"description":"Forms List Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Forms","tags":["Forms"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a form. Version 1 is published immediately. Omit form_elements/settings for a minimal shell, then PUT /draft and POST /publish. Every element needs properties as a map ({} ok).\n\nSelf-serve from GET /v1/forms/field-types: per-type property_shape (including full http-request / API Request panel), grading_shape, option_shape, quiz_settings, address_fields_shape, availability_shape, logic_rule_shape. Request-body OpenAPI mirrors the builder Properties panel with nested objects (not opaque maps). Invalid shapes return actionable 422 errors.\n\nSettings: appearance/chat/quiz/collection. Quizzes: settings.quiz.is_quiz + show_score_*; correct answers on properties.grading. Logic: trigger_element_id + conditions → jump_to/end_form/set_variable. Endings: id + title/description/redirect_url/redirect_delay_ms.\n\nPiping: `{{answers.<element_id>}}`, `{{steps.<http-id>.<var>}}`, `{{params.*}}`, `{{vars.*}}`, `{{first_name}}`, `{{custom.*:contact}}`. Call listOrganizationVariables (with form_id after elements exist) for concrete tokens.","operationId":"createForm","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFormParams"}}},"description":"Create Form Params","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Form","tags":["Forms"]}},"/v1/campaigns/sms/{id}":{"put":{"callbacks":{},"deprecated":false,"description":"Updates an SMS campaign at `PUT /v1/campaigns/sms/:id`. The campaign type is set to `sms`.\nA campaign that is not already SMS must include `from` (a phone channel).\n\nEmail, WhatsApp, and fax campaigns are updated at `PUT /v1/campaigns/email/:id`,\n`PUT /v1/campaigns/whatsapp/:id`, and `PUT /v1/campaigns/fax/:id`.\n\nThe campaign must have finished preprocessing and be `draft`, `scheduled`, `recurring`, or `recurring_paused`.\n\nA `scheduled` campaign accepts `title`, `schedule_at`, `status`, and `automation_templates`. A `draft`, `recurring`, or `recurring_paused` campaign also accepts the message, `from`, audience filters, and `recurring_settings`. `recurring_settings` is merged with the stored schedule. Omit a field to keep it, and send `end_date` as null to clear it. Changing the schedule or message does not move an occurrence that is already scheduled. Later occurrences use the updated series. `draft` to `scheduled` sends the campaign once at `schedule_at`. `draft` to `recurring` starts the series. `recurring` to `recurring_paused`, `recurring_cancelled`, or `draft` stops it. `recurring_paused` to `recurring` restarts it.\n\nAutomation templates passed in `automation_templates` are added to the ones already on the campaign. A template that is already on the campaign is skipped, so the request is safe to retry. Every template must belong to the organization and must not be archived; otherwise nothing is updated. To add automation templates to a campaign that has already been sent, use the Attach Automation endpoint.\n","operationId":"updateCampaign","parameters":[{"description":"Campaign ID","example":"472e94ef-58cb-470c-a42e-ea022068014c","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCampaignUpdateParams"}}},"description":"Update Campaign Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignResponse"}}},"description":"Campaign"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBadREquestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentUpdateErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update SMS Campaign","tags":["SMS"]}},"/v1/templates":{"get":{"callbacks":{},"deprecated":false,"description":"Lists templates of the current organization.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) remains supported. Both methods return a\n`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when\n`next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include\nthem on every request.\n","operationId":"getTemplates","parameters":[{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"search","example":"tag-cool-name","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTemplates"}}},"description":"List Templates Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List templates","tags":["Templates"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a template in the current organization.","operationId":"createTemplate","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateParams"}}},"description":"Create Template Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplatesResponse"}}},"description":"Create Template Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create template","tags":["Templates"]}},"/v1/workflow-connections/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Disconnects (deletes) a connection. OAuth callers require `workflows:update`.\n","operationId":"deleteWorkflowConnection","parameters":[{"description":"Connection ID","example":"550e8400-e29b-41d4-a716-446655440000","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowConnectionResponse"}}},"description":"Deleted connection"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionNotFound"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Workflow Connection","tags":["Connections"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns a connection by ID. Secrets are never included.\n\nConnections are sensitive, so OAuth callers require `workflows:update`.\n","operationId":"getWorkflowConnection","parameters":[{"description":"Connection ID","example":"550e8400-e29b-41d4-a716-446655440000","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowConnectionResponse"}}},"description":"Connection"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionNotFound"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Workflow Connection","tags":["Connections"]}},"/v1/automations/templates":{"get":{"callbacks":{},"deprecated":false,"description":"Lists automation templates for an organization based on filters.\nExcludes private(user access) and global automation templates, as well as templates with `as-is` usage.\n","operationId":"getAutomationTemplates","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"title","example":"Very Good News","in":"query","name":"title","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"archived","example":false,"in":"query","name":"archived","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"access_level","example":"organization","in":"query","name":"access_level","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"created by user IDs","example":[7,42],"in":"query","name":"created_by[]","required":false,"schema":{"description":"IDs of users that created automation templates","items":{"description":"Created by User ID","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"updated by user IDs","example":[8,43],"in":"query","name":"updated_by[]","required":false,"schema":{"description":"IDs of users that updated automation templates","items":{"description":"Updated by User ID","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAutomationTemplatesResponse"}}},"description":"Campaigns"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Automation Templates","tags":["Automation Templates"]}},"/v1/teams/{team_id}/work_schedules":{"get":{"callbacks":{},"deprecated":false,"description":"List the Work Schedules for the given Team","operationId":"getTeamWorkSchedules","parameters":[{"description":"Team ID","example":"5304c002-cf29-45b3-8001-7b6f0f0e042e","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexWorkScheduleResponse"}}},"description":"Work Schedule Index Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamWorkScheduleIndexCreateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Work Schedules","tags":["Team Schedules"]},"post":{"callbacks":{},"deprecated":false,"description":"Create Work Schedule for given Team with the given parameters.","operationId":"createTeamWorkSchedule","parameters":[{"description":"Team ID","example":"aca6e827-d95c-451e-92e0-d0d9c4907e6e","in":"path","name":"team_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkScheduleParams"}}},"description":"Work Schedule Create Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkScheduleResponse"}}},"description":"Work Schedule Create Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamWorkScheduleIndexCreateBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkScheduleUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Work Schedule","tags":["Team Schedules"]}},"/v1/workflow-connections/{id}/test":{"post":{"callbacks":{},"deprecated":false,"description":"Tests an authenticated connection by invoking the app's configured test handler.\n\nOAuth callers require `workflows:update`.\n","operationId":"testWorkflowConnection","parameters":[{"description":"Connection ID","example":"550e8400-e29b-41d4-a716-446655440000","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWorkflowConnectionResponse"}}},"description":"Test succeeded"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionNotFound"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionUnprocessableContent"}}},"description":"Test failed"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Test Workflow Connection","tags":["Connections"]}},"/v1/workflows/{id}/versions/{version_id}":{"get":{"callbacks":{},"deprecated":false,"description":"Retrieves a workflow version including its steps snapshot.\n\nOAuth callers require the `workflows:read` scope.\n","operationId":"getWorkflowVersion","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Workflow version ID","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowVersionResponse"}}},"description":"getWorkflowVersion Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get Workflow Version","tags":["Workflows"]}},"/v1/tags/{id}/contacts":{"put":{"callbacks":{},"deprecated":false,"description":"Update the Tag Contacts in an organization by applying the given `action` over `contacts`. Before applying it, the contacts\nare created or updated in case they already exists, and are opt in to all organization channels by default in case `action` is `add` or `overwrite`.\nBy providing the `opt_in_to` field you can choose to only opt in the contacts to specific channels. The tag must be `active`.\n\nContacts are matched by phone.\n\nThe following actions are supported:\n\n- `add`: Adds the contacts to the tag.\n\n- `remove`: Removes the contacts from the tag.\n\n- `overwrite`: Removes all contacts from the tag and adds the given contacts to it.\n\n","operationId":"updateTagContacts","parameters":[{"description":"Tag ID","example":"21b18a56-0cff-4302-af5e-7077fc1d80bb","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTagContactsParams"}}},"description":"Update Tag Contacts Params","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTagContactsResponse"}}},"description":"Update Tag Contacts Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBadRequestErrorResponse"}}},"description":"Not Authenticated Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagsContactsUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Tag Contacts","tags":["Tags"]}},"/v1/contacts/filter":{"post":{"callbacks":{},"deprecated":false,"description":"Filters contacts in an organization using Whippy Query Language (WQL).\n\nUse this endpoint for complex audience-style filters across contacts and related resources\n(messages, conversations, tags, segments, custom data, and more).\n\nContact dates of birth are stored on the embedded `birth_date` object and are queried\nthrough the `birth_date.day`, `birth_date.month`, and `birth_date.year` columns.\n\nThe contact timestamp column is `inserted_at`.\n\nFilter `value` shapes (pass bare JSON — never wrap as `{\"value\": ...}`,\n`{\"values\": [...]}`, or `{\"scalar\": ...}`):\n\n- `==` / `!=` / `<` / `>` / `<=` / `>=`: string, number, or boolean\n- `like` / `ilike`: plain string pattern such as `\"%Jack%\"` (no `cast`)\n- `in` / `not_in`: JSON array such as `[\"Interview\", \"Offer\"]`\n- `ilike_any` / `not_ilike_all`: non-empty array of strings (no `cast`)\n- `between`: array of exactly two values; `in_radius` / `not_in_radius`:\n  `[longitude, latitude, meters]`\n- `contains` / `not_contains` / `is_contained`: object or homogeneous array\n\nComparison × custom-object property type (`properties[].type`):\n\n- text: `==` `!=` `in` `not_in` `like` `ilike` `not_like` `not_ilike` `ilike_any` `not_ilike_all`\n- number / float: `==` `!=` `<` `>` `<=` `>=` `in` `not_in` `between`\n- boolean: `==` `!=` `in`\n- date: `==` `!=` `<` `>` `<=` `>=` `between` `in` `not_in`\n- list: `contains` `not_contains` `is_contained` `has_any` `has_none` (not `in`/`==`)\n- map: `contains` `not_contains` `is_contained`\n- contact.geo: `in_radius` / `not_in_radius` with `[longitude, latitude, meters]`\n\nWhen a filter item includes `cast`, its `value` must be a string — or, for list\ncomparisons such as `in`, `not_in`, and `between`, a list of strings, each validated\nwith the same rules. Each string is an ISO date/datetime, or (with\n`\"from\": \"relative_datetime\"`) a relative datetime expression such as\n`\"+0d Europe/Dublin\"` — an offset (`+0d` is today, `-1d` is yesterday) followed by an\nIANA timezone. Casting a relative datetime to `day_number`/`month_number` compares\nagainst the day/month of the resolved date. For example, to find contacts whose\nbirthday is today:\n\n```json\n{\"filter\": [{\"resource\": \"contact\", \"column\": \"birth_date.day\", \"comparison\": \"==\",\n  \"value\": \"+0d Europe/Dublin\", \"cast\": {\"from\": \"relative_datetime\", \"to\": \"day_number\"},\n  \"and\": [{\"resource\": \"contact\", \"column\": \"birth_date.month\", \"comparison\": \"==\",\n    \"value\": \"+0d Europe/Dublin\", \"cast\": {\"from\": \"relative_datetime\", \"to\": \"month_number\"}}]}]}\n```\n\nReturns matching contacts with a total count. Supports `limit` (default 50, max 500),\n`offset`, and `sort`.\n","operationId":"filterContacts","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFilterParams"}}},"description":"Filter Contact Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactsResponse"}}},"description":"Contacts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIndexUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Filter Contacts with WQL","tags":["Contacts"]}},"/v1/agents/versions/search":{"post":{"callbacks":{},"deprecated":false,"description":"Searches agent versions in the authenticated organization based on filters.\n\nOptionally, agent version records can be filtered by `agent_id`, `llm_id`, and `published`.\n","operationId":"searchAgentVersions","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAgentVersionsParams"}}},"description":"Search Agent Versions Request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAgentVersionsResponse"}}},"description":"Search Agent Versions Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Agent Versions","tags":["Agents"]}},"/v1/contacts/communication_preferences/opt_out":{"post":{"callbacks":{},"deprecated":false,"description":"Opts out a list of contacts to a list of channels.","operationId":"optOutCommunicationPreference","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCommunicationPreferenceParams"}}},"description":"Opt Out Communication Preference Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCommunicationPreferencesResponse"}}},"description":"Communication Preferences"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationPreferenceUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Opt Out","tags":["Preferences"]}},"/v1/agent_tests/{id}/draft":{"patch":{"callbacks":{},"deprecated":false,"description":"Writes the persisted draft. A stale revision returns 409. Published rows cannot be written.","operationId":"updateAgentTestDraft","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentTestDraftParams"}}},"description":"Draft definition","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Stale draft revision"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update the editable agent test draft","tags":["Tests"]}},"/v1/agent_tests/{id}/versions/{version_id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns the full definition of one version of an agent test, including conversation prefixes\nand mock fixtures. Use the list of versions to find the version ID.\n","operationId":"showAgentTestVersion","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Agent test version ID","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}}},"properties":{"data":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowAgentTestVersionResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show one agent test version","tags":["Tests"]}},"/v1/workflow-step-types":{"get":{"callbacks":{},"deprecated":false,"description":"Returns a flat catalog of every selectable workflow step option available to\nthe authenticated organization: published app creates, searches, and triggers,\nplus built-in actions, triggers, and flow controls.\n\n## Two-phase discovery (recommended for agents)\n\n1. **Summary (default)** — browse/search with `detail=summary` (or omit\n   `detail`). Each option includes identity, placement, a create-ready\n   `step_template`, plus lightweight `input_field_names` and\n   `has_dynamic_fields` (so you know whether to call input-options) —\n   but **not** full input/output schemas, samples, or logo maps.\n2. **Full** — call again with `detail=full` and `id=<option_id>` (or\n   `ids=id1,id2,...`, max 10) to load schemas for those options before\n   configuring inputs.\n\n`detail=full` without `id` or `ids` returns **422**. Dynamic dropdown\n*values* are never included — use the workflow-apps input-options endpoint.\nPrefer one `detail=full&ids=...` call over repeated single-id lookups.\n\nAccess matches the workflow-apps catalog: org-owned and global published apps\nonly; hidden / unpublished operations are excluded.\n\nOptional `workflow_id` and `parent_step_id` filter options to those valid at\nthat graph position (org-scoped; unknown IDs return 404). After picking an\noption, call `createWorkflowStep` with the template, then\n`updateWorkflowStep` / `testWorkflowStep` as needed.\n\nPrefer combining `app_id` + `key` (+ optional `placement`) when you already\nknow the app and perform key — that returns the single matching action.\n`search` remains a looser substring match and is unchanged when used alone.\n\nOAuth callers require the `workflows:read` scope (and matching workspace\npermission). API key callers are authorized by organization membership.\n","operationId":"listWorkflowStepTypes","parameters":[{"description":"Case-insensitive substring search across name, description, app name, action key, and option id","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of options to return","in":"query","name":"limit","required":false,"schema":{"default":25,"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of options to skip","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Filter by option source","in":"query","name":"source","required":false,"schema":{"enum":["app","built_in"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter by placement category","in":"query","name":"placement","required":false,"schema":{"enum":["trigger","action","flow_control"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Restrict to operations from one app","in":"query","name":"app_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Restrict to one app action bucket","in":"query","name":"app_action_type","required":false,"schema":{"enum":["create","search","subscribe_to_trigger"],"type":"string","x-struct":null,"x-validate":null}},{"description":"When set (optionally with parent_step_id), only return options valid at that graph position","in":"query","name":"workflow_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Parent step for contextual placement filtering (requires workflow_id)","in":"query","name":"parent_step_id","required":false,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"summary (default) omits full schemas/sample/logos but includes input_field_names and has_dynamic_fields; full requires id or ids","in":"query","name":"detail","required":false,"schema":{"default":"summary","enum":["summary","full"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Exact option id filter (required with detail=full unless ids is set)","in":"query","name":"id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Comma-separated option ids (max 10 combined with id). Prefer with detail=full to fetch multiple schemas in one call.","in":"query","name":"ids","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Exact app action perform key filter (e.g. send_message, upsert_contact)","in":"query","name":"key","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowStepTypesResponse"}}},"description":"listWorkflowStepTypes Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStepTypeNotFoundResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStepTypeValidationErrorResponse"}}},"description":"Validation Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow Step Types","tags":["Step Types"]}},"/v1/agent_tests/{id}/execute":{"post":{"callbacks":{},"deprecated":false,"description":"Enqueues runs of the selected test version against `agent_id`. The default selection is the current publication.\nA test with no publication does not fall back to its draft. `run_count` is at most 3.\nReturns **202 Accepted** with run ids. Cancellation targets a run. A later edit does not change a queued run.\n","operationId":"executeAgentTest","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"example":{"agent_id":"00000000-0000-4000-8000-000000000002","run_count":3,"test_version":{"selection":"current_published"}},"properties":{"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_version":{"description":"Agent configuration to run against without editing the test. `live` runs the published agent, `draft` runs unpublished edits, `pinned` runs one saved agent version. Omit to use the test's `version_policy`.","example":{"mode":"draft"},"nullable":true,"properties":{"mode":{"enum":["live","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when `mode` is `pinned`.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"run_count":{"description":"Runs to queue. Omit to run once per caller model (simulation) or once (next reply); a simulation that would exceed the turn budget runs fewer callers.","example":3,"maximum":3,"minimum":1,"type":"integer","x-struct":null,"x-validate":null},"simulator_models":{"description":"Caller models to run the test with, one run per model. Omit to use the default caller models.","items":{"type":"string","x-struct":null,"x-validate":null},"maxItems":3,"type":"array","x-struct":null,"x-validate":null},"test_version":{"description":"Which test definition to run. Omitted selection uses the current published version.\nA test with no publication does not fall back to its draft.\nversion_policy on the definition still selects the agent configuration and is not this object.\n","properties":{"selection":{"enum":["current_published","draft","version"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"description":"Required when selection is version. Only a published version is accepted.","format":"uuid","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"required":["agent_id"],"title":"ExecuteAgentTestRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Execute options","required":true},"responses":{"202":{"content":{"application/json":{"schema":{"example":{"data":{"aggregate":{"fail":0,"pass":0,"run_count":1,"unknown":0},"runs":[{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}]}},"properties":{"data":{"properties":{"aggregate":{"properties":{"fail":{"type":"integer","x-struct":null,"x-validate":null},"pass":{"type":"integer","x-struct":null,"x-validate":null},"run_count":{"type":"integer","x-struct":null,"x-validate":null},"unknown":{"type":"integer","x-struct":null,"x-validate":null}},"required":["run_count","pass","fail","unknown"],"type":"object","x-struct":null,"x-validate":null},"runs":{"items":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"required":["runs","aggregate"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ExecuteTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Accepted — poll run show for verdict"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Execute agent test","tags":["Tests"]}},"/v1/tools/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a tool that belongs to the authenticated organization. Deletion is rejected while the tool is referenced by the live or draft version of any non-deleted LLM.","operationId":"deleteTool","parameters":[{"description":"Tool ID","example":"f53d043d-b413-41c2-9226-5d1751941838","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"204":{"content":{"application/json":{}},"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolBadRequestErrorResponse"}}},"description":"Invalid Tool ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolNotFoundErrorResponse"}}},"description":"Tool Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Tool","tags":["Tools"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns a tool that belongs to the authenticated organization.","operationId":"getTool","parameters":[{"description":"Tool ID","example":"fbf89d21-8e82-4d95-b7ed-37763cb7cd1a","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowToolResponse"}}},"description":"Show Tool Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolBadRequestErrorResponse"}}},"description":"Invalid Tool ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolNotFoundErrorResponse"}}},"description":"Tool Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Tool","tags":["Tools"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a tool that belongs to the authenticated organization.","operationId":"updateTool","parameters":[{"description":"Tool ID","example":"17cca747-0254-4ef2-b9cb-98a4d7557b26","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateToolParams"}}},"description":"Update Tool Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowToolResponse"}}},"description":"Update Tool Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolBadRequestErrorResponse"}}},"description":"Invalid Tool ID"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolNotFoundErrorResponse"}}},"description":"Tool Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Tool","tags":["Tools"]}},"/v1/agent_tool_executions/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns one recorded AI Agent tool execution that belongs to the authenticated organization.\n\nRequires the `ai_agents:read` permission, the same permission used to read a tool.\n","operationId":"getToolExecution","parameters":[{"description":"Tool execution ID","example":"94ec8efc-c9c2-479f-be60-376d9267594c","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowToolExecutionResponse"}}},"description":"Show Tool Execution Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolExecutionNotFoundErrorResponse"}}},"description":"Tool Execution Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Tool Execution","tags":["Tool Executions"]}},"/v1/campaigns/fax":{"post":{"callbacks":{},"deprecated":false,"description":"Creates a fax campaign.\n\n`from` is the phone number of a fax channel. The body is limited to 1000 characters.\n\n**Draft.** Pass `status: \"draft\"`. A draft is not sent. Returns `201 Created`.\n\n**Scheduled.** Pass `status: \"scheduled\"`, `schedule_at` (ISO 8601), and `included_audience`.\nThe campaign is sent once at that time. Returns `201 Created`.\n\n**Recurring.** Pass `status: \"recurring\"`, `included_audience`, and `recurring_settings`\n(`cron_expression`, `timezone`, `start_date`, optional `end_date`). The series starts\nimmediately. Returns `201 Created` for the series parent.\n\nThere is no `to` list. Use `POST /v1/campaigns/fax` for this channel.\n","operationId":"createFaxCampaign","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxCampaignParams"}}},"description":"Create Fax Campaign Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraftCampaignResponse"}}},"description":"Campaign"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUnprocessableContentCreateDraftErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Fax Campaign","tags":["Fax"]}},"/v1/forms/{id}/draft":{"delete":{"callbacks":{},"deprecated":false,"description":"Resets the draft workspace to match the live version. Safe no-op when there is no draft.","operationId":"discardFormDraft","parameters":[{"description":"Form ID","example":"c478c05b-fdb0-4084-a0c1-c7845c9d30af","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Discard Form Draft","tags":["Forms"]},"put":{"callbacks":{},"deprecated":false,"description":"Writes form_elements, settings, logic, endings, and variables to the draft workspace. The live version is unchanged until publish. Body schemas document FormSettings (appearance/chat/quiz/collection), FormLogicRule, FormEnding, FormVariable, and properties.grading for quizzes. Logic: id + trigger_element_id + conditions{combinator,clauses} (equals, is_answered, …) + actions[{type,...}] → jump_to / end_form / set_variable / show / hide. Piping uses {{answers.*}} / {{steps.*}} / {{params.*}} / {{vars.*}} / contact tokens — refresh listOrganizationVariables?form_id= after saving elements. Invalid agent payloads return 422 with fix-forward messages.","operationId":"updateFormDraft","parameters":[{"description":"Form ID","example":"432cf760-4c06-4800-a5da-206c0fa27c11","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFormDraftParams"}}},"description":"Update Form Draft Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Form Draft","tags":["Forms"]}},"/v1/campaigns/{id}/contacts":{"get":{"callbacks":{},"deprecated":false,"description":"Lists campaign contacts based on filters.\n\nCommon filters are limit and offset.\n\nReceives filters as query string parameters corresponding to boolean values.\n\nFilter options are:\n  - delivered (true/false) - will return campaign contacts that received the campaign.\n  - responded (true/false) - will return campaign contacts that responded to the campaign.\n  - unsubscribed (true/false) - will return campaign contacts that unsubscribed after the campaign.\n  - clicked_link (true/false) - will return campaign contacts that clicked a link from the campaign.\n\nThe filters can be grouped, which allows users to get, for instance, all contacts\nthat responded to a campaign and clicked on a link, or contacts that received a campaign\nand unsubscribed after that.\n","operationId":"getCampaignContacts","parameters":[{"description":"Campaign ID","example":"689576c8-3ebf-4550-a0f1-8dfc6a6364ed","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"delivered","example":true,"in":"query","name":"delivered","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"responded","example":true,"in":"query","name":"responded","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"unsubscribed","example":false,"in":"query","name":"unsubscribed","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"clicked_link","example":true,"in":"query","name":"clicked_link","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCampaignContactsResponse"}}},"description":"Campaign Contacts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Campaign Contacts","tags":["Campaigns"]}},"/v1/tags":{"get":{"callbacks":{},"deprecated":false,"description":"Lists tags of the current organization.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) remains supported. The cursor-based response\nreturns a `metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page;\nwhen `next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include\nthem on every request.\n\nIt is important to notice that in case of using the `search` filter, any extra spaces are removed from it before applying,\nfor example, when given the string \" Tag   name  \" it will be cleared to \"Tag name\".\n","operationId":"getTags","parameters":[{"description":"Offset the returned results by some number. Cannot be combined with cursor.","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Limit the number of results returned","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"name of the tag to be searched","example":"very-cool-tag","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"boolean to return only `system` or non `system` tags","example":true,"in":"query","name":"system","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"state of tags to be returned, can be either `active` or `archived`.","example":"archived","in":"query","name":"state","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Tag type to list. Defaults to `standard` (contact tags). List/upload types are never returned.","example":"segment","in":"query","name":"type","required":false,"schema":{"default":"standard","enum":["standard","segment","sequence","form","workflow"],"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTags"}}},"description":"List Tags Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List tags","tags":["Tags"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a tag in the current organization.","operationId":"createTag","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagsParams"}}},"description":"Create Tag Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagsResponse"}}},"description":"Create Tags Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create tag","tags":["Tags"]}},"/v1/workflows/{id}/publish":{"post":{"callbacks":{},"deprecated":false,"description":"Takes the workflow live: publishes the current draft and turns the workflow\non so it accepts triggers.\n\nWhen a draft exists (any workflow edited through `createWorkflowStep` /\n`updateWorkflowStep` / `deleteWorkflowStep` has one), the draft is copied to\na new version, that version becomes current, and the draft is consumed —\nso draft edits go live rather than being left behind. When no draft exists,\nthe existing current version is simply turned on.\n\nEvery step's configuration is validated here, not while editing. Incomplete\nsteps return **422** with one error per problem, each naming the offending\n`step_id` and `field`. For app action steps this includes empty or missing\n**required** static input fields from the app definition (e.g. Slack\n`channel`) — use the returned `step_id` (UUID) to call `updateWorkflowStep`\nand fix the issue. Any `alias` present in the error is only useful for\nidentifying/labeling which step failed for humans, not as the request\nidentifier. A workflow with neither a draft nor a current version\nreturns **422**.\n\nOAuth callers require the `workflows:update` scope.\n","operationId":"publishWorkflow","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowResponse"}}},"description":"publishWorkflow Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Publish Workflow","tags":["Workflows"]}},"/v1/links/{id}/analytics":{"get":{"callbacks":{},"deprecated":false,"description":"Click analytics for a link. `start_date` and `end_date` are inclusive `YYYY-MM-DD` (UTC).\nDefault is the last 30 days ending today. Range cannot exceed 366 days.\n","operationId":"getLinkAnalytics","parameters":[{"description":"Link ID","example":"dd840673-d544-44b9-99f1-f6438471d2f3","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Inclusive start date (YYYY-MM-DD)","example":"2026-10-05","in":"query","name":"start_date","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Inclusive end date (YYYY-MM-DD)","example":"2026-11-03","in":"query","name":"end_date","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkAnalytics"}}},"description":"Link Analytics Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInsufficientScopeErrorResponse"}}},"description":"Insufficient Scope Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkNotFoundErrorResponse"}}},"description":"Not Found Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Get link analytics","tags":["Analytics"]}},"/v1/agents/{id}/versions/{version_id}/rollback":{"post":{"callbacks":{},"deprecated":false,"description":"Stages the selected published version as the Agent draft, overwriting any existing staged draft.\nThis does not change the linked LLM selection. To stage the paired LLM version,\ncall `POST /v1/llms/{id}/versions/{version_id}/rollback` separately.\n\nThis operation never publishes the rollback; call `POST /v1/agents/{id}/publish` separately to\nmake it live.\n","operationId":"rollbackAgentVersion","parameters":[{"description":"Agent ID","example":"a65c6e0b-f700-4a7b-8716-40542c27fe3b","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Agent version ID","example":"5bdb6520-4845-49fd-bebb-0050628cccee","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Roll Back Agent Version Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Agent Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Roll Back Agent Version","tags":["Agents"]}},"/v1/agent_tests/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a test that has no runs. A test that already has runs is archived so those runs and\npublished versions keep their identity.\n","operationId":"deleteAgentTest","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete or archive an agent test","tags":["Tests"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns one saved agent test with its published definition, editable draft, and lifecycle state.","operationId":"showAgentTest","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show agent test","tags":["Tests"]},"patch":{"callbacks":{},"deprecated":false,"description":"Updates the name and evidence or agent links. Definition changes use the draft.","operationId":"patchAgentTest","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Updates the name and evidence or agent links. Definition fields are rejected.","properties":{"agent_ids":{"description":"Omission preserves links. An empty list clears them. Null is invalid.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"nullable":false,"type":"array","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null}},"title":"UpdateTestScenarioRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Update agent test","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Partially update agent test","tags":["Tests"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates the name and evidence or agent links. Definition changes use the draft.","operationId":"updateAgentTest","parameters":[{"description":"Agent test ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Updates the name and evidence or agent links. Definition fields are rejected.","properties":{"agent_ids":{"description":"Omission preserves links. An empty list clears them. Null is invalid.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"nullable":false,"type":"array","x-struct":null,"x-validate":null},"name":{"maxLength":255,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null}},"title":"UpdateTestScenarioRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Update agent test","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_ids":[],"archived_at":null,"current_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"current_version_id":"00000000-0000-4000-8000-000000000007","draft_version":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"draft","published_at":null,"revision":1,"situation":"Caller wants to reschedule.","source_revision":null,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":null,"version_policy":{"mode":"active"}},"draft_version_id":"00000000-0000-4000-8000-000000000008","has_unpublished_changes":false,"id":"00000000-0000-4000-8000-000000000003","inserted_at":"2026-01-01T12:00:00.000000Z","name":"Reschedule an appointment","sources":[],"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_ids":{"description":"Discovery links. They do not choose the agent a run executes against.","items":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"archived_at":{"description":"Set when a test that already has runs is deleted. Archived tests stay readable and are hidden from lists.","format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"current_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"current_version_id":{"description":"Current published version. Null until the test is published.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"draft_version":{"example":{"agent_test_id":"00000000-0000-4000-8000-000000000003","change_notes":null,"content_fingerprint":"example","conversation_prefix":null,"created_by_id":1,"id":"00000000-0000-4000-8000-000000000007","inserted_at":"2026-01-01T12:00:00.000000Z","maximum_turns":8,"provenance":{},"publication_state":"published","published_at":"2026-01-01T12:00:00.000000Z","revision":1,"situation":"Caller wants to reschedule.","source_revision":1,"success_criteria":"Agent confirms the new time.","test_type":"simulation","tool_assertions":{},"tool_policy":{"mode":"block"},"updated_at":"2026-01-01T12:00:00.000000Z","variable_types":{"company_name":"string"},"variable_values":{"company_name":"Northwind"},"version_number":1,"version_policy":{"mode":"active"}},"nullable":true,"properties":{"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"change_notes":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content_fingerprint":{"description":"Fingerprint of the executable definition.","type":"string","x-struct":null,"x-validate":null},"conversation_prefix":{"description":"Messages that precede the reply under test. Required for a manual next_reply test.","example":{"messages":[{"content":"I need to reschedule.","role":"user"},{"content":"What day works?","role":"assistant"}],"source_turn_index":1},"nullable":true,"properties":{"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_turn_index":{"minimum":1,"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"created_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000007","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"maximum_turns":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"provenance":{"additionalProperties":true,"description":"Draft/import metadata and redaction provenance","properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"attachment_status":{"additionalProperties":{"type":"string","x-struct":null,"x-validate":null},"description":"Per-artifact readiness for call-derived drafts","nullable":true,"type":"object","x-struct":null,"x-validate":null},"attachments_included":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"channel_type":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"imported_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"redacted_field_types":{"items":{"type":"string","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"redaction_status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"review_required":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"situation_generation":{"additionalProperties":true,"nullable":true,"properties":{"model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["ok","llm","fallback"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"source_call_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_retention_policy":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation_agent_session"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"version_kind":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"publication_state":{"enum":["draft","published"],"type":"string","x-struct":null,"x-validate":null},"published_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"revision":{"description":"Optimistic concurrency token for the editable draft. Send it back on draft update, publish, and rollback.","type":"integer","x-struct":null,"x-validate":null},"situation":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_revision":{"description":"Draft revision copied when this published row was created.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"success_criteria":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_type":{"enum":["simulation","next_reply"],"type":"string","x-struct":null,"x-validate":null},"tool_assertions":{"additionalProperties":true,"description":"Expected tool invocation assertions, keyed by tool name.","example":{"check_availability":{"called":true}},"nullable":true,"type":"object","x-struct":null,"x-validate":null},"tool_policy":{"description":"Tool execution policy for this definition. This is not the test publication state.","example":{"mocks":[{"response":"success","result":{"slots":["Tuesday 3pm"]},"tool_name":"check_availability"}],"mode":"mock"},"nullable":true,"properties":{"fixture_trust":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"mocks":{"items":{"properties":{"error_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"response":{"enum":["success","empty","error","timeout"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"timeout_message":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"type":"string","x-struct":null,"x-validate":null}},"required":["tool_name"],"type":"object","x-struct":null,"x-validate":null},"nullable":true,"type":"array","x-struct":null,"x-validate":null},"mode":{"enum":["block","mock"],"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"variable_types":{"additionalProperties":{"enum":["string","number","boolean","list","object","null"],"type":"string","x-struct":null,"x-validate":null},"description":"Declared type for each variable value: string, number, boolean, list, object, or null.","type":"object","x-struct":null,"x-validate":null},"variable_values":{"description":"Placeholder overrides applied when this definition runs. Keys match instruction placeholders.","type":"object","x-struct":null,"x-validate":null},"version_number":{"description":"Sequential publication number. Null on the editable draft.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"version_policy":{"properties":{"mode":{"enum":["active","draft","pinned"],"type":"string","x-struct":null,"x-validate":null},"version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"required":["mode"],"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"draft_version_id":{"description":"The single editable draft. Publishing does not replace this row.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"has_unpublished_changes":{"description":"True when the draft fingerprint differs from the current publication, or no publication exists.","type":"boolean","x-struct":null,"x-validate":null},"id":{"description":"Stable agent test ID","example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"name":{"description":"Display name","example":"Reschedule an appointment","nullable":true,"type":"string","x-struct":null,"x-validate":null},"sources":{"description":"Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.","items":{"additionalProperties":false,"properties":{"id":{"description":"Call message ID for call; conversation_agent_sessions ID for conversation_agent_session.","format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["call","conversation_agent_session"],"type":"string","x-struct":null,"x-validate":null}},"required":["type","id"],"type":"object","x-struct":null,"x-validate":null},"maxItems":100,"type":"array","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","name","current_version_id","draft_version_id","has_unpublished_changes","archived_at","sources","agent_ids","draft_version","current_version","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestScenarioResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update agent test","tags":["Tests"]}},"/v1/contacts/lists":{"get":{"callbacks":{},"deprecated":false,"description":"Lists contact lists of the current organization.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) remains supported. The cursor-based response\nreturns a `metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page;\nwhen `next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include\nthem on every request.\n\nIt is important to notice that in case of using the `search` filter, any extra spaces are removed before applying it,\nfor example, when given the string \" List   name  \" it will be cleared to \"List name\".\n","operationId":"getContactLists","parameters":[{"description":"offset. Cannot be combined with cursor.","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"search","example":"contactlist-cool-name","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactLists"}}},"description":"List Contact Lists Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Contact Lists","tags":["Lists"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a contact list in the current organization.","operationId":"createContactList","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactListParams"}}},"description":"Create Contact List Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactLists"}}},"description":"Create Contact List Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListsUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Contact List","tags":["Lists"]}},"/v1/llms/{id}/versions/{version_id}/rollback":{"post":{"callbacks":{},"deprecated":false,"description":"Stages the selected published LLM version as the draft, overwriting any existing staged draft. This operation never publishes the rollback; call `POST /v1/llms/{id}/publish` separately to make it live.","operationId":"rollbackLLMVersion","parameters":[{"description":"LLM ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"LLM version ID","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLLMResponse"}}},"description":"Roll Back LLM Version Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Roll Back LLM Version","tags":["LLMs"]}},"/v1/sequences":{"get":{"callbacks":{},"deprecated":false,"description":"Lists sequences for an organization based on filters.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) is also supported. Both methods return a `metadata`\nobject with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when `next_cursor` is\n`null`, there are no more results. Filters are not encoded in the cursor, so include them on every request.\n","operationId":"getSequences","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response.","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"title","example":"Very Good News","in":"query","name":"title","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSequencesResponse"}}},"description":"Sequences"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Sequences","tags":["Sequences"]}},"/v1/messages/list":{"get":{"callbacks":{},"deprecated":false,"description":"Lists messages for an organization using bidirectional cursor pagination (oldest first).\n\nMessages are sorted by `inserted_at` ascending, with `id` as a tiebreaker.\n\n## Pagination\n\n- **First page:** omit `cursor` (or use `direction=forward`, the default).\n- **Next page (newer messages):** use `metadata.next_cursor` with `direction=forward`.\n- **Previous page (older messages):** use `metadata.prev_cursor` with `direction=backward`.\n- **`direction=backward` without `cursor`:** returns 422.\n- **`offset`:** not supported.\n\nCursors are opaque, base64-encoded tokens. Each cursor references a page boundary row:\n`next_cursor` is the **last** row on the page; `prev_cursor` is the **first** row.\nBoth directions use exclusive boundaries, so rows are not duplicated across pages.\n\nThe cursor decodes to `{\"inserted_at\": \"<ISO8601>\", \"id\": \"<uuid>\"}`.\n\n**Invalid or unusable cursors**\n\n- A **malformed** cursor — not valid base64, not JSON, or missing/extra keys\n  (it must have exactly `inserted_at` and `id`) — returns a\n  `422 Unprocessable Content` with `{\"description\": \"Invalid cursor format\"}`.\n- A **well-formed but stale** cursor still works: it's a page boundary, not a\n  row lookup, so it paginates from that position with `cursor_reset: false`.\n- A **well-formed but unusable** cursor (correct keys but a value that can't\n  be a position, e.g. an `id` that isn't a UUID) resets to the first page\n  and returns `cursor_reset: true` — it does not error.\n\nRepeat the same filter query parameters on every request; they are **not** encoded in the cursor.\n\n## Filters\n\nOptional query filters: `conversation_id`, `contact_id`, `sequence_id`, `campaign_id`,\n`user_id`, `channel_id`, `type[]`, `delivery_status[]`, `after`, `before`.\n\n`type` and `delivery_status` are arrays. Repeat the bracketed key\n(`type[]=sms&type[]=fax`). A repeated key without brackets\n(`type=sms&type=fax`) is not a list; only the last value is applied.\n","operationId":"listMessages","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Opaque cursor from a previous response (`metadata.next_cursor` or `metadata.prev_cursor`). A malformed cursor returns a 422 with \"Invalid cursor format\"; a well-formed but unusable cursor resets to the first page with cursor_reset set to true.","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Pagination direction. `forward` (default) fetches the next page toward newer messages. `backward` fetches the previous page toward older messages.","in":"query","name":"direction","required":false,"schema":{"enum":["forward","backward"],"type":"string","x-struct":null,"x-validate":null}},{"description":"conversation_id","in":"query","name":"conversation_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"contact_id","in":"query","name":"contact_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"sequence_id","in":"query","name":"sequence_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"campaign_id","in":"query","name":"campaign_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"user_id","in":"query","name":"user_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"channel_id","in":"query","name":"channel_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter by one or more message types.\n\nRepeat the bracketed key (`type[]=sms&type[]=fax`). A repeated key without brackets (`type=sms&type=fax`) is not a list; only the last value is applied.\n","explode":true,"in":"query","name":"type[]","required":false,"schema":{"items":{"enum":["sms","mms","call","whatsapp","messenger","instagram","email","note","fax"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"Filter by one or more delivery statuses.\n\nRepeat the bracketed key (`delivery_status[]=sent&delivery_status[]=call_completed.user_hangup`). A repeated key without brackets is not a list; only the last value is applied.\n\nA call that ends can also be `call_completed.` plus a disconnection reason that is not in this list.\n","explode":true,"in":"query","name":"delivery_status[]","required":false,"schema":{"items":{"description":"Delivery status of the message. Any string is valid.\n\nKnown values: queued, sending, sent, delivered, opened, read, failed, sending_failed, delivery_failed, delivery_unconfirmed, dlr_timeout, pending, retrying, call_queued, call_initiated, call_ringing, call_in_progress, call_in_progress.parked, call_completed, call_missed, call_busy, call_no_answer, call_failed, call_cancelled, call_queued.caller_left_voicemail_message, call_queued.reached_voicemail_no_message, call_initiated.caller_left_voicemail_message, call_initiated.reached_voicemail_no_message, call_ringing.caller_left_voicemail_message, call_ringing.reached_voicemail_no_message, call_completed.caller_left_voicemail_message, call_completed.reached_voicemail_no_message, call_missed.caller_left_voicemail_message, call_missed.reached_voicemail_no_message, call_busy.caller_left_voicemail_message, call_busy.reached_voicemail_no_message, call_no_answer.caller_left_voicemail_message, call_no_answer.reached_voicemail_no_message, call_failed.caller_left_voicemail_message, call_failed.reached_voicemail_no_message, call_cancelled.caller_left_voicemail_message, call_cancelled.reached_voicemail_no_message, call_completed.abandoned_before_routing, call_completed.abandoned_while_ringing, call_completed.answered, call_completed.system_ended_call, call_missed.system_ended_call, call_busy.system_ended_call, call_no_answer.system_ended_call, call_failed.system_ended_call, call_cancelled.system_ended_call, call_completed.agent_hangup, call_completed.user_hangup, call_completed.max_duration_reached, call_completed.inactivity, call_completed.voicemail_reached.\n\nA call that ends can be `call_completed.` plus a disconnection reason that is not in the known values.\n","example":"call_completed.user_hangup","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"ISO 8601 datetime; messages inserted at or after this time.","in":"query","name":"after","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"ISO 8601 datetime; messages inserted at or before this time.","in":"query","name":"before","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMessagesResponse"}}},"description":"List Messages Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Messages","tags":["Messages"]}},"/v1/workflows/{id}/steps/batch":{"post":{"callbacks":{},"deprecated":false,"description":"Append-only batch create of draft steps in **one** transaction. Prefer this\nover repeated `createWorkflowStep` calls when building a full graph.\n\n## Semantics (not a sync/replace)\n\n- Never deletes existing draft steps\n- Server assigns step IDs\n- Link with `previous_step_alias` / `parent_step_alias` (or UUID variants)\n- Aliases resolve in payload order against existing draft steps **and**\n  earlier steps in the same request\n- Full placement validation runs once at the end — all succeed or none applied\n\nPass `include=steps` to also receive the full editable draft list (same as\nsingle create).\n\nOAuth callers require the `workflows:update` scope.\n","operationId":"createWorkflowStepsBatch","parameters":[{"description":"Workflow ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"When `steps`, also return the full editable draft step list","in":"query","name":"include","required":false,"schema":{"enum":["steps"],"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"example":{"steps":[{"alias":"webhook","data":{"subtype":"webhook"},"name":"Webhook Trigger","type":"trigger"},{"alias":"http_request","data":{"subtype":"http"},"name":"HTTP Request","previous_step_alias":"webhook","type":"action"}]},"properties":{"steps":{"items":{"properties":{"alias":{"maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"child_role":{"enum":["setup","validation","setup_and_validation","clean_up"],"type":"string","x-struct":null,"x-validate":null},"data":{"type":"object","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null},"metadata":{"type":"object","x-struct":null,"x-validate":null},"name":{"maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"parent_step_alias":{"maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"parent_step_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"previous_step_alias":{"maxLength":255,"minLength":1,"type":"string","x-struct":null,"x-validate":null},"previous_step_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"type":{"enum":["trigger","action","empty","wait","filter","split_in_paths","condition_path","error_path","success_path","app","loop","wait_for"],"type":"string","x-struct":null,"x-validate":null}},"required":["name","type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":50,"minItems":1,"type":"array","x-struct":null,"x-validate":null}},"required":["steps"],"type":"object","x-struct":null,"x-validate":null}}},"description":"Steps to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkflowStepsBatchResponse"}}},"description":"createWorkflowStepsBatch Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNotFoundErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUnprocessableContentResponse"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Workflow Steps (Batch)","tags":["Steps"]}},"/v1/contacts/segments/search":{"post":{"callbacks":{},"deprecated":false,"description":"Lists contact segments using WQL filters.\n\nNote: Only active segments are returned. No deleted segments are returned.\n","operationId":"searchContactSegments","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentSearchParams"}}},"description":"Contact Segment Search Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactSegmentsResponse"}}},"description":"Contact Segments"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSegmentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Contact Segments","tags":["Segments"]}},"/v1/agents/{agent_id}/tests/readiness":{"get":{"callbacks":{},"deprecated":false,"description":"Whether each scenario passes on the agent's Live and Draft configuration. Only a run of the\ncurrent scenario definition against the current configuration counts; anything older reads\nas `stale`. `ready` is true when every scenario is `passing`.\n","operationId":"getAgentTestReadiness","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Whether each scenario passes on the agent's Live and Draft configuration. Only a run of the\ncurrent scenario definition against the current configuration counts; anything older reads\nas `stale`. `ready` is true when every scenario is `passing`.\n","properties":{"data":{"properties":{"agent_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"draft_differs_from_live":{"type":"boolean","x-struct":null,"x-validate":null},"targets":{"properties":{"draft":{"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"ready":{"type":"boolean","x-struct":null,"x-validate":null},"summary":{"properties":{"error":{"type":"integer","x-struct":null,"x-validate":null},"failing":{"type":"integer","x-struct":null,"x-validate":null},"not_run":{"type":"integer","x-struct":null,"x-validate":null},"passing":{"type":"integer","x-struct":null,"x-validate":null},"running":{"type":"integer","x-struct":null,"x-validate":null},"stale":{"type":"integer","x-struct":null,"x-validate":null},"unknown":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"live":{"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"ready":{"type":"boolean","x-struct":null,"x-validate":null},"summary":{"properties":{"error":{"type":"integer","x-struct":null,"x-validate":null},"failing":{"type":"integer","x-struct":null,"x-validate":null},"not_run":{"type":"integer","x-struct":null,"x-validate":null},"passing":{"type":"integer","x-struct":null,"x-validate":null},"running":{"type":"integer","x-struct":null,"x-validate":null},"stale":{"type":"integer","x-struct":null,"x-validate":null},"unknown":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"total":{"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"tests":{"items":{"properties":{"agent_test_id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"blockers":{"items":{"properties":{"code":{"example":"scenario_incomplete","type":"string","x-struct":null,"x-validate":null},"message":{"example":"Finish the scenario","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"draft":{"properties":{"run":{"nullable":true,"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"result":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"enum":["passing","failing","unknown","error","running","stale","not_run"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"from_feedback":{"type":"boolean","x-struct":null,"x-validate":null},"last_run":{"nullable":true,"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"result":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"live":{"properties":{"run":{"nullable":true,"properties":{"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"id":{"format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"result":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"status":{"enum":["passing","failing","unknown","error","running","stale","not_run"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_type":{"enum":["call","conversation"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_selection":{"enum":["current_published","draft"],"type":"string","x-struct":null,"x-validate":null},"title":{"description":"Display title: the name, else the first line of the scenario.","nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}},"title":"AgentTestReadinessResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Readiness"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Agent test readiness for Live and Draft","tags":["Tests"]}},"/v1/agents/{id}/draft":{"delete":{"callbacks":{},"deprecated":false,"description":"Discards staged Agent changes by resetting the draft workspace to the live version. This is a safe no-op when no staged changes exist and never changes the live version.","operationId":"discardAgentDraft","parameters":[{"description":"Agent ID","example":"00eebf14-1ebb-491c-bae2-65fb5299b950","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Discard Agent Draft Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentNotFoundErrorResponse"}}},"description":"Agent Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Discard Agent Draft","tags":["Agents"]}},"/v1/messaging/email":{"post":{"callbacks":{},"deprecated":false,"description":"Creates and Sends an Email message.\n\n* Emails will be sent using the channel that corresponds to the `from` request parameter.\n  The `from` value can be either the channel's `email adrress` or the channel's `ID`.\n\n* Plain Text and HTML bodies are accepted (as long as they're in string format).\n\n* Attachment-only emails are also accepted.\n\n* If there is no contact corresponding to the `to` parameter for the organization, a new contact will be created, along with a conversation with the `from` email channel. If there is an existing contact but no conversation, a new conversation will be created.\n\n* The `opt_in_to_all_channels` and `opt_in_to` params are optional and they will be processed in the cases where a new contact is created. These params reflect which of the organization channels the contact will be opted in to.\n\nNote: The Messaging API is designed for creating and managing emails and can only process POST requests. To view emails, navigate to the Conversation section where you can use the Show Conversation API to GET emails within a specific conversation.\n","operationId":"sendEmail","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailParams"}}},"description":"Send Email Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailResponse"}}},"description":"Email Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Send Email","tags":["Messages"]}},"/v1/conversations/search":{"post":{"callbacks":{},"deprecated":false,"description":"Search conversations in an organization.\n\nConversations with no last_message_date will be excluded as they're regarded as empty.\n\nThe default offset is 0 and the default limit is 50.\nThe max limit is 500.\n","operationId":"searchConversations","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchConversationsParams"}}},"description":"Search Conversation Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListConversationsResponse"}}},"description":"Conversations"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Search Conversations","tags":["Conversations"]}},"/v1/agent_test_runs/{id}/cancel":{"post":{"callbacks":{},"deprecated":false,"description":"id is the agent test run ID, not the agent test ID.\nCancellation is cooperative: later steps stop, but an in-flight model request may finish.\nCall show_agent_test_run to read the state this returns.\n","operationId":"cancelAgentTestRun","parameters":[{"description":"Agent test run ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":{"agent_id":"00000000-0000-4000-8000-000000000002","agent_test_id":"00000000-0000-4000-8000-000000000003","agent_version_id":"00000000-0000-4000-8000-000000000005","human_override":null,"id":"00000000-0000-4000-8000-000000000004","inserted_at":"2026-01-01T12:00:00.000000Z","llm_version_id":null,"organization_id":"00000000-0000-4000-8000-000000000001","rationale":"Met success criteria.","result":"pass","status":"completed","tool_trace":{"events":[]},"transcript":{"messages":[]},"updated_at":"2026-01-01T12:00:00.000000Z"}},"properties":{"data":{"properties":{"agent_configuration_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_id":{"example":"00000000-0000-4000-8000-000000000002","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_id":{"example":"00000000-0000-4000-8000-000000000003","format":"uuid","type":"string","x-struct":null,"x-validate":null},"agent_test_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"agent_test_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"agent_version_target":{"description":"Agent configuration the run executed: live, draft, a pinned version, or source_call for the automatic reproduction against the version that took the source call.","enum":["live","draft","pinned","source_call"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_id":{"description":"Shared by every run started from one enqueue or suite run.","format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"batch_result":{"description":"Combined result for every non-cancelled run in this batch for the same test. Null while any peer is still pending or running, and null when every run in the batch was cancelled or the batch is empty. Cancelled runs are ignored otherwise. Human overrides count.","enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"evaluator_snapshot":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"human_override":{"description":"Human reviewer override of the machine verdict","nullable":true,"properties":{"overridden_at":{"format":"date-time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"overridden_by_id":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"id":{"example":"00000000-0000-4000-8000-000000000004","format":"uuid","type":"string","x-struct":null,"x-validate":null},"inserted_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"llm_version_id":{"format":"uuid","nullable":true,"type":"string","x-struct":null,"x-validate":null},"organization_id":{"example":"00000000-0000-4000-8000-000000000001","format":"uuid","type":"string","x-struct":null,"x-validate":null},"rationale":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"result":{"enum":["pass","fail","unknown"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"simulator_model":{"description":"Model used for the simulated caller on this run. Runs created before model selection report the testing model. Null for next_reply tests, which have no simulated caller.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"status":{"enum":["pending","running","completed","failed","cancelled"],"type":"string","x-struct":null,"x-validate":null},"test_version_fingerprint":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_publication":{"description":"Publication state captured at enqueue. A later publish does not change it.","enum":["draft","published"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"test_version_revision":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"tool_trace":{"additionalProperties":true,"description":"Tool invocation trace for the run","properties":{"events":{"items":{"properties":{"arguments":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"result":{"additionalProperties":true,"nullable":true,"type":"object","x-struct":null,"x-validate":null},"status":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"tool_name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"transcript":{"additionalProperties":true,"description":"Run transcript payload (messages and metadata)","properties":{"completion_reason":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"messages":{"items":{"properties":{"arguments":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"content":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"role":{"enum":["user","assistant","system","tool_call_invocation","tool_call_result"],"type":"string","x-struct":null,"x-validate":null},"successful":{"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"tool_call_id":{"nullable":true,"type":"string","x-struct":null,"x-validate":null},"turn":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"required":["role"],"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"turn_count":{"nullable":true,"type":"integer","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"updated_at":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"required":["id","agent_test_id","agent_id","organization_id","status","transcript","tool_trace","inserted_at","updated_at"],"type":"object","x-struct":null,"x-validate":null}},"required":["data"],"title":"ShowTestRunResponse","type":"object","x-struct":null,"x-validate":null}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Test run not found"}],"status":404},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Test run not found","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":404,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestNotFoundError","type":"object","x-struct":null,"x-validate":null}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"example":{"errors":[{"code":"agent_test_not_published","description":"Agent test has no published version. Publish it or execute the draft explicitly"}],"status":422},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"code":{"description":"Stable lifecycle code. Validation errors omit it. stale_draft uses HTTP 409.","enum":["agent_has_no_prompt","agent_not_found","agent_test_archived","agent_test_draft_missing","agent_test_not_published","conversation_too_large","draft_missing","fix_proposal_not_proposed","invalid_agent_version","invalid_llm_version","invalid_test_version","invalid_turn_index","invalid_version_policy","missing_agent","missing_transcript","no_changes","pinned_not_passing_unsupported","revision_required","run_not_failing","scenario_incomplete","stale_draft","stale_fix_proposal","template_agent_not_executable","too_many_tests","unpublished_version"],"nullable":true,"type":"string","x-struct":null,"x-validate":null},"description":{"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":422,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestValidationError","type":"object","x-struct":null,"x-validate":null}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"example":{"errors":[{"description":"Too Many Requests for API Key"}],"status":429},"properties":{"code":{"description":"Stable, machine-readable error class. Branch on this instead of parsing messages. Built-in values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `not_acceptable`, `conflict`, `payload_too_large`, `unsupported_media_type`, `validation_failed`, `rate_limited`, `internal_error`, `service_unavailable`, `client_error`. An endpoint may return a more specific code.","type":"string","x-struct":null,"x-validate":null},"docs_url":{"description":"Documentation page that explains this error.","example":"https://docs.whippy.ai/docs/errors","format":"uri","type":"string","x-struct":null,"x-validate":null},"errors":{"items":{"properties":{"description":{"example":"Too Many Requests for API Key","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"message":{"description":"Human-readable summary of the error.","type":"string","x-struct":null,"x-validate":null},"request_id":{"description":"Request identifier, also sent in the `x-request-id` header when available. Include it when contacting support.","type":"string","x-struct":null,"x-validate":null},"resolution":{"description":"What the caller can do to resolve the error.","type":"string","x-struct":null,"x-validate":null},"status":{"example":429,"type":"integer","x-struct":null,"x-validate":null}},"title":"AgentTestRateLimitError","type":"object","x-struct":null,"x-validate":null}}},"description":"Too Many Requests"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Cancel agent test run","tags":["Test Runs"]}},"/v1/workflow-apps/{app_id}/connections":{"get":{"callbacks":{},"deprecated":false,"description":"Lists connections (authenticated accounts) for a workflow app.\n\nSecrets are never returned. Connections are sensitive, so OAuth callers require `workflows:update`.\n","operationId":"listWorkflowAppConnections","parameters":[{"description":"Workflow app ID","example":"660e8400-e29b-41d4-a716-446655440001","in":"path","name":"app_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Filter by connection name","example":"work","in":"query","name":"search","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of connections to return.","example":20,"in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Number of connections to skip.","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"minimum":0,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowConnectionsResponse"}}},"description":"List connections"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionNotFound"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionUnprocessableContent"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Workflow App Connections","tags":["Apps"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a connection shell for a workflow app. Do not send secrets — call\n`authorize` next and have the user complete auth in the browser.\n\nOAuth callers require `workflows:update`.\n","operationId":"createWorkflowAppConnection","parameters":[{"description":"Workflow app ID","example":"660e8400-e29b-41d4-a716-446655440001","in":"path","name":"app_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"Optional display name","maxLength":255,"type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null}}},"description":"Connection","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowWorkflowConnectionResponse"}}},"description":"Created connection"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionNotFound"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConnectionUnprocessableContent"}}},"description":"Unprocessable Content"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponse"}}},"description":"Service Unavailable"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Workflow App Connection","tags":["Apps"]}},"/v1/calls":{"get":{"callbacks":{},"deprecated":false,"description":"Lists calls for an organization based on filters.\n\nOptionally, the call records can be filtered by the `before` and `after` filters which apply to the `created_at` field.\n\nPrefer **cursor** pagination (`cursor` and `limit`) over `offset` and `limit`. Cursor pagination is\nstable and performant on large datasets. It is triggered automatically when a `cursor` parameter is\nprovided, and `cursor` and `offset` cannot be combined. Paging is forward only.\n\n**Offset-based** pagination (`offset` and `limit`) is supported for shallow pages. `offset + limit`\nmust not exceed 10,000. Requests past that window are rejected — use `cursor` to page further.\n\nBoth methods return a `metadata` object with a `next_cursor` field. Pass it back as `cursor` to fetch\nthe next page; when `next_cursor` is `null`, there are no more results. Filters are not encoded in the\ncursor, so include them on every request.\n","operationId":"getCalls","parameters":[{"description":"The date and time before which the call records were created, in the ISO 8601 format.","example":"2024-04-03T00:00:00Z","in":"query","name":"before","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"The date and time after which the call records were created, in the ISO 8601 format.","example":"2024-05-27T14:36:28.512491ZZ","in":"query","name":"after","required":false,"schema":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},{"description":"Maximum number of calls to return. Defaults to 50. Must be between 1 and 500.\n\nWhen used with `offset`, `offset + limit` must not exceed 10,000. Prefer `cursor` over `offset` and `limit`.\n","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Preferred over `offset` and `limit`.\n\nUse the `next_cursor` value from the previous response. Cannot be combined with `offset`. Use this to page past the 10,000 `offset + limit` window. Paging is forward only.\n","example":"eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Number of calls to skip. Defaults to 0. Cannot be combined with `cursor`.\n\n`offset + limit` must not exceed 10,000. Prefer `cursor` over `offset` and `limit`.\n","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCallResponse"}}},"description":"List Calls Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallListUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Calls","tags":["Calls"]}},"/v1/sequences/{id}/contacts/remove":{"post":{"callbacks":{},"deprecated":false,"description":"Remove contacts from the sequence.\n\nA contact will only be removed if it exists in the sequence, The `sequence_id` taken from the `url` It accepts the list of contacts as `to` list in the parameters.\n\nIf any given contact doesn't exist in an organization, It will create contact only for current organization, but that contact don't have any impact on sequence.\nThe contacts will be tagged with an upload tag with a timestamp corresponding to the time of the request. then the status of contact will be updated to `Finished`\n\nThe process will run in the background, therefore a `202 Accepted` status is initially returned on success.\n","operationId":"removeSequenceContacts","parameters":[{"description":"Sequence ID","example":"af9cc89f-5de2-44e4-ab1f-60efeb218ec8","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/removeContactsParams"}}},"description":"Remove Sequence Contacts Params","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveSequenceContactsResponse"}}},"description":"Sequence"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Remove Sequence Contacts","tags":["Sequences"]}},"/v1/forms/{id}/versions/{version_id}/rollback":{"post":{"callbacks":{},"deprecated":false,"description":"Loads a previously published version into the draft workspace. Does not change the live version until publish.","operationId":"rollbackForm","parameters":[{"description":"Form ID","example":"e0aa31a3-c18d-429b-9e21-4812d81fc139","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}},{"description":"Published form version ID to load into the draft.","example":"075c5717-57e3-4cf9-af38-073939490269","in":"path","name":"version_id","required":true,"schema":{"format":"uuid","type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}},"description":"Form Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableContentResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Roll Back Form Version","tags":["Forms"]}},"/v1/contacts/lists/{id}/contacts":{"put":{"callbacks":{},"deprecated":false,"description":"Update the contact list contacts in an organization by applying the given `action` over `contacts`. Before applying it, the contacts\nare created or updated in case they already exists, and are opt in to all organization channels by default in case `action` is `add` or `overwrite`.\nBy providing the `opt_in_to` field you can choose to only opt in the contacts to specific channels. The contact list must be `active`.\n\nThe following actions are supported:\n\n- `add`: Adds the contacts to the contact list.\n\n- `remove`: Removes the contacts from the contact list.\n\n- `overwrite`: Removes all contacts from the contact list and adds the given contacts to it.\n\n","operationId":"updateContactListContacts","parameters":[{"description":"Contact List ID","example":"4bac6d6a-24a7-4d7b-ad5c-ce825cc5d298","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactListContactsParams"}}},"description":"Update Contact List Contacts Params","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactListContactsResponse"}}},"description":"Update Contact List Contacts Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListsContactsUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Contact List Contacts","tags":["Lists"]}},"/v1/agents":{"get":{"callbacks":{},"deprecated":true,"description":"Lists agents for an organization based on filters.\n\nOptionally, the agent records can be filtered by the `name` field.\n","operationId":"getAgents","parameters":[{"description":"name","example":"Bruce","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"offset","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentResponse"}}},"description":"List Agents Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Agents","tags":["Agents"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates an agent for the authenticated organization.","operationId":"createAgent","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentParams"}}},"description":"Create Agent Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowAgentResponse"}}},"description":"Create Agent Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Agent","tags":["Agents"]}},"/v1/contacts":{"get":{"callbacks":{},"deprecated":false,"description":"Lists contacts in an organization.\n\nThis endpoint supports two pagination methods:\n\n1. **Offset-based pagination** (default): Use `offset` and `limit` parameters\n   - Default offset is 0 and default limit is 50\n   - Maximum limit is 500\n\n2. **Cursor-based pagination**: Use `cursor` and `limit` parameters\n   - Default limit is 50\n   - Maximum limit is 500\n   - Provides more efficient pagination for large datasets\n   - Uses the same ordering on contact name (and ID as a tiebreaker)\n   - Use the `next_cursor` from `metadata` for subsequent requests\n   - Filters are not included in the cursor - you still have to include them in subsequent requests\n     or you'll get different data.\n   - When `next_cursor` is null, there are no more results\n   - Note: Only forward pagination is supported (no backward navigation for now)\n\nCursor-based pagination is automatically triggered when a `cursor` parameter is provided,\nif the `offset` parameter is not specified. If both parameters are provided, an error is returned.\n\nBoth pagination methods return a `metadata` object containing a `next_cursor` field.\nWhen there are more results available, `next_cursor` contains a cursor string that can be used\nto fetch the next page. When there are no more results, `next_cursor` is `null`.\nThis allows you to start with offset-based pagination and switch to cursor-based pagination\nfor subsequent requests if desired.\n\nIt is recommended to use cursor-based pagination for large datasets,\nand offset-based pagination for random access at various parts of the dataset.\n\nThe cursor is a base64-encoded string that represents a position in the dataset,\nbased on the default composite ordering by ascending name first, and ID second (as a tiebreaker when there are tied names), used in order to have\nmore deterministic results.\n\nThe cursor is built from a JSON object that has a contact ID and the name of the contact\nthat corresponds to the ID. It has a format of `{\"name\": \"contact_name\", \"id\": \"contact_id\"}`, encoded as a URL-safe base64 string,\nwith padding removed. If necessary, you can generate the cursor before making an initial request, and start directly at the provided cursor, if it is valid.\n\nFor example, this is how you could do that in Python:\n```python\nimport json\nimport base64\n\ndef encode_cursor(name, id):\n    cursor_data = {\n        \"name\": name,\n        \"id\": id\n    }\n\n    json_string = json.dumps(cursor_data)\n    base64_bytes = base64.urlsafe_b64encode(json_string.encode('utf-8'))\n\n    # remove padding (trailing '=' characters)\n    return base64_bytes.decode('utf-8').rstrip('=')\n```\n\n**Invalid or unusable cursors**\n\n- A **malformed** cursor — not valid URL-safe base64, not JSON, or a JSON\n  object without exactly the `name` and `id` keys — is rejected with a\n  `422 Unprocessable Content` and `{\"description\": \"Invalid cursor format\"}`.\n  The literal strings `null` and `undefined` are treated as malformed.\n- A **well-formed but stale** cursor (e.g. the contact it pointed at was\n  since deleted or renamed) is still a valid position: the request succeeds\n  and returns the contacts after that position. `cursor_reset` is `false`.\n- A **well-formed but unusable** cursor (correct keys, but a value that\n  can't be a position — e.g. an `id` that isn't a UUID) does not error.\n  The request resets to the first page and the response sets\n  `cursor_reset` to `true` so you can detect the reset rather than looping.\n","operationId":"getContacts","parameters":[{"description":"Number of results to return.","example":50,"in":"query","name":"limit","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Offset for traditional pagination. Cannot be combined with cursor.","example":0,"in":"query","name":"offset","required":false,"schema":{"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use the next_cursor value from the previous response. A malformed cursor (bad base64/JSON, or wrong keys) returns a 422 with \"Invalid cursor format\"; a well-formed but unusable cursor resets to the first page and sets cursor_reset to true. Cannot be combined with offset.","example":"eyJuYW1lIjogIkpvaG4gV2lsbGlhbXMiLCAiaWQiOiAiMTFhMzdlMDUtMmRjMi00ZDc2LTg3ODUtYmE4MDUwYTliMTk5In0","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Can be set to any string or nil/null to return contacts with no name. Matched as a case-insensitive substring.","example":"John","in":"query","name":"name","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Email address of the contact. Matched as a case-insensitive substring.","example":"bill@shakespeare.uk","in":"query","name":"email","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Phone number of the contact. A non-E.164 value is a case-insensitive substring.","example":"+442829-450266","in":"query","name":"phone","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Default: filter open contacts by `contacts.external_id` (exact match).\n\nWith `join_lookup=true`: match `contacts_integrations.external_id` for the given\n`integration_id` (any contact state). Multiple contacts may match (e.g. open + archived\ndual-join). Required when `join_lookup=true`.\n","example":"ext-12345","in":"query","name":"external_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"When true, discover contacts via the `contacts_integrations` join table for the given\n`integration_id` + `external_id`, including non-open states (archived, merged, etc.).\nRequires both `integration_id` and `external_id`. Without this flag, list/search stay\nopen-only and `integration_id`/`external_id` do not activate join discovery.\n","example":true,"in":"query","name":"join_lookup","required":false,"schema":{"type":"boolean","x-struct":null,"x-validate":null}},{"description":"Required with `join_lookup=true`. UUID of the integration whose `contacts_integrations`\nrows to match (with `external_id`). Distinct from `has_integration`, which filters open\ncontacts that have any join for an integration. Ignored for join discovery unless\n`join_lookup=true`.\n","example":"0adddccd-8a3d-4961-b8e5-7ecc89a92284","in":"query","name":"integration_id","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Contact states to include. Absent means open contacts only.\n`all` returns every state (`open`, `archived`, `blocked`, `merged`).\nA single state such as `archived` limits the list to that state.\nA non-empty JSON array such as `[\"archived\", \"open\"]`, or repeated `states[]`,\nallows a subset. `[\"all\"]` is the same as `all`.\n`all` cannot be combined with specific states.\nThe state filter applies to every contact the list returns.\n","example":"all","in":"query","name":"states","required":false,"schema":{"example":"all","oneOf":[{"enum":["all","open","archived","blocked","merged"],"type":"string","x-struct":null,"x-validate":null},{"items":{"enum":["open","archived","blocked","merged"],"type":"string","x-struct":null,"x-validate":null},"minItems":1,"type":"array","x-struct":null,"x-validate":null},{"items":{"enum":["all"],"type":"string","x-struct":null,"x-validate":null},"maxItems":1,"minItems":1,"type":"array","x-struct":null,"x-validate":null}],"x-struct":null,"x-validate":null}},{"description":"created at date","example":{"after":"2026-11-26T16:37:59.075848Z","before":"2026-11-24T16:37:59.075796Z"},"explode":true,"in":"query","name":"created_at","required":false,"schema":{"description":"Created At Date in ISO 8601. `before` and `after` filter `contacts.inserted_at` and must be a full datetime, such as `2026-07-17T00:00:00Z`.","properties":{"after":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"},{"description":"updated at date","example":{"after":"2026-11-26T16:37:59.075899Z","before":"2026-11-24T16:37:59.075896Z"},"explode":true,"in":"query","name":"updated_at","required":false,"schema":{"description":"Updated At Date in ISO 8601","properties":{"after":{"format":"date-time","type":"string","x-struct":null,"x-validate":null},"before":{"format":"date-time","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"style":"deepObject"},{"description":"channel IDs","example":["567f9cde-f982-49e3-9534-fed9c1187f8e","f4d5d412-fee1-468f-9490-73bfa6456fb3"],"in":"query","name":"channels[][id]","required":false,"schema":{"description":"IDs of channels contacts have been opted in or out of.","items":{"description":"Channel ID","example":"c92b78a4-acae-47ab-941d-5a27e0542d04","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}},{"description":"channel phones","example":["+14155552671","+14155552672"],"in":"query","name":"channels[][phone]","required":false,"schema":{"description":"Phones of channels contacts have been opted in or out of.","items":{"description":"Channel phone","example":"+14155552671","type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactsResponse"}}},"description":"Contacts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIndexUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Contacts","tags":["Contacts"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a contact.\n\nPassing a phone number that is already used by an existing contact would get and update the existing contact.\nIt would not try to create a new contact with a duplicate phone number.\n\nPassing an external ID that is already used by an existing contact would get and update the existing contact.\nIf the parameters include a valid phone number and email that differ from those currently associated with the contact,\nthe existing values will be updated accordingly, as long as they don't conflict with other contacts' values.\n","operationId":"createContact","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactParams"}}},"description":"Create Contact Params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowContactResponse"}}},"description":"Contact"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Contact","tags":["Contacts"]}},"/v1/domains/purchase-intents/{id}/confirm":{"post":{"callbacks":{},"deprecated":false,"description":"Authorizes the registrar charge for a pending intent and creates the domain with\n`status: pending`. Registration then continues asynchronously.\n\nRequires an idempotency key, sent as the `Idempotency-Key` header or the `idempotencyKey`\nbody field. Retrying with the same key returns the same intent and domain without a second\ncharge. Rejections: `409` for expired, cancelled, failed, already-confirmed, unavailable, or\nre-priced intents, `422` for a missing or reused key or a purchase above the organization\npolicy, `403` without the admin role or `domains:purchase` permission.\n","operationId":"confirmDomainPurchaseIntent","parameters":[{"description":"Purchase intent ID","example":"5b1d7c0e-8f2a-4d3b-9c6e-7a8b9c0d1e2f","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Unique key for this purchase (1-255 characters)","in":"header","name":"Idempotency-Key","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmDomainPurchaseIntentParams"}}},"description":"Confirm Purchase Intent Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPurchaseIntentResponse"}}},"description":"Purchase Intent Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainError"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Confirm Purchase Intent","tags":["Domain Purchases"]}},"/v1/developers/endpoints/{id}":{"delete":{"callbacks":{},"deprecated":false,"description":"Deletes a developer endpoint beloning to a developer application in the organization.","operationId":"deleteDeveloperEndpoint","parameters":[{"description":"Developer Endpoint ID","example":"6e7f2fb5-391a-43e2-b9c8-5caadebe6244","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerEndpointResponse"}}},"description":"Developer Endpoint"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Delete Developer Endpoint","tags":["Endpoints"]},"get":{"callbacks":{},"deprecated":false,"description":"Returns information about a specific developer endpoint.","operationId":"getDeveloperEndpoint","parameters":[{"description":"Developer Endpoint ID","example":"73a8663b-9802-4c95-82f6-9a1ac59a95d1","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerEndpointResponse"}}},"description":"Developer Endpoint"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointNotFoundErrorResponse"}}},"description":"Not Found"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Show Developer Endpoint","tags":["Endpoints"]},"put":{"callbacks":{},"deprecated":false,"description":"Updates a developer endpoint.","operationId":"updateDeveloperEndpoint","parameters":[{"description":"Developer Endpoint ID","example":"e690cc32-0352-4598-981b-f6e9f422b3ab","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointParams"}}},"description":"Developer Endpoint Params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowDeveloerEndpointResponse"}}},"description":"Developer Endpoint"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointBadRequestErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperEndpointNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperApplicationUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Update Developer Endpoint","tags":["Endpoints"]}},"/v1/links/{id}/clicks":{"get":{"callbacks":{},"deprecated":false,"description":"Lists individual clicks on a link. Date range rules match analytics. Supports cursor or offset\npagination. Order is `clicked_at` descending.\n","operationId":"listLinkClicks","parameters":[{"description":"Link ID","example":"dd840673-d544-44b9-99f1-f6438471d2f3","in":"path","name":"id","required":true,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Inclusive start date (YYYY-MM-DD)","example":"2026-10-05","in":"query","name":"start_date","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Inclusive end date (YYYY-MM-DD)","example":"2026-11-03","in":"query","name":"end_date","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Offset the returned results. Cannot be combined with cursor.","example":0,"in":"query","name":"offset","required":false,"schema":{"default":0,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Cursor for keyset pagination. Use next_cursor from the previous response.","example":"eyJ1cGRhdGVkX2F0IjoiMjAyNi0xMS0wM1QxOTowMDowMFoiLCJpZCI6ImRkODQwNjczLWQ1NDQtNDRiOS05OWYxLWY2NDM4NDcxZDJmMyJ9","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Limit the number of results returned (max 100).","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLinkClicks"}}},"description":"List Link Clicks Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInsufficientScopeErrorResponse"}}},"description":"Insufficient Scope Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkNotFoundErrorResponse"}}},"description":"Not Found Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content Response"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List link clicks","tags":["Clicks"]}},"/v1/metrics":{"get":{"callbacks":{},"deprecated":false,"description":"Lists metrics using bidirectional cursor pagination: Whippy's built-in metrics first, in a\nfixed order, followed by the organization's saved metrics (newest first).\n\nA metric is a single chart (one configured measurement). Reports group metrics together; use\nthe Reports endpoints to list and run those.\n\nBuilt-in metrics (`source: whippy`) are the analytics metrics that make up the built-in\nAgents, Conversations, Campaigns, Calls, and Usage dashboards. They have stable reserved IDs\n(prefix `00000000-0000-4000-`) and `null` `created_at`/`updated_at`. The Agents metrics are\n`custom` metrics on the `call.analyzed` event, defined like any metric built in the UI; the\nothers are `non_custom` reports. Saved metrics (`source: organization`) are sorted by\n`created_at` descending, with `id` as a tiebreaker.\n\n## Pagination\n\n- **First page:** omit `cursor` (or use `direction=forward`, the default).\n- **Next page:** use `metadata.next_cursor` with `direction=forward`.\n- **Previous page:** use `metadata.prev_cursor` with `direction=backward`.\n- **`direction=backward` without `cursor`:** returns 422.\n- **`offset`:** not supported.\n\nCursors are opaque, base64-encoded tokens that decode to `{\"inserted_at\": \"<ISO8601>\", \"id\": \"<uuid>\"}`.\n\n## Filtering\n\n- `source` — optionally filter by `whippy` (built-in metrics) or `organization` (metrics\n  saved in the organization). Omitting it returns both.\n- `type` — optionally filter by `custom` (metrics created in the UI) or `non_custom`\n  (metrics backed by a report defined internally by Whippy).\n\n`source` and `type` are independent filters and combine: `type=custom` returns the built-in\nAgents metrics alongside saved `custom` metrics, and `type=non_custom` the other built-in\nmetrics alongside saved `non_custom` metrics.\n","operationId":"listMetrics","parameters":[{"description":"limit","example":50,"in":"query","name":"limit","required":false,"schema":{"default":50,"type":"integer","x-struct":null,"x-validate":null}},{"description":"Opaque cursor from a previous response (`metadata.next_cursor` or `metadata.prev_cursor`).","in":"query","name":"cursor","required":false,"schema":{"type":"string","x-struct":null,"x-validate":null}},{"description":"Pagination direction. `forward` (default) fetches the next page; `backward` fetches the previous page.","in":"query","name":"direction","required":false,"schema":{"enum":["forward","backward"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter metrics by type.","in":"query","name":"type","required":false,"schema":{"enum":["custom","non_custom"],"type":"string","x-struct":null,"x-validate":null}},{"description":"Filter metrics by origin: `whippy` for built-in metrics, `organization` for metrics saved in the organization. Omit for both.","in":"query","name":"source","required":false,"schema":{"enum":["whippy","organization"],"type":"string","x-struct":null,"x-validate":null}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetricResponse"}}},"description":"List Metrics Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"List Metrics","tags":["Metrics"]},"post":{"callbacks":{},"deprecated":false,"description":"Creates a metric in the organization. The response is the metric's definition; run it with\nShow Metric, or try a definition first with Preview Metric.\n\nA metric is a chart (`chart`) over one or more events (`events`). Build events with List\nMetric Events and List Metric Event Fields:\n\n- `type` and `name` come from List Metric Events, which also lists the charts each supports.\n- `filter`, `group_by` and `aggregate` use the fields List Metric Event Fields returns.\n- `non_custom` events (and a metric `type` of `non_custom`) name a report; only the reports\n  List Metric Events lists are accepted, with the filters and group-by fields it describes.\n\nRules that span events: linked metrics (`linked: true`) have exactly two events, one\n`whippy_event` and one `custom_event`, with different `rank`s; funnel steps are ordered by\n`rank`; heatmaps take no `aggregate`; bar, column and line charts group by at most one field;\n`group_colors` and event `color` take `#RRGGBB` hex colors.\n\nRequests made with an API key are attributed to the user who created the key.\n","operationId":"createMetric","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"description":"A metric definition.","example":{"chart":"bar","events":[{"filter":[{"column":"duration","comparison":">=","field_type":"integer","filter_type":"seconds","value":30}],"group_by":[{"field":"channel_id"}],"name":"call.analyzed","type":"whippy_event"}],"title":"AI calls by channel","type":"custom"},"properties":{"chain_steps_by_contact":{"description":"Funnel charts only. When true each step counts the distinct contacts that reached the step before it; when false the steps are counted independently.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"chart":{"description":"The chart type the metric renders as. `non_custom` reports support a subset, listed per report by `GET /v1/metrics/events`.","enum":["bar","line","column","donut","pie","total","heatmap","table","funnel","distribution"],"example":"total","type":"string","x-struct":null,"x-validate":null},"description":{"description":"Metric description.","example":"Count of AI calls over time","nullable":true,"type":"string","x-struct":null,"x-validate":null},"events":{"description":"The events the metric measures. Together with `chart`, this defines what the metric shows.","items":{"description":"One event the metric measures.","properties":{"aggregate":{"description":"How the event is aggregated. Empty for a count; otherwise `aggregate_type` with the `field` and `field_type` it applies to. A call's `duration` on `call.analyzed` and `call.ended` (listed with `millisecond_precision: true`) can use `field_type` `milliseconds`: a `sum`, `avg`, `min` or `max` then uses each call's exact duration, where `seconds` rounds each call up to whole seconds first. Without `display_units`, both come back in seconds. `milliseconds` on any other field returns a 422. A `sum`, `avg`, `min` or `max` of a duration field (`field_type` `seconds` or `milliseconds`) can also set `display_units`: any of `days`, `hours`, `minutes` and `seconds`. The results then give the value in the smallest selected unit, rounded to two places, with a `formatted` text in whole units, rounded half up: `2 min` with one unit, `2 d 4 h 13 min` with several. Pick several units for more precision (`2 min 20 s`). When one event in a metric sets `display_units`, every event must set the same ones. Funnel charts can't set them. On a table with a pivoted group_by clause, a `count` or `sum` can set `percent_of_row: true` (on its own for the default count): each pivot cell then also gets its share of the row's total, a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key (`{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`).","example":{"aggregate_type":"avg","display_units":["minutes"],"field":"duration","field_type":"seconds"},"type":"object","x-struct":null,"x-validate":null},"aggregates":{"description":"Several aggregates of the event, computed together in one query, instead of the single `aggregate` (leave `aggregate` empty). Each becomes a column of the result rows, named by its `key`: `{\"group_a\": …, \"calls\": 12, \"minutes\": 31.5}`. Pivoted, each has its own cells, `<key>:<group_key>:<value>`, and total, `<key>:total`. Only on table charts, on the metric's only event, and on a `whippy_event`; not with `chain_steps_by_contact`. A `count` with no field is the event's default count. A `sum`, `avg`, `min` or `max` of a duration field can set its own `display_units`. An empty list, like `null`, means the event has none.","example":[{"aggregate_type":"count","key":"calls","label":"Calls","percent_of_row":true},{"aggregate_type":"sum","display_units":["minutes"],"field":"duration","field_type":"milliseconds","key":"minutes","label":"Minutes"}],"items":{"additionalProperties":false,"properties":{"aggregate_type":{"description":"Type of the aggregation. A `count` without `field` counts the event's records.","enum":["count","sum","avg","min","max"],"example":"sum","type":"string","x-struct":null,"x-validate":null},"analysis_field":{"description":"Whether `field` is a dynamic analysis field of a `call.analyzed` event, as in the single `aggregate`.","type":"boolean","x-struct":null,"x-validate":null},"display_units":{"description":"Units to show this duration in, on a sum, avg, min or max of a `seconds` or `milliseconds` field. Its column comes back in the smallest selected unit, with a `formatted` text in the row's `formatted` object. Each aggregate sets its own.","example":["minutes"],"items":{"enum":["days","hours","minutes","seconds"],"type":"string","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"field":{"description":"Field to aggregate on. Leave it out for a count of the event's records.","example":"duration","type":"string","x-struct":null,"x-validate":null},"field_type":{"description":"Type of the field, with `field`. Only numeric fields are supported. `milliseconds` is only allowed on the `duration` of `call.analyzed` and `call.ended` events, as in the single `aggregate`: the column uses each call's exact duration, and comes back in seconds without `display_units`.","enum":["float","integer","number","seconds","milliseconds"],"example":"milliseconds","type":"string","x-struct":null,"x-validate":null},"key":{"description":"The aggregate's column in the result rows: lowercase letters, digits and underscores, starting with a letter, unique within the event, and not one of `x`, `y`, `z`, `event`, `segment`, `segments`, `formatted`, `percent_of_row`, `total`, `level`, `percentage`, `absolute`, `prev_x`, `trend`, `records`, `group_a`, `group_b`, `group_c`.","example":"minutes","pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string","x-struct":null,"x-validate":null},"label":{"description":"The column's heading.","example":"Minutes","maxLength":100,"nullable":true,"type":"string","x-struct":null,"x-validate":null},"percent_of_row":{"description":"Table charts with a pivoted group_by clause only, on a `count` (including the default count) or `sum`. Each of the aggregate's pivot cells also gets its share of the row's total, as a percentage rounded half up to two places, in the row's `percent_of_row` object under the cell's key: `{\"percent_of_row\": {\"group_b:Positive\": 33.33}}`, or `{\"percent_of_row\": {\"calls:group_b:Complete\": 66.67}}` for an `aggregates` entry. `null` when the row's total is 0.","example":true,"type":"boolean","x-struct":null,"x-validate":null}},"required":["key","aggregate_type"],"type":"object","x-struct":null,"x-validate":null},"maxItems":10,"nullable":true,"type":"array","x-struct":null,"x-validate":null},"color":{"description":"Hex color (`#RRGGBB`) for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"count_by":{"description":"Funnel charts that follow the same contacts only. What the step reports: `contact` (the default) counts the contacts who reached it; `record` also counts every event those contacts produced at it, returned as `records` beside the contact count. Not allowed on a step that aggregates a field.","enum":["contact","record"],"example":"record","nullable":true,"type":"string","x-struct":null,"x-validate":null},"filter":{"description":"Filters applied to the event.","example":[{"column":"channel_id","comparison":"in","value":["70278cd3-83c2-4b65-9d99-3e631e731abb"]}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"group_by":{"description":"Fields the event is grouped by.","example":[{"field":"channel_id"}],"items":{"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"label":{"description":"Display label for the event's series.","nullable":true,"type":"string","x-struct":null,"x-validate":null},"name":{"description":"Event name, e.g. `call.analyzed`, or the report name for `non_custom` events.","example":"call.analyzed","type":"string","x-struct":null,"x-validate":null},"rank":{"description":"Order of the event within linked and funnel metrics.","nullable":true,"type":"integer","x-struct":null,"x-validate":null},"source_field":{"description":"Linked metrics only. Field that links the event to the other event (defaults to `contact_id`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"source_resource_type":{"description":"Linked metrics only. Resource type of `source_field` (defaults to `contact`).","nullable":true,"type":"string","x-struct":null,"x-validate":null},"type":{"description":"Event source: `whippy_event` (an event Whippy records), `custom_event` (an event sent by the organization), or `non_custom` (a report defined internally by Whippy).","enum":["whippy_event","custom_event","non_custom"],"example":"whippy_event","type":"string","x-struct":null,"x-validate":null}},"type":"object","x-struct":null,"x-validate":null},"type":"array","x-struct":null,"x-validate":null},"font_size":{"description":"Font size in pixels for the chart value. Primarily used for total charts.","example":26,"nullable":true,"type":"integer","x-struct":null,"x-validate":null},"group_colors":{"description":"Segment colors keyed by group_by field, then by raw group value, to a hex color. Values without an entry fall back to the default palette.","example":{"office.city":{"New York":"#FF0000"}},"type":"object","x-struct":null,"x-validate":null},"legend_position":{"description":"Position of the legend on the chart.","enum":["top","left","right","bottom"],"example":"right","nullable":true,"type":"string","x-struct":null,"x-validate":null},"linked":{"description":"Whether the metric is linked: exactly two events, one `whippy_event` and one `custom_event`, where one is counted only for the records that also had the other.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"orientation":{"description":"Reading direction of the funnel bands. Only used by funnel charts; `null` renders vertically.","enum":["vertical","horizontal"],"example":"horizontal","nullable":true,"type":"string","x-struct":null,"x-validate":null},"prefix":{"description":"Text prepended to the chart value (e.g. \"$\"). Primarily used for total charts.","example":"$","nullable":true,"type":"string","x-struct":null,"x-validate":null},"show_legend":{"description":"Whether the chart renders a legend. Primarily used for sector charts (pie, donut).","example":true,"nullable":true,"type":"boolean","x-struct":null,"x-validate":null},"suffix":{"description":"Text appended to the chart value (e.g. \"%\"). Primarily used for total charts.","example":"%","nullable":true,"type":"string","x-struct":null,"x-validate":null},"table_sort":{"additionalProperties":false,"description":"Custom table charts only: a built-in report's (`non_custom`) table keeps the report's order. The column the result rows are sorted by, and which way. The column is one of the table's value columns: `x`, or `total` when a group_by clause is pivoted; with an `aggregates` list, an aggregate's `key`, or `<key>:total` when pivoted. Rows without a value come last, and rows with the same value keep the table's own order. `null` keeps the table's own order. Moving the chart off a table, or the metric to a built-in report, without sending it clears it.","example":{"column":"total","direction":"desc"},"nullable":true,"properties":{"column":{"description":"The value column to sort by.","example":"total","type":"string","x-struct":null,"x-validate":null},"direction":{"enum":["asc","desc"],"example":"desc","type":"string","x-struct":null,"x-validate":null}},"required":["column","direction"],"type":"object","x-struct":null,"x-validate":null},"title":{"description":"Metric title","example":"Total AI Calls","type":"string","x-struct":null,"x-validate":null},"trend":{"description":"Whether the metric renders a comparison against the previous period.","example":false,"type":"boolean","x-struct":null,"x-validate":null},"trend_line":{"description":"Whether a trend line is overlaid on time-bucketed charts (bar, column, line).","example":false,"type":"boolean","x-struct":null,"x-validate":null},"type":{"description":"Metric type. `custom` for event-based metrics, as built in the UI, `non_custom` for metrics backed by a report defined internally by Whippy.","enum":["custom","non_custom"],"example":"custom","type":"string","x-struct":null,"x-validate":null}},"required":["title","events","chart"],"title":"CreateMetricRequest","type":"object","x-struct":null,"x-validate":null}}},"description":"Metric definition","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricDefinitionResponse"}}},"description":"Metric Definition Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticatedErrorResponse"}}},"description":"Not Authenticated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricWriteUnprocessableContentErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"authorization":[]},{"bearer":[]}],"summary":"Create Metric","tags":["Metrics"]}}},"security":[],"servers":[{"url":"https://api.whippy.co","variables":{}}],"tags":[]}
