{"openapi":"3.0.1","info":{"title":"Vortura API","description":"Vortura Endpoints","version":"1.2"},"servers":[{"url":"http://api.vortura-solutions.com","description":"Generated server url"}],"tags":[{"name":"Matching","description":"Endpoints related to find leads for job and location"},{"name":"Jobs","description":"Manage 'Stellen' in a client's dashboard"},{"name":"Companies","description":"Manage companies in the system"},{"name":"Leads","description":"Endpoints for accessing lead data"},{"name":"Reporting","description":"Endpoints related to reporting and lead qualification"}],"paths":{"/jobs/{clickupId}":{"put":{"tags":["Jobs"],"summary":"Update a job by clickupId","description":"Update a job in a client's Dashboard with all job properties","operationId":"updateJob","parameters":[{"name":"clickupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateJobDto"}}},"required":true},"responses":{"200":{"description":"Successfully updated Job","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/jobs/id/{jobId}":{"put":{"tags":["Jobs"],"summary":"Update a job by jobId","description":"Update a job in a client's Dashboard with all job properties","operationId":"updateJobViaJobId","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateJobDto"}}},"required":true},"responses":{"200":{"description":"Successfully updated Job","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/companies/{clickupId}":{"put":{"tags":["Companies"],"summary":"Update a company by clickupId","description":"Update a company with all company properties","operationId":"updateCompany","parameters":[{"name":"clickupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyDto"}}},"required":true},"responses":{"404":{"description":"Company not found","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"200":{"description":"Successfully updated company","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/reporting":{"post":{"tags":["Reporting"],"operationId":"updateReporting","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportingDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/matching/matchingLeads":{"post":{"tags":["Matching"],"summary":"Get leads grouped by location and job","description":"Returns leads grouped by location and job - used for the pdf longlist","operationId":"getMatchingLeads","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchingLeadsRequestDto"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved leads","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupedLeadsDto"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupedLeadsDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupedLeadsDto"}}}}}}},"/jobs":{"post":{"tags":["Jobs"],"summary":"Create a new 'Stelle' in a client's Dashboard","description":"Status of the creation","operationId":"createJob","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobDto"}}},"required":true},"responses":{"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"200":{"description":"Successfully created Job","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/companies":{"post":{"tags":["Companies"],"summary":"Create a new company","description":"Creates a new company with the provided details","operationId":"createCompany","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompanyDto"}}},"required":true},"responses":{"200":{"description":"Successfully created company","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/reporting/qualifiedLeads":{"get":{"tags":["Reporting"],"summary":"Get number of qualified leads","description":"Returns the number qualified leads for a given company within the last X days (if specified).","operationId":"getQualifiedLeads","parameters":[{"name":"companyName","in":"query","description":"Name of the company","required":true,"schema":{"type":"string"}},{"name":"lastXDays","in":"query","description":"Number of past days to consider","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCountDto"}}}}}}},"/reporting/qualifiedLeadsV3":{"get":{"tags":["Reporting"],"summary":"Get number of qualified leads V3","description":"Returns the number qualified leads for a given company within a timeframe.","operationId":"getQualifiedLeadsV3","parameters":[{"name":"clickUpId","in":"query","description":"Name of the company","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"Start Date (2025-07-01)","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","description":"End Date (2025-07-31)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCountDto"}}}}}}},"/reporting/qualifiedLeadsV2":{"get":{"tags":["Reporting"],"summary":"Get number of qualified leads V2","description":"Returns the number qualified leads for a given company within the last X days (if specified).","operationId":"getQualifiedLeadsV2","parameters":[{"name":"companyName","in":"query","description":"Name of the company","required":true,"schema":{"type":"string"}},{"name":"lastXDays","in":"query","description":"Number of past days to consider","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCountDto"}}}}}}},"/leads/company":{"get":{"tags":["Leads"],"summary":"Get leads for authenticated user's company","description":"Returns a list of leads associated with the company of the currently authenticated user.","operationId":"getLeadsForCompany","responses":{"200":{"description":"Successfully retrieved leads","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadDto"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadDto"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadDto"}}}}}}}}},"components":{"schemas":{"UpdateJobDto":{"type":"object","properties":{"jobName":{"type":"string"},"companyId":{"type":"string"},"duration":{"type":"integer","format":"int32"},"startDate":{"type":"string","format":"date-time"},"location":{"type":"string"},"plz":{"type":"string"},"isActive":{"type":"boolean"},"clickupId":{"type":"string"},"TYPE":{"type":"string"}}},"UpdateCompanyDto":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"},"isFranchiseFrom":{"type":"integer","format":"int32"},"signatur":{"type":"string"},"contactPerson":{"type":"string"},"clickupId":{"type":"string"}}},"ReportingDto":{"type":"object","properties":{"company_name":{"type":"string","description":"Name of the company","example":"Vortura GmbH"},"impressions":{"type":"number","description":"Number of ad impressions","format":"double","example":12500},"reach":{"type":"number","description":"Reach of the ad","format":"double","example":8700},"spend":{"type":"number","description":"Total ad spend","format":"double","example":560.75},"inline_link_clicks":{"type":"number","description":"Number of inline link clicks","format":"double","example":340},"inline_link_click_ctr":{"type":"number","description":"Inline link click-through rate (CTR)","format":"double","example":2.7},"cost_per_inline_link_click":{"type":"number","description":"Cost per inline link click","format":"double","example":1.65},"cpm":{"type":"number","description":"Cost per 1000 impressions (CPM)","format":"double","example":45.3},"complete_registration":{"type":"number","description":"Number of completed registrations","format":"double","example":42},"thumbstoprate":{"type":"number","description":"Thumbstop rate (percentage of users who paused on the ad)","format":"double","example":8.4},"start_date":{"type":"string","description":"Start date of the reporting period","example":"2025-01-01"},"end_date":{"type":"string","description":"End date of the reporting period","example":"2025-01-31"}},"description":"Represents reporting metrics for a specific company and time period."},"JobLocationPair":{"type":"object","properties":{"job":{"type":"string"},"plz":{"type":"string"}}},"MatchingLeadsRequestDto":{"type":"object","properties":{"pairs":{"type":"array","items":{"$ref":"#/components/schemas/JobLocationPair"}}}},"AnonymousLeadDto":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"job":{"type":"string"},"jobGroups":{"type":"string"},"ort":{"type":"string"},"plz":{"type":"string"},"cvData":{"$ref":"#/components/schemas/CvData"},"relevanceScore":{"$ref":"#/components/schemas/RelevanceScore"}}},"CvData":{"type":"object","properties":{"ort":{"type":"string"},"skills":{"type":"array","items":{"type":"string"}},"experience":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}},"education":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}},"plz":{"type":"string"}}},"GroupedLeadsDto":{"type":"object","properties":{"grouped":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AnonymousLeadDto"}}}}}},"RelevanceScore":{"type":"object","properties":{"total":{"type":"integer","format":"int32"},"relevance":{"type":"integer","format":"int32"},"freshness":{"type":"integer","format":"int32"},"quality":{"type":"integer","format":"int32"},"proximity":{"type":"integer","format":"int32"}}},"CreateJobDto":{"type":"object","properties":{"jobName":{"type":"string"},"companyClickUpId":{"type":"string"},"duration":{"type":"integer","format":"int32"},"startDate":{"type":"string","format":"date-time"},"location":{"type":"string"},"plz":{"type":"string"},"isActive":{"type":"boolean"},"clickupId":{"type":"string"},"TYPE":{"type":"string"}}},"CreateCompanyDto":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"},"isFranchiseFrom":{"type":"integer","format":"int32"},"signatur":{"type":"string"},"contactPerson":{"type":"string"},"clickupId":{"type":"string"}}},"LeadCountDto":{"type":"object","properties":{"leadCount":{"type":"integer","format":"int32"},"unqualLeadCount":{"type":"integer","format":"int32"},"companyName":{"type":"string"}}},"LeadDto":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"vorname":{"type":"string"},"nachname":{"type":"string"},"company":{"type":"integer","format":"int32"},"email":{"type":"string"},"telefon":{"type":"string"},"job":{"type":"string"},"ort":{"type":"string"},"status":{"type":"string"},"notiz":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"link":{"type":"string"},"deleted":{"type":"integer","format":"int32"},"is_in_talentpool":{"type":"integer","format":"int32"},"fragen":{"type":"object","additionalProperties":{"type":"string"}},"plz":{"type":"string"},"lead_LOCATION":{"type":"string"}}}}}}