{"openapi":"3.1.0","info":{"title":"Pareo App","description":"Pareo API for investor matching and startup analysis","version":"1.0.0"},"paths":{"/api/v1/investors/match":{"post":{"tags":["investors"],"summary":"Find Investors","description":"Find investors that match the given prompt and criteria.\n\nCredits are charged upfront for each investor discovered, with refunds if analysis fails.\n\nArgs:\n    request: The match request containing prompt and criteria\n    current_user: The authenticated user\n    investor_match_service: The investor match service\n    credit_service: The credit service\n    page: Page number (1-based)\n\nReturns:\n    InvestorMatchesResponse: List of matching investors with pagination details,\n    credit information, and details about potential additional matches","operationId":"find_investors_api_v1_investors_match_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorMatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorMatchesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/investors/{investor_id}/match-reason":{"get":{"tags":["investors"],"summary":"Get Match Reason","description":"Get detailed explanation of why an investor matches a startup.\n\nThis endpoint retrieves or generates a detailed analysis of the compatibility\nbetween a specific investor and startup. It analyzes factors such as industry\nfocus, stage preference, and investment thesis alignment.\n\nArgs:\n    investor_id: ID of the investor to get match reason for\n    startup_id: ID of the startup to match with\n    current_user: The authenticated user\n    investor_match_service: The investor match service\n    investor_service: The investor service for fetching investor details\n\nReturns:\n    InvestorMatchResponse: Detailed match explanation with:\n        - investor: Basic investor information (name, location, industries, etc.)\n        - match_reason: Detailed explanation of compatibility and alignment\n        - match_score: Numerical score indicating match strength (1-10)\n        - key_alignments: List of key areas where the investor and startup align\n        - analysis_status: Status of the analysis process (pending, processing, completed, failed)\n\nRaises:\n    EntityNotFoundError: If the investor or startup with the specified ID is not found\n    ServiceException: If there's an error generating the match reason\n    HTTPException: For other errors","operationId":"get_match_reason_api_v1_investors__investor_id__match_reason_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"investor_id","in":"path","required":true,"schema":{"type":"integer","title":"Investor Id"}},{"name":"startup_id","in":"query","required":true,"schema":{"type":"integer","title":"Startup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorMatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/investors/bulk-match-reason":{"post":{"tags":["investors"],"summary":"Bulk Match Reason","description":"Request match reason generation for multiple investors in bulk.\n\nThis endpoint initiates asynchronous generation of match reasons for multiple investors\nagainst a single startup. It returns the current status of each match analysis, which\nclients can use to track progress.\n\nThe analysis status for each investor will be one of:\n- PENDING: Analysis has not started yet\n- PROCESSING: Analysis is currently in progress\n- COMPLETED: Analysis is complete and results are available\n- FAILED: Analysis failed to complete\n\nClients should poll the POST /investors/matches/{startup_id}/status endpoint to track\nthe status of all analyses and retrieve completed results.\n\nArgs:\n    request: Contains startup_id and a list of investor_ids to analyze\n    background_tasks: FastAPI background tasks\n    current_user: The authenticated user making the request\n    investor_match_service: Service for managing investor matches\n\nReturns:\n    List of InvestorMatchResponse objects with initial analysis status","operationId":"bulk_match_reason_api_v1_investors_bulk_match_reason_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkMatchReasonRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InvestorMatchResponse"},"type":"array","title":"Response Bulk Match Reason Api V1 Investors Bulk Match Reason Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/investors/matches/{startup_id}":{"get":{"tags":["investors"],"summary":"Get Investor Matches","description":"Get all investor matches for a startup.\n\nThis endpoint retrieves all previously discovered investor matches for a specific startup.\nResults are paginated and include match scores and reasons if available.\n\nArgs:\n    startup_id: ID of the startup to get matches for\n    current_user: The authenticated user\n    investor_match_service: The investor match service\n    page: Page number (1-indexed)\n    page_size: Number of items per page\n    sort_field: Field to sort by (similarity_score, match_score, investor_name, stage, industries, location,\n    created_at, updated_at)\n    sort_order: Sort order (asc or desc)\n\nReturns:\n    InvestorMatchesResponse: Paginated list of investor matches with:\n        - items: List of investor match details\n        - total: Total number of matches\n        - page: Current page number\n        - page_size: Number of items per page\n        - potential_matches_count: Number of potential matches not yet discovered\n        - discovered_matches_count: Number of matches already discovered\n        - discovery_percentage: Percentage of total potential matches discovered\n        - has_more_matches: Whether there are more potential matches to discover\n\nEach match includes:\n    - investor: Basic investor information\n    - similarity_score: Vector similarity score\n    - match_score: Detailed analysis score (if available)\n    - match_reason: Detailed explanation (if available)\n    - key_alignments: Key areas of alignment (if available)\n    - analysis_status: Status of the analysis process (pending, processing, completed, failed)\n\nRaises:\n    EntityNotFoundError: If the startup with the specified ID is not found\n    HTTPException: For other errors","operationId":"get_investor_matches_api_v1_investors_matches__startup_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of items per page","default":10,"title":"Page Size"},"description":"Number of items per page"},{"name":"sort_field","in":"query","required":false,"schema":{"type":"string","description":"Field to sort by (similarity_score, match_score, investor_name, stage, industries, location, created_at, updated_at)","default":"similarity_score","title":"Sort Field"},"description":"Field to sort by (similarity_score, match_score, investor_name, stage, industries, location, created_at, updated_at)"},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","description":"Sort order (asc or desc)","default":"desc","title":"Sort Order"},"description":"Sort order (asc or desc)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorMatchesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/investors/{investor_id}":{"get":{"tags":["investors"],"summary":"Get Investor","description":"Get detailed information about an investor.\n\nThis endpoint retrieves comprehensive data about an investor, including basic profile information,\ninvestment preferences, team members, and portfolio companies. It supports frontend\ndisplays of investor profiles and detailed views.\n\nArgs:\n    investor_id: ID of the investor to get details for\n    current_user: The authenticated user\n    investor_service: The investor service\n\nReturns:\n    InvestorResponse: Detailed investor information including:\n        - Basic profile information (name, website, description, location)\n        - Investment criteria (stages, industries, geographies, check sizes)\n        - Contact information (email, phone, form URLs, preferred methods)\n        - Team members with roles and focus areas\n        - Portfolio companies with descriptions and investment details\n\nRaises:\n    EntityNotFoundError: If the investor with the specified ID is not found\n    HTTPException: If there is an error retrieving the investor data","operationId":"get_investor_api_v1_investors__investor_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"investor_id","in":"path","required":true,"schema":{"type":"integer","title":"Investor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/investors/matches/{startup_id}/status":{"post":{"tags":["investors"],"summary":"Get Match Status","description":"Get the current analysis status for specified investor matches.\n\nThis endpoint allows checking the current status of match reason generation for\na set of investors. It's particularly useful after initiating a bulk match reason\nrequest to monitor the progress of the analysis.\n\nArgs:\n    startup_id: ID of the startup to get match status for\n    request: Contains list of investor IDs to check status for\n    current_user: The authenticated user\n    investor_match_service: The investor match service\n\nReturns:\n    InvestorMatchesResponse: Contains the current status of each requested match:\n        - For completed analyses: includes match score, reason, and key alignments\n        - For pending/processing: includes current status\n        - For non-existent matches: includes default values with PENDING status\n        - status_summary: Aggregated counts of matches by status\n\nRaises:\n    EntityNotFoundError: If the startup with the specified ID is not found\n    HTTPException: For other errors","operationId":"get_match_status_api_v1_investors_matches__startup_id__status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorMatchesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/balance":{"get":{"tags":["credits"],"summary":"Get Credit Balance","description":"Get the current user's credit balance.\n\nArgs:\n    current_user: The authenticated user requesting their balance\n    credit_service: Service for managing credit-related operations","operationId":"get_credit_balance_api_v1_credits_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditBalanceResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/credits/initialize":{"post":{"tags":["credits"],"summary":"Initialize Credits","description":"Initialize credits for the current user.\n\nThis endpoint can be used to manually initialize credits for a user\nif they weren't properly initialized during registration.\n\nArgs:\n    current_user: The authenticated user\n    credit_service: Service for managing credit-related operations\n\nReturns:\n    The user's credit balance after initialization","operationId":"initialize_credits_api_v1_credits_initialize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditBalanceResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/credits/currencies":{"get":{"tags":["credits"],"summary":"Get Available Currencies","description":"Get list of currencies that have active packages.\n\nArgs:\n    credit_service: Service for managing credit-related operations","operationId":"get_available_currencies_api_v1_credits_currencies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Available Currencies Api V1 Credits Currencies Get"}}}}}}},"/api/v1/credits/packages":{"get":{"tags":["credits"],"summary":"Get Credit Packages","description":"Get all available credit packages.\n\nArgs:\n    credit_service: Service for managing credit-related operations\n    currency: Optional currency code to filter packages by (e.g. 'usd', 'eur')","operationId":"get_credit_packages_api_v1_credits_packages_get","parameters":[{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditPackageResponse"},"title":"Response Get Credit Packages Api V1 Credits Packages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/transactions":{"get":{"tags":["credits"],"summary":"Get Transactions","description":"Get user's credit transactions and usage data.\n\nArgs:\n    current_user: The authenticated user\n    credit_service: Service for managing credit-related operations\n    page: Page number (1-based)\n    limit: Maximum number of transactions per page\n    type: Filter type ('important' or 'all')","operationId":"get_transactions_api_v1_credits_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"important","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/stats":{"get":{"tags":["credits"],"summary":"Get Credit Stats","description":"Get user's credit usage statistics.\n\nArgs:\n    current_user: The authenticated user\n    credit_service: Service for managing credit-related operations","operationId":"get_credit_stats_api_v1_credits_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditStatsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/credits/spend":{"post":{"tags":["credits"],"summary":"Spend Credits","description":"Spend credits from user's balance.\n\nArgs:\n    request: The spend credits request containing amount to spend\n    current_user: The authenticated user\n    credit_service: Service for managing credit-related operations\n\nReturns:\n    Response containing success status, remaining credits and transaction ID\n\nRaises:\n    HTTPException: If there's an error spending credits or insufficient balance","operationId":"spend_credits_api_v1_credits_spend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendCreditsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendCreditsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/credits/features":{"get":{"tags":["credits"],"summary":"Get Feature Costs","description":"Get all available features and their credit costs.\n\nArgs:\n    credit_service: Service for managing credit-related operations\n\nReturns:\n    List of features and their credit costs","operationId":"get_feature_costs_api_v1_credits_features_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FeatureCostResponse"},"type":"array","title":"Response Get Feature Costs Api V1 Credits Features Get"}}}}}}},"/api/v1/credits/refund-failed-matches":{"post":{"tags":["credits"],"summary":"Process Refunds For Failed Matches","description":"Process refunds for failed investor matches.\n\nThis endpoint identifies failed investor matches that haven't been refunded yet\nand processes refunds for them. It can be triggered manually or scheduled to run automatically.\n\nArgs:\n    current_user: The authenticated user\n    investor_match_service: The investor match service\n    limit: Maximum number of refunds to process in one batch (default: 50)\n\nReturns:\n    Dictionary containing:\n        - success_count: Number of refunds processed successfully\n        - failure_count: Number of refunds that couldn't be processed\n        - total_processed: Total number of refund attempts\n        - processing_time_seconds: Time taken to process the refunds\n\nRaises:\n    HTTPException: If there's an error processing the refunds","operationId":"process_refunds_for_failed_matches_api_v1_credits_refund_failed_matches_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Process Refunds For Failed Matches Api V1 Credits Refund Failed Matches Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/create-intent":{"post":{"tags":["payments"],"summary":"Create Payment Intent","description":"Create a payment intent for purchasing credits.\n\nArgs:\n    request: Payment intent request with package ID and optional partner information.\n    current_user: The authenticated user making the purchase.\n    payment_service: Service for handling payment operations.\n\nReturns:\n    Payment intent response with client secret and amount.\n\nRaises:\n    HTTPException: If the request is invalid or payment creation fails.","operationId":"create_payment_intent_api_v1_payments_create_intent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentIntentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/payments/webhook":{"post":{"tags":["payments"],"summary":"Stripe Webhook","description":"Handle Stripe webhook events.","operationId":"stripe_webhook_api_v1_payments_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Stripe Webhook Api V1 Payments Webhook Post"}}}}}}},"/api/v1/billing":{"get":{"tags":["billing"],"summary":"Get Billing Info","description":"Get billing information for the current user.\n\nArgs:\n    current_user: The authenticated user\n    billing_service: Service for managing billing operations\n\nReturns:\n    The user's billing information","operationId":"get_billing_info_api_v1_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInfoResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["billing"],"summary":"Update Billing Info","description":"Update billing information for the current user.\n\nArgs:\n    billing_info: The new billing information\n    current_user: The authenticated user\n    billing_service: Service for managing billing operations\n\nReturns:\n    The updated billing information","operationId":"update_billing_info_api_v1_billing_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInfoUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["billing"],"summary":"Create Billing Info","description":"Create billing information for the current user.\n\nArgs:\n    billing_info: The billing information to create\n    current_user: The authenticated user\n    billing_service: Service for managing billing operations\n\nReturns:\n    The created billing information","operationId":"create_billing_info_api_v1_billing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInfoCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/invoice/{invoice_id}":{"get":{"tags":["billing"],"summary":"Get Invoice","description":"Get invoice by ID.\n\nArgs:\n    invoice_id: The ID of the invoice to retrieve\n    current_user: The authenticated user\n    billing_service: Service for managing billing operations\n\nReturns:\n    The invoice PDF content","operationId":"get_invoice_api_v1_billing_invoice__invoice_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding/onboarding/state":{"get":{"tags":["onboarding","onboarding"],"summary":"Get Onboarding State","description":"Get the onboarding state for the current user.\n\nReturns:\n    The user's onboarding state.","operationId":"get_onboarding_state_api_v1_onboarding_onboarding_state_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingState"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["onboarding","onboarding"],"summary":"Update Onboarding State","description":"Update the onboarding state for the current user.\n\nArgs:\n    state_update: The state updates to apply.\n    current_user: The authenticated user making the request.\n    onboarding_service: Service for managing onboarding state operations.\n\nReturns:\n    The updated onboarding state.","operationId":"update_onboarding_state_api_v1_onboarding_onboarding_state_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStateUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me":{"get":{"tags":["users"],"summary":"Get Current User Info","description":"Get the current user's information.\n\nArgs:\n    current_user: The authenticated user making the request.\n    user_service: Service for managing user operations.\n\nReturns:\n    The current user's information.","operationId":"get_current_user_info_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/startups":{"get":{"tags":["startups"],"summary":"List Startups","description":"Get all startups for the authenticated user.\n\nThis endpoint follows RESTful conventions by using the plural resource name\n'startups' for collection operations.\n\nArgs:\n    current_user: The authenticated user\n    startup_service: The startup service\n\nReturns:\n    List[Dict[str, Any]]: List of startups with minimal data (id, name, logo_url)","operationId":"list_startups_api_v1_startups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Startups Api V1 Startups Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/startup/create":{"post":{"tags":["startup"],"summary":"Create Startup","description":"Create a new startup.\n\nArgs:\n    current_user: The authenticated user\n    startup_service: The startup service\n    background_tasks: FastAPI background tasks\n    pitch_deck: Optional PDF pitch deck file (max 10MB)\n    summary: Optional text summary of the startup\n\nReturns:\n    Startup: The created startup with initial placeholder data\n\nRaises:\n    HTTPException: If file processing fails or invalid file type","operationId":"create_startup_api_v1_startup_create_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_startup_api_v1_startup_create_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/startup/{startup_id}":{"get":{"tags":["startup"],"summary":"Get Startup","description":"Get a startup by ID.\n\nArgs:\n    startup_id: The startup ID to look up\n    startup_service: The startup service\n\nReturns:\n    Startup: The startup\n\nRaises:\n    HTTPException: If startup not found","operationId":"get_startup_api_v1_startup__startup_id__get","parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["startup"],"summary":"Update Startup Data","description":"Update a startup's information directly.\n\nArgs:\n    startup_id: The ID of the startup to update\n    update_data: The data to update\n    current_user: The authenticated user making the request\n    startup_service: The startup service\n\nReturns:\n    Startup: The updated startup\n\nRaises:\n    HTTPException: If startup not found or update fails","operationId":"update_startup_data_api_v1_startup__startup_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["startup"],"summary":"Delete Startup","description":"Delete a startup.\n\nArgs:\n    startup_id: The ID of the startup to delete\n    current_user: The authenticated user making the request\n    startup_service: The startup service\n\nRaises:\n    HTTPException: If deletion fails","operationId":"delete_startup_api_v1_startup__startup_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/startup/user/{user_id}":{"get":{"tags":["startup"],"summary":"Get User Startups","description":"Get all startups for a user.\n\nArgs:\n    user_id: The user ID to look up\n    startup_service: The startup service\n\nReturns:\n    list[Startup]: List of startups belonging to the user","operationId":"get_user_startups_api_v1_startup_user__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StartupResponse"},"title":"Response Get User Startups Api V1 Startup User  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/startup/{startup_id}/analyze":{"put":{"tags":["startup"],"summary":"Update Startup Analysis","description":"Update a startup's information using pitch deck analysis.\n\nArgs:\n    startup_id: The ID of the startup to update\n    pitch_deck: PDF pitch deck file (max 10MB)\n    current_user: The authenticated user making the request\n    startup_service: The startup service\n\nReturns:\n    Startup: The updated startup\n\nRaises:\n    HTTPException: If startup not found or update fails","operationId":"update_startup_analysis_api_v1_startup__startup_id__analyze_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_update_startup_analysis_api_v1_startup__startup_id__analyze_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/startup/list-for-sidebar":{"get":{"tags":["startup"],"summary":"List Startups For Sidebar","description":"Get all startups for the authenticated user's sidebar.\n\nArgs:\n    current_user: The authenticated user\n    startup_service: The startup service\n\nReturns:\n    List[Dict[str, Any]]: List of startups with minimal data (id, name, logo_url)","operationId":"list_startups_for_sidebar_api_v1_startup_list_for_sidebar_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Startups For Sidebar Api V1 Startup List For Sidebar Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/startup/{startup_id}/status":{"get":{"tags":["startup"],"summary":"Get Startup Analysis Status","description":"Get the analysis status of a startup.\n\nThis endpoint allows the frontend to poll for the current status of a startup analysis\nthat is running in the background. The analysis status will be one of:\n- \"pending\": Analysis is still in progress\n- \"completed\": Analysis has successfully completed\n- \"failed\": Analysis encountered an error\n\nArgs:\n    startup_id: The startup ID to check\n    current_user: The authenticated user making the request\n    startup_service: The startup service\n\nReturns:\n    StartupAnalysisStatusResponse: A response containing the startup ID, name, and status\n\nRaises:\n    HTTPException:\n        - 404: If startup not found\n        - 403: If user doesn't have permission to access this startup","operationId":"get_startup_analysis_status_api_v1_startup__startup_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupAnalysisStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/{lead_id}":{"get":{"tags":["leads"],"summary":"Get Lead","description":"Get a single lead by ID.\n\nArgs:\n    lead_id: ID of the lead to retrieve\n    current_user: Currently authenticated user\n    lead_service: Lead service instance\n\nReturns:\n    LeadResponse: The lead data\n\nRaises:\n    EntityNotFoundError: If the lead is not found\n    UnauthorizedError: If the user is not authorized to access the lead","operationId":"get_lead_api_v1_leads__lead_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["leads"],"summary":"Update Lead","description":"Update a lead.\n\nArgs:\n    lead_id: ID of the lead to update\n    lead_data: Lead data to update\n    current_user: Currently authenticated user\n    lead_service: Lead service instance\n\nReturns:\n    LeadResponse: The updated lead\n\nRaises:\n    EntityNotFoundError: If the lead is not found\n    UnauthorizedError: If the user is not authorized to update the lead","operationId":"update_lead_api_v1_leads__lead_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["leads"],"summary":"Delete Lead","description":"Delete a lead.\n\nArgs:\n    lead_id: ID of the lead to delete\n    current_user: Currently authenticated user\n    lead_service: Lead service instance\n\nRaises:\n    EntityNotFoundError: If the lead is not found\n    UnauthorizedError: If the user is not authorized to delete the lead","operationId":"delete_lead_api_v1_leads__lead_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads":{"get":{"tags":["leads"],"summary":"Get Leads","description":"Get all leads for the current user across all their startups.\n\nArgs:\n    current_user: Currently authenticated user\n    lead_service: Lead service instance\n    page: Page number (1-based)\n    page_size: Number of items per page\n    status: Optional status filter. Available options:\n        - new: New lead, not yet contacted\n        - contacted: Lead has been contacted\n        - interested: Lead has expressed interest\n        - not_interested: Lead has explicitly declined\n        - meeting_scheduled: A meeting has been scheduled\n        - meeting_completed: Meeting has been completed\n        - deal_in_progress: Deal is currently being negotiated\n        - deal_closed: Deal has been successfully closed\n        - deal_lost: Deal has been lost\n    sort_field: Field to sort by. Available options:\n        - status: Sort by lead status\n        - priority: Sort by lead priority (default)\n        - created_at: Sort by creation date\n        - contacted_at: Sort by last contact date\n        - team_member_name: Sort by team member name\n        - investor_name: Sort by investor name\n    sort_order: Sort order (asc or desc)\n\nReturns:\n    LeadPaginatedResponse: Paginated list of leads","operationId":"get_leads_api_v1_leads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/LeadStatus"},{"type":"null"}],"title":"Status"}},{"name":"sort_field","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LeadSortField","default":"priority"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadPaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["leads"],"summary":"Create Lead","description":"Create a new lead.\n\nArgs:\n    lead_data: Lead data to create\n    current_user: Currently authenticated user\n    lead_service: Lead service instance\n    startup_service: Startup service instance\n\nReturns:\n    LeadResponse: The created lead\n\nRaises:\n    EntityNotFoundError: If the startup or team member is not found\n    UnauthorizedError: If the user is not authorized to create leads for the startup","operationId":"create_lead_api_v1_leads_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/startup/{startup_id}":{"get":{"tags":["leads"],"summary":"Get Leads By Startup","description":"Get all leads for a specific startup.\n\nArgs:\n    startup_id: ID of the startup to get leads for\n    current_user: Currently authenticated user\n    lead_service: Lead service instance\n    startup_service: Startup service instance\n    page: Page number (1-based)\n    page_size: Number of items per page\n    status: Optional status filter. Available options:\n        - new: New lead, not yet contacted\n        - contacted: Lead has been contacted\n        - interested: Lead has expressed interest\n        - not_interested: Lead has explicitly declined\n        - meeting_scheduled: A meeting has been scheduled\n        - meeting_completed: Meeting has been completed\n        - deal_in_progress: Deal is currently being negotiated\n        - deal_closed: Deal has been successfully closed\n        - deal_lost: Deal has been lost\n    sort_field: Field to sort by. Available options:\n        - status: Sort by lead status\n        - priority: Sort by lead priority (default)\n        - created_at: Sort by creation date\n        - contacted_at: Sort by last contact date\n        - team_member_name: Sort by team member name\n        - investor_name: Sort by investor name\n    sort_order: Sort order (asc or desc)\n\nReturns:\n    LeadPaginatedResponse: Paginated list of leads\n\nRaises:\n    EntityNotFoundError: If the startup is not found\n    UnauthorizedError: If the user is not authorized to access the startup","operationId":"get_leads_by_startup_api_v1_leads_startup__startup_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"startup_id","in":"path","required":true,"schema":{"type":"integer","title":"Startup Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/LeadStatus"},{"type":"null"}],"title":"Status"}},{"name":"sort_field","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LeadSortField","default":"priority"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadPaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/bulk":{"post":{"tags":["leads"],"summary":"Create multiple leads from team members","description":"Create multiple leads from team members.\n\nCreates multiple leads from a list of team members for a specific startup.\nThis is more efficient than creating leads one by one.\nThe leads will be associated with the startup and will only be visible\nto the user who created them.\n\nArgs:\n    lead_data: Data containing list of team member IDs and startup ID\n    current_user: The authenticated user\n    lead_service: The lead service\n\nReturns:\n    List[LeadResponse]: List of created leads\n\nRaises:\n    HTTPException: If the user doesn't have access to the startup or if lead creation fails","operationId":"create_bulk_leads_api_v1_leads_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkLeadCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LeadResponse"},"type":"array","title":"Response Create Bulk Leads Api V1 Leads Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["leads"],"summary":"Delete multiple leads","description":"Delete multiple leads.\n\nDeletes multiple leads in a single operation.\nThe user must own the startup that the leads are associated with.\n\nArgs:\n    lead_data: Data containing list of lead IDs and startup ID\n    current_user: The authenticated user\n    lead_service: The lead service\n\nReturns:\n    dict: Contains count of deleted leads\n\nRaises:\n    HTTPException: If the user doesn't have access or if deletion fails","operationId":"delete_bulk_leads_api_v1_leads_bulk_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkLeadDelete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"type":"object","title":"Response Delete Bulk Leads Api V1 Leads Bulk Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/leads/all":{"delete":{"tags":["leads"],"summary":"Delete all leads for a startup","description":"Delete all leads for a startup.\n\nDeletes all leads for a startup in a single efficient operation.\nThe user must own the startup that the leads are associated with.\nThis is more efficient than fetching all lead IDs and then deleting them.\n\nArgs:\n    request: Data containing the startup ID\n    current_user: The authenticated user\n    lead_service: The lead service\n\nReturns:\n    dict: Contains count of deleted leads\n\nRaises:\n    HTTPException: If the user doesn't have access or if deletion fails","operationId":"delete_all_leads_api_v1_leads_all_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAllLeadsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"type":"object","title":"Response Delete All Leads Api V1 Leads All Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/leads/export/fields":{"get":{"tags":["leads"],"summary":"Get Export Fields","description":"Get available fields and formats for lead export.\n\nReturns a structured response containing available fields (organized into logical groups)\nand supported file formats for exporting leads. The frontend should use this information\nto build a user interface that allows users to select which fields to include in their\nexport and which format to use.\n\nThe response includes:\n- Field groups: Logical groupings of related fields (e.g., lead information, team member details)\n- Fields: Individual data fields that can be exported, with metadata about type and source\n- Formats: Available export file formats (Excel, CSV, JSON)\n\nNo query parameters are required for this endpoint.\n\nReturns:\n    ExportFieldsResponse: A structured response with field groups and formats\n\nExample response:\n    ```json\n    {\n        \"groups\": [\n            {\n                \"id\": \"lead_basic\",\n                \"name\": \"Lead Information\",\n                \"description\": \"Basic information about the lead\",\n                \"fields\": [\n                    {\n                        \"id\": \"lead_id\",\n                        \"name\": \"Lead ID\",\n                        \"type\": \"number\",\n                        \"source\": \"lead\",\n                        \"required\": true,\n                        \"example\": 123\n                    },\n                    // more fields...\n                ]\n            },\n            // more groups...\n        ],\n        \"formats\": [\n            {\n                \"id\": \"excel\",\n                \"name\": \"Excel Spreadsheet\",\n                \"description\": \"Microsoft Excel format (.xlsx)\",\n                \"mime_type\": \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n                \"file_extension\": \".xlsx\"\n            },\n            // more formats...\n        ]\n    }\n    ```","operationId":"get_export_fields_api_v1_leads_export_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportFieldsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/leads/export":{"post":{"tags":["leads"],"summary":"Export Leads","description":"Export leads data in the requested format.\n\nGenerates a file containing the selected lead data in the specified format.\nThe response is a streaming response with the appropriate content type and\nfile attachment headers for direct download.\n\nThe request body must specify:\n- `fields`: Array of field IDs to include in the export (must match IDs from /export/fields)\n- `format`: The desired file format (\"excel\", \"csv\", or \"json\")\n\nOptionally, the request can filter which leads to include:\n- `lead_ids`: Array of specific lead IDs to export\n- `startup_id`: ID of a startup to export all its leads\n\nIf no filter is provided, all leads accessible to the user will be exported.\n\nAuthentication:\n    Requires a valid user token\n\nReturns:\n    StreamingResponse: The file download as a streaming response\n\nRaises:\n    401 Unauthorized: If not authenticated\n    403 Forbidden: If requesting leads the user doesn't have permission to access\n    400 Bad Request: If the request body is invalid or contains invalid field IDs\n\nExample request:\n    ```json\n    {\n        \"fields\": [\"lead_id\", \"lead_status\", \"team_member_name\", \"company_name\"],\n        \"format\": \"excel\",\n        \"startup_id\": 123\n    }\n    ```","operationId":"export_leads_api_v1_leads_export_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/health":{"get":{"tags":["system"],"summary":"Health Check","description":"Perform a health check of the application.\n\nReturns:\n    dict: A dictionary containing the health status of the application and its components.\n\nExample:\n    Response:\n    ```json\n    {\n        \"status\": \"healthy\",\n        \"database\": true\n    }\n    ```","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"}]},"type":"object","title":"Response Health Check Health Get"}}}}}}},"/test-metrics":{"get":{"tags":["system"],"summary":"Test Metrics","description":"Test endpoint to generate metrics.\n\nThis endpoint is used to test the metrics functionality.\nIt simply returns a success message.\n\nReturns:\n    dict: A dictionary containing a success message.","operationId":"test_metrics_test_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Test Metrics Test Metrics Get"}}}}}}}},"components":{"schemas":{"AnalysisStatus-Input":{"type":"string","enum":["pending","completed","failed"],"title":"AnalysisStatus","description":"Enum for startup analysis status."},"BillingInfoCreate":{"properties":{"name":{"type":"string","title":"Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"address_line1":{"type":"string","title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"type":"string","title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"}},"type":"object","required":["name","address_line1","city","postal_code","country"],"title":"BillingInfoCreate","description":"Schema for creating billing information."},"BillingInfoResponse":{"properties":{"name":{"type":"string","title":"Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"address_line1":{"type":"string","title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"type":"string","title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"}},"type":"object","required":["name","address_line1","city","postal_code","country","id","user_id"],"title":"BillingInfoResponse","description":"Schema for billing information response."},"BillingInfoUpdate":{"properties":{"name":{"type":"string","title":"Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"vat_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Number"},"address_line1":{"type":"string","title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"type":"string","title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"}},"type":"object","required":["name","address_line1","city","postal_code","country"],"title":"BillingInfoUpdate","description":"Schema for updating billing information."},"Body_create_startup_api_v1_startup_create_post":{"properties":{"pitch_deck":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Pitch Deck","description":"PDF pitch deck file, max 10MB"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Text summary of the startup"}},"type":"object","title":"Body_create_startup_api_v1_startup_create_post"},"Body_update_startup_analysis_api_v1_startup__startup_id__analyze_put":{"properties":{"pitch_deck":{"type":"string","format":"binary","title":"Pitch Deck","description":"PDF pitch deck file, max 10MB"}},"type":"object","required":["pitch_deck"],"title":"Body_update_startup_analysis_api_v1_startup__startup_id__analyze_put"},"BulkLeadCreate":{"properties":{"team_member_ids":{"items":{"type":"integer"},"type":"array","title":"Team Member Ids","description":"List of team member IDs"},"startup_id":{"type":"integer","title":"Startup Id","description":"ID of the startup"}},"type":"object","required":["team_member_ids","startup_id"],"title":"BulkLeadCreate","description":"Schema for creating multiple leads."},"BulkLeadDelete":{"properties":{"lead_ids":{"items":{"type":"integer"},"type":"array","title":"Lead Ids","description":"List of lead IDs"},"startup_id":{"type":"integer","title":"Startup Id","description":"ID of the startup"}},"type":"object","required":["lead_ids","startup_id"],"title":"BulkLeadDelete","description":"Schema for deleting multiple leads."},"BulkMatchReasonRequest":{"properties":{"startup_id":{"type":"integer","title":"Startup Id","description":"ID of the startup to match against"},"investor_ids":{"items":{"type":"integer"},"type":"array","title":"Investor Ids","description":"List of investor IDs to generate match reasons for"}},"type":"object","required":["startup_id","investor_ids"],"title":"BulkMatchReasonRequest","description":"Request model for bulk match reason generation.","example":{"investor_ids":[456,789,101],"startup_id":123}},"CheckSize":{"properties":{"min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min"},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display"}},"type":"object","title":"CheckSize","description":"Financial information about investment check sizes."},"CommunicationEvent":{"properties":{"type":{"$ref":"#/components/schemas/CommunicationEventType"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"notes":{"type":"string","title":"Notes"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["type","notes"],"title":"CommunicationEvent","description":"Communication event with a lead."},"CommunicationEventType":{"type":"string","enum":["email","call","meeting","message","note"],"title":"CommunicationEventType","description":"Type of communication event."},"CreatePaymentIntentRequest":{"properties":{"package_id":{"type":"string","format":"uuid","title":"Package Id","description":"ID of the credit package being purchased"},"partner_slug":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9_]+$"},{"type":"null"}],"title":"Partner Slug","description":"Partner identifier for discount attribution (e.g., 'hirewood')"},"discount_percentage":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percentage","description":"Discount percentage as decimal (0.5 = 50% off)"}},"type":"object","required":["package_id"],"title":"CreatePaymentIntentRequest","description":"Request schema for creating a payment intent.\n\nAttributes:\n    package_id: ID of the credit package being purchased.\n    partner_slug: Optional partner identifier for discount attribution (e.g., 'hirewood').\n    discount_percentage: Optional discount percentage as decimal (0.5 = 50% off)."},"CreditBalanceResponse":{"properties":{"balance":{"type":"integer","title":"Balance"},"lifetime_credits":{"type":"integer","title":"Lifetime Credits"},"tier":{"type":"string","title":"Tier"}},"type":"object","required":["balance","lifetime_credits","tier"],"title":"CreditBalanceResponse","description":"Schema for credit balance response.\n\nAttributes:\n    balance: Current credit balance\n    lifetime_credits: Total credits ever received\n    tier: Current user tier (e.g., 'basic', 'premium')"},"CreditPackageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"credits":{"type":"integer","title":"Credits"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"tier":{"type":"string","title":"Tier"},"savings_percentage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Savings Percentage"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","name","credits","price_cents","currency","tier","savings_percentage","is_active"],"title":"CreditPackageResponse","description":"Schema for credit package response.\n\nAttributes:\n    id: Package identifier\n    name: Package name\n    credits: Number of credits in package\n    price_cents: Price in cents\n    tier: Package tier (e.g., 'basic', 'premium')\n    savings_percentage: Percentage of savings compared to base price\n    is_active: Whether the package is currently available"},"CreditStatsResponse":{"properties":{"available_credits":{"type":"integer","title":"Available Credits"},"used_this_month":{"type":"integer","title":"Used This Month"},"purchased_total":{"type":"integer","title":"Purchased Total"},"lifetime_usage":{"type":"integer","title":"Lifetime Usage"}},"type":"object","required":["available_credits","used_this_month","purchased_total","lifetime_usage"],"title":"CreditStatsResponse","description":"Schema for credit statistics response.\n\nAttributes:\n    available_credits: Current available credits\n    used_this_month: Credits used in current month\n    purchased_total: Total credits purchased\n    lifetime_usage: Total credits used"},"CreditTransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"date":{"type":"string","format":"date-time","title":"Date"},"type":{"type":"string","title":"Type"},"amount":{"type":"integer","title":"Amount"},"description":{"type":"string","title":"Description"},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata"},"invoice_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"}},"type":"object","required":["id","date","type","amount","description","metadata","invoice_id"],"title":"CreditTransactionResponse","description":"Schema for credit transaction response.\n\nAttributes:\n    id: Transaction identifier\n    date: Transaction date\n    type: Type of transaction (purchase, usage, refund, bonus)\n    amount: Number of credits involved\n    description: Transaction description\n    metadata: Additional transaction data (e.g., invoice ID)"},"CreditUsageData":{"properties":{"date":{"type":"string","format":"date-time","title":"Date"},"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["date","credits"],"title":"CreditUsageData","description":"Schema for credit usage data point.\n\nAttributes:\n    date: Date of usage\n    credits: Number of credits used"},"DeleteAllLeadsRequest":{"properties":{"startup_id":{"type":"integer","title":"Startup Id","description":"ID of the startup to delete all leads for"}},"type":"object","required":["startup_id"],"title":"DeleteAllLeadsRequest","description":"Schema for deleting all leads for a startup."},"ExportField":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the field"},"name":{"type":"string","title":"Name","description":"Display name for the field"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional description explaining what this field represents"},"type":{"$ref":"#/components/schemas/ExportFieldType","description":"Data type of the field"},"source":{"$ref":"#/components/schemas/ExportFieldSource","description":"Source entity of the field"},"required":{"type":"boolean","title":"Required","description":"Whether this field is always available"},"example":{"anyOf":[{},{"type":"null"}],"title":"Example","description":"Example value for the field"}},"type":"object","required":["id","name","type","source","required"],"title":"ExportField","description":"Represents a single field that can be exported.\n\nContains metadata about an exportable field, including its identifier,\ndisplay name, data type, and source entity."},"ExportFieldGroup":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the group"},"name":{"type":"string","title":"Name","description":"Display name for the group"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional description of what this group contains"},"fields":{"items":{"$ref":"#/components/schemas/ExportField"},"type":"array","title":"Fields","description":"List of fields in this group"}},"type":"object","required":["id","name","fields"],"title":"ExportFieldGroup","description":"Represents a group of related export fields.\n\nFields are organized into logical groups to improve usability in the UI.\nFor example, all team member fields might be in one group."},"ExportFieldSource":{"type":"string","enum":["lead","team_member","investor","match"],"title":"ExportFieldSource","description":"Source entities for export fields.\n\nIndicates which entity in the data model the field comes from.\nThis helps organize fields in the UI and understand data relationships."},"ExportFieldType":{"type":"string","enum":["string","number","date","array","object","boolean"],"title":"ExportFieldType","description":"Data types for export fields.\n\nThese types are used to categorize the export fields and help the frontend\nrender appropriate UI controls for field selection."},"ExportFieldsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ExportFieldGroup"},"type":"array","title":"Groups","description":"List of field groups"},"formats":{"items":{"$ref":"#/components/schemas/ExportFormat"},"type":"array","title":"Formats","description":"List of supported export formats"}},"type":"object","required":["groups","formats"],"title":"ExportFieldsResponse","description":"Response containing all available export fields grouped by category.\n\nThis is returned by the GET /export/fields endpoint and provides\nthe frontend with information about available fields and formats."},"ExportFormat":{"properties":{"id":{"type":"string","enum":["excel","csv","json"],"title":"Id","description":"Format identifier"},"name":{"type":"string","title":"Name","description":"Display name for the format"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional description of the format"},"mime_type":{"type":"string","title":"Mime Type","description":"MIME type for HTTP Content-Type header"},"file_extension":{"type":"string","title":"File Extension","description":"File extension including the dot"}},"type":"object","required":["id","name","mime_type","file_extension"],"title":"ExportFormat","description":"Available export format.\n\nDefines the supported file formats for exporting lead data.\nEach format has its own MIME type and file extension."},"ExportRequest":{"properties":{"fields":{"items":{"type":"string"},"type":"array","title":"Fields","description":"List of field IDs to export. These must match the field IDs from the /export/fields endpoint."},"format":{"type":"string","enum":["excel","csv","json"],"title":"Format","description":"Export format. Must be one of the supported formats."},"lead_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Lead Ids","description":"Optional list of specific lead IDs to export. If provided, only these leads will be included."},"startup_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Startup Id","description":"Optional startup ID to filter leads. If provided, only leads for this startup will be included."}},"type":"object","required":["fields","format"],"title":"ExportRequest","description":"Request model for initiating an export.\n\nThis is sent to the POST /export endpoint to request a file download.\nAt least one filter (lead_ids or startup_id) should be provided to limit the data.\n\nExamples:\n    ```json\n    {\n        \"fields\": [\"lead_id\", \"lead_status\", \"team_member_name\", \"company_name\"],\n        \"format\": \"excel\",\n        \"startup_id\": 123\n    }\n    ```\n\n    ```json\n    {\n        \"fields\": [\"lead_id\", \"team_member_email\", \"company_website\"],\n        \"format\": \"csv\",\n        \"lead_ids\": [456, 789]\n    }\n    ```"},"FeatureCostResponse":{"properties":{"feature_key":{"type":"string","title":"Feature Key"},"name":{"type":"string","title":"Name"},"credits_cost":{"type":"integer","title":"Credits Cost"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["feature_key","name","credits_cost","description"],"title":"FeatureCostResponse","description":"Schema for feature cost response.\n\nAttributes:\n    feature_key: Unique identifier for the feature\n    name: Display name of the feature\n    credits_cost: Number of credits required\n    description: Optional description of the feature"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvestmentDetails":{"properties":{"stages":{"items":{"$ref":"#/components/schemas/InvestmentStage"},"type":"array","title":"Stages"},"check_size":{"$ref":"#/components/schemas/CheckSize"},"industries":{"items":{"type":"string"},"type":"array","title":"Industries"},"geographies":{"items":{"type":"string"},"type":"array","title":"Geographies"}},"type":"object","title":"InvestmentDetails","description":"Details about investment preferences and criteria."},"InvestmentStage":{"type":"string","enum":["Pre-Seed","Seed","Series A","Series B","Series C","Growth","Other"],"title":"InvestmentStage","description":"Enumeration of possible investment stages."},"InvestorMatchRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"threshold":{"type":"number","title":"Threshold","default":0.3},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":10},"startup_id":{"type":"integer","title":"Startup Id"}},"type":"object","required":["prompt","startup_id"],"title":"InvestorMatchRequest","description":"Request model for matching investors."},"InvestorMatchResponse":{"properties":{"investor":{"$ref":"#/components/schemas/InvestorSummary"},"similarity_score":{"type":"number","title":"Similarity Score"},"match_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Score"},"match_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Reason"},"key_alignments":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Key Alignments"},"analysis_status":{"$ref":"#/components/schemas/app__schemas__investor_matches__AnalysisStatus","default":"pending"}},"type":"object","required":["investor","similarity_score"],"title":"InvestorMatchResponse","description":"Response model for investor match search results.\n\nThis model represents the result of matching a startup with an investor,\nincluding both the basic investor information and the match analysis details.\n\nAttributes:\n    investor: Basic information about the matched investor\n    similarity_score: Vector similarity score from the initial matching\n    match_score: Detailed analysis score (1-10) indicating match strength\n    match_reason: Detailed explanation of why the investor matches the startup\n    key_alignments: List of specific areas where the investor and startup align\n    analysis_status: Status of the analysis process (pending, processing, completed, failed)"},"InvestorMatchesResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InvestorMatchResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"potential_matches_count":{"type":"integer","title":"Potential Matches Count","description":"Number of potential investor matches that haven't been discovered yet","default":0},"discovered_matches_count":{"type":"integer","title":"Discovered Matches Count","description":"Number of investor matches already discovered","default":0},"discovery_percentage":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Discovery Percentage","description":"Percentage of total potential matches that have been discovered","default":0.0},"has_more_matches":{"type":"boolean","title":"Has More Matches","description":"Whether there are more potential matches to discover","default":false},"status_summary":{"anyOf":[{"$ref":"#/components/schemas/MatchStatusSummary"},{"type":"null"}],"description":"Summary of match analysis statuses for tracking bulk operations"},"credit_cost_per_match":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Cost Per Match","description":"Credit cost per match"},"total_credit_cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Credit Cost","description":"Total credits charged for this operation"},"remaining_credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Credits","description":"Remaining credits after this operation"}},"type":"object","required":["items","total","page","page_size"],"title":"InvestorMatchesResponse","description":"Paginated response for investor matches.","example":{"credit_cost_per_match":1,"discovered_matches_count":15,"discovery_percentage":37.5,"has_more_matches":true,"items":[{"analysis_status":"completed","investor":{"check_size":{"display":"$500K - $3M","max":3000000,"min":500000},"id":123,"industries":["SaaS","Fintech"],"investment_stages":["Seed","Series A"],"location":"San Francisco, CA","name":"Acme Ventures","website":"https://acmeventures.com"},"key_alignments":["Industry focus","Stage alignment","Geographic fit"],"match_reason":"Acme Ventures focuses on early-stage SaaS companies...","match_score":8,"similarity_score":0.89}],"page":1,"page_size":10,"potential_matches_count":25,"remaining_credits":40,"total":1,"total_credit_cost":10}},"InvestorResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"Unique identifier for the investor"},"name":{"type":"string","title":"Name","description":"Name of the investment firm or individual","default":"Unknown Investor"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"URL of the investor's website"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"General description of the investor"},"investment_thesis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investment Thesis","description":"The investor's approach and philosophy to investments"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Geographic location of the investor's main office"},"investment_stages":{"items":{"type":"string"},"type":"array","title":"Investment Stages","description":"List of investment stages the investor focuses on"},"industries":{"items":{"type":"string"},"type":"array","title":"Industries","description":"List of industries or sectors the investor targets"},"geographies":{"items":{"type":"string"},"type":"array","title":"Geographies","description":"List of geographic regions the investor focuses on"},"check_size":{"$ref":"#/components/schemas/CheckSize","description":"Information about the investor's typical investment amounts"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email","description":"Primary email address for contacting the investor"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone","description":"Phone number for contacting the investor"},"contact_form_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Form Url","description":"URL to a web form for contacting the investor"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name","description":"Name of the primary contact person"},"identified_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identified Email","description":"Email address identified through research"},"contact_preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Preference","description":"Preferred method of contact"},"preferred_contact_methods":{"items":{"type":"string"},"type":"array","title":"Preferred Contact Methods","description":"List of acceptable contact methods"},"last_updated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated","description":"Timestamp of when the investor data was last updated"},"investment_details":{"$ref":"#/components/schemas/InvestmentDetails","description":"Detailed information about investment preferences"},"team_members":{"items":{"$ref":"#/components/schemas/TeamMember"},"type":"array","title":"Team Members","description":"List of people associated with the investment firm"},"portfolio_companies":{"items":{"$ref":"#/components/schemas/PortfolioCompany"},"type":"array","title":"Portfolio Companies","description":"List of companies in the investor's portfolio"}},"type":"object","required":["id"],"title":"InvestorResponse","description":"Primary investor information model.\n\nThis comprehensive model represents an investment firm or individual investor,\nincluding their basic information, investment criteria, contact details, team members,\nand portfolio companies.\n\nAttributes:\n    id: Unique identifier for the investor\n    name: Name of the investment firm or individual\n    website: URL of the investor's website\n    description: General description of the investor\n    investment_thesis: The investor's approach and philosophy to investments\n    location: Geographic location of the investor's main office\n    investment_stages: List of investment stages the investor focuses on\n    industries: List of industries or sectors the investor targets\n    geographies: List of geographic regions the investor focuses on\n    check_size: Information about the investor's typical investment amounts\n    contact_email: Primary email address for contacting the investor\n    contact_phone: Phone number for contacting the investor\n    contact_form_url: URL to a web form for contacting the investor\n    contact_name: Name of the primary contact person\n    identified_email: Email address identified through research\n    contact_preference: Preferred method of contact\n    preferred_contact_methods: List of acceptable contact methods\n    investment_details: Detailed information about investment preferences\n    team_members: List of people associated with the investment firm\n    portfolio_companies: List of companies in the investor's portfolio\n    last_updated: Timestamp of when the investor data was last updated\n\nExample:\n    ```json\n    {\n        \"id\": 456,\n        \"name\": \"Acme Ventures\",\n        \"website\": \"https://acmeventures.com\",\n        \"description\": \"Early-stage venture capital firm focused on enterprise software\",\n        \"investment_thesis\": \"We invest in teams building transformative technologies...\",\n        \"location\": \"San Francisco, CA\",\n        \"investment_stages\": [\"Seed\", \"Series A\"],\n        \"industries\": [\"Enterprise SaaS\", \"AI/ML\", \"Data Infrastructure\"],\n        \"geographies\": [\"United States\", \"Europe\"],\n        \"check_size\": {\n            \"min\": 500000,\n            \"max\": 3000000,\n            \"currency\": \"USD\",\n            \"display\": \"$500K - $3M\"\n        },\n        \"contact_email\": \"info@acmeventures.com\",\n        \"contact_form_url\": \"https://acmeventures.com/contact\",\n        \"contact_preference\": \"email\",\n        \"team_members\": [...]\n    }\n    ```"},"InvestorSummary":{"properties":{"id":{"type":"integer","title":"Id","description":"Unique identifier for the investor"},"name":{"type":"string","title":"Name","description":"Name of the investment firm or individual"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"URL of the investor's website"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Geographic location of the investor's main office"},"industries":{"items":{"type":"string"},"type":"array","title":"Industries","description":"List of industries or sectors the investor targets"},"investment_stages":{"items":{"type":"string"},"type":"array","title":"Investment Stages","description":"List of investment stages the investor focuses on"},"check_size":{"anyOf":[{"$ref":"#/components/schemas/CheckSize"},{"type":"null"}],"description":"Information about the investor's typical investment amounts"}},"type":"object","required":["id","name"],"title":"InvestorSummary","description":"Basic investor information needed for match listings.\n\nThis lightweight schema contains only essential information about an investor\nthat would be displayed in a match list view or summary card."},"LeadCreate":{"properties":{"team_member_id":{"type":"integer","title":"Team Member Id","description":"ID of the team member"},"startup_id":{"type":"integer","title":"Startup Id","description":"ID of the startup"},"status":{"$ref":"#/components/schemas/LeadStatus","description":"Status of the lead","default":"new"},"priority":{"$ref":"#/components/schemas/LeadPriority","description":"Priority of the lead","default":2},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Initial notes about the lead"}},"type":"object","required":["team_member_id","startup_id"],"title":"LeadCreate","description":"Schema for creating a new lead."},"LeadPaginatedResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadResponse"},"type":"array","title":"Items","description":"List of items"},"total":{"type":"integer","title":"Total","description":"Total number of items"},"page":{"type":"integer","title":"Page","description":"Current page number"},"page_size":{"type":"integer","title":"Page Size","description":"Number of items per page"}},"type":"object","required":["items","total","page","page_size"],"title":"LeadPaginatedResponse","description":"Schema for paginated lead responses."},"LeadPriority":{"type":"integer","enum":[1,2,3],"title":"LeadPriority","description":"Priority of a lead."},"LeadResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"ID of the lead"},"status":{"$ref":"#/components/schemas/LeadStatus","description":"Status of the lead"},"priority":{"$ref":"#/components/schemas/LeadPriority","description":"Priority of the lead"},"contacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contacted At","description":"When the lead was last contacted"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the lead was created"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Notes about the lead"},"communication_history":{"items":{"$ref":"#/components/schemas/CommunicationEvent"},"type":"array","title":"Communication History","description":"History of communications with the lead"},"startup_id":{"type":"integer","title":"Startup Id","description":"ID of the startup"},"team_member_name":{"type":"string","title":"Team Member Name","description":"Name of the team member"},"team_member_role":{"type":"string","title":"Team Member Role","description":"Role of the team member"},"team_member_linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Member Linkedin","description":"LinkedIn URL of the team member"},"investor_name":{"type":"string","title":"Investor Name","description":"Name of the investor"},"investor_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investor Website","description":"Website of the investor"}},"type":"object","required":["id","status","priority","created_at","startup_id","team_member_name","team_member_role","investor_name"],"title":"LeadResponse","description":"Schema for lead response with all related data."},"LeadSortField":{"type":"string","enum":["status","priority","created_at","contacted_at","team_member_name","investor_name"],"title":"LeadSortField","description":"Fields available for sorting leads."},"LeadStatus":{"type":"string","enum":["new","contacted","interested","not_interested","meeting_scheduled","meeting_completed","deal_in_progress","deal_closed","deal_lost"],"title":"LeadStatus","description":"Status of a lead."},"LeadUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/LeadStatus"},{"type":"null"}],"description":"New status of the lead"},"priority":{"anyOf":[{"$ref":"#/components/schemas/LeadPriority"},{"type":"null"}],"description":"New priority of the lead"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Updated notes about the lead"},"contacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contacted At","description":"When the lead was last contacted"},"communication_history":{"anyOf":[{"items":{"$ref":"#/components/schemas/CommunicationEvent"},"type":"array"},{"type":"null"}],"title":"Communication History","description":"Updated communication history"}},"type":"object","title":"LeadUpdate","description":"Schema for updating a lead."},"MatchStatusRequest":{"properties":{"investor_ids":{"items":{"type":"integer"},"type":"array","minItems":1,"title":"Investor IDs","description":"Array of investor IDs to check analysis status for","example":[1,2,3]}},"type":"object","title":"MatchStatusRequest","description":"Request schema for checking match analysis status.","example":{"investor_ids":[1,2,3]}},"MatchStatusSummary":{"properties":{"total":{"type":"integer","title":"Total","description":"Total number of matches","default":0},"pending":{"type":"integer","title":"Pending","description":"Number of matches in pending status","default":0},"processing":{"type":"integer","title":"Processing","description":"Number of matches in processing status","default":0},"completed":{"type":"integer","title":"Completed","description":"Number of matches in completed status","default":0},"failed":{"type":"integer","title":"Failed","description":"Number of matches in failed status","default":0},"is_complete":{"type":"boolean","title":"Is Complete","description":"True when all matches are either completed or failed (no pending or processing matches)","default":false}},"type":"object","title":"MatchStatusSummary","description":"Summary of match analysis statuses."},"OnboardingState":{"properties":{"profile_completed":{"type":"boolean","title":"Profile Completed","default":false},"pitch_deck_uploaded":{"type":"boolean","title":"Pitch Deck Uploaded","default":false},"investor_preferences_set":{"type":"boolean","title":"Investor Preferences Set","default":false},"billing_info_added":{"type":"boolean","title":"Billing Info Added","default":false}},"type":"object","title":"OnboardingState","description":"Schema for user's onboarding state.\n\nAttributes:\n    profile_completed: Whether user has completed their profile\n    pitch_deck_uploaded: Whether user has uploaded a pitch deck\n    investor_preferences_set: Whether user has set their investor preferences\n    billing_info_added: Whether user has added billing information"},"OnboardingStateUpdate":{"properties":{"profile_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Profile Completed"},"pitch_deck_uploaded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pitch Deck Uploaded"},"investor_preferences_set":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Investor Preferences Set"},"billing_info_added":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Billing Info Added"}},"type":"object","title":"OnboardingStateUpdate","description":"Schema for updating onboarding state.\n\nThis schema allows partial updates to onboarding state.\nAll fields are optional to support updating individual states."},"PaginationInfo":{"properties":{"currentPage":{"type":"integer","title":"Currentpage"},"totalPages":{"type":"integer","title":"Totalpages"},"totalItems":{"type":"integer","title":"Totalitems"},"itemsPerPage":{"type":"integer","title":"Itemsperpage"}},"type":"object","required":["currentPage","totalPages","totalItems","itemsPerPage"],"title":"PaginationInfo","description":"Schema for pagination information.\n\nAttributes:\n    currentPage: Current page number\n    totalPages: Total number of pages\n    totalItems: Total number of items\n    itemsPerPage: Number of items per page"},"PaymentIntentResponse":{"properties":{"client_secret":{"type":"string","title":"Client Secret","description":"Client secret for the payment intent"},"amount":{"type":"integer","title":"Amount","description":"Amount in cents"},"currency":{"type":"string","title":"Currency","description":"Currency code"}},"type":"object","required":["client_secret","amount","currency"],"title":"PaymentIntentResponse","description":"Response schema for payment intent creation.\n\nAttributes:\n    client_secret: Client secret for the payment intent.\n    amount: Amount in cents (after any discounts applied).\n    currency: Currency code."},"PortfolioCompany":{"properties":{"id":{"type":"integer","title":"Id","description":"Unique identifier for the portfolio company entry"},"investor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Investor Id","description":"ID of the associated investor"},"name":{"type":"string","title":"Name","description":"Name of the company"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"URL of the company's website"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Primary industry or sector of the company"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Brief description of the company and what it does"},"investment_year":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investment Year","description":"Year when the investment was made"}},"type":"object","required":["id","name"],"title":"PortfolioCompany","description":"Schema representing a company in an investor's portfolio.\n\nThis model provides structured data about companies that have received\ninvestment from an investor, including basic company information and\ninvestment details.\n\nAttributes:\n    id: Unique identifier for the portfolio company entry\n    investor_id: ID of the investor who invested in this company\n    name: Name of the company\n    website: URL of the company's website\n    industry: Primary industry or sector of the company\n    description: Brief description of the company and what it does\n    investment_year: Year when the investment was made\n\nExample:\n    ```json\n    {\n        \"id\": 789,\n        \"investor_id\": 456,\n        \"name\": \"TechCorp\",\n        \"website\": \"https://techcorp.com\",\n        \"industry\": \"Enterprise SaaS\",\n        \"description\": \"AI-powered workflow automation platform\",\n        \"investment_year\": \"2022\"\n    }\n    ```"},"SpendCreditsRequest":{"properties":{"amount":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount","description":"Number of credits to spend"}},"type":"object","required":["amount"],"title":"SpendCreditsRequest","description":"Schema for spend credits request.\n\nAttributes:\n    amount: Number of credits to spend (must be positive)"},"SpendCreditsResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"remaining_credits":{"type":"integer","title":"Remaining Credits"},"transaction_id":{"type":"string","format":"uuid","title":"Transaction Id"}},"type":"object","required":["success","remaining_credits","transaction_id"],"title":"SpendCreditsResponse","description":"Schema for spend credits response.\n\nAttributes:\n    success: Whether the operation was successful\n    remaining_credits: Number of credits remaining after spend\n    transaction_id: ID of the created transaction"},"StartupAnalysisStatusResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"analysis_status":{"$ref":"#/components/schemas/app__schemas__startup__AnalysisStatus"}},"type":"object","required":["id","name","analysis_status"],"title":"StartupAnalysisStatusResponse","description":"Schema for startup analysis status response."},"StartupResponse":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"stage":{"type":"string","title":"Stage"},"industry":{"type":"string","title":"Industry"},"location":{"type":"string","title":"Location"},"value_proposition":{"type":"string","title":"Value Proposition"},"key_benefits":{"items":{"type":"string"},"type":"array","title":"Key Benefits"},"market_size":{"type":"string","title":"Market Size"},"business_model":{"type":"string","title":"Business Model"},"competition":{"type":"string","title":"Competition"},"revenue":{"type":"string","title":"Revenue"},"funding":{"type":"string","title":"Funding"},"valuation":{"type":"string","title":"Valuation"},"ideal_investor_profile":{"type":"string","title":"Ideal Investor Profile"},"summary":{"type":"string","title":"Summary"},"analysis_status":{"$ref":"#/components/schemas/app__schemas__startup__AnalysisStatus","default":"completed"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"pitch_deck_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pitch Deck Url"}},"type":"object","required":["user_id","name","stage","industry","location","value_proposition","key_benefits","market_size","business_model","competition","revenue","funding","valuation","ideal_investor_profile","summary"],"title":"StartupResponse","description":"Schema for API responses."},"StartupUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"value_proposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Proposition"},"key_benefits":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Key Benefits"},"market_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Size"},"business_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Model"},"competition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Competition"},"revenue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue"},"funding":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Funding"},"valuation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valuation"},"ideal_investor_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ideal Investor Profile"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"analysis_status":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStatus-Input"},{"type":"null"}]},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"pitch_deck_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pitch Deck Url"}},"type":"object","title":"StartupUpdate","description":"Schema for updating a startup."},"TeamMember":{"properties":{"id":{"type":"integer","title":"Id","description":"Unique identifier for the team member"},"investor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Investor Id","description":"ID of the associated investor"},"name":{"type":"string","title":"Name","description":"Full name of the team member (legacy field)"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"First name of the team member"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"Last name of the team member"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"Position or title at the investment firm"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Email address of the team member"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone number of the team member"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url","description":"URL to the team member's LinkedIn profile"},"focus_areas":{"items":{"type":"string"},"type":"array","title":"Focus Areas","description":"Areas of investment focus or expertise"},"biography":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Biography","description":"Brief biography or background information"},"social_media_profiles":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Social Media Profiles","description":"Dictionary of social media platforms and profile URLs"},"languages_spoken":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages Spoken","description":"List of languages spoken by the team member"},"years_of_experience":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Years Of Experience","description":"Number of years of experience in the investment industry"},"responsibilities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Responsibilities","description":"List of key responsibilities or focus areas within the firm"}},"type":"object","required":["id","name"],"title":"TeamMember","description":"Schema representing a team member at an investment firm.\n\nThis model provides structured data about individuals who are part of\nan investment team, including their role, contact information, and areas of focus.\n\nAttributes:\n    id: Unique identifier for the team member\n    investor_id: ID of the investor/firm the person belongs to\n    name: Full name of the team member (legacy field, maintained for compatibility)\n    first_name: First name of the team member\n    last_name: Last name of the team member\n    role: Position or title at the firm (e.g., \"Partner\", \"Associate\")\n    email: Email address of the team member\n    phone: Phone number of the team member\n    linkedin_url: URL to the team member's LinkedIn profile\n    focus_areas: List of industries, technologies, or investment areas this person specializes in\n    biography: Brief biography or background information\n    social_media_profiles: Dictionary of social media platforms and profile URLs\n    languages_spoken: List of languages spoken by the team member\n    years_of_experience: Number of years of experience in the investment industry\n    responsibilities: List of key responsibilities or focus areas within the firm\n\nExample:\n    ```json\n    {\n        \"id\": 123,\n        \"investor_id\": 456,\n        \"name\": \"Jane Smith\",\n        \"first_name\": \"Jane\",\n        \"last_name\": \"Smith\",\n        \"role\": \"Partner\",\n        \"email\": \"jane.smith@example.com\",\n        \"phone\": \"+1 (555) 123-4567\",\n        \"linkedin_url\": \"https://linkedin.com/in/janesmith\",\n        \"focus_areas\": [\"Fintech\", \"SaaS\", \"B2B\"],\n        \"biography\": \"Jane has 10 years of experience in venture capital...\",\n        \"social_media_profiles\": {\n            \"twitter\": \"https://twitter.com/janesmith\",\n            \"github\": \"https://github.com/janesmith\"\n        },\n        \"languages_spoken\": [\"English\", \"French\"],\n        \"years_of_experience\": 10,\n        \"responsibilities\": [\"Deal sourcing\", \"Portfolio management\"]\n    }\n    ```"},"TransactionsResponse":{"properties":{"transactions":{"items":{"$ref":"#/components/schemas/CreditTransactionResponse"},"type":"array","title":"Transactions"},"usage_data":{"items":{"$ref":"#/components/schemas/CreditUsageData"},"type":"array","title":"Usage Data"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"}},"type":"object","required":["transactions","usage_data","pagination"],"title":"TransactionsResponse","description":"Schema for transactions list response.\n\nAttributes:\n    transactions: List of credit transactions\n    usage_data: Credit usage over time\n    pagination: Pagination information"},"UserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"clerk_id":{"type":"string","title":"Clerk Id"},"email":{"type":"string","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"onboarding_state":{"$ref":"#/components/schemas/OnboardingState"}},"type":"object","required":["id","clerk_id","email","first_name","last_name","onboarding_state"],"title":"UserResponse","description":"Schema for user response data.\n\nAttributes:\n    id: User's UUID\n    clerk_id: User's Clerk ID\n    email: User's email address\n    first_name: User's first name\n    last_name: User's last name\n    onboarding_state: User's onboarding progress"},"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"},"app__schemas__investor_matches__AnalysisStatus":{"type":"string","enum":["pending","processing","completed","failed"],"title":"AnalysisStatus","description":"Enum for investor match analysis status.\n\nThis enum represents the different states of the match analysis process:\n\n- PENDING: Initial state when a match is created but not yet analyzed\n- PROCESSING: Analysis is currently in progress\n- COMPLETED: Analysis has been successfully completed\n- FAILED: Analysis failed due to an error\n\nThe frontend can use this status to implement polling for long-running analysis operations."},"app__schemas__startup__AnalysisStatus":{"type":"string","enum":["pending","completed","failed"],"title":"AnalysisStatus","description":"Enum for startup analysis status."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}