{"openapi":"3.1.0","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"DOOU External API","version":"2.0.0","description":"Versioned foreign-trade workflow, data, and command contract. Paid reads and external writes use a separate quote/review then confirm step."},"servers":[{"url":"https://doouai.com","description":"Current DOOU deployment"}],"tags":[{"name":"products","description":"已确认的用户产品与可复用产品资料。"},{"name":"customer_searches","description":"客户发现 TaskDraft、报价、执行和增量状态。"},{"name":"companies","description":"工作区内已保存企业、公开渠道、负责人摘要和来源。"},{"name":"people","description":"负责人身份、任职、岗位、联系方式和核验证据。"},{"name":"relationships","description":"客户阶段、归属、结果和抑制状态。"},{"name":"conversations","description":"已同步邮箱中的客户回复索引、企业归属和后续动作。"},{"name":"messages","description":"有界消息、已审核草稿、单封确认和发送回执。"},{"name":"actions","description":"需确认的业务动作和 AI 值守策略。"},{"name":"artifacts","description":"工作流生成的版本化业务成果。"},{"name":"workflows","description":"可恢复工作流及其运行状态。"},{"name":"usage_receipts","description":"外部命令的费用预估、确认状态和最终用量回执。"}],"paths":{"/api/v2/products":{"get":{"operationId":"products.list_confirmed","summary":"products / list confirmed","tags":["products"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":8,"default":8}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-product-profile-index.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"products:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_product_profiles","x-doou-schema-versions":{"input":"doou-product-profile-query.v1","output":"doou-product-profile-index.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","invalid_pagination","product_profile_storage_unavailable","product_profile_read_failed","internal_error"]}},"/api/v1/customer-lists":{"get":{"operationId":"companies.list_saved","summary":"companies / list saved","tags":["companies"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500,"default":0}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-customer-list-index.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"customers:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_customer_lists","x-doou-schema-versions":{"input":"doou-pagination.v1","output":"doou-customer-list-index.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","not_found","internal_error"]}},"/api/v1/customer-lists/{id}":{"get":{"operationId":"companies.read_saved_list","summary":"companies / read saved list","tags":["companies"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500,"default":0}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-customer-list.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"customers:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_customer_list","x-doou-schema-versions":{"input":"doou-pagination.v1","output":"doou-customer-list.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","not_found","internal_error"]}},"/api/v1/workflow-runs":{"get":{"operationId":"workflows.list_runs","summary":"workflows / list runs","tags":["workflows"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500,"default":0}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-workflow-run-index.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"runs:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_workflow_runs","x-doou-schema-versions":{"input":"doou-pagination.v1","output":"doou-workflow-run-index.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","not_found","internal_error"]}},"/api/v1/workflow-runs/{id}/artifacts":{"get":{"operationId":"artifacts.list_for_run","summary":"artifacts / list for run","tags":["artifacts"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500,"default":0}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-workflow-artifact-list.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"artifacts:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_workflow_artifacts","x-doou-schema-versions":{"input":"doou-pagination.v1","output":"doou-workflow-artifact-list.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","not_found","internal_error"]}},"/api/v2/artifacts":{"get":{"operationId":"artifacts.list_events","summary":"artifacts / list events","tags":["artifacts"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"workflowRunId","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-workflow-artifact-event-page.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"artifacts:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_workflow_artifact_events","x-doou-schema-versions":{"input":"doou-workflow-artifact-event-cursor.v1","output":"doou-workflow-artifact-event-page.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","invalid_cursor","run_id_invalid","run_not_found","internal_error"]}},"/api/v2/usage-receipts":{"get":{"operationId":"usage_receipts.list","summary":"usage receipts / list","tags":["usage_receipts"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-usage-receipt-page.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"usage:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_usage_receipts","x-doou-schema-versions":{"input":"doou-usage-receipt-cursor.v1","output":"doou-usage-receipt-page.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","invalid_cursor","external_command_storage_unavailable","internal_error"]}},"/api/v2/conversations":{"get":{"operationId":"conversations.list_inbox","summary":"conversations / list inbox","tags":["conversations"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"connectionId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":40}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-conversation-inbox.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"conversations:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_mailbox_conversations","x-doou-schema-versions":{"input":"doou-conversation-inbox-query.v1","output":"doou-conversation-inbox.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","mailbox_connection_invalid","mailbox_reply_query_failed","mailbox_reply_context_failed","internal_error"]}},"/api/v2/conversations/official":{"get":{"operationId":"conversations.list_official","summary":"conversations / list official","tags":["conversations"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"connectionId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":40}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-official-conversation-inbox.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"official_messages:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_official_conversations","x-doou-schema-versions":{"input":"doou-official-conversation-query.v1","output":"doou-official-conversation-inbox.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","invalid_pagination","official_conversation_connection_invalid","official_conversation_schema_missing","official_conversation_read_failed","internal_error"]}},"/api/v2/relationships":{"get":{"operationId":"relationships.list_saved","summary":"relationships / list saved","tags":["relationships"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-relationship-index.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"relationships:read","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_list_customer_relationships","x-doou-schema-versions":{"input":"doou-relationship-query.v1","output":"doou-relationship-index.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","invalid_cursor","relationship_storage_unavailable","relationship_ledger_limit_exceeded","relationship_lead_read_failed","relationship_outcome_read_failed","relationship_suppression_read_failed","internal_error"]}},"/api/v2/relationships/follow-up-changes/{id}":{"get":{"operationId":"relationships.read_follow_up_receipt","summary":"relationships / read follow up receipt","tags":["relationships"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"relationships:write","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_relationship_follow_up_receipt","x-doou-schema-versions":{"input":"doou-command-receipt-id.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","receipt_id_invalid","receipt_not_found","external_command_storage_unavailable","external_command_persistence_failed","internal_error"]}},"/api/v2/people/enrichments/{id}":{"get":{"operationId":"people.read_enrichment_receipt","summary":"people / read enrichment receipt","tags":["people"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"people:enrich","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_people_enrichment_receipt","x-doou-schema-versions":{"input":"doou-command-receipt-id.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","receipt_id_invalid","receipt_not_found","external_command_storage_unavailable","external_command_persistence_failed","internal_error"]}},"/api/v2/watch-policy/changes/{id}":{"get":{"operationId":"actions.read_watch_policy_receipt","summary":"actions / read watch policy receipt","tags":["actions"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"watch_policy:write","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_watch_policy_receipt","x-doou-schema-versions":{"input":"doou-command-receipt-id.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","receipt_id_invalid","receipt_not_found","external_command_storage_unavailable","external_command_persistence_failed","internal_error"]}},"/api/v2/messages/drafts/{id}":{"get":{"operationId":"messages.read_outreach_draft_receipt","summary":"messages / read outreach draft receipt","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"messages:draft","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_outreach_draft_receipt","x-doou-schema-versions":{"input":"doou-command-receipt-id.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","receipt_id_invalid","receipt_not_found","external_command_storage_unavailable","external_command_persistence_failed","internal_error"]}},"/api/v2/messages/sends/{id}":{"get":{"operationId":"messages.read_single_send_receipt","summary":"messages / read single send receipt","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"messages:send","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_single_email_send_receipt","x-doou-schema-versions":{"input":"doou-command-receipt-id.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","receipt_id_invalid","receipt_not_found","external_command_storage_unavailable","external_command_persistence_failed","internal_error"]}},"/api/v2/messages/official-replies/{id}":{"get":{"operationId":"messages.read_official_reply_receipt","summary":"messages / read official reply receipt","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-resource-read-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-official-message-reply-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"read_only"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"read_only","x-doou-required-scope":"official_messages:reply","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_get_official_message_reply_receipt","x-doou-schema-versions":{"input":"doou-command-receipt-id.v1","output":"doou-official-message-reply-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","official_message_receipt_invalid","official_message_receipt_not_found","official_message_reply_schema_missing","official_message_reply_persistence_failed","internal_error"]}},"/api/v2/customer-searches/drafts":{"post":{"operationId":"customer_searches.create_or_revise_draft","summary":"customer searches / create or revise draft","tags":["customer_searches"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-customer-search-draft.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"customer_searches:write","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_create_customer_search_draft","x-doou-schema-versions":{"input":"doou-customer-search-draft-request.v1","output":"doou-customer-search-draft.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","customer_product_missing","customer_market_missing","customer_market_invalid","customer_market_requires_country","customer_result_limit_invalid","idempotency_key_invalid","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-draft-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"anyOf":[{"required":["draft"]},{"required":["product","market"]}],"properties":{"draft":{"$ref":"#/components/schemas/doou-customer-search-draft.v1"},"product":{"type":"string","minLength":2,"maxLength":120},"market":{"type":"string","minLength":2,"maxLength":100},"resultLimit":{"type":"integer","minimum":1,"maximum":20,"default":10},"customerTypes":{"type":"array","maxItems":5,"items":{"type":"string","minLength":2,"maxLength":60}},"contactRequirement":{"type":"string","enum":["any_contact","email","phone"],"default":"any_contact"}}}}}}}},"/api/v2/customer-searches/quotes":{"post":{"operationId":"customer_searches.request_quote","summary":"customer searches / request quote","tags":["customer_searches"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-customer-search-quote.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"customer_searches:execute","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_quote_customer_search","x-doou-schema-versions":{"input":"doou-customer-search-quote-request.v1","output":"doou-customer-search-quote.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","customer_search_draft_invalid","idempotency_key_invalid","idempotency_conflict","external_confirmation_configuration_missing","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-quote-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["draft"],"properties":{"draft":{"$ref":"#/components/schemas/doou-customer-search-draft.v1"}}}}}}}},"/api/v2/customer-searches":{"post":{"operationId":"customer_searches.confirm_start","summary":"customer searches / confirm start","tags":["customer_searches"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"paid_read","x-doou-required-scope":"customer_searches:execute","x-doou-confirmation":"quote_then_confirm","x-doou-provider-calls":true,"x-doou-mcp-tool":"doou_confirm_customer_search","x-doou-schema-versions":{"input":"doou-customer-search-confirmation.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","idempotency_key_invalid","confirmation_invalid","confirmation_expired","confirmation_actor_mismatch","confirmation_not_found","confirmation_input_conflict","confirmation_already_used","idempotency_conflict","customer_search_receipt_unknown","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096}}}}}}}},"/api/v2/people/enrichment-quotes":{"post":{"operationId":"people.request_enrichment_quote","summary":"people / request enrichment quote","tags":["people"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-people-enrichment-quote.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"people:enrich","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_quote_people_enrichment","x-doou-schema-versions":{"input":"doou-people-enrichment-quote-request.v1","output":"doou-people-enrichment-quote.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","contact_business_ids_missing","contact_enrichment_limit_exceeded","contact_target_role_missing","business_scope_forbidden","external_confirmation_configuration_missing","people_enrichment_unavailable","idempotency_key_invalid","idempotency_conflict","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-people-enrichment-quote-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["businessIds","targetRole"],"properties":{"businessIds":{"type":"array","minItems":1,"maxItems":10,"uniqueItems":true,"items":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},"targetRole":{"type":"string","minLength":2,"maxLength":120},"targetTableId":{"type":"string","maxLength":180}}}}}}}},"/api/v2/people/enrichments":{"post":{"operationId":"people.confirm_enrichment","summary":"people / confirm enrichment","tags":["people"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"paid_read","x-doou-required-scope":"people:enrich","x-doou-confirmation":"quote_then_confirm","x-doou-provider-calls":true,"x-doou-mcp-tool":"doou_confirm_people_enrichment","x-doou-schema-versions":{"input":"doou-people-enrichment-confirmation.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","idempotency_key_invalid","confirmation_invalid","confirmation_expired","confirmation_actor_mismatch","confirmation_not_found","confirmation_input_conflict","confirmation_already_used","idempotency_conflict","workflow_start_rejected","workflow_receipt_unknown","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-people-enrichment-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096}}}}}}}},"/api/v2/relationships/follow-up-reviews":{"post":{"operationId":"relationships.review_follow_up","summary":"relationships / review follow up","tags":["relationships"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-relationship-follow-up-review.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"relationships:write","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_review_relationship_follow_up","x-doou-schema-versions":{"input":"doou-relationship-follow-up-review-request.v1","output":"doou-relationship-follow-up-review.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","relationship_follow_up_lead_invalid","relationship_follow_up_status_invalid","relationship_follow_up_date_invalid","relationship_follow_up_change_missing","relationship_follow_up_field_unsupported","follow_up_lead_not_found","follow_up_suppressed","follow_up_unchanged","external_confirmation_configuration_missing","idempotency_key_invalid","idempotency_conflict","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-follow-up-review-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"anyOf":[{"required":["status"]},{"required":["note"]},{"required":["nextFollowUpAt"]}],"required":["leadId"],"properties":{"leadId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"status":{"type":"string","enum":["pending","active","won","closed"]},"note":{"type":"string","maxLength":1000},"nextFollowUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}}},"/api/v2/relationships/follow-up-changes":{"post":{"operationId":"relationships.confirm_follow_up","summary":"relationships / confirm follow up","tags":["relationships"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"confirmed_internal_write","x-doou-required-scope":"relationships:write","x-doou-confirmation":"review_then_confirm","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_confirm_relationship_follow_up","x-doou-schema-versions":{"input":"doou-relationship-follow-up-confirmation.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","idempotency_key_invalid","confirmation_invalid","confirmation_expired","confirmation_actor_mismatch","confirmation_not_found","confirmation_input_conflict","confirmation_already_used","idempotency_conflict","follow_up_revision_conflict","follow_up_suppressed","follow_up_atomic_write_unavailable","relationship_follow_up_receipt_unknown","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-follow-up-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096}}}}}}}},"/api/v2/messages/draft-quotes":{"post":{"operationId":"messages.request_outreach_draft_quote","summary":"messages / request outreach draft quote","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-outreach-draft-quote.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"messages:draft","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_quote_outreach_drafts","x-doou-schema-versions":{"input":"doou-outreach-draft-quote-request.v1","output":"doou-outreach-draft-quote.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","outreach_table_missing","outreach_businesses_missing","outreach_business_limit","outreach_product_missing","outreach_target_role_missing","outreach_channel_invalid","outreach_language_invalid","outreach_selection_forbidden","outreach_product_profile_changed","external_confirmation_configuration_missing","idempotency_key_invalid","idempotency_conflict","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-draft-quote-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["tableId","businessIds","product","targetRole","channelStrategy","language"],"properties":{"tableId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"businessIds":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},"product":{"type":"string","minLength":2,"maxLength":160},"market":{"type":"string","maxLength":120},"productProfileKey":{"type":"string","maxLength":180},"targetRole":{"type":"string","minLength":2,"maxLength":120},"channelStrategy":{"type":"string","enum":["auto","email","linkedin"]},"language":{"type":"string","enum":["en","zh"]}}}}}}}},"/api/v2/messages/drafts":{"post":{"operationId":"messages.confirm_outreach_draft","summary":"messages / confirm outreach draft","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"paid_read","x-doou-required-scope":"messages:draft","x-doou-confirmation":"quote_then_confirm","x-doou-provider-calls":true,"x-doou-mcp-tool":"doou_confirm_outreach_drafts","x-doou-schema-versions":{"input":"doou-outreach-draft-confirmation.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","idempotency_key_invalid","confirmation_invalid","confirmation_expired","confirmation_actor_mismatch","confirmation_not_found","confirmation_input_conflict","confirmation_already_used","idempotency_conflict","outreach_product_profile_changed","outreach_draft_start_rejected","outreach_draft_receipt_unknown","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-draft-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096}}}}}}}},"/api/v2/messages/send-reviews":{"post":{"operationId":"messages.review_single_send","summary":"messages / review single send","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-outreach-send-review.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"messages:send","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_review_single_email_send","x-doou-schema-versions":{"input":"doou-outreach-send-review-request.v1","output":"doou-outreach-send-review.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","campaign_id_invalid","draft_id_invalid","connection_id_invalid","campaign_not_found","campaign_not_sendable","campaign_draft_not_found","campaign_draft_not_sendable","mailbox_connection_unavailable","mailbox_send_not_authorized","campaign_content_quality_failed","external_confirmation_configuration_missing","idempotency_key_invalid","idempotency_conflict","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-send-review-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["campaignKey","draftId","connectionId"],"properties":{"campaignKey":{"type":"string","minLength":1,"maxLength":180},"draftId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"connectionId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}}}}}}}},"/api/v2/messages/sends":{"post":{"operationId":"messages.confirm_single_send","summary":"messages / confirm single send","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"external_write","x-doou-required-scope":"messages:send","x-doou-confirmation":"review_then_confirm","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_confirm_single_email_send","x-doou-schema-versions":{"input":"doou-outreach-send-confirmation.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","idempotency_key_invalid","confirmation_invalid","confirmation_expired","confirmation_actor_mismatch","confirmation_not_found","confirmation_input_conflict","confirmation_already_used","idempotency_conflict","outreach_send_revision_conflict","outreach_send_preflight_failed","outreach_send_rejected","outreach_send_receipt_unknown","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-send-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096}}}}}}}},"/api/v2/messages/official-reply-reviews":{"post":{"operationId":"messages.review_official_reply","summary":"messages / review official reply","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-official-message-reply-review.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"official_messages:reply","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_review_official_message_reply","x-doou-schema-versions":{"input":"doou-official-message-reply-review-request.v1","output":"doou-official-message-reply-review.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","official_message_conversation_invalid","official_message_conversation_not_found","official_message_channel_unsupported","official_message_conversation_not_sendable","official_message_account_unavailable","official_message_inbound_not_found","official_message_reply_not_authorized","whatsapp_reply_window_closed","official_message_reply_empty","official_message_reply_too_long","external_confirmation_configuration_missing","idempotency_key_invalid","idempotency_conflict","official_message_reply_schema_missing","official_message_reply_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-official-message-reply-review-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["conversationId","replyText"],"properties":{"conversationId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"replyText":{"type":"string","minLength":1,"maxLength":4000}}}}}}}},"/api/v2/messages/official-replies":{"post":{"operationId":"messages.confirm_official_reply","summary":"messages / confirm official reply","tags":["messages"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-official-message-reply-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"external_write","x-doou-required-scope":"official_messages:reply","x-doou-confirmation":"review_then_confirm","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_confirm_official_message_reply","x-doou-schema-versions":{"input":"doou-official-message-reply-confirmation.v1","output":"doou-official-message-reply-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","confirmation_invalid","confirmation_expired","confirmation_actor_mismatch","confirmation_not_found","confirmation_input_conflict","confirmation_already_used","idempotency_key_invalid","idempotency_conflict","official_message_reply_revision_conflict","official_message_reply_not_authorized","whatsapp_reply_window_closed","whatsapp_send_rejected","whatsapp_send_receipt_unknown","official_message_reply_schema_missing","official_message_reply_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-official-message-reply-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096}}}}}}}},"/api/v2/watch-policy/reviews":{"post":{"operationId":"actions.review_watch_policy","summary":"actions / review watch policy","tags":["actions"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/doou-watch-policy-review.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"internal_write","x-doou-required-scope":"watch_policy:write","x-doou-confirmation":"none","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_review_watch_policy","x-doou-schema-versions":{"input":"doou-watch-policy-change-request.v1","output":"doou-watch-policy-review.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","watch_policy_change_invalid","watch_policy_change_ambiguous","watch_policy_patch_missing","watch_policy_field_unsupported","watch_policy_review_actions_fixed","watch_policy_snapshot_invalid","watch_policy_no_change","external_confirmation_configuration_missing","idempotency_key_invalid","idempotency_conflict","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-watch-policy-change-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["change"],"properties":{"change":{"type":"string","enum":["replace","pause","resume"]},"policy":{"type":"object"}}}}}}}},"/api/v2/watch-policy/changes":{"post":{"operationId":"actions.update_watch_policy","summary":"actions / update watch policy","tags":["actions"],"security":[{"doouBearer":[]},{"doouOAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}],"responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"const":"doou-command-api-response.v1"},"apiVersion":{"const":"v2"},"data":{"$ref":"#/components/schemas/workflow-command-receipt.v1"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt","mode"],"properties":{"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"mode":{"const":"command"}}}}}}}},"4XX":{"description":"Request rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}},"5XX":{"description":"Service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoouApiError"}}}}},"x-doou-risk":"schedule_change","x-doou-required-scope":"watch_policy:write","x-doou-confirmation":"review_then_confirm","x-doou-provider-calls":false,"x-doou-mcp-tool":"doou_confirm_watch_policy","x-doou-schema-versions":{"input":"doou-watch-policy-confirmation.v1","output":"workflow-command-receipt.v1"},"x-doou-error-codes":["unauthorized","scope_forbidden","rate_limited","request_too_large","idempotency_key_invalid","confirmation_invalid","confirmation_expired","confirmation_actor_mismatch","confirmation_not_found","confirmation_input_conflict","confirmation_already_used","idempotency_conflict","watch_policy_revision_conflict","watch_policy_change_rejected","watch_policy_receipt_unknown","external_command_storage_unavailable","external_command_persistence_failed","internal_error"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$id":"https://doouai.com/api/v2/schemas/doou-watch-policy-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096}}}}}}}}},"components":{"securitySchemes":{"doouBearer":{"type":"http","scheme":"bearer","bearerFormat":"DOOU access token","description":"Manual token created in DOOU settings."},"doouOAuth":{"type":"oauth2","description":"OAuth 2.1 authorization-code flow with PKCE. The authorization server binds access tokens to the requested DOOU resource.","flows":{"authorizationCode":{"authorizationUrl":"https://hqsmefowxjehvtyeomur.supabase.co/auth/v1/oauth/authorize","tokenUrl":"https://hqsmefowxjehvtyeomur.supabase.co/auth/v1/oauth/token","scopes":{"openid":"Supabase identity scope: openid","email":"Supabase identity scope: email","profile":"Supabase identity scope: profile"}}}}},"schemas":{"money.v1":{"$id":"https://doouai.com/api/v2/schemas/money.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU money","type":"object","additionalProperties":false,"required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,6})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}}},"evidence-reference.v1":{"$id":"https://doouai.com/api/v2/schemas/evidence-reference.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU evidence reference","type":"object","additionalProperties":false,"required":["sourceName","observedAt","verificationState"],"properties":{"sourceName":{"type":"string","minLength":1,"maxLength":160},"sourceType":{"type":"string","enum":["first_party","official_registry","structured_provider","public_web","user_supplied"]},"sourceUrl":{"type":"string","format":"uri","maxLength":500},"sourceRecordId":{"type":"string","minLength":1,"maxLength":180},"observedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"retrievedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"validUntil":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"verificationState":{"type":"string","enum":["observed","verified","corroborated","conflicting","expired"]},"confidence":{"type":"number","minimum":0,"maximum":100},"supports":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":120}}}},"contact-point.v1":{"$id":"https://doouai.com/api/v2/schemas/contact-point.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU contact point","type":"object","additionalProperties":false,"required":["type","value","ownerType","verificationStatus","evidence"],"properties":{"type":{"type":"string","enum":["email","phone","whatsapp"]},"value":{"type":"string","minLength":1,"maxLength":500},"label":{"type":"string","maxLength":80},"ownerType":{"type":"string","enum":["company","person","unknown"]},"usage":{"type":"string","enum":["general","sales","support","procurement","executive","personal","unknown"]},"verificationStatus":{"type":"string","enum":["verified","valid","accept_all","observed","unverified","risky","invalid","expired"]},"confidence":{"type":"number","minimum":0,"maximum":100},"observedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"evidence":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/evidence-reference.v1"}}}},"social-profile.v1":{"$id":"https://doouai.com/api/v2/schemas/social-profile.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU social profile","type":"object","additionalProperties":false,"required":["platform","url","ownerType","verificationStatus","evidence"],"properties":{"platform":{"type":"string","enum":["linkedin","facebook","instagram","x","tiktok","youtube","pinterest","whatsapp","other"]},"url":{"type":"string","format":"uri","maxLength":500},"handle":{"type":"string","maxLength":160},"ownerType":{"type":"string","enum":["company","person","unknown"]},"verificationStatus":{"type":"string","enum":["verified","matched","candidate","conflicting","expired"]},"confidence":{"type":"number","minimum":0,"maximum":100},"observedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"evidence":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/evidence-reference.v1"}}}},"person.v1":{"$id":"https://doouai.com/api/v2/schemas/person.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU person","type":"object","additionalProperties":false,"required":["id","name","companyId","employmentStatus","verificationStatus","contactPoints","socialProfiles","evidence"],"properties":{"id":{"type":"string","minLength":1,"maxLength":160},"name":{"type":"string","minLength":1,"maxLength":160},"companyId":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","maxLength":160},"department":{"type":"string","maxLength":120},"seniority":{"type":"string","maxLength":80},"requestedRole":{"type":"string","maxLength":120},"employmentStatus":{"type":"string","enum":["current_verified","current_candidate","unverified","former","conflicting"]},"verificationStatus":{"type":"string","enum":["verified","candidate","conflicting","expired"]},"confidence":{"type":"number","minimum":0,"maximum":100},"observedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"contactPoints":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/contact-point.v1"}},"socialProfiles":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/social-profile.v1"}},"evidence":{"type":"array","maxItems":30,"items":{"$ref":"#/components/schemas/evidence-reference.v1"}}}},"company.v1":{"$id":"https://doouai.com/api/v2/schemas/company.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU company","type":"object","additionalProperties":false,"required":["id","name","identityStatus","location","businessRoles","contactPoints","socialProfiles","people","evidence","updatedAt"],"properties":{"id":{"type":"string","minLength":1,"maxLength":160},"name":{"type":"string","minLength":1,"maxLength":240},"legalName":{"type":"string","maxLength":240},"aliases":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":240}},"domain":{"type":"string","maxLength":240},"website":{"type":"string","format":"uri","maxLength":500},"identityStatus":{"type":"string","enum":["verified","matched","candidate","conflicting"]},"industry":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"codes":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"type":"string","maxLength":40}}}},"firmographics":{"type":"object","additionalProperties":false,"properties":{"employeeCount":{"type":"integer","minimum":0},"employeeRange":{"type":"string","maxLength":80},"foundedYear":{"type":"integer","minimum":1000,"maximum":9999},"annualRevenue":{"$ref":"#/components/schemas/money.v1"},"fundingStage":{"type":"string","maxLength":80},"totalFunding":{"$ref":"#/components/schemas/money.v1"}}},"location":{"type":"object","additionalProperties":false,"properties":{"countryCode":{"type":"string","pattern":"^[A-Z]{2}$"},"country":{"type":"string","maxLength":120},"region":{"type":"string","maxLength":160},"city":{"type":"string","maxLength":160}}},"businessRoles":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"type":"string","enum":["importer","distributor","wholesaler","retailer","brand","manufacturer","service_provider","other"]}},"relevance":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["matched","suspected","unknown","excluded"]},"score":{"type":"number","minimum":0,"maximum":100},"reasons":{"type":"array","maxItems":12,"items":{"type":"string","maxLength":240}}}},"contactPoints":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/contact-point.v1"}},"socialProfiles":{"type":"array","maxItems":30,"items":{"$ref":"#/components/schemas/social-profile.v1"}},"people":{"type":"array","maxItems":30,"items":{"$ref":"#/components/schemas/person.v1"}},"evidence":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/evidence-reference.v1"}},"observedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."}}},"page.v1":{"$id":"https://doouai.com/api/v2/schemas/page.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU page","type":"object","additionalProperties":false,"required":["limit","hasMore"],"properties":{"limit":{"type":"integer","minimum":1},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"],"maxLength":2048},"hasMore":{"type":"boolean"}}},"workflow-run.v1":{"$id":"https://doouai.com/api/v2/schemas/workflow-run.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU workflow run","type":"object","additionalProperties":false,"required":["id","operation","status","progress","resumable","createdAt","updatedAt"],"properties":{"id":{"type":"string","minLength":1,"maxLength":160},"operation":{"type":"string","pattern":"^[a-z][a-z0-9_.-]+$","maxLength":160},"status":{"type":"string","enum":["awaiting_confirmation","queued","running","completed","partial","failed","cancelled","attention_required"]},"progress":{"type":"object","additionalProperties":false,"required":["stage","percent"],"properties":{"stage":{"type":"string","minLength":1,"maxLength":120},"percent":{"type":"integer","minimum":0,"maximum":100},"completedUnits":{"type":"integer","minimum":0},"totalUnits":{"type":"integer","minimum":0}}},"resumable":{"type":"boolean"},"resultArtifactIds":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":160}},"error":{"$ref":"#/components/schemas/error.v1"},"createdAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"completedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."}}},"artifact.v1":{"$id":"https://doouai.com/api/v2/schemas/artifact.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU artifact","type":"object","additionalProperties":false,"required":["id","objectType","schemaVersion","classification","revision","data","lineage","createdAt","updatedAt"],"properties":{"id":{"type":"string","minLength":1,"maxLength":160},"objectType":{"type":"string","minLength":1,"maxLength":80},"objectId":{"type":"string","maxLength":180},"schemaVersion":{"type":"string","minLength":1,"maxLength":160},"classification":{"type":"string","minLength":1,"maxLength":80},"revision":{"type":"integer","minimum":1},"data":{"type":"object"},"lineage":{"type":"object"},"createdAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."}}},"usage-summary.v1":{"$id":"https://doouai.com/api/v2/schemas/usage-summary.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU customer usage summary","type":"object","additionalProperties":false,"required":["operation","chargeState","meters"],"properties":{"operation":{"type":"string","pattern":"^[a-z][a-z0-9_.-]+$","maxLength":160},"chargeState":{"type":"string","enum":["not_applicable","estimated","reserved","final","waived","reversed"]},"customerCharge":{"anyOf":[{"$ref":"#/components/schemas/money.v1"},{"type":"null"}]},"credits":{"type":"integer","minimum":0},"meters":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["code","quantity","unit"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_.-]+$","maxLength":120},"quantity":{"type":"string","pattern":"^(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,6})?$"},"unit":{"type":"string","minLength":1,"maxLength":80}}}}}},"error.v1":{"$id":"https://doouai.com/api/v2/schemas/error.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU error","type":"object","additionalProperties":false,"required":["code","message","requestId","retryable"],"properties":{"code":{"type":"string","pattern":"^[a-z0-9_]+$","maxLength":80},"message":{"type":"string","minLength":1,"maxLength":240},"requestId":{"type":"string","minLength":1,"maxLength":120},"retryable":{"type":"boolean"},"retryAfterMs":{"type":"integer","minimum":0,"maximum":3600000},"details":{"type":"object"}}},"api-success-envelope.v1":{"$id":"https://doouai.com/api/v2/schemas/api-success-envelope.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU API success envelope","type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","data","meta"],"properties":{"schemaVersion":{"type":"string","minLength":1,"maxLength":160},"apiVersion":{"type":"string","pattern":"^v[1-9][0-9]*$"},"data":{"type":"object"},"meta":{"type":"object","additionalProperties":true,"required":["requestId","generatedAt"],"properties":{"requestId":{"type":"string","minLength":1,"maxLength":120},"generatedAt":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"mode":{"type":"string","enum":["read_only","command"]}}}}},"api-error-envelope.v1":{"$id":"https://doouai.com/api/v2/schemas/api-error-envelope.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU API error envelope","type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","error"],"properties":{"schemaVersion":{"type":"string","minLength":1,"maxLength":160},"apiVersion":{"type":"string","pattern":"^v[1-9][0-9]*$"},"error":{"$ref":"#/components/schemas/error.v1"}}},"event.v1":{"$id":"https://doouai.com/api/v2/schemas/event.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"DOOU CloudEvent","type":"object","additionalProperties":true,"required":["specversion","id","source","type","time","datacontenttype","dataschema","subject","data"],"properties":{"specversion":{"const":"1.0"},"id":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","format":"uri-reference","maxLength":500},"type":{"type":"string","pattern":"^com\\.doou\\.[a-z0-9_.-]+\\.v[1-9][0-9]*$","maxLength":180},"time":{"type":"string","format":"date-time","description":"RFC 3339 timestamp in UTC."},"datacontenttype":{"const":"application/json"},"dataschema":{"type":"string","format":"uri","maxLength":500},"subject":{"type":"string","minLength":1,"maxLength":240},"workspaceId":{"type":"string","minLength":1,"maxLength":160},"correlationId":{"type":"string","maxLength":180},"data":{"type":"object"}}},"doou-pagination.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-pagination.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":50,"default":20},"offset":{"type":"integer","minimum":0,"maximum":500,"default":0}}},"doou-product-profile-query.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-product-profile-query.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":8,"default":8}}},"doou-workflow-artifact-event-cursor.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-workflow-artifact-event-cursor.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["workflowRunId"],"properties":{"workflowRunId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"cursor":{"type":"string","minLength":1,"maxLength":1024},"limit":{"type":"integer","minimum":1,"maximum":50}}},"doou-usage-receipt-cursor.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-usage-receipt-cursor.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"properties":{"cursor":{"type":"string","minLength":1,"maxLength":1024},"limit":{"type":"integer","minimum":1,"maximum":50}}},"doou-conversation-inbox-query.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-conversation-inbox-query.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"properties":{"connectionId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"limit":{"type":"integer","minimum":1,"maximum":40}}},"doou-official-conversation-query.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-official-conversation-query.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"properties":{"connectionId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"limit":{"type":"integer","minimum":1,"maximum":40}}},"doou-relationship-query.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-query.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"properties":{"cursor":{"type":"string","minLength":1,"maxLength":1024},"limit":{"type":"integer","minimum":1,"maximum":50}}},"doou-relationship-follow-up-review-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-follow-up-review-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"anyOf":[{"required":["status"]},{"required":["note"]},{"required":["nextFollowUpAt"]}],"required":["leadId"],"properties":{"leadId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"status":{"type":"string","enum":["pending","active","won","closed"]},"note":{"type":"string","maxLength":1000},"nextFollowUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-relationship-follow-up-confirmation.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-follow-up-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-command-receipt-id.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-command-receipt-id.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}}},"doou-people-enrichment-quote-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-people-enrichment-quote-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["businessIds","targetRole"],"properties":{"businessIds":{"type":"array","minItems":1,"maxItems":10,"uniqueItems":true,"items":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},"targetRole":{"type":"string","minLength":2,"maxLength":120},"targetTableId":{"type":"string","maxLength":180},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-people-enrichment-confirmation.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-people-enrichment-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-outreach-draft-quote-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-draft-quote-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["tableId","businessIds","product","targetRole","channelStrategy","language"],"properties":{"tableId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"businessIds":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"}},"product":{"type":"string","minLength":2,"maxLength":160},"market":{"type":"string","maxLength":120},"productProfileKey":{"type":"string","maxLength":180},"targetRole":{"type":"string","minLength":2,"maxLength":120},"channelStrategy":{"type":"string","enum":["auto","email","linkedin"]},"language":{"type":"string","enum":["en","zh"]},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-outreach-draft-confirmation.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-draft-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-outreach-send-review-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-send-review-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["campaignKey","draftId","connectionId"],"properties":{"campaignKey":{"type":"string","minLength":1,"maxLength":180},"draftId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"connectionId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-outreach-send-confirmation.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-send-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-official-message-reply-review-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-official-message-reply-review-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["conversationId","replyText"],"properties":{"conversationId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"replyText":{"type":"string","minLength":1,"maxLength":4000},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-official-message-reply-confirmation.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-official-message-reply-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-watch-policy-change-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-watch-policy-change-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["change"],"properties":{"change":{"type":"string","enum":["replace","pause","resume"]},"policy":{"type":"object"},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-watch-policy-confirmation.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-watch-policy-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-customer-search-draft-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-draft-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"anyOf":[{"required":["draft"]},{"required":["product","market"]}],"properties":{"draft":{"$ref":"#/components/schemas/doou-customer-search-draft.v1"},"product":{"type":"string","minLength":2,"maxLength":120},"market":{"type":"string","minLength":2,"maxLength":100},"resultLimit":{"type":"integer","minimum":1,"maximum":20,"default":10},"customerTypes":{"type":"array","maxItems":5,"items":{"type":"string","minLength":2,"maxLength":60}},"contactRequirement":{"type":"string","enum":["any_contact","email","phone"],"default":"any_contact"},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-customer-search-quote-request.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-quote-request.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["draft"],"properties":{"draft":{"$ref":"#/components/schemas/doou-customer-search-draft.v1"},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-customer-search-confirmation.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-confirmation.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["confirmationToken"],"properties":{"confirmationToken":{"type":"string","minLength":32,"maxLength":4096},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{11,159}$"}}},"doou-mcp-capabilities.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-mcp-capabilities.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","mode","counts"],"properties":{"schemaVersion":{"const":"doou-mcp-capabilities.v1"},"mode":{"const":"read_only"},"paidOperationsEnabled":{"type":"boolean"},"externalWritesEnabled":{"type":"boolean"},"counts":{"type":"object"},"capabilityLifecycle":{"type":"object"},"businessPlayLifecycle":{"type":"object"},"externalContract":{"type":"object"},"publicDataContract":{"type":"object"},"pluginManifest":{"type":"object"},"businessPlays":{"type":"array","items":{"type":"object"}},"connectors":{"type":"array","items":{"type":"object"}},"workflows":{"type":"array","items":{"type":"object"}}}},"doou-product-profile-index.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-product-profile-index.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","profiles","summary","meta"],"properties":{"schemaVersion":{"const":"doou-product-profile-index.v1"},"profiles":{"type":"array","maxItems":8,"items":{"type":"object"}},"summary":{"type":"object"},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-customer-list-index.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-list-index.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","total","limit","offset","hasMore","lists"],"properties":{"schemaVersion":{"const":"doou-customer-list-index.v1"},"total":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":50},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"},"lists":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["id","key","name","subject","rowCount","createdAt","updatedAt"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"key":{"type":"string","minLength":1,"maxLength":160},"name":{"type":"string","minLength":1,"maxLength":240},"subject":{"type":"object"},"rowCount":{"type":"integer","minimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}},"doou-customer-list.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-list.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","list","page","companies","meta"],"properties":{"schemaVersion":{"const":"doou-customer-list.v1"},"list":{"type":"object","additionalProperties":false,"required":["id","key","name","subject","rowCount","createdAt","updatedAt"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"key":{"type":"string","minLength":1,"maxLength":160},"name":{"type":"string","minLength":1,"maxLength":240},"subject":{"type":"object"},"rowCount":{"type":"integer","minimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"page":{"type":"object","additionalProperties":false,"required":["total","limit","offset","hasMore"],"properties":{"total":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"}}},"companies":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","name","qualification","channels","people","source"],"properties":{"id":{"type":"string","minLength":1,"maxLength":160},"businessId":{"type":"string","maxLength":160},"leadId":{"type":"string","maxLength":160},"name":{"type":"string","minLength":1,"maxLength":240},"legalName":{"type":"string","maxLength":240},"domain":{"type":"string","maxLength":240},"website":{"type":"string","format":"uri","maxLength":500},"companyType":{"type":"string","maxLength":160},"industry":{"type":"string","maxLength":160},"market":{"type":"string","maxLength":160},"city":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":120},"qualification":{"type":"object"},"channels":{"type":"object","additionalProperties":false,"required":["direct","social"],"properties":{"direct":{"type":"array","maxItems":20,"items":{"type":"object"}},"social":{"type":"array","maxItems":20,"items":{"type":"object"}}}},"people":{"type":"array","maxItems":20,"items":{"type":"object"}},"source":{"type":"object"},"updatedAt":{"type":"string","format":"date-time"}}}},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-workflow-run-index.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-workflow-run-index.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","mode","runs"],"properties":{"schemaVersion":{"const":"doou-workflow-run-index.v1"},"mode":{"type":"string","minLength":1,"maxLength":80},"reason":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}]},"runs":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":true,"required":["id","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"status":{"type":"string","minLength":1,"maxLength":80}}}}}},"doou-workflow-artifact-list.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-workflow-artifact-list.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","run","page","artifacts","meta"],"properties":{"schemaVersion":{"const":"doou-workflow-artifact-list.v1"},"run":{"type":"object","additionalProperties":true,"required":["id","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"status":{"type":"string","minLength":1,"maxLength":80}}},"page":{"type":"object","additionalProperties":false,"required":["total","limit","offset","hasMore"],"properties":{"total":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"}}},"artifacts":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["id","objectType","objectId","schemaVersion","classification","data","lineage","revision","createdAt","updatedAt"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"stepId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"objectType":{"type":"string","minLength":1,"maxLength":80},"objectId":{"type":"string","minLength":1,"maxLength":180},"schemaVersion":{"type":"string","minLength":1,"maxLength":100},"classification":{"type":"string","minLength":1,"maxLength":40},"data":{},"lineage":{},"revision":{"type":"integer","minimum":1},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-workflow-artifact-event-page.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-workflow-artifact-event-page.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","run","page","events","meta"],"properties":{"schemaVersion":{"const":"doou-workflow-artifact-event-page.v1"},"run":{"type":"object","additionalProperties":true,"required":["id","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"status":{"type":"string","minLength":1,"maxLength":80}}},"page":{"type":"object","additionalProperties":false,"required":["limit","nextCursor","hasMore"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":50},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"hasMore":{"type":"boolean"}}},"events":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["cursor","eventType","occurredAt","artifact"],"properties":{"cursor":{"type":"string","minLength":1,"maxLength":1024},"eventType":{"type":"string","enum":["artifact.snapshot_created","artifact.snapshot_updated"]},"occurredAt":{"type":"string","format":"date-time"},"artifact":{"type":"object","additionalProperties":false,"required":["id","objectType","objectId","schemaVersion","classification","data","lineage","revision","createdAt","updatedAt"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"stepId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"objectType":{"type":"string","minLength":1,"maxLength":80},"objectId":{"type":"string","minLength":1,"maxLength":180},"schemaVersion":{"type":"string","minLength":1,"maxLength":100},"classification":{"type":"string","minLength":1,"maxLength":40},"data":{},"lineage":{},"revision":{"type":"integer","minimum":1},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-usage-receipt-page.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-usage-receipt-page.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","page","receipts","meta"],"properties":{"schemaVersion":{"const":"doou-usage-receipt-page.v1"},"page":{"type":"object","additionalProperties":false,"required":["limit","nextCursor","hasMore"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":50},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"hasMore":{"type":"boolean"}}},"receipts":{"type":"array","maxItems":50,"items":{"type":"object"}},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-conversation-inbox.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-conversation-inbox.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","status","conversations","summary","meta"],"properties":{"schemaVersion":{"const":"doou-conversation-inbox.v1"},"status":{"type":"string","minLength":1,"maxLength":80},"conversations":{"type":"array","maxItems":40,"items":{"type":"object"}},"summary":{"type":"object"},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-official-conversation-inbox.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-official-conversation-inbox.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","conversations","summary","meta"],"properties":{"schemaVersion":{"const":"doou-official-conversation-inbox.v1"},"conversations":{"type":"array","maxItems":40,"items":{"type":"object"}},"summary":{"type":"object"},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-relationship-index.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-index.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","status","relationships","summary","page","meta"],"properties":{"schemaVersion":{"const":"doou-relationship-index.v1"},"status":{"type":"string","enum":["ready","empty"]},"relationships":{"type":"array","maxItems":50,"items":{"type":"object"}},"summary":{"type":"object"},"page":{"type":"object","additionalProperties":false,"required":["limit","nextCursor","hasMore"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":50},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"hasMore":{"type":"boolean"}}},"meta":{"type":"object","additionalProperties":true,"required":["liveProviderCalls","externalWrites"],"properties":{"source":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"string","minLength":1,"maxLength":80},"liveProviderCalls":{"const":false},"externalWrites":{"const":false},"modelCalls":{"type":"boolean"},"fullBodyIncluded":{"type":"boolean"}}}}},"doou-relationship-follow-up-review.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-follow-up-review.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","reviewId","operation","company","current","proposed","cost","confirmation","replayed","providerCalls","modelCalls","ledgerWritePerformed","externalWritePerformed"],"properties":{"schemaVersion":{"const":"doou-relationship-follow-up-review.v1"},"reviewId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"operation":{"const":"relationships.confirm_follow_up"},"company":{"type":"object"},"current":{"anyOf":[{"type":"object"},{"type":"null"}]},"proposed":{"type":"object"},"cost":{"type":"object"},"confirmation":{"type":"object","additionalProperties":false,"required":["required","expiresAt","token"],"properties":{"required":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"token":{"type":"string","minLength":32,"maxLength":4096}}},"replayed":{"type":"boolean"},"providerCalls":{"const":0},"modelCalls":{"const":0},"ledgerWritePerformed":{"const":false},"externalWritePerformed":{"const":false}}},"doou-relationship-follow-up-result.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-relationship-follow-up-result.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","record"],"properties":{"schemaVersion":{"const":"doou-relationship-follow-up-result.v1"},"record":{"type":"object"}}},"doou-people-enrichment-quote.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-people-enrichment-quote.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","quoteId","operation","input","pricing","confirmation","replayed","providerCalls"],"properties":{"schemaVersion":{"const":"doou-people-enrichment-quote.v1"},"quoteId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"operation":{"const":"people.confirm_enrichment"},"input":{"type":"object"},"pricing":{"type":"object"},"confirmation":{"type":"object","additionalProperties":false,"required":["required","expiresAt","token"],"properties":{"required":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"token":{"type":"string","minLength":32,"maxLength":4096}}},"replayed":{"type":"boolean"},"providerCalls":{"const":0}}},"doou-outreach-draft-quote.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-draft-quote.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","quoteId","operation","input","pricing","confirmation","replayed","providerCalls"],"properties":{"schemaVersion":{"const":"doou-outreach-draft-quote.v1"},"quoteId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"operation":{"const":"messages.confirm_outreach_draft"},"input":{"type":"object"},"pricing":{"type":"object"},"confirmation":{"type":"object","additionalProperties":false,"required":["required","expiresAt","token"],"properties":{"required":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"token":{"type":"string","minLength":32,"maxLength":4096}}},"replayed":{"type":"boolean"},"providerCalls":{"const":0}}},"doou-outreach-send-review.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-outreach-send-review.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":true,"required":["schemaVersion","reviewId","operation","confirmation","replayed","providerCalls","modelCalls","externalWritePerformed"],"properties":{"schemaVersion":{"const":"doou-outreach-send-review.v1"},"reviewId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"operation":{"const":"messages.confirm_single_send"},"confirmation":{"type":"object","additionalProperties":false,"required":["required","expiresAt","token"],"properties":{"required":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"token":{"type":"string","minLength":32,"maxLength":4096}}},"replayed":{"type":"boolean"},"providerCalls":{"const":0},"modelCalls":{"const":0},"externalWritePerformed":{"const":false}}},"doou-official-message-reply-review.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-official-message-reply-review.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":true,"required":["schemaVersion","reviewId","state","channel","conversationId","latestInboundMessageId","recipientExternalId","replyText","cost","confirmation","replayed"],"properties":{"schemaVersion":{"const":"doou-official-message-reply-review.v1"},"reviewId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"state":{"type":"string"},"channel":{"const":"whatsapp_business"},"conversationId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"latestInboundMessageId":{"type":"string","minLength":1,"maxLength":180},"recipientExternalId":{"type":"string","minLength":1,"maxLength":180},"replyText":{"type":"string","minLength":1,"maxLength":4000},"cost":{"type":"object"},"confirmation":{"type":"object","additionalProperties":false,"required":["required","expiresAt","token"],"properties":{"required":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"token":{"type":"string","minLength":32,"maxLength":4096}}},"replayed":{"type":"boolean"}}},"doou-official-message-reply-receipt.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-official-message-reply-receipt.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":true,"required":["schemaVersion","receiptId","state","channel","conversationId","latestInboundMessageId","messageId","providerMessageId","responseStatus","errorCode","startedAt","finishedAt","updatedAt","replayed","automaticRetry"],"properties":{"schemaVersion":{"const":"doou-official-message-reply-receipt.v1"},"receiptId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"state":{"type":"string","enum":["prepared","confirmed","sending","accepted","failed","unknown","cancelled"]},"channel":{"const":"whatsapp_business"},"conversationId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"latestInboundMessageId":{"type":"string","minLength":1,"maxLength":180},"messageId":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}]},"providerMessageId":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}]},"responseStatus":{"anyOf":[{"type":"integer","minimum":100,"maximum":599},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updatedAt":{"type":"string","format":"date-time"},"replayed":{"type":"boolean"},"automaticRetry":{"const":false}}},"doou-watch-policy-review.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-watch-policy-review.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":true,"required":["schemaVersion","reviewId","operation","change","confirmation","replayed","providerCalls","modelCalls","scheduleWritePerformed","externalWritePerformed"],"properties":{"schemaVersion":{"const":"doou-watch-policy-review.v1"},"reviewId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"operation":{"const":"actions.update_watch_policy"},"change":{"type":"string","enum":["replace","pause","resume"]},"confirmation":{"type":"object","additionalProperties":false,"required":["required","expiresAt","token"],"properties":{"required":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"token":{"type":"string","minLength":32,"maxLength":4096}}},"replayed":{"type":"boolean"},"providerCalls":{"const":0},"modelCalls":{"const":0},"scheduleWritePerformed":{"const":false},"externalWritePerformed":{"const":false}}},"workflow-command-receipt.v1":{"$id":"https://doouai.com/api/v2/schemas/workflow-command-receipt.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":true,"required":["schemaVersion","receiptId","operation","state","statusUrl","resultStatus","result","errorCode","replayed"],"properties":{"schemaVersion":{"const":"workflow-command-receipt.v1"},"receiptId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"operation":{"type":"string","minLength":1,"maxLength":160},"state":{"type":"string","enum":["quoted","executing","accepted","running","succeeded","failed","unknown","expired"]},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"input":{"type":"object"},"pricing":{"type":"object"},"workflow":{"anyOf":[{"type":"object"},{"type":"null"}]},"workflowRunId":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},{"type":"null"}]},"statusUrl":{"type":"string","minLength":1,"maxLength":500},"resultStatus":{"type":"string","enum":["available","missing","pending","unavailable"]},"result":{"anyOf":[{"type":"object"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"replayed":{"type":"boolean"},"externalWritePerformed":{"const":false}}},"doou-customer-search-draft.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-draft.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","draftId","revision","status","scope","updatedAt"],"properties":{"schemaVersion":{"const":"doou-customer-search-draft.v1"},"draftId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"revision":{"type":"integer","minimum":1},"status":{"const":"scope_ready"},"scope":{"type":"object","additionalProperties":false,"required":["product","market","resultLimit","customerTypes","includeContacts","contactRequirement"],"properties":{"product":{"type":"string","minLength":2,"maxLength":120},"market":{"type":"string","minLength":2,"maxLength":100},"resultLimit":{"type":"integer","minimum":1,"maximum":20},"customerTypes":{"type":"array","minItems":1,"maxItems":5,"uniqueItems":true,"items":{"type":"string","minLength":2,"maxLength":60}},"includeContacts":{"const":true},"contactRequirement":{"type":"string","enum":["any_contact","email","phone"]}}},"updatedAt":{"type":"string","format":"date-time"}}},"doou-customer-search-quote.v1":{"$id":"https://doouai.com/api/v2/schemas/doou-customer-search-quote.v1.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["schemaVersion","quoteId","operation","draft","pricing","confirmation","replayed","providerCalls"],"properties":{"schemaVersion":{"const":"doou-customer-search-quote.v1"},"quoteId":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"},"operation":{"const":"customer_searches.confirm_start"},"draft":{"$ref":"#/components/schemas/doou-customer-search-draft.v1"},"pricing":{"type":"object"},"confirmation":{"type":"object","additionalProperties":false,"required":["required","expiresAt","token"],"properties":{"required":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"token":{"type":"string","minLength":32,"maxLength":4096}}},"replayed":{"type":"boolean"},"providerCalls":{"const":0}}},"DoouApiError":{"type":"object","additionalProperties":false,"required":["schemaVersion","apiVersion","error"],"properties":{"schemaVersion":{"type":"string","enum":["doou-resource-read-api-response.v1","doou-command-api-response.v1"]},"apiVersion":{"const":"v2"},"error":{"type":"object","additionalProperties":true,"required":["code","message","requestId","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"retryable":{"type":"boolean"}}}}}}},"x-doou-contract-version":"doou-external-capability-contract.v1","x-doou-schema-index":"/api/v2/schemas","x-doou-mcp-endpoint":"/api/mcp"}