{"openapi":"3.1.0","info":{"title":"Layrcake API","version":"1.1.0","description":"Outcome-oriented GTM API for AI agents."},"servers":[{"url":"https://api.layrcake.dev"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/v1/verify_email":{"post":{"operationId":"verify_email","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":320},"budget_credits":{"description":"Spend ceiling for this call, in credits. If the most the call can cost is above it, the call is refused before anything is reserved or charged. It is a ceiling only: it never lets the call use a dearer source. Where spend ceilings aren't available to this key yet, a request that sets it is refused with the reason.","type":"number","exclusiveMinimum":0,"maximum":2000},"dry_run":{"description":"Return this call's plan instead of running it, as of evaluated_at: the most it can cost, how many sources could answer, what budget_credits changes, and every limit the real call would trip. Nothing is looked up, reserved or charged, and a later call may differ. Where previews aren't available to this key yet, a request that sets it is refused with the reason.","type":"boolean"}},"required":["email"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"email":{"type":"string"},"status":{"type":"string","enum":["valid","invalid","catch_all_valid","catch_all_unknown","unknown","risky"]},"is_catch_all_domain":{"type":"boolean"},"checked_at":{"type":"string"}},"required":["email","status","is_catch_all_domain","checked_at"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"verify_email"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"candidate_sources":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["candidate_sources","maximum_credits","budget_credits"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/enrich":{"post":{"operationId":"enrich","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"person":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"first_name":{"type":"string","minLength":1,"maxLength":100},"last_name":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":320},"linkedin_url":{"type":"string","maxLength":500,"format":"uri"},"company_name":{"type":"string","minLength":1,"maxLength":200},"company_domain":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"title":{"type":"string","maxLength":200}},"additionalProperties":false},"want":{"description":"What to look up. work_email and profile run the email lookup (5 credits on a hit), which returns a mobile number too when its source has one. mobile_phone also runs a separate mobile search when the email lookup found none: 17 credits when that search finds one, 5 when the mobile came with the email, nothing when no mobile is found; a mobile_phone-only request that finds only an email is free and returns nothing. Where this isn't applied for your key yet, every call runs the same email lookup whatever this lists.","maxItems":12,"type":"array","items":{"type":"string","enum":["work_email","mobile_phone","profile"]}},"max_credits":{"description":"Spend ceiling for this call, in credits. If the most the call can cost is above it, the call is refused before anything is reserved or charged.","type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"route":{"description":"Source preference for this call: balanced (the default), cheapest (the lowest-cost sources), broadest (the sources expected to find the most) or fastest. The price doesn't change with it. Where route choice isn't available to this key yet, only balanced is accepted.","type":"string","enum":["balanced","cheapest","broadest","fastest"]},"budget_credits":{"description":"Spend ceiling for this call, in credits. The same ceiling as max_credits, as a number: send one or the other. If the most the call can cost is above it, the call is refused before anything is reserved or charged. It is a ceiling only: it never lets the call use a dearer source. Where spend ceilings aren't available to this key yet, a request that sets it is refused with the reason.","type":"number","exclusiveMinimum":0,"maximum":2000},"dry_run":{"description":"Return this call's plan instead of running it, as of evaluated_at: the most it can cost, how many sources could answer, what budget_credits changes, and every limit the real call would trip. Nothing is looked up, reserved or charged, and a later call may differ. Where previews aren't available to this key yet, a request that sets it is refused with the reason.","type":"boolean"}},"required":["person"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["hit","partial","miss"]},"contact":{"anyOf":[{"type":"object","properties":{"fingerprint":{"type":"string"},"full_name":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"work_email":{"type":["string","null"]},"work_email_status":{"anyOf":[{"type":"string","enum":["valid","catch_all","unknown","not_found"]},{"type":"null"}]},"email_verdict":{"anyOf":[{"type":"string","enum":["valid","invalid","catch_all_valid","catch_all_unknown","unknown","risky"]},{"type":"null"}]},"mobile_phone":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"location":{"type":["string","null"]},"observed_at":{"type":["string","null"]}},"required":["fingerprint","full_name","title","company_name","company_domain","work_email","work_email_status","mobile_phone","linkedin_url","location","observed_at"],"additionalProperties":false},{"type":"null"}]},"from_cache":{"type":"boolean"},"dropped_to_fit":{"description":"Present only when budget_credits or max_credits was below the price of the mobile search: the wants listed were dropped so the email lookup fits.","type":"array","items":{"type":"string","enum":["mobile_phone"]}}},"required":["outcome","contact","from_cache"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"enrich"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"candidate_sources":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["candidate_sources","maximum_credits","budget_credits"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/find_leads":{"post":{"operationId":"find_leads","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"audience":{"type":"string"},"titles":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"locations":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"industries":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"company_domains":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"}},"company_headcount":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":9007199254740991},"max":{"type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false},"limit":{"default":25,"type":"integer","minimum":1,"maximum":200},"route":{"description":"Source preference for this call: balanced (the default), cheapest (the lowest-cost sources), broadest (the sources expected to find the most) or fastest. The price doesn't change with it. Where route choice isn't available to this key yet, only balanced is accepted.","type":"string","enum":["balanced","cheapest","broadest","fastest"]},"budget_credits":{"description":"Spend ceiling for this call, in credits. If the most the call can cost is above it, limit is lowered to the largest that fits and result.budget_applied says so; the call is refused, before anything is reserved or charged, only when not even one lead fits. It is a ceiling only: it never lets the call use a dearer source. Where spend ceilings aren't available to this key yet, a request that sets it is refused with the reason.","type":"number","exclusiveMinimum":0,"maximum":2000},"dry_run":{"description":"Return this call's plan instead of running it, as of evaluated_at: the most it can cost, how many sources could answer, what budget_credits changes, and every limit the real call would trip. Nothing is looked up, reserved or charged, and a later call may differ. Where previews aren't available to this key yet, a request that sets it is refused with the reason.","type":"boolean"},"offer_token":{"description":"Accept a previous answer's offer: send the same call again, unchanged, with its offer.offer_token. Only the premium step runs, as its own charge at the offer's price, up to its max_credits; the token works once, until expires_at, and only when max_credits is within this key's premium allowance. Where premium offers aren't available to this key yet, a request that sets it is refused with the reason.","type":"string","pattern":"^lc_offer_[A-Za-z0-9_-]{43}$"},"premium":{"description":"Consent, for this call only, to a dearer source when the standard sources come back short, as long as the whole call, the premium step included, stays within budget_credits (which it requires). The premium step is charged separately and reported in result.premium_step. Without it, budget_credits is only a ceiling. Where premium offers aren't available to this key yet, a request that sets it is refused with the reason.","type":"string","const":"within_budget"}},"required":["audience"],"additionalProperties":false},"example":{"audience":"Heads of Sales and VPs of Sales at US software companies with 50 to 500 employees","titles":["Head of Sales","VP Sales"],"industries":["Software Development"],"locations":["United States"],"company_headcount":{"min":50,"max":500},"limit":25}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"match_check":{"type":"object","properties":{"status":{"type":"string","enum":["checked","partial","unchecked"]},"kept":{"type":"integer","minimum":0,"maximum":9007199254740991},"withheld":{"type":"integer","minimum":0,"maximum":9007199254740991},"not_checked":{"type":"integer","minimum":0,"maximum":9007199254740991},"unsure":{"type":"integer","minimum":0,"maximum":9007199254740991},"charged":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["status","kept","withheld","not_checked"],"additionalProperties":false},"leads":{"type":"array","items":{"type":"object","properties":{"fingerprint":{"type":"string"},"full_name":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"work_email":{"type":["string","null"]},"work_email_status":{"anyOf":[{"type":"string","enum":["valid","catch_all","unknown","not_found"]},{"type":"null"}]},"email_verdict":{"anyOf":[{"type":"string","enum":["valid","invalid","catch_all_valid","catch_all_unknown","unknown","risky"]},{"type":"null"}]},"mobile_phone":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"location":{"type":["string","null"]},"observed_at":{"type":["string","null"]}},"required":["fingerprint","full_name","title","company_name","company_domain","work_email","work_email_status","mobile_phone","linkedin_url","location","observed_at"],"additionalProperties":false}},"total_found":{"type":"integer","minimum":0,"maximum":9007199254740991},"budget_applied":{"type":"object","properties":{"limit_requested":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit_used":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["limit_requested","limit_used"],"additionalProperties":false},"offer":{"type":"object","properties":{"offer_token":{"type":"string","pattern":"^lc_offer_[A-Za-z0-9_-]{43}$"},"reason":{"type":"string","enum":["none_found_standard","partially_filled","filter_needs_premium"]},"credits_per_result":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"max_results":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"max_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"expires_at":{"type":"string"}},"required":["offer_token","reason","credits_per_result","max_results","max_credits","expires_at"],"additionalProperties":false},"premium_step":{"type":"object","properties":{"request_id":{"type":"string"},"results_added":{"type":"integer","minimum":0,"maximum":9007199254740991},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"}},"required":["request_id","results_added","credits_charged"],"additionalProperties":false},"interpreted":{"type":"object","properties":{"places":{"minItems":1,"type":"array","items":{"type":"object","properties":{"requested":{"type":"string"},"region":{"type":"string"},"cities":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}},"required":["requested","region","cities","version"],"additionalProperties":false}}},"required":["places"],"additionalProperties":false},"title_filter":{"type":"object","properties":{"withheld":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["withheld"],"additionalProperties":false},"interpreted_industries":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"phrase":{"type":"string","maxLength":400},"how":{"type":"string","enum":["exact","alias","none"]},"industries":{"maxItems":25,"type":"array","items":{"type":"string"}},"coarse":{"type":"string","const":"niche not applied"},"candidates":{"maxItems":5,"type":"array","items":{"type":"string"}}},"required":["phrase","how","industries"],"additionalProperties":false}}},"required":["leads","total_found"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"find_leads"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"limit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"budget_applied":{"anyOf":[{"type":"object","properties":{"limit_requested":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit_used":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["limit_requested","limit_used"],"additionalProperties":false},{"type":"null"}]},"candidate_sources":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["limit","budget_applied","candidate_sources","maximum_credits","budget_credits"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/find_intent":{"post":{"operationId":"find_intent","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"audience":{"description":"Optional goal: what you sell and to whom. Always accepted. Until goal ordering is available, signals keep today’s order with ranking.by recency and date-based why_now flags; no change to charges.","type":"string"},"company_domains":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"}},"since":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"within_days":{"type":"integer","minimum":1,"maximum":730},"roles":{"description":"Hiring role filter, up to 25 job titles or phrases: a hiring post counts only when it is one of these roles. Put a role in double quotes to match it word for word. Applies to hiring only; job_change events carry no structured role field.","maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"signals":{"description":"Signal families to check. hiring = live job posts with evidence URLs; funding, news, job_change = dated events. Omit it to check hiring first: only hiring is checked, and a hiring company's latest funding round comes with it; list funding explicitly to check every company (a paid check). DEPRECATED: technology — a present-day vendor detection with no adoption date, not a buying signal; use find_companies.technologies instead. Still accepted in v1.","maxItems":20,"type":"array","items":{"type":"string","enum":["hiring","technology","funding","news","job_change"]}},"budget_credits":{"description":"Spend ceiling for this call, in credits. If the most the call can cost is above it, the call is refused before anything is reserved or charged. No company you sent is dropped to fit. It is a ceiling only: it never lets the call use a dearer source. Where spend ceilings aren't available to this key yet, a request that sets it is refused with the reason.","type":"number","exclusiveMinimum":0,"maximum":2000},"dry_run":{"description":"Return this call's plan instead of running it, as of evaluated_at: the most it can cost, how many sources could answer, what budget_credits changes, and every limit the real call would trip. Nothing is looked up, reserved or charged, and a later call may differ. Where previews aren't available to this key yet, a request that sets it is refused with the reason.","type":"boolean"}},"required":["company_domains"],"additionalProperties":false},"example":{"company_domains":["acme.com","example.io"]}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"next":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["check_funding","check_news","research_strongest","research_deeper","find_people","find_profile"]},"text":{"type":"string","minLength":1,"maxLength":240},"verb":{"type":"string","enum":["find_intent","research_company","find_leads","enrich"]},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"max_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"}},"required":["reason","text","verb","params","max_credits"],"additionalProperties":false}},"ranking":{"type":"object","properties":{"by":{"type":"string","enum":["goal","recency"]},"judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"unsure":{"type":"integer","minimum":0,"maximum":9007199254740991},"version":{"type":"string"},"why_now_judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"companies":{"type":"array","items":{"type":"string"}}},"required":["by","judged","version"],"additionalProperties":false},"signals":{"type":"array","items":{"type":"object","properties":{"company_domain":{"type":"string"},"signal":{"type":"string","enum":["hiring","technology","funding","news","job_change"]},"summary":{"type":"string"},"observed_at":{"type":"string"},"evidence_url":{"type":["string","null"]},"title":{"type":"string","maxLength":300},"news_type":{"type":"string","enum":["funding","product","partnership","customers","expansion","leadership","layoffs","acquisition","challenges","recognition","other"]},"why_now":{"type":"boolean"},"why_now_basis":{"type":"string","enum":["judged","date"]}},"required":["company_domain","signal","summary","observed_at","evidence_url"],"additionalProperties":false}},"domain_status":{"type":"array","items":{"type":"object","properties":{"company_domain":{"type":"string"},"status":{"type":"string","enum":["complete","partial","unavailable"]},"requested_signals":{"type":"array","items":{"type":"string","enum":["hiring","technology","funding","news","job_change"]}},"completed_signals":{"type":"array","items":{"type":"string","enum":["hiring","technology","funding","news","job_change"]}},"unavailable_signals":{"type":"array","items":{"type":"object","properties":{"signal":{"type":"string","enum":["hiring","technology","funding","news","job_change"]},"reason":{"type":"string","enum":["vendor_account","invalid_request","rate_limited","temporarily_paused","upstream_error"]},"retry_after_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["signal","reason"],"additionalProperties":false}},"skipped_signals":{"type":"array","items":{"type":"object","properties":{"signal":{"type":"string","enum":["hiring","technology","funding","news","job_change"]},"reason":{"type":"string","enum":["default_hiring_first"]}},"required":["signal","reason"],"additionalProperties":false}},"charge":{"type":"object","properties":{"credits":{"type":"string"},"signal":{"type":"boolean"},"paid_checks":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["credits","signal","paid_checks"],"additionalProperties":false},"roles_check":{"type":"object","properties":{"method":{"type":"string","enum":["meaning","literal"]},"postings_rejected":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["method","postings_rejected"],"additionalProperties":false}},"required":["company_domain","status","requested_signals","completed_signals","unavailable_signals"],"additionalProperties":false}},"historical":{"type":"array","items":{"type":"object","properties":{"company_domain":{"type":"string"},"signal":{"type":"string","enum":["hiring","technology","funding","news","job_change"]},"summary":{"type":"string"},"observed_at":{"type":"string"},"evidence_url":{"type":["string","null"]},"title":{"type":"string","maxLength":300},"news_type":{"type":"string","enum":["funding","product","partnership","customers","expansion","leadership","layoffs","acquisition","challenges","recognition","other"]},"why_now":{"type":"boolean"},"why_now_basis":{"type":"string","enum":["judged","date"]}},"required":["company_domain","signal","summary","observed_at","evidence_url"],"additionalProperties":false}},"window":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"within_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to"],"additionalProperties":false},"interpreted":{"type":"object","properties":{"roles_searched":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}},"required":["roles_searched","version"],"additionalProperties":false}},"required":["signals"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"find_intent"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"companies":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"candidate_sources":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["companies","candidate_sources","maximum_credits","budget_credits"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/check_companies":{"post":{"operationId":"check_companies","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"question":{"description":"One yes/no question about each company's own offering, as a seller would ask it (10–300 characters), e.g. \"Do they let their users book appointments inside their product?\". Answered only from the company's own website.","type":"string"},"company_domains":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"}},"budget_credits":{"description":"Spend ceiling for this call, in credits. If the most the call can cost is above it, the call is refused before anything is reserved or charged. No company you sent is dropped to fit. It is a ceiling only: it never lets the call use a dearer source. Where spend ceilings aren't available to this key yet, a request that sets it is refused with the reason.","type":"number","exclusiveMinimum":0,"maximum":2000},"dry_run":{"description":"Return this call's plan instead of running it, as of evaluated_at: the most it can cost, how many sources could answer, what budget_credits changes, and every limit the real call would trip. Nothing is looked up, reserved or charged, and a later call may differ. Where previews aren't available to this key yet, a request that sets it is refused with the reason.","type":"boolean"}},"required":["question","company_domains"],"additionalProperties":false},"example":{"question":"Do they let their users book appointments inside their product?","company_domains":["acme.com","example.io"]}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"question":{"type":"string"},"companies":{"type":"array","items":{"type":"object","properties":{"company_domain":{"type":"string"},"status":{"type":"string","enum":["checked","unreadable"]},"answer":{"anyOf":[{"type":"string","enum":["yes","not_found","unclear"]},{"type":"null"}]},"excerpt":{"type":["string","null"]},"source_url":{"type":["string","null"]},"pages_read":{"type":"array","items":{"type":"string"}},"charged":{"type":"boolean"}},"required":["company_domain","status","answer","excerpt","source_url","pages_read","charged"],"additionalProperties":false}},"answered":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["question","companies","answered"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"check_companies"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"companies":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"candidate_sources":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["companies","candidate_sources","maximum_credits","budget_credits"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/find_companies":{"post":{"operationId":"find_companies","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"audience":{"type":"string"},"query":{"type":"string"},"hiring":{"type":"object","properties":{"titles":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"description_contains":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"posted_within_days":{"default":30,"type":"integer","minimum":1,"maximum":90}},"additionalProperties":false},"technologies":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"include_low_confidence":{"type":"boolean"},"similar_to":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"mode":{"description":"firmographic: companies by industries (LinkedIn's names, as on find_leads), country_codes, and optionally locations and company_headcount. local: local businesses by categories (for example \"dentist\") in locations. Leave it out for hiring, technologies, similar_to or query. Where a mode isn't available to this key yet, a request that sets it is refused with the reason.","type":"string","enum":["firmographic","local"]},"locations":{"description":"Places, only with mode. firmographic: optional cities or regions inside country_codes, matched against each company's headquarters. local: required, each a city with its country, for example \"Leeds, United Kingdom\" or \"Austin, TX\".","maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"categories":{"description":"Only with mode local: the kinds of business, for example \"dentist\" or \"commercial cleaning service\".","maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"industries":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"keywords":{"description":"Only with mode firmographic: 1 to 10 phrases, for example \"carbon accounting\" or \"dental practice management\". A company matches when its own description, products or specialties mention any of them; with keywords, industries may be left out. Each company then comes back with its description. Where keywords aren't available to this key yet, a request that sets them is refused with the reason.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"exclude_keywords":{"description":"Only with mode firmographic: up to 10 phrases, for example \"recruitment agency\" or \"consultancy\". Companies whose own description mentions any of them are left out. Each company then comes back with its description. Where exclude_keywords aren't available to this key yet, a request that sets them is refused with the reason.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"country_codes":{"maxItems":50,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"company_headcount":{"description":"Employee-count range. With no min or max, companies with fewer than 10 employees are left out. Any bound replaces that default: a max without a min searches from 1 employee.","type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":9007199254740991},"max":{"type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"route":{"description":"Source preference for this call: balanced (the default), cheapest (the lowest-cost sources), broadest (the sources expected to find the most) or fastest. The price doesn't change with it. Where route choice isn't available to this key yet, only balanced is accepted.","type":"string","enum":["balanced","cheapest","broadest","fastest"]},"budget_credits":{"description":"Spend ceiling for this call, in credits. If the most the call can cost is above it, limit is lowered to the largest that fits and result.budget_applied says so; the call is refused, before anything is reserved or charged, only when not even one company fits. It is a ceiling only: it never lets the call use a dearer source. Where spend ceilings aren't available to this key yet, a request that sets it is refused with the reason.","type":"number","exclusiveMinimum":0,"maximum":2000},"dry_run":{"description":"Return this call's plan instead of running it, as of evaluated_at: the most it can cost, how many sources could answer, what budget_credits changes, and every limit the real call would trip. Nothing is looked up, reserved or charged, and a later call may differ. Where previews aren't available to this key yet, a request that sets it is refused with the reason.","type":"boolean"}},"additionalProperties":false},"example":{"hiring":{"titles":["GTM Engineer","Sales Development Representative"],"posted_within_days":30},"country_codes":["US","GB"],"company_headcount":{"min":50,"max":500},"limit":10}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"match_check":{"type":"object","properties":{"status":{"type":"string","enum":["checked","partial","unchecked"]},"kept":{"type":"integer","minimum":0,"maximum":9007199254740991},"withheld":{"type":"integer","minimum":0,"maximum":9007199254740991},"not_checked":{"type":"integer","minimum":0,"maximum":9007199254740991},"unsure":{"type":"integer","minimum":0,"maximum":9007199254740991},"charged":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["status","kept","withheld","not_checked"],"additionalProperties":false},"companies":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"company_domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},"company_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":300},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"description_source":{"anyOf":[{"type":"string","enum":["vendor","homepage"]},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"headcount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"industry":{"type":["string","null"]},"country":{"type":["string","null"]},"city":{"type":["string","null"]},"founded_year":{"anyOf":[{"type":"integer","minimum":1000,"maximum":2027},{"type":"null"}]},"total_funding_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"jobs_last_30_days":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"last_funding_round_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"last_funding_round_amount_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"matched_signals":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"signal":{"type":"string","enum":["hiring","technology","similar","firmographic","local"]},"summary":{"type":"string","maxLength":500},"evidence_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"observed_at":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},"score":{"type":"number","minimum":0,"maximum":1},"match_confidence":{"type":"string","enum":["high","low"]}},"required":["signal","summary","observed_at","score"],"additionalProperties":false}}},"required":["company_domain","company_name","matched_signals"],"additionalProperties":false}},"company_domains":{"maxItems":100,"type":"array","items":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"}},"more_available":{"type":["boolean","null"]},"low_confidence_companies":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"company_domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},"company_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":300},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"description_source":{"anyOf":[{"type":"string","enum":["vendor","homepage"]},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"headcount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"industry":{"type":["string","null"]},"country":{"type":["string","null"]},"city":{"type":["string","null"]},"founded_year":{"anyOf":[{"type":"integer","minimum":1000,"maximum":2027},{"type":"null"}]},"total_funding_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"jobs_last_30_days":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"last_funding_round_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"last_funding_round_amount_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"matched_signals":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"signal":{"type":"string","enum":["hiring","technology","similar","firmographic","local"]},"summary":{"type":"string","maxLength":500},"evidence_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"observed_at":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},"score":{"type":"number","minimum":0,"maximum":1},"match_confidence":{"type":"string","enum":["high","low"]}},"required":["signal","summary","observed_at","score"],"additionalProperties":false}}},"required":["company_domain","company_name","matched_signals"],"additionalProperties":false}},"interpreted":{"type":"object","properties":{"query":{"type":"string","maxLength":400},"filters":{"type":"object","properties":{"hiring":{"type":"object","properties":{"titles":{"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"description_contains":{"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"additionalProperties":false},"technologies":{"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"industries":{"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"country_codes":{"maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2,"pattern":"^[A-Z]{2}$"}},"company_headcount":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":9007199254740991},"max":{"type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false}},"additionalProperties":false},"dropped":{"type":"object","properties":{"technologies":{"maxItems":25,"type":"array","items":{"type":"string"}},"industries":{"maxItems":25,"type":"array","items":{"type":"string"}}},"required":["technologies"],"additionalProperties":false},"caller_filters":{"type":"object","properties":{"fields":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["industries","country_codes","company_headcount"]}},"replaced":{"type":"object","properties":{"country_codes":{"maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2,"pattern":"^[A-Z]{2}$"}},"company_headcount":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":9007199254740991},"max":{"type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false}},"additionalProperties":false}},"required":["fields","replaced"],"additionalProperties":false},"versions":{"type":"object","properties":{"prompt":{"type":"string"},"model":{"type":"string"},"interpreter":{"type":"string"}},"required":["prompt","model","interpreter"],"additionalProperties":false},"cached":{"type":"boolean"},"industry_reading":{"type":"object","properties":{"phrase":{"type":"string","maxLength":400},"how":{"type":"string","enum":["exact","alias","none"]},"industries":{"maxItems":25,"type":"array","items":{"type":"string"}},"coarse":{"type":"string","const":"niche not applied"},"candidates":{"maxItems":5,"type":"array","items":{"type":"string"}},"applied":{"type":"boolean"}},"required":["phrase","how","industries","applied"],"additionalProperties":false},"ran_as":{"type":"object","properties":{"mode":{"type":"string","enum":["firmographic","local"]},"categories":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"locations":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["mode"],"additionalProperties":false},"facets":{"type":"object","properties":{"phrase":{"type":"string","maxLength":400},"how":{"type":"string","enum":["table","extractor"]},"version":{"type":"string","minLength":1,"maxLength":100},"sector":{"maxItems":5,"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["software","technology","service_firm","manufacturer","practice","local_service","any"]},"customer":{"maxItems":5,"type":"array","items":{"type":"string"}},"focus":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["phrase","how","version","sector","type","customer","focus"],"additionalProperties":false},"route":{"type":"object","properties":{"kind":{"type":"string","enum":["niche","broad","local"]},"keywords":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"exclude_keywords":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"industries_from":{"type":"string","enum":["type","caller","none"]},"type_industries_dropped":{"type":"boolean","const":true}},"required":["kind"],"additionalProperties":false}},"required":["query","filters","dropped","versions","cached"],"additionalProperties":false},"budget_applied":{"type":"object","properties":{"limit_requested":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit_used":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["limit_requested","limit_used"],"additionalProperties":false},"filtered_out":{"type":"object","properties":{"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"outside_country":{"type":"integer","minimum":0,"maximum":9007199254740991},"over_headcount":{"type":"integer","minimum":0,"maximum":9007199254740991},"under_headcount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["count","outside_country","over_headcount","under_headcount"],"additionalProperties":false},"interpreted_places":{"minItems":1,"type":"array","items":{"type":"object","properties":{"requested":{"type":"string"},"region":{"type":"string"},"cities":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}},"required":["requested","region","cities","version"],"additionalProperties":false}},"interpreted_industries":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"phrase":{"type":"string","maxLength":400},"how":{"type":"string","enum":["exact","alias","none"]},"industries":{"maxItems":25,"type":"array","items":{"type":"string"}},"coarse":{"type":"string","const":"niche not applied"},"candidates":{"maxItems":5,"type":"array","items":{"type":"string"}}},"required":["phrase","how","industries"],"additionalProperties":false}}},"required":["companies","company_domains","more_available"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"find_companies"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"limit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"budget_applied":{"anyOf":[{"type":"object","properties":{"limit_requested":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit_used":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["limit_requested","limit_used"],"additionalProperties":false},{"type":"null"}]},"candidate_sources":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["limit","budget_applied","candidate_sources","maximum_credits","budget_credits"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/enrich_company":{"post":{"operationId":"enrich_company","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"company_domain":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"want":{"maxItems":20,"type":"array","items":{"type":"string","enum":["profile","technologies","funding","relationships","brief"]}},"depth":{"type":"string","enum":["fast","deep"]}},"required":["company_domain"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"type":"object","properties":{"outcome":{"type":"string","enum":["hit","partial","miss"]},"company_domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},"company":{"anyOf":[{"type":"object","properties":{"company_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"headcount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"industry":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"country":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"founded_year":{"anyOf":[{"type":"integer","minimum":1000,"maximum":2027},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"technologies":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"category":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"observed_at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]}},"required":["name","observed_at"],"additionalProperties":false}},"funding":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"date":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"amount_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"type":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"source_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["date","amount_usd","type","source_url"],"additionalProperties":false}},"relationships":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"company_domain":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"relationship_type":{"type":"string","enum":["integration","partner","customer","other"]},"source_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"first_seen_at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]}},"required":["company_domain","company_name","relationship_type","source_url","first_seen_at"],"additionalProperties":false}},"brief":{"type":"object","properties":{"summary":{"type":"string","minLength":1,"maxLength":4000},"products":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"target_customers":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"pricing_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"hiring_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"recent_news":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"headline":{"type":"string","minLength":1,"maxLength":500},"date":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"url":{"type":"string","format":"uri"}},"required":["headline","date","url"],"additionalProperties":false}},"sources":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["url"],"additionalProperties":false}},"observed_at":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},"required":["summary","products","recent_news","sources","observed_at"],"additionalProperties":false}},"additionalProperties":false},{"type":"null"}]},"dataset_status":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"object","properties":{"dataset":{"type":"string","enum":["profile","technologies","funding","relationships","brief"]},"status":{"type":"string","enum":["hit","empty","unavailable"]},"from_cache":{"type":"boolean"},"observed_at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]}},"required":["dataset","status","from_cache","observed_at"],"additionalProperties":false}}},"required":["outcome","company_domain","company","dataset_status"],"additionalProperties":false},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/find_posts":{"post":{"operationId":"find_posts","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"query":{"type":"string"},"author":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"profile_url"},"profile_url":{"type":"string","format":"uri"}},"required":["type","profile_url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"handle"},"platform":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]},"handle":{"type":"string","minLength":1,"maxLength":100}},"required":["type","platform","handle"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"person"},"name":{"type":"string"},"company_domain":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"platform":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]}},"required":["type","name","platform"],"additionalProperties":false}]},"company_domain":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"intent":{"type":"string","enum":["pain","question","any","competitor_complaint","hiring_for_it"]},"audience":{"type":"string"},"platforms":{"maxItems":40,"type":"array","items":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]}},"within_days":{"default":30,"type":"integer","minimum":1,"maximum":90},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"include":{"maxItems":4,"type":"array","items":{"type":"string","enum":["author_details"]}},"leads":{"description":"Leads mode: people from find_leads or enrich. Returns each one's best recent reason to reach out (own post, comment, reaction or company post). LinkedIn only: send no query, platforms or intent.","minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"fingerprint":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"full_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"company_domain":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]},"work_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]}}}},"budget_credits":{"description":"Leads mode, or engagers_of with read_all: a spend ceiling in credits. Leads beyond it come back not_processed; read_all reads people up to it.","type":"number","exclusiveMinimum":0,"maximum":100000},"engagers_of":{"description":"Engagers mode: up to 5 post URLs (LinkedIn, X, Reddit, Facebook). Returns the people who reacted, commented, replied or reposted. Send no query, platforms, intent or audience.","minItems":1,"maxItems":5,"type":"array","items":{"type":"string","format":"uri"}},"per_post":{"description":"Engagers mode: up to this many people from each source (reactions, comments, replies) of each post.","type":"integer","minimum":1,"maximum":50},"author_filter":{"description":"Engagers mode: keep only people whose headline contains one of these words, e.g. [\"head of sales\", \"VP sales\"]. Each person read costs a small scan fee; Reddit and Facebook are skipped (no headlines).","minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"read_all":{"description":"Engagers mode: read everyone who engaged, not a sample, in the background (about 2 minutes per 500 people). Needs budget_credits and idempotency_key. Returns an operation: poll get_operation, which returns the people 25 at a time with next_cursor.","type":"boolean","const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"type":"object","properties":{"outcome":{"type":"string","enum":["hit","partial","miss"]},"posts":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]},"post_id":{"type":"string","minLength":1,"maxLength":500},"url":{"type":"string","format":"uri"},"text":{"type":"string","minLength":1,"maxLength":20000},"author":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"handle":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"social_profile_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"verified":{"type":["boolean","null"]},"followers":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"person":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"first_name":{"type":"string","minLength":1,"maxLength":100},"last_name":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":320},"linkedin_url":{"type":"string","format":"uri"},"company_name":{"type":"string","minLength":1,"maxLength":200},"company_domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},"title":{"type":"string","maxLength":200}},"additionalProperties":false},"type":{"type":"string","enum":["person","company"]}},"required":["name","handle","social_profile_url","headline","verified","followers","person"],"additionalProperties":false},"published_at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"engagement":{"type":"object","properties":{"likes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"comments":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"shares":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"views":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["likes","comments","shares","views"],"additionalProperties":false},"relevance":{"type":"number","minimum":0,"maximum":1},"classification":{"type":"object","properties":{"label":{"type":"string","enum":["pain","question","pitch","opinion","other"]},"reason":{"type":"string","maxLength":300},"prompt_version":{"type":"string"},"status":{"type":"string","const":"classified"},"tags":{"maxItems":1,"type":"array","items":{"type":"string","enum":["competitor_complaint","hiring_for_it"]}}},"required":["label","reason","prompt_version","status"],"additionalProperties":false},"is_repost":{"type":"boolean"},"why_now":{"type":"boolean"},"why_now_basis":{"type":"string","enum":["judged","date"]}},"required":["platform","post_id","url","text","author","published_at","engagement","relevance"],"additionalProperties":false}},"platform_status":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]},"status":{"type":"string","enum":["hit","miss","unavailable","timeout","unsupported"]},"returned":{"type":"integer","minimum":0,"maximum":9007199254740991},"more_available":{"type":["boolean","null"]},"classification_status":{"type":"string","enum":["classified","unavailable","not_requested"]}},"required":["platform","status","returned","more_available"],"additionalProperties":false}},"author_resolutions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]},"status":{"type":"string","enum":["resolved","ambiguous","unresolved","unsupported"]},"handle":{"type":"string","maxLength":100},"profile_url":{"type":"string","format":"uri"},"confidence":{"type":"number","minimum":0,"maximum":1},"candidates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"]},"handle":{"type":["string","null"]},"profile_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"confidence":{"type":"number","minimum":0,"maximum":1}},"required":["name","handle","profile_url","confidence"],"additionalProperties":false}}},"required":["platform","status"],"additionalProperties":false}},"relevance_version":{"type":"string","const":"literal-v1"},"more_available":{"type":["boolean","null"]},"leads":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"lead":{"type":"object","properties":{"key":{"type":"string","maxLength":200},"full_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["key","full_name","company_name"],"additionalProperties":false},"status":{"type":"string","enum":["signal","none","incomplete","not_processed"]},"signal_kind":{"anyOf":[{"type":"string","enum":["own_post","comment","reaction","company_post"]},{"type":"null"}]},"evidence":{"anyOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"date":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"activity":{"anyOf":[{"type":"string","enum":["reaction","comment"]},{"type":"null"}]},"reaction":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"post_author":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["text","url","date","activity","reaction","post_author"],"additionalProperties":false},{"type":"null"}]},"post_ids":{"maxItems":3,"type":"array","items":{"type":"string","maxLength":500}},"person":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"first_name":{"type":"string","minLength":1,"maxLength":100},"last_name":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":320},"linkedin_url":{"type":"string","format":"uri"},"company_name":{"type":"string","minLength":1,"maxLength":200},"company_domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},"title":{"type":"string","maxLength":200}},"additionalProperties":false}},"required":["lead","status","signal_kind","evidence","post_ids","person"],"additionalProperties":false}},"engagers":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"post_url":{"type":"string","format":"uri"},"platform":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]},"status":{"type":"string","enum":["hit","miss","incomplete","not_searched"]},"people":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"profile_url":{"type":"string","format":"uri"},"handle":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"headline":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"type":{"type":"string","enum":["person","company"]},"activities":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["reaction","comment","reply","repost"]},"reaction":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]}},"required":["kind","reaction","text","at"],"additionalProperties":false}},"person":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"first_name":{"type":"string","minLength":1,"maxLength":100},"last_name":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":320},"linkedin_url":{"type":"string","format":"uri"},"company_name":{"type":"string","minLength":1,"maxLength":200},"company_domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},"title":{"type":"string","maxLength":200}},"additionalProperties":false},"matched_by":{"type":"string","enum":["literal","judged"]}},"required":["name","profile_url","handle","headline","type","activities","person"],"additionalProperties":false}},"filtered_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"scanned":{"type":"integer","minimum":0,"maximum":9007199254740991},"read":{"type":"integer","minimum":0,"maximum":9007199254740991},"engaged_total":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"more_available":{"type":["boolean","null"]}},"required":["post_url","platform","status","people","filtered_out"],"additionalProperties":false}},"filter_basis":{"type":"string","enum":["literal","judged"]},"full_read":{"type":"object","properties":{"budget_credits":{"type":"number","exclusiveMinimum":0},"eta_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["budget_credits","eta_seconds"],"additionalProperties":false},"ranking":{"type":"object","properties":{"by":{"type":"string","enum":["goal","recency"]},"judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"unsure":{"type":"integer","minimum":0,"maximum":9007199254740991},"version":{"type":"string"},"why_now_judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"companies":{"type":"array","items":{"type":"string"}}},"required":["by","judged","version"],"additionalProperties":false},"intent":{"type":"string","enum":["pain","question","any","competitor_complaint","hiring_for_it"]},"cost_breakdown":{"type":"object","properties":{"result_credits":{"type":"string"},"classification_credits":{"type":"string"},"candidates_classified":{"type":"integer","minimum":0,"maximum":9007199254740991},"candidates_withheld":{"type":"integer","minimum":0,"maximum":9007199254740991},"classification_versions":{"type":"object","properties":{"classifier":{"type":"string"},"prompt":{"type":"string"}},"required":["classifier","prompt"],"additionalProperties":false}},"required":["result_credits","classification_credits","candidates_classified","candidates_withheld"],"additionalProperties":false}},"required":["outcome","posts","platform_status","relevance_version","more_available"],"additionalProperties":false},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/setup_sending":{"post":{"operationId":"setup_sending","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Required when confirmation_token is present; reuse it after timeout.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"emails_per_week":{"type":"integer","minimum":50,"maximum":50000},"prefer_prewarmed":{"default":true,"type":"boolean"},"brand_hint":{"type":"string","minLength":2,"maxLength":40,"pattern":"^[a-z0-9-]+$"},"sender":{"type":"object","properties":{"first_name":{"type":"string","minLength":1,"maxLength":60},"last_name":{"type":"string","minLength":1,"maxLength":60}},"required":["first_name","last_name"],"additionalProperties":false},"confirmation_token":{"type":"string"},"approval_url":{"type":"string","format":"uri"},"dry_run":{"type":"boolean"}},"required":["emails_per_week"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["quote","purchased"]},"quote":{"type":"object","properties":{"domains":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"mailboxes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"setup_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"upkeep_credits_per_month":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"renewal_cadence":{"type":"string","const":"monthly"},"cancellation_policy":{"type":"string"},"ready_estimate":{"type":"string","enum":["immediate","days","weeks"]},"quote_expires_at":{"type":"string"}},"required":["domains","mailboxes","setup_credits","upkeep_credits_per_month","renewal_cadence","cancellation_policy","ready_estimate","quote_expires_at"],"additionalProperties":false},"card_quote":{"type":"object","properties":{"currency":{"type":"string","const":"usd"},"total_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"domain_one_off_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"mailbox_first_month_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"mailbox_monthly_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"price_version":{"type":"string"},"total_display":{"type":"string"}},"required":["currency","total_cents","domain_one_off_cents","mailbox_first_month_cents","mailbox_monthly_cents","price_version","total_display"],"additionalProperties":false},"billing_period":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"}},"required":["start","end"],"additionalProperties":false},"confirmation_token":{"type":"string"},"approval_url":{"type":"string","format":"uri"},"approval_email":{"type":"string","enum":["queued","reused","suppressed_rate_limit","no_approver"]},"operation_id":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}},"required":["status","quote"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"setup_sending"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"domains":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"setup_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"upkeep_credits_per_month":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"needs_confirmation":{"type":"boolean","const":true}},"required":["domains","mailboxes","setup_credits","upkeep_credits_per_month","needs_confirmation"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]}},"required":["result"],"additionalProperties":false},{"type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["quote","purchased"]},"quote":{"type":"object","properties":{"domains":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"mailboxes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"setup_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"upkeep_credits_per_month":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"renewal_cadence":{"type":"string","const":"monthly"},"cancellation_policy":{"type":"string"},"ready_estimate":{"type":"string","enum":["immediate","days","weeks"]},"quote_expires_at":{"type":"string"}},"required":["domains","mailboxes","setup_credits","upkeep_credits_per_month","renewal_cadence","cancellation_policy","ready_estimate","quote_expires_at"],"additionalProperties":false},"card_quote":{"type":"object","properties":{"currency":{"type":"string","const":"usd"},"total_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"domain_one_off_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"mailbox_first_month_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"mailbox_monthly_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"price_version":{"type":"string"},"total_display":{"type":"string"}},"required":["currency","total_cents","domain_one_off_cents","mailbox_first_month_cents","mailbox_monthly_cents","price_version","total_display"],"additionalProperties":false},"billing_period":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"}},"required":["start","end"],"additionalProperties":false},"confirmation_token":{"type":"string"},"approval_url":{"type":"string","format":"uri"},"approval_email":{"type":"string","enum":["queued","reused","suppressed_rate_limit","no_approver"]},"operation_id":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}},"required":["status","quote"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"setup_sending"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"domains":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"setup_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"upkeep_credits_per_month":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"needs_confirmation":{"type":"boolean","const":true}},"required":["domains","mailboxes","setup_credits","upkeep_credits_per_month","needs_confirmation"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}]}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/campaigns":{"post":{"operationId":"create_campaign","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required; reuse it after timeout.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"leads":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"company_name":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":200},"custom":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["email"],"additionalProperties":false}},"steps":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","minLength":1,"maxLength":20000},"wait_days":{"default":0,"description":"Days to wait after the previous step before this step is sent. Ignored on the first step, which sends at launch within the sending window.","type":"integer","minimum":0,"maximum":60}},"required":["body"],"additionalProperties":false}},"sending_window":{"type":"object","properties":{"timezone":{"default":"Etc/UTC","type":"string","enum":["Europe/London","Europe/Dublin","Europe/Paris","Europe/Berlin","America/New_York","America/Denver","America/Phoenix","America/Toronto","Australia/Sydney","Asia/Singapore","Etc/UTC","Etc/GMT+12","Etc/GMT+11","Etc/GMT+10","America/Anchorage","America/Dawson","America/Creston","America/Chihuahua","America/Boise","America/Belize","America/Chicago","America/Bahia_Banderas","America/Regina","America/Bogota","America/Detroit","America/Indiana/Marengo","America/Caracas","America/Asuncion","America/Glace_Bay","America/Campo_Grande","America/Anguilla","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/La_Rioja","America/Araguaina","America/Godthab","America/Montevideo","America/Bahia","America/Noronha","America/Scoresbysund","Atlantic/Cape_Verde","Africa/Casablanca","America/Danmarkshavn","Europe/Isle_of_Man","Atlantic/Canary","Africa/Abidjan","Arctic/Longyearbyen","Europe/Belgrade","Africa/Ceuta","Europe/Madrid","Europe/Sarajevo","Africa/Algiers","Africa/Windhoek","Asia/Nicosia","Asia/Beirut","Africa/Cairo","Asia/Damascus","Europe/Bucharest","Africa/Blantyre","Europe/Helsinki","Europe/Istanbul","Asia/Jerusalem","Africa/Tripoli","Asia/Amman","Asia/Baghdad","Europe/Kaliningrad","Asia/Aden","Africa/Addis_Ababa","Europe/Kirov","Europe/Astrakhan","Asia/Tehran","Asia/Dubai","Asia/Baku","Indian/Mahe","Asia/Tbilisi","Asia/Yerevan","Asia/Kabul","Antarctica/Mawson","Asia/Yekaterinburg","Asia/Karachi","Asia/Kolkata","Asia/Colombo","Asia/Kathmandu","Antarctica/Vostok","Asia/Dhaka","Asia/Rangoon","Antarctica/Davis","Asia/Novokuznetsk","Asia/Hong_Kong","Asia/Krasnoyarsk","Asia/Brunei","Australia/Perth","Asia/Taipei","Asia/Choibalsan","Asia/Irkutsk","Asia/Dili","Asia/Pyongyang","Australia/Adelaide","Australia/Darwin","Australia/Brisbane","Australia/Melbourne","Antarctica/DumontDUrville","Australia/Currie","Asia/Chita","Antarctica/Macquarie","Asia/Sakhalin","Pacific/Auckland","Etc/GMT-12","Pacific/Fiji","Asia/Anadyr","Asia/Kamchatka","Etc/GMT-13","Pacific/Apia"]},"days":{"default":["mon","tue","wed","thu","fri"],"minItems":1,"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]}},"start_hour":{"default":9,"type":"integer","minimum":0,"maximum":23},"end_hour":{"default":17,"type":"integer","minimum":1,"maximum":24}},"additionalProperties":false},"stop_on_reply":{"default":true,"type":"boolean","const":true},"dry_run":{"type":"boolean"}},"required":["name","leads","steps"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"history_available":{"type":"boolean"},"campaign_id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["draft","incomplete","launching","active","paused","completed","failed"]},"leads_accepted":{"type":"integer","minimum":0,"maximum":9007199254740991},"leads_suppressed":{"type":"integer","minimum":0,"maximum":9007199254740991},"suppressed_reasons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"removed_examples":{"maxItems":5,"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"leads_correlated":{"type":"integer","minimum":0,"maximum":9007199254740991},"leads_pending":{"type":"integer","minimum":0,"maximum":9007199254740991},"leads_rejected":{"type":"integer","minimum":0,"maximum":9007199254740991},"campaign_lead_total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["campaign_id","name","state","leads_accepted","leads_suppressed","created_at"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"create_campaign"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"state":{"type":"string","const":"draft"},"leads_accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_suppressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"history_available":{"type":"boolean"}},"required":["state","leads_accepted","leads_suppressed","removed"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/add_leads":{"post":{"operationId":"add_leads","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Required except for an initial active-campaign confirmation preview; reuse it after timeout.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"campaign_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"leads":{"default":[],"maxItems":5000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"company_name":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":200},"custom":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["email"],"additionalProperties":false}},"finalize_incomplete":{"default":false,"type":"boolean"},"confirmation_token":{"type":"string"},"dry_run":{"type":"boolean"}},"required":["campaign_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"history_available":{"type":"boolean"},"campaign_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","incomplete","active","paused"]},"leads_accepted":{"type":"integer","minimum":0,"maximum":9007199254740991},"leads_correlated":{"type":"integer","minimum":0,"maximum":9007199254740991},"leads_pending":{"type":"integer","minimum":0,"maximum":9007199254740991},"leads_rejected":{"type":"integer","minimum":0,"maximum":9007199254740991},"leads_suppressed":{"type":"integer","minimum":0,"maximum":9007199254740991},"campaign_lead_total":{"type":"integer","minimum":0,"maximum":9007199254740991},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"removed_examples":{"maxItems":5,"type":"array","items":{"type":"string"}},"confirmation_token":{"type":"string"},"approval_url":{"type":"string","format":"uri"},"approval_email":{"type":"string","enum":["queued","reused","suppressed_rate_limit","no_approver"]}},"required":["campaign_id","state","leads_accepted","leads_correlated","leads_pending","leads_rejected","leads_suppressed","campaign_lead_total"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"add_leads"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"campaign_state":{"type":["string","null"]},"leads_new":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_duplicate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_suppressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"needs_confirmation":{"type":"boolean"},"history_available":{"type":"boolean"}},"required":["campaign_state","leads_new","leads_duplicate","leads_suppressed","removed","needs_confirmation"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/launch_campaign":{"post":{"operationId":"launch_campaign","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Required when confirmation_token is present; reuse it after timeout.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"campaign_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"confirmation_token":{"type":"string"},"daily_send_limit":{"type":"integer","minimum":1,"maximum":9007199254740991},"dry_run":{"type":"boolean"},"supersedes":{"description":"The confirmation_token of the approval this request replaces. Needed only when that approval was already approved and hasn't started yet; one still waiting for a decision is replaced automatically. Only where Layrcake runs approved actions itself (the result's approval block says execution: server); anywhere else it is refused. A dry run doesn't check it, so it refuses it: send it on the call itself.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"first_send_not_before":{"description":"The earliest the first emails may go out (ISO 8601). They start at the first sending-window opening at least 60 minutes after a person approves, and not before this time. It can't be later than the approval's lifetime after this request (7 days by default); a later time is refused. Only where Layrcake runs approved actions itself (the result's approval block says execution: server); anywhere else it is refused. A dry run doesn't check it, so it refuses it: send it on the call itself.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["campaign_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"expected_start":{"type":"object","properties":{"days":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"estimated":{"type":"boolean","const":true},"label":{"type":"string"}},"required":["days","estimated","label"],"additionalProperties":false},"status":{"type":"string","enum":["needs_confirmation","launched"]},"campaign_id":{"type":"string"},"confirmation_token":{"type":"string"},"mailboxes_attached":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_active":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_suppressed_at_launch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"daily_send_limit":{"type":"integer","minimum":1,"maximum":9007199254740991},"approval_email":{"type":"string","enum":["queued","reused","suppressed_rate_limit","no_approver"]},"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},"execution":{"type":"string","enum":["server","agent_retry"]},"campaign":{"type":"object","properties":{"state":{"type":"string"},"held":{"type":"boolean"},"share":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["state","held","share"],"additionalProperties":false},"state_reason":{"anyOf":[{"type":"string","enum":["waiting_for_capacity","waiting_for_history"]},{"type":"null"}]},"audience_names":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string"},"first_send_at":{"type":["string","null"]},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"instance":{"type":"integer","minimum":1,"maximum":9007199254740991},"asked_again_after":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]}},"required":["id","state"],"additionalProperties":false},{"type":"null"}]},"reused":{"type":"boolean"}},"required":["id","state","execution","audience_names","expires_at","first_send_at","note","operation_id","superseded_by","instance","asked_again_after","reused"],"additionalProperties":false}},"required":["status","campaign_id"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"launch_campaign"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"mailboxes_attached":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_active":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_suppressed_at_launch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"daily_send_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"needs_confirmation":{"type":"boolean","const":true}},"required":["mailboxes_attached","leads_active","leads_suppressed_at_launch","removed","daily_send_limit","needs_confirmation"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]}},"required":["result"],"additionalProperties":false},{"type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"expected_start":{"type":"object","properties":{"days":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"estimated":{"type":"boolean","const":true},"label":{"type":"string"}},"required":["days","estimated","label"],"additionalProperties":false},"status":{"type":"string","enum":["needs_confirmation","launched"]},"campaign_id":{"type":"string"},"confirmation_token":{"type":"string"},"mailboxes_attached":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_active":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_suppressed_at_launch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"daily_send_limit":{"type":"integer","minimum":1,"maximum":9007199254740991},"approval_email":{"type":"string","enum":["queued","reused","suppressed_rate_limit","no_approver"]},"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},"execution":{"type":"string","enum":["server","agent_retry"]},"campaign":{"type":"object","properties":{"state":{"type":"string"},"held":{"type":"boolean"},"share":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["state","held","share"],"additionalProperties":false},"state_reason":{"anyOf":[{"type":"string","enum":["waiting_for_capacity","waiting_for_history"]},{"type":"null"}]},"audience_names":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string"},"first_send_at":{"type":["string","null"]},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"instance":{"type":"integer","minimum":1,"maximum":9007199254740991},"asked_again_after":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]}},"required":["id","state"],"additionalProperties":false},{"type":"null"}]},"reused":{"type":"boolean"}},"required":["id","state","execution","audience_names","expires_at","first_send_at","note","operation_id","superseded_by","instance","asked_again_after","reused"],"additionalProperties":false}},"required":["status","campaign_id"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"launch_campaign"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"mailboxes_attached":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_active":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads_suppressed_at_launch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"object","properties":{"opted_out":{"type":"integer","minimum":0,"maximum":9007199254740991},"do_not_contact":{"type":"integer","minimum":0,"maximum":9007199254740991},"no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"platform_blocked":{"type":"integer","minimum":0,"maximum":9007199254740991},"contacted_recently":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["opted_out","invalid","platform_blocked","capped","other","total"],"additionalProperties":false},"daily_send_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"needs_confirmation":{"type":"boolean","const":true}},"required":["mailboxes_attached","leads_active","leads_suppressed_at_launch","removed","daily_send_limit","needs_confirmation"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}]}}}},"202":{"description":"Accepted, in one of two shapes. With `approval`: a person approved it, and Layrcake runs it itself (`approved` until its start, then `in_progress`); calling again with the token only reads this status. With `request_id`: the first call with this Idempotency-Key is still running; read it with get_request.","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["approved","in_progress"]},"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},"execution":{"type":"string","enum":["server","agent_retry"]},"campaign":{"type":"object","properties":{"state":{"type":"string"},"held":{"type":"boolean"},"share":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["state","held","share"],"additionalProperties":false},"state_reason":{"anyOf":[{"type":"string","enum":["waiting_for_capacity","waiting_for_history"]},{"type":"null"}]},"audience_names":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string"},"first_send_at":{"type":["string","null"]},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"instance":{"type":"integer","minimum":1,"maximum":9007199254740991},"asked_again_after":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]}},"required":["id","state"],"additionalProperties":false},{"type":"null"}]},"reused":{"type":"boolean"}},"required":["id","state","execution","audience_names","expires_at","first_send_at","note","operation_id","superseded_by","instance","asked_again_after","reused"],"additionalProperties":false}},"required":["status","approval"],"additionalProperties":false},{"type":"object","properties":{"request_id":{"type":"string"},"status":{"type":"string","const":"in_progress"}},"required":["request_id","status"],"additionalProperties":false}]}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/get_replies":{"post":{"operationId":"get_replies","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"campaign_id":{"type":"string"},"since":{"type":"string"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"type":"object","properties":{"replies":{"type":"array","items":{"type":"object","properties":{"intent_status":{"type":"string","enum":["pending","unavailable","classified"]},"interpreted_intent":{"type":"string","enum":["interested","question","not_interested","not_now","referral","out_of_office","stop","bounce","other"]},"reply_id":{"type":"string"},"campaign_id":{"type":["string","null"]},"from_email":{"type":"string"},"subject":{"type":["string","null"]},"snippet":{"type":"string"},"classification":{"anyOf":[{"type":"string","enum":["interested","not_interested","out_of_office","unsubscribe","bounce","other"]},{"type":"null"}]},"received_at":{"type":"string"}},"required":["reply_id","campaign_id","from_email","subject","snippet","classification","received_at"],"additionalProperties":false}}},"required":["replies"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/get_reply":{"post":{"operationId":"get_reply","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"reply_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["reply_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"type":"object","properties":{"intent_status":{"type":"string","enum":["pending","unavailable","classified"]},"interpreted_intent":{"type":"string","enum":["interested","question","not_interested","not_now","referral","out_of_office","stop","bounce","other"]},"reply_id":{"type":"string"},"campaign_id":{"type":["string","null"]},"from_email":{"type":"string"},"subject":{"type":["string","null"]},"snippet":{"type":"string"},"classification":{"anyOf":[{"type":"string","enum":["interested","not_interested","out_of_office","unsubscribe","bounce","other"]},{"type":"null"}]},"received_at":{"type":"string"},"thread_id":{"type":["string","null"]},"to_email":{"type":["string","null"]},"body_text":{"type":["string","null"]},"body_html":{"type":["string","null"]},"body_status":{"type":"string","enum":["available","unavailable","temporarily_unavailable"]},"body_truncated":{"type":"boolean"},"content_trust":{"type":"string","const":"external_untrusted"},"lead":{"anyOf":[{"type":"object","properties":{"campaign_lead_id":{"type":"string"},"state":{"type":"string"},"interest_status":{"type":["string","null"]},"provider_sync_status":{"type":["string","null"]}},"required":["campaign_lead_id","state","interest_status","provider_sync_status"],"additionalProperties":false},{"type":"null"}]},"our_replies":{"type":"array","items":{"type":"object","properties":{"sent_reply_id":{"type":"string"},"state":{"type":"string"},"sent_at":{"type":["string","null"]}},"required":["sent_reply_id","state","sent_at"],"additionalProperties":false}}},"required":["reply_id","campaign_id","from_email","subject","snippet","classification","received_at","thread_id","to_email","body_text","body_html","body_status","body_truncated","content_trust","lead","our_replies"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/set_lead_status":{"post":{"operationId":"set_lead_status","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"campaign_lead_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["interested","meeting_booked","won","not_interested","out_of_office","neutral"]},"proof":{"type":"string","minLength":1,"maxLength":500},"dry_run":{"type":"boolean"}},"required":["campaign_lead_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"campaign_lead_id":{"type":"string"},"previous_status":{"anyOf":[{"type":"string","enum":["interested","meeting_booked","won","not_interested","out_of_office","neutral"]},{"type":"null"}]},"status":{"type":"string","enum":["interested","meeting_booked","won","not_interested","out_of_office","neutral"]},"suppression_applied":{"type":"boolean"},"provider_sync_status":{"type":"string","enum":["pending","synced","failed","unsupported"]}},"required":["campaign_lead_id","previous_status","status","suppression_applied","provider_sync_status"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"set_lead_status"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"previous_status":{"type":["string","null"]},"status":{"type":"string"},"changed":{"type":"boolean"},"suppression_applied":{"type":"boolean"},"sync_queued":{"type":"boolean"}},"required":["previous_status","status","changed","suppression_applied","sync_queued"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/reply_to_thread":{"post":{"operationId":"reply_to_thread","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Required when confirmation_token is present; reuse it after timeout.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"reply_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body_text":{"type":"string","minLength":1,"maxLength":5000},"confirmation_token":{"type":"string"},"dry_run":{"type":"boolean"},"supersedes":{"description":"The confirmation_token of the approval this request replaces. Needed only when that approval was already approved and hasn't started yet; one still waiting for a decision is replaced automatically. Only where Layrcake runs approved actions itself (the result's approval block says execution: server); anywhere else it is refused. A dry run doesn't check it, so it refuses it: send it on the call itself.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["reply_id","body_text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"type":"object","properties":{"result":{"anyOf":[{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"needs_confirmation"},"confirmation_token":{"type":"string"},"approval_url":{"type":"string"},"approval_email":{"type":"string","enum":["queued","reused","suppressed_rate_limit","no_approver"]},"preview":{"type":"object","properties":{"reply_id":{"type":"string"},"to_email":{"type":"string"},"from_email":{"type":"string"},"subject":{"type":"string"},"body_text":{"type":"string"}},"required":["reply_id","to_email","from_email","subject","body_text"],"additionalProperties":false},"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},"execution":{"type":"string","enum":["server","agent_retry"]},"campaign":{"type":"object","properties":{"state":{"type":"string"},"held":{"type":"boolean"},"share":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["state","held","share"],"additionalProperties":false},"state_reason":{"anyOf":[{"type":"string","enum":["waiting_for_capacity","waiting_for_history"]},{"type":"null"}]},"audience_names":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string"},"first_send_at":{"type":["string","null"]},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"instance":{"type":"integer","minimum":1,"maximum":9007199254740991},"asked_again_after":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]}},"required":["id","state"],"additionalProperties":false},{"type":"null"}]},"reused":{"type":"boolean"}},"required":["id","state","execution","audience_names","expires_at","first_send_at","note","operation_id","superseded_by","instance","asked_again_after","reused"],"additionalProperties":false}},"required":["status","confirmation_token","approval_url","preview"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"sent"},"sent_reply_id":{"type":"string"},"thread_id":{"type":["string","null"]},"from_email":{"type":"string"},"to_email":{"type":"string"},"sent_at":{"type":"string"}},"required":["status","sent_reply_id","thread_id","from_email","to_email","sent_at"],"additionalProperties":false}]},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"reply_to_thread"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"sends":{"type":"boolean"},"needs_confirmation":{"type":"boolean","const":true}},"required":["sends","needs_confirmation"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]}},"required":["result"],"additionalProperties":false},{"type":"object","properties":{"result":{"anyOf":[{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"needs_confirmation"},"confirmation_token":{"type":"string"},"approval_url":{"type":"string"},"approval_email":{"type":"string","enum":["queued","reused","suppressed_rate_limit","no_approver"]},"preview":{"type":"object","properties":{"reply_id":{"type":"string"},"to_email":{"type":"string"},"from_email":{"type":"string"},"subject":{"type":"string"},"body_text":{"type":"string"}},"required":["reply_id","to_email","from_email","subject","body_text"],"additionalProperties":false},"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},"execution":{"type":"string","enum":["server","agent_retry"]},"campaign":{"type":"object","properties":{"state":{"type":"string"},"held":{"type":"boolean"},"share":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["state","held","share"],"additionalProperties":false},"state_reason":{"anyOf":[{"type":"string","enum":["waiting_for_capacity","waiting_for_history"]},{"type":"null"}]},"audience_names":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string"},"first_send_at":{"type":["string","null"]},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"instance":{"type":"integer","minimum":1,"maximum":9007199254740991},"asked_again_after":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]}},"required":["id","state"],"additionalProperties":false},{"type":"null"}]},"reused":{"type":"boolean"}},"required":["id","state","execution","audience_names","expires_at","first_send_at","note","operation_id","superseded_by","instance","asked_again_after","reused"],"additionalProperties":false}},"required":["status","confirmation_token","approval_url","preview"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"sent"},"sent_reply_id":{"type":"string"},"thread_id":{"type":["string","null"]},"from_email":{"type":"string"},"to_email":{"type":"string"},"sent_at":{"type":"string"}},"required":["status","sent_reply_id","thread_id","from_email","to_email","sent_at"],"additionalProperties":false}]},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"reply_to_thread"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"sends":{"type":"boolean"},"needs_confirmation":{"type":"boolean","const":true}},"required":["sends","needs_confirmation"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}]}}}},"202":{"description":"Accepted, in one of two shapes. With `approval`: a person approved it, and Layrcake runs it itself (`approved` until its start, then `in_progress`); calling again with the token only reads this status. With `request_id`: the first call with this Idempotency-Key is still running; read it with get_request.","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["approved","in_progress"]},"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},"execution":{"type":"string","enum":["server","agent_retry"]},"campaign":{"type":"object","properties":{"state":{"type":"string"},"held":{"type":"boolean"},"share":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["state","held","share"],"additionalProperties":false},"state_reason":{"anyOf":[{"type":"string","enum":["waiting_for_capacity","waiting_for_history"]},{"type":"null"}]},"audience_names":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string"},"first_send_at":{"type":["string","null"]},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"instance":{"type":"integer","minimum":1,"maximum":9007199254740991},"asked_again_after":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]}},"required":["id","state"],"additionalProperties":false},{"type":"null"}]},"reused":{"type":"boolean"}},"required":["id","state","execution","audience_names","expires_at","first_send_at","note","operation_id","superseded_by","instance","asked_again_after","reused"],"additionalProperties":false}},"required":["status","approval"],"additionalProperties":false},{"type":"object","properties":{"request_id":{"type":"string"},"status":{"type":"string","const":"in_progress"}},"required":["request_id","status"],"additionalProperties":false}]}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/research_company":{"post":{"operationId":"research_company","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required; reuse it after timeout.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"company_domain":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"audience":{"description":"Optional goal for ranking facts. Always accepted; when checks are off or unavailable, extraction order and the date rule apply, disclosed by ranking. Charges are unchanged.","type":"string"},"depth":{"default":"standard","type":"string","enum":["standard","deep"]},"budget_credits":{"type":"number","exclusiveMinimum":0,"maximum":1000},"dry_run":{"type":"boolean"}},"required":["company_domain"],"additionalProperties":false},"example":{"company_domain":"acme.com","depth":"standard"}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"operation_id":{"type":"string"},"state":{"type":"string","enum":["queued","running","succeeded","partially_succeeded","failed","unknown"]},"cached":{"type":"boolean"},"credits_reserved":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"result":{"type":"object","properties":{"next":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["check_funding","check_news","research_strongest","research_deeper","find_people","find_profile"]},"text":{"type":"string","minLength":1,"maxLength":240},"verb":{"type":"string","enum":["find_intent","research_company","find_leads","enrich"]},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"max_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"}},"required":["reason","text","verb","params","max_credits"],"additionalProperties":false}},"outcome":{"type":"string","enum":["hit","miss","partial"]},"company_domain":{"type":"string"},"depth":{"type":"string","enum":["standard","deep"]},"company_name":{"type":["string","null"]},"aliases":{"type":"array","items":{"type":"string"}},"claims":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["funding","hiring","product","partnership","leadership","customers","expansion","news","identity","other"]},"text":{"type":"string","minLength":1,"maxLength":300},"source_url":{"type":"string","format":"uri"},"excerpt":{"type":"string","minLength":1,"maxLength":400},"published_at":{"type":["string","null"]},"observed_at":{"type":"string"},"confidence":{"type":"number","minimum":0,"maximum":1},"source_content_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"extraction_version":{"type":"string"},"entailment":{"type":"string","const":"supported"}},"required":["kind","text","source_url","excerpt","published_at","observed_at","confidence","source_content_hash","extraction_version","entailment"],"additionalProperties":false}},"ranking":{"type":"object","properties":{"by":{"type":"string","enum":["goal","recency"]},"judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"unsure":{"type":"integer","minimum":0,"maximum":9007199254740991},"version":{"type":"string"},"why_now_judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"companies":{"type":"array","items":{"type":"string"}}},"required":["by","judged","version"],"additionalProperties":false},"why_now":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["funding","hiring","product","partnership","leadership","customers","expansion","news","identity","other"]},"text":{"type":"string","minLength":1,"maxLength":300},"source_url":{"type":"string","format":"uri"},"excerpt":{"type":"string","minLength":1,"maxLength":400},"published_at":{"type":["string","null"]},"observed_at":{"type":"string"},"confidence":{"type":"number","minimum":0,"maximum":1},"source_content_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"extraction_version":{"type":"string"},"entailment":{"type":"string","const":"supported"}},"required":["kind","text","source_url","excerpt","published_at","observed_at","confidence","source_content_hash","extraction_version","entailment"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":["string","null"]},"published_at":{"type":["string","null"]},"origin":{"type":"string","enum":["news_search","identity_search","company_page"]},"used":{"type":"boolean"}},"required":["url","title","published_at","origin","used"],"additionalProperties":false}},"skipped":{"type":"array","items":{"type":"object","properties":{"component":{"type":"string"},"reason":{"type":"string"}},"required":["component","reason"],"additionalProperties":false}},"cost_breakdown":{"type":"object","properties":{"research_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"page_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"pages_read":{"type":"integer","minimum":0,"maximum":9007199254740991},"total_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"}},"required":["research_credits","page_credits","pages_read","total_credits","maximum_credits"],"additionalProperties":false},"research_version":{"type":"string"},"observed_at":{"type":"string"}},"required":["outcome","company_domain","depth","company_name","aliases","claims","why_now","sources","skipped","cost_breakdown","research_version","observed_at"],"additionalProperties":false}},"required":["operation_id","state","cached","credits_reserved"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"research_company"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"depth":{"type":"string","enum":["standard","deep"]},"cache":{"type":"string","enum":["fresh","miss"]},"searches":{"type":"integer","minimum":0,"maximum":9007199254740991},"pages_max":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]},"skipped":{"type":"array","items":{"type":"object","properties":{"component":{"type":"string"},"reason":{"type":"string"}},"required":["component","reason"],"additionalProperties":false}}},"required":["depth","cache","searches","pages_max","maximum_credits","budget_credits","skipped"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/prospect_picture":{"post":{"operationId":"prospect_picture","tags":["GTM verbs"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required; reuse it after timeout.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"audience":{"type":"string"},"person":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"first_name":{"type":"string","minLength":1,"maxLength":100},"last_name":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":320},"linkedin_url":{"type":"string","maxLength":500,"format":"uri"},"company_name":{"type":"string","minLength":1,"maxLength":200},"company_domain":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"title":{"type":"string","maxLength":200}},"additionalProperties":false},"company_domain":{"type":"string","minLength":1,"maxLength":2048,"description":"Company website domain or URL, e.g. acme.com or https://www.acme.com/about"},"depth":{"default":"standard","type":"string","enum":["quick","standard","deep"]},"budget_credits":{"type":"number","exclusiveMinimum":0,"maximum":2000},"dry_run":{"type":"boolean"}},"additionalProperties":false},"example":{"person":{"full_name":"Jane Doe","company_domain":"acme.com"},"depth":"standard"}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"operation_id":{"type":"string"},"state":{"type":"string","enum":["queued","running","succeeded","partially_succeeded","failed","unknown"]},"credits_reserved":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"components":{"type":"array","items":{"type":"object","properties":{"component":{"type":"string","enum":["identity","company","intent","social","research","network"]},"state":{"type":"string","enum":["pending","running","succeeded","failed","skipped","unknown"]},"reason":{"type":["string","null"]},"max_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"}},"required":["component","state","reason","max_credits"],"additionalProperties":false}},"result":{"type":"object","properties":{"outcome":{"type":"string","enum":["hit","partial","miss"]},"depth":{"type":"string","enum":["quick","standard","deep"]},"subject":{"type":"object","properties":{"company_domain":{"type":["string","null"]},"person_provided":{"type":"boolean"}},"required":["company_domain","person_provided"],"additionalProperties":false},"datapoints":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"contact"},"component":{"type":"string","const":"identity"},"observed_at":{"type":["string","null"]},"data":{"type":"object","properties":{"fingerprint":{"type":"string"},"full_name":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"work_email":{"type":["string","null"]},"work_email_status":{"anyOf":[{"type":"string","enum":["valid","catch_all","unknown","not_found"]},{"type":"null"}]},"email_verdict":{"anyOf":[{"type":"string","enum":["valid","invalid","catch_all_valid","catch_all_unknown","unknown","risky"]},{"type":"null"}]},"mobile_phone":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"location":{"type":["string","null"]},"observed_at":{"type":["string","null"]}},"required":["fingerprint","full_name","title","company_name","company_domain","work_email","work_email_status","mobile_phone","linkedin_url","location","observed_at"],"additionalProperties":false}},"required":["kind","component","observed_at","data"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"company"},"component":{"type":"string","const":"company"},"observed_at":{"type":["string","null"]},"data":{"type":"object","properties":{"company_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"headcount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"industry":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"country":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"founded_year":{"anyOf":[{"type":"integer","minimum":1000,"maximum":2027},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"technologies":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"category":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"observed_at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]}},"required":["name","observed_at"],"additionalProperties":false}},"funding":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"date":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"amount_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"type":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"source_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["date","amount_usd","type","source_url"],"additionalProperties":false}},"relationships":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"company_domain":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"relationship_type":{"type":"string","enum":["integration","partner","customer","other"]},"source_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"first_seen_at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]}},"required":["company_domain","company_name","relationship_type","source_url","first_seen_at"],"additionalProperties":false}},"brief":{"type":"object","properties":{"summary":{"type":"string","minLength":1,"maxLength":4000},"products":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"target_customers":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"pricing_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"hiring_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"recent_news":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"headline":{"type":"string","minLength":1,"maxLength":500},"date":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"url":{"type":"string","format":"uri"}},"required":["headline","date","url"],"additionalProperties":false}},"sources":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["url"],"additionalProperties":false}},"observed_at":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},"required":["summary","products","recent_news","sources","observed_at"],"additionalProperties":false}},"additionalProperties":false}},"required":["kind","component","observed_at","data"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"intent_signal"},"component":{"type":"string","const":"intent"},"observed_at":{"type":["string","null"]},"data":{"type":"object","properties":{"company_domain":{"type":"string"},"signal":{"type":"string","enum":["hiring","technology","funding","news","job_change"]},"summary":{"type":"string"},"observed_at":{"type":"string"},"evidence_url":{"type":["string","null"]},"title":{"type":"string","maxLength":300},"news_type":{"type":"string","enum":["funding","product","partnership","customers","expansion","leadership","layoffs","acquisition","challenges","recognition","other"]},"why_now":{"type":"boolean"},"why_now_basis":{"type":"string","enum":["judged","date"]}},"required":["company_domain","signal","summary","observed_at","evidence_url"],"additionalProperties":false}},"required":["kind","component","observed_at","data"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"social_post"},"component":{"type":"string","const":"social"},"observed_at":{"type":["string","null"]},"data":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin","x","reddit","youtube","tiktok","instagram","facebook","threads","hackernews","quora"]},"post_id":{"type":"string","minLength":1,"maxLength":500},"url":{"type":"string","format":"uri"},"text":{"type":"string","minLength":1,"maxLength":20000},"author":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"handle":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"social_profile_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"verified":{"type":["boolean","null"]},"followers":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"person":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"first_name":{"type":"string","minLength":1,"maxLength":100},"last_name":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":320},"linkedin_url":{"type":"string","format":"uri"},"company_name":{"type":"string","minLength":1,"maxLength":200},"company_domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\\.[a-z0-9-]+$"},"title":{"type":"string","maxLength":200}},"additionalProperties":false},"type":{"type":"string","enum":["person","company"]}},"required":["name","handle","social_profile_url","headline","verified","followers","person"],"additionalProperties":false},"published_at":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"engagement":{"type":"object","properties":{"likes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"comments":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"shares":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"views":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["likes","comments","shares","views"],"additionalProperties":false},"relevance":{"type":"number","minimum":0,"maximum":1},"classification":{"type":"object","properties":{"label":{"type":"string","enum":["pain","question","pitch","opinion","other"]},"reason":{"type":"string","maxLength":300},"prompt_version":{"type":"string"},"status":{"type":"string","const":"classified"},"tags":{"maxItems":1,"type":"array","items":{"type":"string","enum":["competitor_complaint","hiring_for_it"]}}},"required":["label","reason","prompt_version","status"],"additionalProperties":false},"is_repost":{"type":"boolean"},"why_now":{"type":"boolean"},"why_now_basis":{"type":"string","enum":["judged","date"]}},"required":["platform","post_id","url","text","author","published_at","engagement","relevance"],"additionalProperties":false}},"required":["kind","component","observed_at","data"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"network_outcomes"},"component":{"type":"string","const":"network"},"observed_at":{"type":["string","null"]},"data":{"type":"object","properties":{"window_days":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"replies":{"type":"integer","minimum":0,"maximum":9007199254740991},"bounces":{"type":"integer","minimum":0,"maximum":9007199254740991},"stops":{"type":"integer","minimum":0,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":0,"maximum":9007199254740991},"recipients":{"type":"integer","minimum":0,"maximum":9007199254740991},"computed_at":{"type":"string"}},"required":["window_days","replies","bounces","stops","complaints","recipients","computed_at"],"additionalProperties":false}},"required":["kind","component","observed_at","data"],"additionalProperties":false}]}},"claims":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["funding","hiring","product","partnership","leadership","customers","expansion","news","identity","other"]},"text":{"type":"string","minLength":1,"maxLength":300},"source_url":{"type":"string","format":"uri"},"excerpt":{"type":"string","minLength":1,"maxLength":400},"published_at":{"type":["string","null"]},"observed_at":{"type":"string"},"confidence":{"type":"number","minimum":0,"maximum":1},"source_content_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"extraction_version":{"type":"string"},"entailment":{"type":"string","const":"supported"}},"required":["kind","text","source_url","excerpt","published_at","observed_at","confidence","source_content_hash","extraction_version","entailment"],"additionalProperties":false}},"facts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["funding_round","product_launch","partnership","customer_win","expansion","news_coverage"]},"text":{"type":"string","minLength":1,"maxLength":300},"source_url":{"type":"string","format":"uri"},"published_at":{"type":["string","null"]},"observed_at":{"type":"string"}},"required":["kind","text","source_url","published_at","observed_at"],"additionalProperties":false}},"why_now":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["intent_signal","research_claim","social_post","pooled_fact"]},"text":{"type":"string","minLength":1,"maxLength":500},"observed_at":{"type":"string"},"source_url":{"type":["string","null"]}},"required":["kind","text","observed_at","source_url"],"additionalProperties":false}},"ranking":{"type":"object","properties":{"by":{"type":"string","enum":["goal","recency"]},"judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"unsure":{"type":"integer","minimum":0,"maximum":9007199254740991},"version":{"type":"string"},"why_now_judged":{"type":"integer","minimum":0,"maximum":9007199254740991},"companies":{"type":"array","items":{"type":"string"}}},"required":["by","judged","version"],"additionalProperties":false},"components":{"type":"array","items":{"type":"object","properties":{"component":{"type":"string","enum":["identity","company","intent","social","research","network"]},"status":{"type":"string","enum":["hit","miss","skipped","failed","unknown"]},"reason":{"type":["string","null"]},"credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"max_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"from_cache":{"type":"boolean"},"from_pool":{"type":"boolean"}},"required":["component","status","reason","credits","max_credits","from_cache","from_pool"],"additionalProperties":false}},"cost_breakdown":{"type":"object","properties":{"component_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"assembly_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"total_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["component_credits","assembly_credits","total_credits","maximum_credits","budget_credits"],"additionalProperties":false},"picture_version":{"type":"string"},"observed_at":{"type":"string"}},"required":["outcome","depth","subject","datapoints","claims","why_now","components","cost_breakdown","picture_version","observed_at"],"additionalProperties":false}},"required":["operation_id","state","credits_reserved","components"],"additionalProperties":false},{"type":"object","properties":{"dry_run":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"evaluated_at":{"type":"string"},"plan":{"type":"object","properties":{"verb":{"type":"string","const":"prospect_picture"},"plan_version":{"type":"number","const":3},"input_version":{"type":"string"},"credits_estimate":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"would_exceed":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"would":{"type":"object","properties":{"depth":{"type":"string","enum":["quick","standard","deep"]},"components":{"type":"array","items":{"type":"object","properties":{"component":{"type":"string","enum":["identity","company","intent","social","research","network"]},"planned":{"type":"boolean"},"reason":{"type":["string","null"]},"max_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"cache":{"type":"string","enum":["fresh","miss","n/a"]}},"required":["component","planned","reason","max_credits","cache"],"additionalProperties":false}},"assembly_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"maximum_credits":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"budget_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]}},"required":["depth","components","assembly_credits","maximum_credits","budget_credits"],"additionalProperties":false}},"required":["verb","plan_version","input_version","credits_estimate","would_exceed","warnings","would"],"additionalProperties":false}},"required":["dry_run","advisory","evaluated_at","plan"],"additionalProperties":false}]},"layrcake":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credits_charged":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"credits_available":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"replayed":{"type":"boolean"},"route":{"type":"object","properties":{"used":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},"source":{"type":"string","enum":["request","key","guess","default"]}},"required":["used","source"],"additionalProperties":false}},"required":["request_id","credits_charged","credits_available"],"additionalProperties":false}},"required":["result","layrcake"],"additionalProperties":false}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/llm/chat":{"post":{"operationId":"llm","tags":["LLM"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional stable retry key.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":120},"messages":{"minItems":1,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{}},"required":["role","content"],"additionalProperties":{}}},"max_tokens":{"type":"integer","minimum":1,"maximum":32768},"stream":{"type":"boolean"},"temperature":{"type":"number","minimum":0,"maximum":2}},"required":["model","messages"],"additionalProperties":{}}}}},"responses":{"200":{"description":"Successful outcome","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":{}}}}},"4XX":{"description":"Caller, scope, confirmation, or credit error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"5XX":{"description":"Provider or service error","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me":{"get":{"operationId":"get_me","tags":["Guard"],"summary":"Who this key is and what it may do. Call first. Free.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Key identity, workspace, Guard limits and remaining capacity","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"display_prefix":{"type":"string"},"created_at":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"oauth_issued":{"type":"boolean"}},"required":["id","name","display_prefix","created_at","scopes","oauth_issued"],"additionalProperties":false},"workspace":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"risk_tier":{"type":"string"},"external_actions_suspended":{"type":"boolean"}},"required":["id","name","risk_tier","external_actions_suspended"],"additionalProperties":false},"limits":{"type":"object","properties":{"daily":{"type":"object","properties":{"cap":{"type":"integer","minimum":0,"maximum":9007199254740991},"ceiling":{"type":"integer","minimum":0,"maximum":9007199254740991},"capacity":{"type":"integer","minimum":0,"maximum":9007199254740991},"lower_cap":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"allocated":{"type":"integer","minimum":0,"maximum":9007199254740991},"available":{"type":"integer","minimum":0,"maximum":9007199254740991},"extras_today":{"type":"integer","minimum":0,"maximum":9007199254740991},"applying":{"type":"boolean"},"state":{"type":"string","enum":["applying","applied","failed"]}},"required":["cap","ceiling","capacity","lower_cap","allocated","available","extras_today","applying"],"additionalProperties":false},"spend":{"type":"object","properties":{"mode":{"type":"string","enum":["off","shadow","enforce"]},"cap_usd":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]},"spent_usd":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"inflight_usd":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"left_usd":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]},"left_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]},"state":{"type":"string","enum":["ok","warning","stopped"]},"resets_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"parts":{"type":"object","properties":{"data_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"data_credits":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"sending_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"sending_credits":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"seat_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"agents_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"mailboxes_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"domains_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"other_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"}},"required":["data_usd","data_credits","sending_usd","sending_credits","seat_usd","agents_usd","mailboxes_usd","domains_usd","other_usd"],"additionalProperties":false}},"required":["cap_usd","spent_usd","left_usd","left_credits","state","resets_at"],"additionalProperties":false},"paused":{"anyOf":[{"type":"object","properties":{"by":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"side":{"type":"string","enum":["payer","client","system"]}},"required":["by","at","side"],"additionalProperties":false},{"type":"null"}]},"campaigns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"state":{"type":"string"},"share":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"extra_today":{"type":"integer","minimum":0,"maximum":9007199254740991},"held_by":{"type":"array","items":{"type":"string","enum":["pause_all","campaign"]}},"hold_reasons":{"type":"array","items":{"type":"string","enum":["interrupted","no_mailbox","removal_failed","no_room","removal_pending","capacity_lost","limits_failed","resume_failed","history_unavailable"]}},"restarting":{"type":"boolean"},"waiting":{"anyOf":[{"type":"string","enum":["no_room","removal_pending","history_unavailable"]},{"type":"null"}]},"restart_no_location":{"type":"integer","minimum":0,"maximum":9007199254740991},"left_by_stop":{"type":"boolean"}},"required":["id","name","state","share","extra_today","held_by","hold_reasons","restarting","waiting"],"additionalProperties":false}}},"required":["daily","paused","campaigns"],"additionalProperties":false},"guard":{"type":"object","properties":{"contacted_recently_window_days":{"type":"number","const":90},"monthly_spend_cap":{"type":["string","null"]},"spend_month_to_date":{"type":"string"},"spend_left":{"type":["string","null"]},"workspace_daily_send_cap":{"type":"integer","minimum":0,"maximum":9007199254740991},"daily_send_ceiling":{"type":"integer","minimum":0,"maximum":9007199254740991},"daily_send_extras_today":{"type":"integer","minimum":0,"maximum":9007199254740991},"daily_limits_applying":{"type":"boolean"},"workspace_spend":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["off","shadow","enforce"]},"cap_usd":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]},"spent_usd":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"inflight_usd":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"left_usd":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]},"left_credits":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d{1,6})?$"},{"type":"null"}]},"state":{"type":"string","enum":["ok","warning","stopped"]},"resets_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"parts":{"type":"object","properties":{"data_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"data_credits":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"sending_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"sending_credits":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"seat_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"agents_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"mailboxes_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"domains_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"},"other_usd":{"type":"string","pattern":"^-?(0|[1-9]\\d*)(\\.\\d{1,6})?$"}},"required":["data_usd","data_credits","sending_usd","sending_credits","seat_usd","agents_usd","mailboxes_usd","domains_usd","other_usd"],"additionalProperties":false}},"required":["cap_usd","spent_usd","left_usd","left_credits","state","resets_at"],"additionalProperties":false},{"type":"null"}]},"resume_available":{"type":"boolean"},"launch_recipients_admitted_today":{"type":"integer","minimum":0,"maximum":9007199254740991},"launch_recipients_left_today":{"type":"integer","minimum":0,"maximum":9007199254740991},"campaign_daily_capacity_allocated":{"type":"integer","minimum":0,"maximum":9007199254740991},"campaign_daily_capacity_left":{"type":"integer","minimum":0,"maximum":9007199254740991},"reply_daily_cap":{"type":"integer","minimum":0,"maximum":9007199254740991},"max_replies_per_day":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"replies_reserved_or_sent_today":{"type":"integer","minimum":0,"maximum":9007199254740991},"replies_left_today":{"type":"integer","minimum":0,"maximum":9007199254740991},"max_recipients_per_action":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"max_assets_per_purchase":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"autonomous_external_actions":{"type":"boolean","const":false}},"required":["monthly_spend_cap","spend_month_to_date","spend_left","workspace_daily_send_cap","launch_recipients_admitted_today","launch_recipients_left_today","campaign_daily_capacity_allocated","campaign_daily_capacity_left","reply_daily_cap","max_replies_per_day","replies_reserved_or_sent_today","replies_left_today","max_recipients_per_action","max_assets_per_purchase","autonomous_external_actions"],"additionalProperties":false},"credits":{"type":"object","properties":{"available":{"type":"string"},"reserved":{"type":"string"}},"required":["available","reserved"],"additionalProperties":false},"upkeep":{"type":"object","properties":{"state":{"type":"string","enum":["free","pending","active","grace","suspended","ended","unknown"]},"paid_through":{"type":["string","null"]},"grace_until":{"type":["string","null"]},"rank":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"band":{"type":["string","null"]}},"required":["state","paid_through","grace_until","rank","band"],"additionalProperties":false},"billing":{"type":"object","properties":{"live_agents":{"type":"integer","minimum":0,"maximum":9007199254740991},"next_renewal_at":{"type":["string","null"]},"next_renewal_estimate_cents":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["live_agents","next_renewal_at","next_renewal_estimate_cents"],"additionalProperties":false}},"required":["key","workspace","guard"],"additionalProperties":false}}}}}}},"/v1/trail":{"get":{"operationId":"get_trail","tags":["Guard"],"summary":"Your workspace's outcome record, newest first, typed per kind. Requires trail:read. Free.","security":[{"bearerAuth":[]}],"parameters":[{"name":"campaign_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"email","in":"query","description":"Resolved to your own subject; never echoed back except on retained events.","schema":{"type":"string","maxLength":320}},{"name":"kind","in":"query","description":"Repeatable or comma-separated.","schema":{"type":"array","items":{"type":"string","enum":["verify_verdict","admitted","removed","capped","provider_correlated","queued","launch_requested","launched","launch_failed","approval_requested","approved","declined","consumed","expired","reply","bounce","stop","complaint","pause_requested","paused","resume_requested","resumed","spend_threshold_crossed","dnc_added","dnc_loosened","dnc_loosen_cancelled","reply_sent","reply_failed","approval_superseded","completed","approval_held","approval_undone","approval_cancelled","approval_failed","approval_change_requested","approval_revised","approval_reply_myself","tool_action","lead_status"]}},"style":"form","explode":true},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"until","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"view","in":"query","description":"Opt-in safe approval context; requires the workspace pilot gate. Pages are live keyset reads, not one frozen snapshot.","schema":{"type":"string","enum":["record"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"cursor","in":"query","description":"Opaque; bound to this workspace and these filters.","schema":{"type":"string","maxLength":400}}],"responses":{"200":{"description":"Events and the cursor for older ones; record context only with view=record","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"events":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"verify_verdict"},"detail":{"type":"object","properties":{"status":{"type":"string","enum":["valid","invalid","catch_all_valid","catch_all_unknown","unknown","risky"]},"catch_all":{"type":"boolean"}},"required":["status","catch_all"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"admitted"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"removed"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["platform_blocked","opted_out","do_not_contact","invalid","contacted_recently","capped","other"]}},"required":["reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"capped"},"detail":{"type":"object","properties":{"count":{"type":"integer","minimum":0,"maximum":1000000}},"required":["count"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"provider_correlated"},"detail":{"type":"object","properties":{"source":{"type":"string","enum":["bulk_response","campaign_reconciliation","individual"]}},"required":["source"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"queued"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"launch_requested"},"detail":{"type":"object","properties":{"recipients":{"type":"integer","minimum":0,"maximum":1000000},"mailboxes":{"type":"integer","minimum":0,"maximum":1000000}},"required":["recipients","mailboxes"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"launched"},"detail":{"type":"object","properties":{"recipients":{"type":"integer","minimum":0,"maximum":1000000},"mailboxes":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]}},"required":["recipients","mailboxes"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"launch_failed"},"detail":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","enum":["authentication","billing_quota","provider_rate_limit","local_rate_limit","circuit_open","invalid_request","no_data","timeout","network","upstream_5xx","invalid_response","unknown"]},{"type":"string","enum":["campaign_paused","workspace_suspended","not_active_after_reconciliation_window"]}]}},"required":["reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_requested"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"version":{"type":"integer","minimum":1,"maximum":1000000}},"required":["action"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approved"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"},"command_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"first_send_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["action"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"declined"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"consumed"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64}},"required":["action"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"expired"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64}},"required":["action"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"reply"},"detail":{"type":"object","properties":{"classification":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["classification"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"bounce"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"stop"},"detail":{"type":"object","properties":{"basis":{"type":"string","enum":["stop_net","classified"]}},"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"complaint"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"pause_requested"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["non_payment","capacity_lost","founder_kill","owner_kill","admin_suspend","campaign_pause","resume_failed","provider_reported","sending_limits","add_leads","failed_launch_live","asset_health","launched_paused","backfill"]},"requested_from":{"type":"string","enum":["client_window"]}},"required":["reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"paused"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["non_payment","capacity_lost","founder_kill","owner_kill","admin_suspend","campaign_pause","resume_failed","provider_reported","sending_limits","add_leads","failed_launch_live","asset_health","launched_paused","backfill"]}},"required":["reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"resume_requested"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["pause_all_cleared","campaign_resumed"]}},"required":["reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"resumed"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["pause_all_cleared","campaign_resumed"]}},"required":["reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"spend_threshold_crossed"},"detail":{"type":"object","properties":{"threshold":{"type":"number","enum":[80,100]}},"required":["threshold"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"dnc_added"},"detail":{"type":"object","properties":{"subject_kind":{"type":"string","enum":["email","domain","area","linkedin"]},"via":{"type":"string","enum":["console","client_window","api","import","admin"]},"permanent":{"type":"boolean"},"has_end":{"type":"boolean"},"count":{"type":"integer","minimum":0,"maximum":1000000}},"required":["subject_kind","via","permanent","has_end","count"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"dnc_loosened"},"detail":{"type":"object","properties":{"subject_kind":{"type":"string","enum":["email","domain","area","linkedin"]},"kind":{"type":"string","enum":["lift","remove"]}},"required":["subject_kind","kind"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"dnc_loosen_cancelled"},"detail":{"type":"object","properties":{"subject_kind":{"type":"string","enum":["email","domain","area","linkedin"]}},"required":["subject_kind"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"reply_sent"},"detail":{"type":"object","properties":{"sent_before_list_change":{"type":"boolean","const":true}},"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"reply_failed"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["failed_before_provider_accept","abandoned_before_send"]}},"required":["reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_superseded"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64}},"required":["action"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"completed"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_held"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_undone"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_cancelled"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"reason":{"type":"string","enum":["workspace_paused","key_revoked","handover","integrity","erased","recipient_on_list"]}},"required":["action","reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_failed"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"reason":{"type":"string","enum":["missed_start","scope_removed","sending_unavailable","billing_frozen","insufficient_credits","capacity","price_increased","campaign_not_draft","reply_already_sent","recipients_changed","recipients_suppressed","recipients_contacted","sender_changed","words_changed","thread_changed","tool_unavailable"]}},"required":["action","reason"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_change_requested"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_revised"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_reply_myself"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"tool_action"},"detail":{"type":"object","properties":{"tool":{"type":"string","enum":["slack","heyreach","webhook"]},"action":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"action_class":{"type":"string","enum":["contacts_person","spends","changes_records","reads"]},"result":{"type":"string","enum":["done","refused","failed"]},"reason":{"type":"string","enum":["do_not_contact","invalid_email","approval_invalid","cap_reached","suspended","budget","key_invalid","vendor_error","needs_person","contacted_recently"]}},"required":["tool","action","action_class","result"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"lead_status"},"detail":{"type":"object","properties":{"status":{"type":"string","enum":["interested","meeting_booked","won","not_interested","out_of_office","neutral"]},"previous":{"anyOf":[{"type":"string","enum":["interested","meeting_booked","won","not_interested","out_of_office","neutral"]},{"type":"null"}]},"proof":{"anyOf":[{"type":"string","enum":["link","event_id"]},{"type":"null"}]},"flagged":{"type":"boolean"}},"required":["status","previous","proof","flagged"],"additionalProperties":false}},"required":["id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false}]}},"next_cursor":{"type":["string","null"]},"evaluated_at":{"type":"string"}},"required":["events","next_cursor","evaluated_at"],"additionalProperties":false},{"type":"object","properties":{"events":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"verify_verdict"},"detail":{"type":"object","properties":{"status":{"type":"string","enum":["valid","invalid","catch_all_valid","catch_all_unknown","unknown","risky"]},"catch_all":{"type":"boolean"}},"required":["status","catch_all"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"admitted"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"removed"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["platform_blocked","opted_out","do_not_contact","invalid","contacted_recently","capped","other"]}},"required":["reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"capped"},"detail":{"type":"object","properties":{"count":{"type":"integer","minimum":0,"maximum":1000000}},"required":["count"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"provider_correlated"},"detail":{"type":"object","properties":{"source":{"type":"string","enum":["bulk_response","campaign_reconciliation","individual"]}},"required":["source"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"queued"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"launch_requested"},"detail":{"type":"object","properties":{"recipients":{"type":"integer","minimum":0,"maximum":1000000},"mailboxes":{"type":"integer","minimum":0,"maximum":1000000}},"required":["recipients","mailboxes"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"launched"},"detail":{"type":"object","properties":{"recipients":{"type":"integer","minimum":0,"maximum":1000000},"mailboxes":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]}},"required":["recipients","mailboxes"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"launch_failed"},"detail":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","enum":["authentication","billing_quota","provider_rate_limit","local_rate_limit","circuit_open","invalid_request","no_data","timeout","network","upstream_5xx","invalid_response","unknown"]},{"type":"string","enum":["campaign_paused","workspace_suspended","not_active_after_reconciliation_window"]}]}},"required":["reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_requested"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"version":{"type":"integer","minimum":1,"maximum":1000000}},"required":["action"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approved"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"},"command_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"first_send_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["action"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"declined"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"consumed"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64}},"required":["action"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"expired"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64}},"required":["action"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"reply"},"detail":{"type":"object","properties":{"classification":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["classification"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"bounce"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"stop"},"detail":{"type":"object","properties":{"basis":{"type":"string","enum":["stop_net","classified"]}},"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"complaint"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"pause_requested"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["non_payment","capacity_lost","founder_kill","owner_kill","admin_suspend","campaign_pause","resume_failed","provider_reported","sending_limits","add_leads","failed_launch_live","asset_health","launched_paused","backfill"]},"requested_from":{"type":"string","enum":["client_window"]}},"required":["reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"paused"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["non_payment","capacity_lost","founder_kill","owner_kill","admin_suspend","campaign_pause","resume_failed","provider_reported","sending_limits","add_leads","failed_launch_live","asset_health","launched_paused","backfill"]}},"required":["reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"resume_requested"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["pause_all_cleared","campaign_resumed"]}},"required":["reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"resumed"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["pause_all_cleared","campaign_resumed"]}},"required":["reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"spend_threshold_crossed"},"detail":{"type":"object","properties":{"threshold":{"type":"number","enum":[80,100]}},"required":["threshold"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"dnc_added"},"detail":{"type":"object","properties":{"subject_kind":{"type":"string","enum":["email","domain","area","linkedin"]},"via":{"type":"string","enum":["console","client_window","api","import","admin"]},"permanent":{"type":"boolean"},"has_end":{"type":"boolean"},"count":{"type":"integer","minimum":0,"maximum":1000000}},"required":["subject_kind","via","permanent","has_end","count"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"dnc_loosened"},"detail":{"type":"object","properties":{"subject_kind":{"type":"string","enum":["email","domain","area","linkedin"]},"kind":{"type":"string","enum":["lift","remove"]}},"required":["subject_kind","kind"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"dnc_loosen_cancelled"},"detail":{"type":"object","properties":{"subject_kind":{"type":"string","enum":["email","domain","area","linkedin"]}},"required":["subject_kind"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"reply_sent"},"detail":{"type":"object","properties":{"sent_before_list_change":{"type":"boolean","const":true}},"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"reply_failed"},"detail":{"type":"object","properties":{"reason":{"type":"string","enum":["failed_before_provider_accept","abandoned_before_send"]}},"required":["reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_superseded"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64}},"required":["action"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"completed"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_held"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_undone"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_cancelled"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"reason":{"type":"string","enum":["workspace_paused","key_revoked","handover","integrity","erased","recipient_on_list"]}},"required":["action","reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_failed"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"reason":{"type":"string","enum":["missed_start","scope_removed","sending_unavailable","billing_frozen","insufficient_credits","capacity","price_increased","campaign_not_draft","reply_already_sent","recipients_changed","recipients_suppressed","recipients_contacted","sender_changed","words_changed","thread_changed","tool_unavailable"]}},"required":["action","reason"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_change_requested"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_revised"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"approval_reply_myself"},"detail":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64},"via":{"type":"string","enum":["console","client_window"]},"for_client":{"type":"boolean"}},"required":["action","via","for_client"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"tool_action"},"detail":{"type":"object","properties":{"tool":{"type":"string","enum":["slack","heyreach","webhook"]},"action":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"action_class":{"type":"string","enum":["contacts_person","spends","changes_records","reads"]},"result":{"type":"string","enum":["done","refused","failed"]},"reason":{"type":"string","enum":["do_not_contact","invalid_email","approval_invalid","cap_reached","suspended","budget","key_invalid","vendor_error","needs_person","contacted_recently"]}},"required":["tool","action","action_class","result"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false},{"type":"object","properties":{"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observed_at":{"type":"string"},"source":{"type":"string","enum":["route","worker","webhook","console"]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"campaign_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"email":{"type":"string"},"kind":{"type":"string","const":"lead_status"},"detail":{"type":"object","properties":{"status":{"type":"string","enum":["interested","meeting_booked","won","not_interested","out_of_office","neutral"]},"previous":{"anyOf":[{"type":"string","enum":["interested","meeting_booked","won","not_interested","out_of_office","neutral"]},{"type":"null"}]},"proof":{"anyOf":[{"type":"string","enum":["link","event_id"]},{"type":"null"}]},"flagged":{"type":"boolean"}},"required":["status","previous","proof","flagged"],"additionalProperties":false}},"required":["record","id","observed_at","source","campaign_id","campaign_lead_id","reply_id","request_id","operation_id","kind","detail"],"additionalProperties":false}]}},"approvals":{"type":"array","items":{"type":"object","properties":{"approval_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"command_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"chain_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"command_version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"instance_number":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"command_hash":{"type":["string","null"]},"content_digest":{"type":["string","null"]},"state":{"anyOf":[{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},{"type":"null"}]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"ledger":{"anyOf":[{"type":"object","properties":{"found":{"type":"integer","minimum":0,"maximum":1000000},"left_out":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["opted_out","do_not_contact","invalid","platform_blocked","contacted_recently","capped","other","said_no_since_drafted"]},"count":{"type":"integer","minimum":1,"maximum":1000000}},"required":["category","count"],"additionalProperties":false}},"included":{"type":"integer","minimum":0,"maximum":1000000}},"required":["found","left_out","included"],"additionalProperties":false},{"type":"null"}]},"decisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"decision":{"type":"string","enum":["approve","hold","decline","undo","supersede","cancel","expire","request_change","revise","reply_myself"]},"command_hash":{"type":"string"},"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"channel":{"type":["string","null"]},"for_client":{"type":"boolean"},"reverses_decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decided_at":{"type":"string"}},"required":["id","revision","decision","command_hash","actor","channel","for_client","reverses_decision_id","decided_at"],"additionalProperties":false}},"approving_decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"approved_first_send_at":{"type":["string","null"]},"first_send_at":{"type":["string","null"]},"execution":{"type":"string","enum":["not_yet_run","not_confirmed","recorded_success","recorded_failure"]},"settlement_event_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"settlement_events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["launched","launch_failed","reply_sent","reply_failed"]},"observed_at":{"type":"string"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","kind","observed_at","campaign_id","reply_id","request_id","operation_id"],"additionalProperties":false}},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["approval_id","command_id","chain_id","command_version","instance_number","command_hash","content_digest","state","campaign_id","reply_id","superseded_by_id","ledger","decisions","approving_decision_id","operation_id","request_id","approved_first_send_at","first_send_at","execution","settlement_event_ids","settlement_events","coverage"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]},"evaluated_at":{"type":"string"},"pagination":{"type":"string","const":"live_keyset"}},"required":["events","approvals","next_cursor","evaluated_at","pagination"],"additionalProperties":false}]}},"required":["result"],"additionalProperties":false}}}},"400":{"description":"Invalid filter or a cursor that does not belong to this workspace/query","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Key lacks trail:read","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/trail/export.csv":{"get":{"operationId":"export_trail_csv","tags":["Guard"],"security":[{"bearerAuth":[]}],"summary":"Complete bounded trail CSV. Requires trail:read and the pilot gate; free.","description":"One snapshot; at most 10,000 events, 1,000 approvals, 5,000 decisions, 10 MiB and five seconds. No partial downloads. Identity/access changes require regeneration. Private no-store attachment. CSV cells are quoted after prefixing an apostrophe to formula-leading text or leading tab/CR/LF; compare parsed cells after that transform, retaining ISO timestamps. Proof omits recipient identities and content; supporting settlement events remain separate from directly campaign-filtered events.","parameters":[{"name":"campaign_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"email","in":"query","description":"Resolved to your own subject; never echoed back except on retained events.","schema":{"type":"string","maxLength":320}},{"name":"kind","in":"query","description":"Repeatable or comma-separated.","schema":{"type":"array","items":{"type":"string","enum":["verify_verdict","admitted","removed","capped","provider_correlated","queued","launch_requested","launched","launch_failed","approval_requested","approved","declined","consumed","expired","reply","bounce","stop","complaint","pause_requested","paused","resume_requested","resumed","spend_threshold_crossed","dnc_added","dnc_loosened","dnc_loosen_cancelled","reply_sent","reply_failed","approval_superseded","completed","approval_held","approval_undone","approval_cancelled","approval_failed","approval_change_requested","approval_revised","approval_reply_myself","tool_action","lead_status"]}},"style":"form","explode":true},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"until","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Complete buffered attachment","content":{"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Invalid filters or export bound/deadline exceeded. Identity changed: HTTP 400 invalid_request; Record identity changed; regenerate the export. Discarded exports have no settled read audit."},"401":{"description":"Key revoked or expired"},"403":{"description":"Missing trail:read or access changed"},"404":{"description":"Pilot disabled or campaign not in this workspace"}}}},"/v1/campaigns/{id}/proof":{"get":{"operationId":"get_campaign_proof","tags":["Guard"],"security":[{"bearerAuth":[]}],"summary":"Whole retained campaign proof as safe JSON. Requires trail:read and the pilot gate; free.","description":"One snapshot; at most 10,000 events, 1,000 approvals, 5,000 decisions, 10 MiB and five seconds. No partial downloads. Identity/access changes require regeneration. Private no-store attachment. CSV cells are quoted after prefixing an apostrophe to formula-leading text or leading tab/CR/LF; compare parsed cells after that transform, retaining ISO timestamps. Proof omits recipient identities and content; supporting settlement events remain separate from directly campaign-filtered events.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Complete buffered attachment","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"schema_version":{"type":"number","const":1},"workspace_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaign_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspace_name":{"type":"string"},"campaign_title":{"type":"string"},"generated_at":{"type":"string"},"snapshot_at":{"type":"string"},"scope":{"type":"string","const":"whole_retained_campaign_history"},"completeness":{"type":"string"},"approvals":{"type":"array","items":{"type":"object","properties":{"approval_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"command_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"chain_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"command_version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"instance_number":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"command_hash":{"type":["string","null"]},"content_digest":{"type":["string","null"]},"state":{"anyOf":[{"type":"string","enum":["draft","pending_approval","held","approved","queued","executing","declined","expired","superseded","cancelled","failed","completed","execution_failed"]},{"type":"null"}]},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"superseded_by_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"ledger":{"anyOf":[{"type":"object","properties":{"found":{"type":"integer","minimum":0,"maximum":1000000},"left_out":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["opted_out","do_not_contact","invalid","platform_blocked","contacted_recently","capped","other","said_no_since_drafted"]},"count":{"type":"integer","minimum":1,"maximum":1000000}},"required":["category","count"],"additionalProperties":false}},"included":{"type":"integer","minimum":0,"maximum":1000000}},"required":["found","left_out","included"],"additionalProperties":false},{"type":"null"}]},"decisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"decision":{"type":"string","enum":["approve","hold","decline","undo","supersede","cancel","expire","request_change","revise","reply_myself"]},"command_hash":{"type":"string"},"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"channel":{"type":["string","null"]},"for_client":{"type":"boolean"},"reverses_decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decided_at":{"type":"string"}},"required":["id","revision","decision","command_hash","actor","channel","for_client","reverses_decision_id","decided_at"],"additionalProperties":false}},"approving_decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"approved_first_send_at":{"type":["string","null"]},"first_send_at":{"type":["string","null"]},"execution":{"type":"string","enum":["not_yet_run","not_confirmed","recorded_success","recorded_failure"]},"settlement_event_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"settlement_events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["launched","launch_failed","reply_sent","reply_failed"]},"observed_at":{"type":"string"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"reply_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","kind","observed_at","campaign_id","reply_id","request_id","operation_id"],"additionalProperties":false}},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["approval_id","command_id","chain_id","command_version","instance_number","command_hash","content_digest","state","campaign_id","reply_id","superseded_by_id","ledger","decisions","approving_decision_id","operation_id","request_id","approved_first_send_at","first_send_at","execution","settlement_event_ids","settlement_events","coverage"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["verify_verdict","admitted","removed","capped","provider_correlated","queued","launch_requested","launched","launch_failed","approval_requested","approved","declined","consumed","expired","reply","bounce","stop","complaint","pause_requested","paused","resume_requested","resumed","spend_threshold_crossed","dnc_added","dnc_loosened","dnc_loosen_cancelled","reply_sent","reply_failed","approval_superseded","completed","approval_held","approval_undone","approval_cancelled","approval_failed","approval_change_requested","approval_revised","approval_reply_myself","tool_action","lead_status"]},"observed_at":{"type":"string"},"record":{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["person","key","system"]},"ref":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"label":{"type":"string"},"label_basis":{"type":"string","const":"current_retained_label"}},"required":["kind","ref","label","label_basis"],"additionalProperties":false},"approval_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decision_revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stage":{"type":"string"},"coverage":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","partial","unavailable"]},"reasons":{"type":"array","items":{"type":"string","enum":["legacy_approval","missing_outcome","unmatched_decision","missing_settlement","inconsistent_settlement","inconsistent_hash","inconsistent_counts","missing_ledger","missing_approval","missing_execution_link"]}}},"required":["status","reasons"],"additionalProperties":false}},"required":["actor","approval_id","decision_id","decision_revision","stage","coverage"],"additionalProperties":false}},"required":["id","kind","observed_at","record"],"additionalProperties":false}},"limits":{"type":"array","items":{"type":"string"}}},"required":["schema_version","workspace_id","campaign_id","workspace_name","campaign_title","generated_at","snapshot_at","scope","completeness","approvals","events","limits"],"additionalProperties":false}}}},"400":{"description":"Invalid filters or export bound/deadline exceeded. Identity changed: HTTP 400 invalid_request; Record identity changed; regenerate the export. Discarded exports have no settled read audit."},"401":{"description":"Key revoked or expired"},"403":{"description":"Missing trail:read or access changed"},"404":{"description":"Pilot disabled or campaign not in this workspace"}}}},"/v1/keys/{id}":{"patch":{"operationId":"tighten_key_policy","tags":["Guard"],"summary":"Tighten another key's policy (lower caps/limits, drop scopes). Requires control:manage. Loosening needs an owner in the console. Every external action needs a person's approval; autonomous_external_actions is deprecated, accepted only as false and always reported as false.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"type":"array","items":{"type":"string","enum":["data:read","llm","campaign:write","campaign:launch","assets:purchase","usage:read","reply:send","control:manage","trail:read"]}},"monthly_spend_cap":{"anyOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,6})?$"},{"type":"null"}]},"autonomous_external_actions":{"type":"boolean","const":false},"autonomous_action_limits":{"type":"object","properties":{"max_recipients_per_action":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]},"max_assets_per_purchase":{"anyOf":[{"type":"integer","minimum":0,"maximum":10000},{"type":"null"}]},"max_replies_per_day":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000},{"type":"null"}]},"require_run":{"type":["boolean","null"]}},"additionalProperties":false},"premium_offers":{"type":"string","enum":["ask","never"]},"premium_max_credits_per_call":{"type":"string","pattern":"^\\d+(\\.\\d{1,6})?$"},"data_route":{"anyOf":[{"type":"string","enum":["balanced","cheapest","broadest","fastest"]},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"The key's policy after the change","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"type":"object","properties":{"policy":{"type":"object","properties":{"key_id":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["data:read","llm","campaign:write","campaign:launch","assets:purchase","usage:read","reply:send","control:manage","trail:read"]}},"monthly_spend_cap":{"type":["string","null"]},"autonomous_external_actions":{"type":"boolean","const":false},"autonomous_action_limits":{"type":"object","properties":{"max_recipients_per_action":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"max_assets_per_purchase":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"max_replies_per_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"require_run":{"type":"boolean","const":true}},"required":["max_recipients_per_action","max_assets_per_purchase","max_replies_per_day"],"additionalProperties":false},"oauth_connection_id":{"type":["string","null"]},"premium_offers":{"type":"string","enum":["ask","never"]},"premium_max_credits_per_call":{"type":"string"},"data_route":{"type":"string","enum":["balanced","cheapest","broadest","fastest"]}},"required":["key_id","name","scopes","monthly_spend_cap","autonomous_external_actions","autonomous_action_limits","oauth_connection_id"],"additionalProperties":false},"direction":{"type":"string","enum":["tighten","loosen","neutral","mixed"]},"changed_fields":{"type":"array","items":{"type":"string"}},"replayed":{"type":"boolean"}},"required":["policy","direction","changed_fields","replayed"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"403":{"description":"owner_required (loosening), self_modification (own key), missing scope","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Idempotency-Key reused with different parameters","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/do_not_contact":{"post":{"operationId":"import_do_not_contact","tags":["Guard"],"summary":"Add up to 5,000 emails to the workspace do-not-contact list. campaign:write required. No domains or loosening. DNC_IMPORT_ENABLED defaults to NO; also requires list release. dry_run writes nothing.","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Required unless dry_run is true","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"emails":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","maxLength":320}},"note":{"type":"string","maxLength":200},"dry_run":{"default":false,"type":"boolean"}},"required":["emails"],"additionalProperties":false}}}},"responses":{"200":{"description":"Import counts; dry_run counts are advisory and queue nothing","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"type":"object","properties":{"import_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"added":{"type":"integer","minimum":0,"maximum":9007199254740991},"already_listed":{"type":"integer","minimum":0,"maximum":9007199254740991},"strengthened":{"type":"integer","minimum":0,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":0,"maximum":9007199254740991},"free_mail_refused":{"type":"integer","minimum":0,"maximum":9007199254740991},"queued_for_removal":{"type":"integer","minimum":0,"maximum":9007199254740991},"replayed":{"type":"boolean"},"dry_run":{"type":"boolean"}},"required":["import_id","added","already_listed","strengthened","invalid","free_mail_refused","queued_for_removal","replayed","dry_run"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"400":{"description":"Invalid request, including domains or more than 5,000 emails"},"403":{"description":"Missing campaign:write scope"},"404":{"description":"Import or list release disabled"},"409":{"description":"Idempotency-Key reused with different parameters"},"429":{"description":"Shared key rate limit exceeded"}}}},"/v1/kill":{"post":{"operationId":"kill_sending","tags":["Guard"],"summary":"Stop sending for the whole workspace: pauses every launching/active campaign (provider-verified) and blocks new launches, purchases and replies until an owner clears it in the console. Requires control:manage.","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"Suspended; containment state","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"result":{"type":"object","properties":{"suspended":{"type":"boolean","const":true},"containment":{"type":"object","properties":{"state":{"type":"string"},"campaigns_targeted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["state","campaigns_targeted"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["suspended","containment","replayed"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"403":{"description":"Key lacks control:manage","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","confirmation_required","payment_required","insufficient_credits","rate_limited","idempotency_conflict","invalid_request","suppressed_recipient","not_found","operation_unknown_state","provider_unavailable","contact_history_unavailable","internal","reply_intent_pending","reply_already_sent","reply_content_unavailable","reply_send_disabled","mailbox_unavailable","self_modification","agent_suspended","card_required","payment_action_required","billing_unknown","agent_paused","stream_consumed","run_budget_exceeded","run_unavailable","run_required","own_key_failed","change_request_closed","tool_key_invalid","tool_unavailable","approval_declined","approval_expired","approval_superseded","approval_cancelled","approval_changed"]},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/campaigns/{id}/pause":{"post":{"operationId":"pause_campaign","tags":["Guard"],"summary":"Pause one campaign through verified containment. Requires control:manage and limits controls enabled. Resume needs a signed-in payer owner.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Campaign held; containment queued"},"404":{"description":"Campaign not found or controls disabled"}}}},"/v1/operations/{id}":{"get":{"operationId":"get_operation","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Operation status"}}}}}}