{"openapi":"3.1.0","info":{"title":"Treety API","description":"API's to create, read, update and delete your investment data like assets, funds and metrics.","version":"1.0.0"},"paths":{"/metrics":{"get":{"tags":["Metric"],"summary":"List All Metrics","description":"Returns a list of all the metrics.","operationId":"list_all_metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/funds":{"get":{"tags":["Fund"],"summary":"List All Funds","description":"Returns a list of all the funds with their data points.","operationId":"list_all_funds_funds_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Fund"],"summary":"Create Fund","description":"Create a new fund.","operationId":"create_fund_funds_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Fund Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funds/{fund_id}":{"get":{"tags":["Fund"],"summary":"Get Fund","description":"Get a specific fund by fund_id.\nSupports both legacy MongoDB ObjectId and new numeric ID.","operationId":"get_fund_funds__fund_id__get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Fund"],"summary":"Update Fund","description":"Update a fund.\nSupports both legacy MongoDB ObjectId and new numeric ID.","operationId":"update_fund_funds__fund_id__put","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Fund Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Fund"],"summary":"Delete Fund","description":"Delete a fund.\nSupports both legacy MongoDB ObjectId and new numeric ID.","operationId":"delete_fund_funds__fund_id__delete","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fund":{"post":{"tags":["Fund"],"summary":"Create Fund Legacy","description":"Create a new fund (legacy singular endpoint).\nThis endpoint is maintained for backward compatibility.","operationId":"create_fund_legacy_fund_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Fund Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fund/{fund_id}":{"get":{"tags":["Fund"],"summary":"Get Fund Legacy","description":"Get a specific fund by fund_id (legacy singular endpoint).\nSupports both legacy MongoDB ObjectId and new numeric ID.\nThis endpoint is maintained for backward compatibility.","operationId":"get_fund_legacy_fund__fund_id__get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Fund"],"summary":"Update Fund Legacy","description":"Update a fund (legacy singular endpoint).\nSupports both legacy MongoDB ObjectId and new numeric ID.\nThis endpoint is maintained for backward compatibility.","operationId":"update_fund_legacy_fund__fund_id__put","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Fund Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Fund"],"summary":"Delete Fund Legacy","description":"Delete a fund (legacy singular endpoint).\nSupports both legacy MongoDB ObjectId and new numeric ID.\nThis endpoint is maintained for backward compatibility.","operationId":"delete_fund_legacy_fund__fund_id__delete","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funds/{fund_id}/assets":{"post":{"tags":["Asset"],"summary":"Create Asset","description":"Create a new asset in a fund.\nSystem checks by external_asset_id or name first, updates if exists.\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id.","operationId":"create_asset_funds__fund_id__assets_post","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Asset Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Asset"],"summary":"List Assets","description":"List all assets in a fund.\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id.","operationId":"list_assets_funds__fund_id__assets_get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funds/{fund_id}/assets/{asset_id}":{"get":{"tags":["Asset"],"summary":"Get Asset","description":"Get a specific asset by asset_id.\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id and asset_id.","operationId":"get_asset_funds__fund_id__assets__asset_id__get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)","title":"Asset Id"},"description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Asset"],"summary":"Update Asset","description":"Update an asset.\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id and asset_id.","operationId":"update_asset_funds__fund_id__assets__asset_id__put","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)","title":"Asset Id"},"description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Asset Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Asset"],"summary":"Delete Asset","description":"Delete an asset.\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id and asset_id.","operationId":"delete_asset_funds__fund_id__assets__asset_id__delete","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)","title":"Asset Id"},"description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fund/{fund_id}/assets":{"get":{"tags":["Asset"],"summary":"List Assets Legacy Plural","description":"List all assets in a fund (legacy endpoint with plural assets).","operationId":"list_assets_legacy_plural_fund__fund_id__assets_get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Asset"],"summary":"Create Asset Legacy Plural","description":"Create a new asset (legacy endpoint with plural assets).","operationId":"create_asset_legacy_plural_fund__fund_id__assets_post","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund","title":"Fund Id"},"description":"Fund id of the fund"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Asset Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fund/{fund_id}/assets/{asset_id}":{"get":{"tags":["Asset"],"summary":"Get Asset Legacy Plural","description":"Get a specific asset (legacy endpoint with plural assets).","operationId":"get_asset_legacy_plural_fund__fund_id__assets__asset_id__get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund","title":"Fund Id"},"description":"Fund id of the fund"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset","title":"Asset Id"},"description":"Asset id of the asset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Asset"],"summary":"Update Asset Legacy Plural","description":"Update an asset (legacy endpoint with plural assets).","operationId":"update_asset_legacy_plural_fund__fund_id__assets__asset_id__put","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund","title":"Fund Id"},"description":"Fund id of the fund"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset","title":"Asset Id"},"description":"Asset id of the asset"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Asset Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Asset"],"summary":"Delete Asset Legacy Plural","description":"Delete an asset (legacy endpoint with plural assets).","operationId":"delete_asset_legacy_plural_fund__fund_id__assets__asset_id__delete","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund","title":"Fund Id"},"description":"Fund id of the fund"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset","title":"Asset Id"},"description":"Asset id of the asset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fund/{fund_id}/asset":{"get":{"tags":["Asset"],"summary":"List Assets Legacy","description":"List all assets in a fund (legacy singular endpoint).\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id.\nThis endpoint is maintained for backward compatibility.","operationId":"list_assets_legacy_fund__fund_id__asset_get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Asset"],"summary":"Create Asset Legacy","description":"Create a new asset in a fund (legacy singular endpoint).\nSystem checks by external_asset_id or name first, updates if exists.\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id.\nThis endpoint is maintained for backward compatibility.","operationId":"create_asset_legacy_fund__fund_id__asset_post","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Asset Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fund/{fund_id}/asset/{asset_id}":{"get":{"tags":["Asset"],"summary":"Get Asset Legacy","description":"Get a specific asset by asset_id (legacy singular endpoint).\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id and asset_id.\nThis endpoint is maintained for backward compatibility.","operationId":"get_asset_legacy_fund__fund_id__asset__asset_id__get","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)","title":"Asset Id"},"description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Asset"],"summary":"Update Asset Legacy","description":"Update an asset (legacy singular endpoint).\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id and asset_id.\nThis endpoint is maintained for backward compatibility.","operationId":"update_asset_legacy_fund__fund_id__asset__asset_id__put","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)","title":"Asset Id"},"description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Asset Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Asset"],"summary":"Delete Asset Legacy","description":"Delete an asset (legacy singular endpoint).\nSupports both legacy MongoDB ObjectId and new numeric ID for fund_id and asset_id.\nThis endpoint is maintained for backward compatibility.","operationId":"delete_asset_legacy_fund__fund_id__asset__asset_id__delete","parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)","title":"Fund Id"},"description":"Fund id of the fund (supports both legacy ObjectId and numeric ID)"},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)","title":"Asset Id"},"description":"Asset id of the asset (supports both legacy ObjectId and numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization":{"get":{"tags":["Organization"],"summary":"Get Organization","description":"Get organization data.","operationId":"get_organization_organization_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/verify-assets":{"post":{"tags":["Verify Assets"],"summary":"Verify Assets","description":"Verify asset data against Treety database.\n\nAccepts a JSON payload with an 'investments' array containing investment data.\nEach investment must have a 'cm_id' field.\n\nReturns ready-to-use email content:\n    - subject: Email subject line (with emoji based on status)\n    - html_body: Complete HTML email body\n    - csv_contents: CSV data for attachment\n    - stats: Statistics object (reviewed, matched, mismatches, absent)\n    - status_type: One of: all_matched, valuation_mismatch, other_mismatch, not_present, empty","operationId":"verify_assets_verify_assets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyAssetsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyAssetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test":{"get":{"tags":["Test"],"summary":"Get Test Results","description":"Get test results.\n\nThe response for this API is in 2 parts:\n- Asset: Returns a list of results, where each result signifies a response for an API call mentioned in the Asset section.\n- Fund: Returns a list of results, where each result signifies a response for an API call mentioned in the Fund section.\n\nFollowing are the data points in each results:\n- request_type: type of the request (get | post | put | delete)\n- status: http status code of the response for this API call\n- elapse: time taken for the request to complete (in milliseconds)\n- comments: Comment regarding some extra step taken with respect to the API call\n\nThis API performs a comprehensive test by:\n1. Creating a fund\n2. Updating that same fund\n3. Creating an asset in the fund\n4. Updating that same asset\n5. Deleting the asset\n6. Deleting the fund\n\nAll operations use distinct names to avoid conflicts with other test runs.","operationId":"get_test_results_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AssetStats":{"properties":{"reviewed":{"type":"integer","minimum":0.0,"title":"Reviewed","description":"Total number of assets reviewed"},"matched":{"type":"integer","minimum":0.0,"title":"Matched","description":"Number of assets that matched"},"mismatches":{"type":"integer","minimum":0.0,"title":"Mismatches","description":"Number of assets with data mismatches"},"absent":{"type":"integer","minimum":0.0,"title":"Absent","description":"Number of assets not found in Treety"}},"type":"object","required":["reviewed","matched","mismatches","absent"],"title":"AssetStats","description":"Statistics from the verification process."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Investment":{"properties":{"cm_id":{"type":"string","title":"Cm Id","description":"Unique identifier for the investment"},"cm_fund_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cm Fund Id","description":"Fund identifier (maps to fund's external_fund_id)"},"investment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investment Name","description":"Investment name (ticker)"},"security_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Security Details","description":"Security details (company name)"},"market_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Value","description":"Market value / valuation"}},"additionalProperties":true,"type":"object","required":["cm_id"],"title":"Investment","description":"Individual investment from Privium data."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyAssetsRequest":{"properties":{"investments":{"items":{"$ref":"#/components/schemas/Investment"},"type":"array","maxItems":10000,"minItems":1,"title":"Investments","description":"Array of investments to verify"}},"type":"object","required":["investments"],"title":"VerifyAssetsRequest","description":"Request body for verify assets endpoint."},"VerifyAssetsResponse":{"properties":{"subject":{"type":"string","title":"Subject","description":"Email subject line with emoji indicator"},"html_body":{"type":"string","title":"Html Body","description":"Complete HTML email body"},"csv_contents":{"type":"string","title":"Csv Contents","description":"CSV data for attachment with mismatch details"},"stats":{"allOf":[{"$ref":"#/components/schemas/AssetStats"}],"description":"Verification statistics"},"status_type":{"type":"string","enum":["all_matched","valuation_mismatch","other_mismatch","not_present","empty"],"title":"Status Type","description":"Overall verification status"}},"type":"object","required":["subject","html_body","csv_contents","stats","status_type"],"title":"VerifyAssetsResponse","description":"Response from verify assets endpoint.","examples":[{"csv_contents":"CM ID,Metric Key,Privium Value,Treety Value,Status\n","html_body":"<body>...</body>","stats":{"absent":0,"matched":100,"mismatches":0,"reviewed":100},"status_type":"all_matched","subject":"✅ Data Verification Complete: All Records Matched Successfully"}]}}}}