{"swagger": "2.0", "info": {"title": "FinTech Influence Backend API", "description": "\nComplete API documentation for FinTech Influence Backend.\n\n## Features\n- **Blog**: Blog posts, categories, tags, and lead management\n- **Case Study**: Case studies with client information and lead tracking\n- **Career**: Job postings, applications, departments, and locations\n- **Contact**: Contact form submissions with UTM tracking\n- **Social Media**: Dynamic social media links management\n- **Services**: Service listings, categories, and inquiry management\n\n## Authentication\nCurrently, the API does not require authentication for public endpoints.\nAdmin endpoints require Django admin authentication.\n\n## Response Format\nAll API responses follow a standardized format:\n```json\n{\n    \"status\": true,\n    \"status_code\": 200,\n    \"message_code\": \"SUCCESS\",\n    \"message\": \"Operation Successful\",\n    \"data\": {...},\n    \"count\": 10,\n    \"next\": \"...\",\n    \"previous\": \"...\"\n}\n```\n", "termsOfService": "https://www.google.com/policies/terms/", "contact": {"email": "contact@fintech-influence.com"}, "license": {"name": "BSD License"}, "version": "v1"}, "host": "api.fintech-influence.com", "schemes": ["https"], "basePath": "/api", "consumes": ["application/json"], "produces": ["application/json"], "securityDefinitions": {"Bearer": {"type": "apiKey", "name": "Authorization", "in": "header"}}, "security": [{"Bearer": []}], "paths": {"/ai/alt-text/": {"post": {"operationId": "ai_alt-text_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["ai"]}, "parameters": []}, "/ai/draft-campaign/": {"post": {"operationId": "ai_draft-campaign_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["ai"]}, "parameters": []}, "/ai/rewrite/": {"post": {"operationId": "ai_rewrite_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["ai"]}, "parameters": []}, "/ai/suggest-fields/": {"post": {"operationId": "ai_suggest-fields_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["ai"]}, "parameters": []}, "/auth/token/": {"post": {"operationId": "auth_token_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TokenObtainPair"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/TokenObtainPair"}}}, "tags": ["auth"]}, "parameters": []}, "/auth/token/refresh/": {"post": {"operationId": "auth_token_refresh_create", "description": "Takes a refresh type JSON web token and returns an access type JSON web\ntoken if the refresh token is valid.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TokenRefresh"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/TokenRefresh"}}}, "tags": ["auth"]}, "parameters": []}, "/blog/blog-categories/": {"get": {"operationId": "blog_blog-categories_list", "description": "ViewSet for Blog Categories - GET operations only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["blog"]}, "parameters": []}, "/blog/blog-leads/": {"post": {"operationId": "blog_blog-leads_create", "description": "\nSubmit a new case study lead/inquiry.\n\n**Content Type:** `application/json`\n\n**Field Requirements:**\n- All fields are optional\n- Recommended: `name` and `email`\n\n**Lead Source Options:**\n- `download` - Case Study Download\n- `contact` - Contact Form\n- `demo` - Demo Request\n- `consultation` - Consultation Request\n- `newsletter` - Newsletter Signup\n- `other` - Other (default)\n", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"required": [], "type": "object", "properties": {"case_study": {"description": "ID of the related case study", "type": "integer", "example": 1}, "data": {"description": "Dynamic lead data like name, email, phone, etc.", "type": "object", "example": {"name": "Jane Smith", "email": "jane.smith@example.com", "phone": "+1234567890", "company": "Tech Corp", "job_title": "Marketing Manager", "lead_source": "download", "message": "I would like to download this case study.", "utm_source": "google", "utm_medium": "cpc", "utm_campaign": "case_study_promo", "utm_refcode": "REF456"}}}}}], "responses": {"201": {"description": "Blog lead created successfully", "examples": {"application/json": {"status": true, "status_code": 201, "message": "Lead created successfully", "message_code": "CASE_STUDY_LEAD_CREATED", "data": {"id": 12, "case_study_id": 1, "data": {"name": "Jane Smith", "email": "jane.smith@example.com"}}}}}, "400": {"description": "Bad request - validation errors"}}, "tags": ["Blog Leads"]}, "parameters": []}, "/blog/blogs/": {"get": {"operationId": "blog_blogs_list", "description": "ViewSet for Blog - GET operations only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["blog"]}, "parameters": []}, "/blog/blogs/dynamic-fields/": {"get": {"operationId": "blog_blogs_dynamic_fields", "description": "Get active dynamic fields for a content item (?<x>_id=<id>).", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["blog"]}, "parameters": []}, "/blog/blogs/slug/{slug}/": {"get": {"operationId": "blog_blogs_retrieve_by_slug", "summary": "Additive slug detail endpoint for the v2 frontend.", "description": "Mirrors ``retrieve`` (published-only, atomic views_count increment, 404\nenvelope on miss) but resolves the item by ``slug`` instead of ``pk``\nand serialises with ``slug_detail_serializer_class`` -- which for blog\nembeds ``dynamic_fields`` (the pk-detail serializer intentionally does\nnot, so the existing contract is untouched).", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["blog"]}, "parameters": [{"name": "slug", "in": "path", "required": true, "type": "string"}]}, "/blog/blogs/slugs/": {"get": {"operationId": "blog_blogs_slugs", "summary": "Lightweight published-slug index for sitemap generation.", "description": "Returns every published item's slug + updated_at, unpaginated, so the\nfrontend can build a complete sitemap in one call.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["blog"]}, "parameters": []}, "/blog/blogs/{id}/": {"get": {"operationId": "blog_blogs_read", "description": "ViewSet for Blog - GET operations only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["blog"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/career/job-applications/": {"post": {"operationId": "career_job-applications_create", "description": "\nSubmit a new job application.\n\n**Content Type:** `multipart/form-data` (Required for file uploads)\n\n**Note:** This endpoint accepts file uploads (resume, cover_letter), so you must use `multipart/form-data` instead of `application/json`.\n\n**Headers:**\n- `Content-Type: multipart/form-data` (Required)\n\n**Field Requirements:**\n- All fields are **optional** (can be null/blank)\n- However, it's recommended to provide at least `job_posting`, `first_name`, `last_name`, `email`, and `resume`\n\n**Application Source Options:**\n- `website` - Website (default)\n- `linkedin` - LinkedIn\n- `indeed` - Indeed\n- `referral` - Referral\n- `other` - Other\n\n**File Upload Fields:**\n- `resume` - Resume file (optional)\n- `cover_letter` - Cover letter file (optional)\n\n**Alternative to File Upload:**\n- `cover_letter_text` - Text content of cover letter (if not uploading file)\n", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/JobApplicationCreate"}}], "responses": {"201": {"description": "Job application submitted successfully"}, "400": {"description": "Bad request - validation errors"}}, "tags": ["Job Applications"]}, "parameters": []}, "/career/job-postings/": {"get": {"operationId": "career_job-postings_list", "description": "List all published job postings with pagination", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["career"]}, "parameters": []}, "/career/job-postings/{id}/": {"get": {"operationId": "career_job-postings_read", "description": "Retrieve a single job posting", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["career"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/casestudy/case-studies/": {"get": {"operationId": "casestudy_case-studies_list", "description": "ViewSet for Case Study - GET operations only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["casestudy"]}, "parameters": []}, "/casestudy/case-studies/dynamic-fields/": {"get": {"operationId": "casestudy_case-studies_dynamic_fields", "description": "Get active dynamic fields for a content item (?<x>_id=<id>).", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["casestudy"]}, "parameters": []}, "/casestudy/case-studies/slug/{slug}/": {"get": {"operationId": "casestudy_case-studies_retrieve_by_slug", "summary": "Additive slug detail endpoint for the v2 frontend.", "description": "Mirrors ``retrieve`` (published-only, atomic views_count increment, 404\nenvelope on miss) but resolves the item by ``slug`` instead of ``pk``\nand serialises with ``slug_detail_serializer_class`` -- which for blog\nembeds ``dynamic_fields`` (the pk-detail serializer intentionally does\nnot, so the existing contract is untouched).", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["casestudy"]}, "parameters": [{"name": "slug", "in": "path", "required": true, "type": "string"}]}, "/casestudy/case-studies/slugs/": {"get": {"operationId": "casestudy_case-studies_slugs", "summary": "Lightweight published-slug index for sitemap generation.", "description": "Returns every published item's slug + updated_at, unpaginated, so the\nfrontend can build a complete sitemap in one call.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["casestudy"]}, "parameters": []}, "/casestudy/case-studies/{id}/": {"get": {"operationId": "casestudy_case-studies_read", "description": "ViewSet for Case Study - GET operations only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["casestudy"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/casestudy/case-study-categories/": {"get": {"operationId": "casestudy_case-study-categories_list", "description": "ViewSet for Case Study Categories - GET operations only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["casestudy"]}, "parameters": []}, "/casestudy/case-study-leads/": {"post": {"operationId": "casestudy_case-study-leads_create", "description": "\nSubmit a new case study lead/inquiry.\n\n**Content Type:** `application/json`\n\n**Field Requirements:**\n- All fields are optional\n- Recommended: `name` and `email`\n\n**Lead Source Options:**\n- `download` - Case Study Download\n- `contact` - Contact Form\n- `demo` - Demo Request\n- `consultation` - Consultation Request\n- `newsletter` - Newsletter Signup\n- `other` - Other (default)\n", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"required": [], "type": "object", "properties": {"case_study": {"description": "ID of the related case study", "type": "integer", "example": 1}, "data": {"description": "Dynamic lead data like name, email, phone, etc.", "type": "object", "example": {"name": "Jane Smith", "email": "jane.smith@example.com", "phone": "+1234567890", "company": "Tech Corp", "job_title": "Marketing Manager", "lead_source": "download", "message": "I would like to download this case study.", "utm_source": "google", "utm_medium": "cpc", "utm_campaign": "case_study_promo", "utm_refcode": "REF456"}}}}}], "responses": {"201": {"description": "Case study lead created successfully", "examples": {"application/json": {"status": true, "status_code": 201, "message": "Lead created successfully", "message_code": "CASE_STUDY_LEAD_CREATED", "data": {"id": 12, "case_study_id": 1, "data": {"name": "Jane Smith", "email": "jane.smith@example.com"}}}}}, "400": {"description": "Bad request - validation errors"}}, "tags": ["Case Study Leads"]}, "parameters": []}, "/contact/contacts/": {"post": {"operationId": "contact_contacts_create", "description": "\nSubmit a contact form inquiry.\n\n**Content Type:** `application/json`\n\n**Headers:**\n- `Content-Type: application/json` (Required)\n\n**Field Requirements:**\n- All fields are **optional** (can be null/blank)\n- However, it's recommended to provide at least `full_name`, `email`, and `requirements`\n", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"required": [], "type": "object", "properties": {"full_name": {"description": "Full name (optional, max 200 characters)", "type": "string", "example": "John Doe"}, "email": {"description": "Email address (optional)", "type": "string", "format": "email", "example": "john.doe@example.com"}, "phone": {"description": "Phone number (optional, max 20 characters)", "type": "string", "example": "+1234567890"}, "company": {"description": "Company name (optional, max 200 characters)", "type": "string", "example": "Acme Corp"}, "requirements": {"description": "Message or requirements (optional)", "type": "string", "example": "I am interested in your services. Please contact me."}, "utm_source": {"description": "UTM source (optional)", "type": "string", "example": "google"}, "utm_medium": {"description": "UTM medium (optional)", "type": "string", "example": "cpc"}, "utm_campaign": {"description": "UTM campaign (optional)", "type": "string", "example": "contact_form"}, "utm_term": {"description": "UTM term (optional)", "type": "string", "example": "marketing"}, "utm_content": {"description": "UTM content (optional)", "type": "string", "example": "banner_ad"}}, "example": {"full_name": "John Doe", "email": "john.doe@example.com", "phone": "+1234567890", "company": "Acme Corp", "requirements": "I am interested in your services. Please contact me.", "utm_source": "google", "utm_medium": "cpc", "utm_campaign": "contact_form", "utm_term": "marketing", "utm_content": "banner_ad"}}}], "responses": {"201": {"description": "Contact form submitted successfully"}, "400": {"description": "Bad request - validation errors"}}, "tags": ["Contact"]}, "parameters": []}, "/dashboard/ai-usage/": {"get": {"operationId": "dashboard_ai-usage_list", "description": "GET ai-usage/ -- AIRequestLog aggregates (30d) + month-to-date cost.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/insights/": {"get": {"operationId": "dashboard_insights_list", "summary": "GET insights/ -- an AI narrative over PII-free 30-day lead aggregates.", "description": "Cached 24h (per calendar day); ``?refresh=1`` bypasses. Fail-soft: if the AI\nis unavailable/over-budget, the figures still return (insights=null) so the\ncard renders numbers instead of erroring.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/leads/": {"get": {"operationId": "dashboard_leads_list", "description": "GET leads/ -- unified, filtered, manually-paginated lead list.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/leads/export/": {"get": {"operationId": "dashboard_leads_export_list", "description": "GET leads/export/ -- streaming CSV with the same filters as leads/.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/leads/timeseries/": {"get": {"operationId": "dashboard_leads_timeseries_list", "description": "GET leads/timeseries/?days=30&source= -- zero-filled daily lead counts.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/leads/utm/": {"get": {"operationId": "dashboard_leads_utm_list", "summary": "GET leads/utm/?source= -- utm_source/medium/campaign breakdowns.", "description": "Typed sources (contact/service/job) read their utm columns; JSON sources\n(case_study/blog) read the utm_* keys out of the ``data`` blob. Aggregated\nin Python so both shapes combine uniformly.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/leads/{source}/{id}/": {"patch": {"operationId": "dashboard_leads_partial_update", "description": "PATCH leads/<source>/<pk>/ -- update status and/or internal_notes only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": [{"name": "source", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}]}, "/dashboard/recipients/": {"get": {"operationId": "dashboard_recipients_list", "description": "GET/POST recipients/ -- list and create notification recipients.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "post": {"operationId": "dashboard_recipients_create", "description": "GET/POST recipients/ -- list and create notification recipients.", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/recipients/{id}/": {"patch": {"operationId": "dashboard_recipients_partial_update", "description": "PATCH/DELETE recipients/<pk>/ -- update or remove a recipient.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "delete": {"operationId": "dashboard_recipients_delete", "description": "PATCH/DELETE recipients/<pk>/ -- update or remove a recipient.", "parameters": [], "responses": {"204": {"description": ""}}, "tags": ["dashboard"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/dashboard/stats/overview/": {"get": {"operationId": "dashboard_stats_overview_list", "description": "GET stats/overview/ -- top-line lead + view metrics.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/track-query/": {"post": {"operationId": "dashboard_track-query_create", "summary": "POST track-query/ — ask the lead-tracking graph a question in plain English.", "description": "Two steps: (1) the model writes ONE read-only SELECT; (2) that SQL — which is\nUNTRUSTED — passes through ``dashboard/sql_guard.py`` (SELECT-only, table\nallowlist, forced LIMIT, read-only transaction + statement_timeout) before it\nruns; (3) a short AI summary over the result rows, with emails redacted so no\nlead PII leaves for the model. Staff-only; ``ai`` throttle scope.", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/dashboard/track-query/journey/": {"get": {"operationId": "dashboard_track-query_journey_list", "description": "GET track-query/journey/?token= — one visitor's full timeline: their events\n(oldest first), any leads that carry the same visitor_token, and any ESP email\ntokens. Plain ORM — no AI, no SQL. Staff-only.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["dashboard"]}, "parameters": []}, "/privacy-policy/list/": {"get": {"operationId": "privacy-policy_list_list", "description": "GET /api/privacy-policy/\nReturns latest active privacy policy", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["privacy-policy"]}, "parameters": []}, "/services/service-leads/": {"post": {"operationId": "services_service-leads_create", "description": "\nSubmit a new service inquiry/lead.\n\n**Content Type:** `application/json`\n\n**Headers:**\n- `Content-Type: application/json` (Required)\n\n**Field Requirements:**\n- All fields are **optional** (can be null/blank)\n- However, it's recommended to provide at least `full_name`, `email`, and `message`\n\n**Inquiry Type Options:**\n- `quote` - Request Quote\n- `consultation` - Free Consultation\n- `demo` - Request Demo\n- `information` - General Information (default)\n- `custom` - Custom Request\n\n**Lead Source Options:**\n- `website` - Website Contact Form\n- `service_page` - Service Page\n- `phone` - Phone Call\n- `email` - Direct Email\n- `referral` - Referral\n- `social_media` - Social Media\n- `other` - Other (default)\n", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"required": [], "type": "object", "properties": {"service": {"description": "Service ID (optional) - ID of the service related to this inquiry", "type": "integer", "example": 1}, "inquiry_type": {"description": "Type of inquiry (optional, default: \"information\")", "type": "string", "enum": ["quote", "consultation", "demo", "information", "custom"], "example": "quote"}, "lead_source": {"description": "Source of the lead (optional, default: \"website\")", "type": "string", "enum": ["website", "service_page", "phone", "email", "referral", "social_media", "other"], "example": "website"}, "full_name": {"description": "Full name (optional, max 200 characters)", "type": "string", "example": "John Doe"}, "email": {"description": "Email address (optional)", "type": "string", "format": "email", "example": "john.doe@example.com"}, "phone": {"description": "Phone number (optional, max 20 characters)", "type": "string", "example": "+1234567890"}, "company": {"description": "Company name (optional, max 200 characters)", "type": "string", "example": "Acme Corp"}, "job_title": {"description": "Job title (optional, max 100 characters)", "type": "string", "example": "Marketing Manager"}, "message": {"description": "Inquiry message or requirements (optional)", "type": "string", "example": "I am interested in your services."}, "budget_range": {"description": "Budget range if applicable (optional, max 100 characters)", "type": "string", "example": "$10,000 - $50,000"}, "timeline": {"description": "Project timeline if applicable (optional, max 100 characters)", "type": "string", "example": "3-6 months"}, "utm_source": {"description": "UTM source (optional)", "type": "string", "example": "google"}, "utm_medium": {"description": "UTM medium (optional)", "type": "string", "example": "cpc"}, "utm_campaign": {"description": "UTM campaign (optional)", "type": "string", "example": "service_promo"}, "utm_term": {"description": "UTM term (optional)", "type": "string", "example": "marketing"}, "utm_content": {"description": "UTM content (optional)", "type": "string", "example": "banner_ad"}}, "example": {"service": 1, "inquiry_type": "quote", "lead_source": "website", "full_name": "John Doe", "email": "john.doe@example.com", "phone": "+1234567890", "company": "Acme Corp", "job_title": "Marketing Manager", "message": "I am interested in your services.", "budget_range": "$10,000 - $50,000", "timeline": "3-6 months", "utm_source": "google", "utm_medium": "cpc", "utm_campaign": "service_promo", "utm_term": "marketing", "utm_content": "banner_ad"}}}], "responses": {"201": {"description": "Service inquiry submitted successfully"}, "400": {"description": "Bad request - validation errors"}}, "tags": ["Service Leads"]}, "parameters": []}, "/services/services/": {"get": {"operationId": "services_services_list", "description": "List all published services with pagination", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["services"]}, "parameters": []}, "/services/services/{id}/": {"get": {"operationId": "services_services_read", "description": "Retrieve a single service", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["services"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/social-media/social-media/": {"get": {"operationId": "social-media_social-media_list", "description": "List all active social media links", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["social-media"]}, "parameters": []}, "/social-media/social-media/{id}/": {"get": {"operationId": "social-media_social-media_read", "description": "Retrieve a single social media link", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["social-media"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/": {"get": {"operationId": "studio_case-studies_list", "description": "", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "post": {"operationId": "studio_case-studies_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": []}, "/studio/case-studies/{id}/": {"get": {"operationId": "studio_case-studies_read", "description": "", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "patch": {"operationId": "studio_case-studies_partial_update", "description": "", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/assets/": {"post": {"operationId": "studio_case-studies_assets_create", "description": "POST a single image/file asset (multipart). Keeps binaries out of the\nJSON PATCH path.", "parameters": [], "responses": {"201": {"description": ""}}, "consumes": ["multipart/form-data", "application/x-www-form-urlencoded"], "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/design/replicate/": {"post": {"operationId": "studio_case-studies_design_replicate_create", "description": "Turn an uploaded reference (or a text prompt) into a sanitized\n``GeneratedPage`` draft — the \"ditto copy\" step. Starts a DesignSession and\nrecords the user + assistant turns.", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/design/sessions/{session_id}/": {"get": {"operationId": "studio_case-studies_design_sessions_read", "description": "Fetch a design session with its full message thread (for the designer).", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "session_id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/design/sessions/{session_id}/chat/": {"post": {"operationId": "studio_case-studies_design_sessions_chat_create", "description": "One refinement turn. The model either EDITS (a new sanitized page\nversion) or ASKS a clarifying MCQ (no version). Answering an MCQ is just the\nnext chat message (the chosen option text).", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "session_id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/design/uploads/": {"post": {"operationId": "studio_case-studies_design_uploads_create", "summary": "POST a reference upload (html | image | pdf) the AI Designer replicates.", "description": "Stored under ``design_uploads/<cs_id>/`` and returned as a storage key\n(`path`) the replicate step reads back (scoped to this campaign).", "parameters": [], "responses": {"201": {"description": ""}}, "consumes": ["multipart/form-data", "application/x-www-form-urlencoded"], "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/fields/": {"put": {"operationId": "studio_case-studies_fields_update", "summary": "PUT full-replace of a campaign's dynamic form fields.", "description": "Safe because leads reference fields by `field_name` inside their JSON `data`,\nnot by FK — recreating the rows loses nothing. Matches the wizard UX (the\nclient always posts the complete desired field set).", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/pages/": {"get": {"operationId": "studio_case-studies_pages_list", "description": "List a campaign's generated-page versions, or generate a new one.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "post": {"operationId": "studio_case-studies_pages_create", "description": "List a campaign's generated-page versions, or generate a new one.", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/pages/{version}/": {"get": {"operationId": "studio_case-studies_pages_read", "description": "Fetch one generated-page version (with html, for preview).", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/pages/{version}/activate/": {"post": {"operationId": "studio_case-studies_pages_activate_create", "description": "Activate a version: demote any other active one and flip template=custom.", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/pages/{version}/deactivate/": {"post": {"operationId": "studio_case-studies_pages_deactivate_create", "description": "Deactivate a version and fall the campaign back to the 'asset' template.", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/publish/": {"post": {"operationId": "studio_case-studies_publish_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/case-studies/{id}/unpublish/": {"post": {"operationId": "studio_case-studies_unpublish_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/studio/categories/": {"get": {"operationId": "studio_categories_list", "description": "", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "post": {"operationId": "studio_categories_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": []}, "/studio/tags/": {"get": {"operationId": "studio_tags_list", "description": "", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["studio"]}, "post": {"operationId": "studio_tags_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["studio"]}, "parameters": []}, "/tracking/events/": {"post": {"operationId": "tracking_events_create", "description": "``POST /api/tracking/events/`` — anonymous, fail-soft analytics ingest.", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["tracking"]}, "parameters": []}, "/tracking/webhooks/acumbamail/": {"post": {"operationId": "tracking_webhooks_acumbamail_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["tracking"]}, "parameters": []}, "/tracking/webhooks/sendgrid/": {"post": {"operationId": "tracking_webhooks_sendgrid_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["tracking"]}, "parameters": []}}, "definitions": {"TokenObtainPair": {"required": ["username", "password"], "type": "object", "properties": {"username": {"title": "Username", "type": "string", "minLength": 1}, "password": {"title": "Password", "type": "string", "minLength": 1}}}, "TokenRefresh": {"required": ["refresh"], "type": "object", "properties": {"refresh": {"title": "Refresh", "type": "string", "minLength": 1}, "access": {"title": "Access", "type": "string", "readOnly": true, "minLength": 1}}}, "JobApplicationCreate": {"type": "object", "properties": {"job_posting": {"title": "Job posting", "type": "integer", "x-nullable": true}, "first_name": {"title": "First name", "type": "string", "maxLength": 100, "x-nullable": true}, "last_name": {"title": "Last name", "type": "string", "maxLength": 100, "x-nullable": true}, "email": {"title": "Email", "type": "string", "format": "email", "maxLength": 254, "x-nullable": true}, "phone": {"title": "Phone", "type": "string", "maxLength": 20, "x-nullable": true}, "address": {"title": "Address", "type": "string", "x-nullable": true}, "city": {"title": "City", "type": "string", "maxLength": 100, "x-nullable": true}, "state": {"title": "State", "type": "string", "maxLength": 100, "x-nullable": true}, "country": {"title": "Country", "type": "string", "maxLength": 100, "x-nullable": true}, "zip_code": {"title": "Zip code", "type": "string", "maxLength": 20, "x-nullable": true}, "current_company": {"title": "Current company", "type": "string", "maxLength": 200, "x-nullable": true}, "current_position": {"title": "Current position", "type": "string", "maxLength": 200, "x-nullable": true}, "years_of_experience": {"title": "Years of experience", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "current_salary": {"title": "Current salary", "type": "string", "format": "decimal", "x-nullable": true}, "expected_salary": {"title": "Expected salary", "type": "string", "format": "decimal", "x-nullable": true}, "notice_period": {"title": "Notice period", "description": "e.g., '2 weeks', '1 month', 'Immediate'", "type": "string", "maxLength": 50, "x-nullable": true}, "resume": {"title": "Resume", "type": "string", "readOnly": true, "x-nullable": true, "format": "uri"}, "cover_letter": {"title": "Cover letter", "type": "string", "readOnly": true, "x-nullable": true, "format": "uri"}, "portfolio_url": {"title": "Portfolio url", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "linkedin_url": {"title": "Linkedin url", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "github_url": {"title": "Github url", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "cover_letter_text": {"title": "Cover letter text", "description": "Cover letter content", "type": "string", "x-nullable": true}, "why_interested": {"title": "Why interested", "description": "Why are you interested in this position?", "type": "string", "x-nullable": true}, "availability_date": {"title": "Availability date", "description": "When can you start?", "type": "string", "format": "date", "x-nullable": true}, "source": {"title": "Source", "type": "string", "enum": ["website", "job_board", "referral", "linkedin", "indeed", "glassdoor", "other"], "x-nullable": true}, "utm_source": {"title": "Utm source", "type": "string", "maxLength": 100, "x-nullable": true}, "utm_medium": {"title": "Utm medium", "type": "string", "maxLength": 100, "x-nullable": true}, "utm_campaign": {"title": "Utm campaign", "type": "string", "maxLength": 100, "x-nullable": true}, "utm_refcode": {"title": "Utm refcode", "type": "string", "maxLength": 100, "x-nullable": true}, "visitor_token": {"title": "Visitor token", "description": "Visitor tracking token (dashboard only)", "type": "string", "maxLength": 64, "x-nullable": true}}}}}