StudioSetu API v1.0 REST

Return to Studio

StudioSetu REST API Documentation

Welcome to the comprehensive StudioSetu developer reference. This API powers every workflow in the application: Multi-company context, CRM Leads & Kanban, Production scheduling, Crew assignments, Gear inventory, Invoicing, Financial ledgers, Reports, and System configuration.

BASE URL: https://studio.qbms.in/admin/api/v1

Authentication & Headers

Authenticate your API requests using either User Session Tokens or Company API Keys.

Bearer Token Types

All API requests sent to /api/v1/* require the standard Authorization header:

  • User Session Token (tok_...): Generated by POST /api/v1/auth/login. Scoped to the logged-in user's role permissions, active company, and brand restrictions.
  • Company API Key (sk_live_...): Generated under Settings → API Keys. Scoped directly to that company with full programmatic access.
Required Request Headers
Authorization: Bearer <YOUR_API_TOKEN>
Content-Type: application/json
Accept: application/json

Standard Response Envelopes

Every response is returned in structured JSON format:

Success Response (200 / 201)
{
  "success": true,
  "data": { ... },
  "message": "Operation completed successfully"
}
Error Response (400 / 401 / 403 / 404 / 422)
{
  "success": false,
  "error": "Detailed validation or permission error message",
  "status": 422
}

Authentication & User Profile

Login, retrieve user details, switch companies, update profile, and change password.

POST /api/v1/auth/login User Authentication & Token Generation

Authenticates user credentials and returns a Bearer session token (tok_...), company information, brand access list, and permissions.

Request Body (JSON)
FieldTypeDescription
email*stringUser email address
password*stringPlain-text user password
company_idintegerOptional target company ID if user belongs to multiple companies
200 OK Response
{
  "success": true,
  "token": "tok_9b2e84f1a23c09e8471b",
  "user": {
    "id": 1,
    "name": "Alex Mercer",
    "email": "alex@studio.com",
    "role": "admin"
  },
  "company": {
    "id": 1,
    "name": "Lumina Creative Studio"
  }
}
POST /api/v1/auth/logout Invalidate Current Session Token
Auth

Terminates the user's active session and immediately invalidates the Bearer token in the database.

200 OK Response
{
  "success": true,
  "message": "Logged out successfully"
}
GET /api/v1/auth/me Get Current Authenticated User & Permissions
Auth

Returns identity details for the authenticated user, role, active company, and permission flags.

200 OK Response
{
  "success": true,
  "data": {
    "id": 1,
    "name": "Alex Mercer",
    "email": "alex@studio.com",
    "role": "admin",
    "company_id": 1,
    "company_name": "Lumina Creative Studio"
  }
}
POST /api/v1/auth/switch-company Switch Active Tenant Company
Auth

Switches the active company context for the authenticated user and updates the token scope.

Request Body (JSON)
FieldTypeDescription
company_id*integerTarget company ID owned/joined by user
200 OK Response
{
  "success": true,
  "message": "Switched to company Lumina Productions",
  "active_company_id": 2
}
PUT /api/v1/profile Update User Profile Info
Auth

Updates name, email, or phone of the currently logged in user profile.

Request Body (JSON)
FieldTypeDescription
name*stringUser's full name
email*stringUser's login email
phonestringContact mobile number
200 OK Response
{
  "success": true,
  "message": "Profile updated successfully",
  "data": { "id": 1, "name": "Alex Mercer", "email": "alex@studio.com" }
}
POST /api/v1/profile/password Update User Password
Auth

Changes the authenticated user's password with current password verification.

Request Body (JSON)
FieldTypeDescription
current_password*stringExisting user password
new_password*stringNew password (min 6 chars)
200 OK Response
{
  "success": true,
  "message": "Password changed successfully"
}

Dashboard & Owner Command Center

High-level KPIs, monthly financial metrics, pipeline health, and upcoming schedule.

GET /api/v1/dashboard Studio Operation Dashboard KPIs
Auth

Fetches operational counts, monthly revenue collected, pending client receivables, upcoming shoot schedules, pending deliverables, and overdue followups.

Query Parameters (Optional)
ParamTypeDescription
brand_idintegerFilter by studio brand identity
200 OK Response
{
  "success": true,
  "data": {
    "kpis": {
      "active_projects": 14,
      "pending_leads": 9,
      "monthly_revenue": 385000,
      "outstanding_receivables": 142000
    },
    "upcoming_shoots": [ ... ],
    "pending_followups": [ ... ],
    "recent_activities": [ ... ]
  }
}
GET /api/v1/owner-command-center Executive Financial Command Center
Owner/Admin

Proprietary owner metrics: Total Net Profit, Cash in Bank vs Cash in Hand, Lead-to-Conversion ratio, Top 5 Highest Grossing Clients, and Outstanding Payables.

200 OK Response
{
  "success": true,
  "data": {
    "financials": {
      "net_profit": 218500,
      "total_cash": 450000,
      "lead_conversion_rate": "38.5%"
    },
    "top_clients": [ ... ],
    "top_projects": [ ... ]
  }
}

StudioSetu Mobile Dashboard & Tethered Studio

Complete backend specification for Figma mobile interface (node-id=6-515): Tethered shoot mode, real-time ingest progress, live queue, camera cards, sessions, and operational pulse.

GET /api/v1/shoot-mode/status Tethered Shoot Mode Status (Alias: /shoot-mode/status)
Auth

Returns the real-time status of tethered auto-ingest shooting, active camera device identifier, active project ID, and mode state.

200 OK Response
{
  "success": true,
  "data": {
    "isActive": true,
    "mode": "tethered_auto_ingest",
    "activeCameraId": "cam_sony_a7m5",
    "activeProjectId": 1024,
    "status": "ACTIVE"
  }
}
POST /api/v1/shoot-mode/toggle Pause / Resume Tethered Shooting (Alias: /shoot-mode/toggle)
Auth

Pauses or resumes tethered auto-ingest shooting. Also accepts optional active camera and project reassignment.

Request Body (JSON)
FieldTypeDescription
active*booleanSet false to pause, true to resume
cameraIdstringOptional active camera ID switch (e.g. cam_sony_a7m5)
projectIdintegerOptional active project ID switch
200 OK Response
{
  "success": true,
  "data": {
    "status": "PAUSED"
  }
}
GET /api/v1/ingest/progress Live Ingest & Upload Progress (Alias: /ingest/progress)
Auth

Returns aggregated real-time upload statistics, in-flight progress, active file sync status with byte counters, and remaining buffer transfer estimations.

200 OK Response
{
  "success": true,
  "data": {
    "percentage": 82,
    "totalCount": 148,
    "uploadedCount": 121,
    "inFlightCount": 4,
    "pendingCount": 27,
    "failedCount": 2,
    "currentFile": {
      "id": "file_1045",
      "fileName": "DSC_1045.ARW",
      "format": "RAW",
      "progressPercent": 72,
      "transferredBytes": 47185920,
      "totalBytes": 65011712,
      "estimatedRemainingSeconds": 120
    },
    "storage": {
      "usedBytes": 5583457484,
      "totalBytes": 8375186227,
      "usedFormatted": "5.2 GB",
      "totalFormatted": "7.8 GB"
    }
  }
}
POST /api/v1/ingest/pause ยท resume ยท retry Upload Queue Controls
Auth

Comprehensive controls for the background ingest daemon:

  • POST /ingest/pause: Pauses the active upload queue.
  • POST /ingest/resume: Resumes the paused upload queue.
  • POST /ingest/retry: Retries failed files (accepts optional {"fileIds": ["file_1041"]} array; empty retries all).
Retry Response Example
{
  "success": true,
  "data": {
    "retriedCount": 1,
    "status": "RETRYING"
  }
}
GET /api/v1/ingest/queue Live Upload Queue Items (Alias: /ingest/queue)
Auth

Retrieves a paginated list of items currently in the upload queue with error messages, camera models, format, and individual progress.

Query Parameters (Optional)
ParamTypeDescription
statusstringFilter by: UPLOADING, UPLOADED, QUEUED, FAILED
limitintegerPage limit (default: 33)
offsetintegerStarting offset (default: 0)
200 OK Response
{
  "success": true,
  "data": {
    "total": 33,
    "items": [
      {
        "id": "file_1045",
        "fileName": "DSC_1045.ARW",
        "format": "RAW",
        "sizeBytes": 65431142,
        "sizeFormatted": "62.4MB",
        "cameraModel": "Sony A7M5",
        "status": "UPLOADING",
        "progressPercent": 72
      },
      {
        "id": "file_1044",
        "fileName": "DSC_1044.ARW",
        "format": "RAW",
        "sizeBytes": 60922265,
        "sizeFormatted": "58.1MB",
        "status": "UPLOADED",
        "completedAt": "2026-10-09T23:20:00Z"
      },
      {
        "id": "file_1046",
        "fileName": "DSC_1046_PREV.JPG",
        "format": "JPG",
        "sizeBytes": 8808038,
        "sizeFormatted": "8.4MB",
        "status": "QUEUED",
        "statusNote": "Waiting in buffer"
      },
      {
        "id": "file_1041",
        "fileName": "DSC_1041.ARW",
        "format": "RAW",
        "sizeBytes": 64100291,
        "status": "FAILED",
        "errorCode": 406,
        "errorMessage": "Checksum mismatch (406)"
      }
    ]
  }
}
GET /api/v1/cameras Connected Cameras & Cards (Alias: /cameras)
Auth

Returns the status of connected cameras, tether protocols (Wi-Fi PTP/IP, USB-C Direct), card folder paths, pending file buffers, and battery levels.

Toggle sync via POST /api/v1/cameras/{id}/toggle with body {"enabled": true}.

200 OK Response
{
  "success": true,
  "data": [
    {
      "id": "cam_sony_a7m5",
      "name": "Sony A7M5",
      "protocol": "Wi-Fi โ€ข PTP/IP",
      "folderPath": "DCIM/101MSDCF",
      "newFilesCount": 12,
      "pendingFilesCount": 2,
      "isEnabled": true,
      "batteryLevel": 88
    },
    {
      "id": "cam_sony_fx3",
      "name": "Sony FX3",
      "protocol": "USB-C โ€ข Direct",
      "folderPath": "PRIVATE/M4ROOT",
      "newFilesCount": 0,
      "pendingFilesCount": 0,
      "isEnabled": false,
      "batteryLevel": 95
    }
  ]
}
GET /api/v1/dashboard/pulse Dashboard Operational Pulse (Alias: /dashboard/pulse)
Auth

Aggregated daily operational counters for the mobile header pulse row: active shoots today, scheduled events, client follow-ups due, and pending tasks.

200 OK Response
{
  "success": true,
  "data": {
    "date": "2026-10-09",
    "shootsCount": 1,
    "eventsCount": 0,
    "followUpsCount": 0,
    "tasksDueCount": 2
  }
}
GET /api/v1/camera-sessions Recent Camera Sessions & History (Alias: /camera-sessions)
Auth

Historical timeline of camera capture sessions with linked project ID, sync status, and transferred vs failed file tallies.

200 OK Response
{
  "success": true,
  "data": [
    {
      "id": 1,
      "title": "Sony A7M5 โ€ข Lumen Campaign",
      "timeRange": "14:30",
      "status": "Live",
      "uploadedCount": 121,
      "failedCount": 2,
      "projectId": 7
    },
    {
      "id": 2,
      "title": "Sony FX3 โ€ข Morning B-Roll",
      "timeRange": "10:15 - 12:45",
      "status": "Done",
      "uploadedCount": 42,
      "failedCount": 0,
      "projectId": 7
    },
    {
      "id": 3,
      "title": "Canon R5 โ€ข Studio Test 01",
      "timeRange": "Yesterday",
      "status": "Done",
      "uploadedCount": 80,
      "failedCount": 0,
      "projectId": 4
    }
  ]
}
UI Component to API Data Bindings Reference
UI Component (Figma node-id=6-515) Data Source Endpoint Existing Model & Binding Rule
Active Project Hero Card GET /api/v1/projects / GET /api/v1/projects/{id} ProjectSummary.name, projectNo, clientName, shootDate, status
All Projects / Search GET /api/v1/projects?search=... ProjectsListViewModel.uiState.filteredProjects
Operational Pulse: Shoots GET /api/v1/dashboard/pulse Derived dynamically from projects with active shooting status (ProjectSummary.status == "Shooting")
Operational Pulse: Tasks GET /api/v1/dashboard/pulse (or /api/v1/tasks) Derived from existing tasks API: TaskDto count due today
Operational Pulse: Follow-ups GET /api/v1/dashboard/pulse (or /api/v1/followups) Derived from existing CRM follow-ups API: FollowUpDto due today
Tethered Shoot Mode Toggle GET /shoot-mode/status & POST /shoot-mode/toggle Active auto-ingest status, camera binding, and real-time pause/resume
Live Upload Sync Progress Bar GET /ingest/progress & GET /ingest/queue Percentage counter, byte counts, in-flight file states, and retry buffer
Connected Devices Card GET /cameras & POST /cameras/{id}/toggle Camera battery status, folder synchronization paths, and enable/disable toggle

CRM - Leads & Kanban Board

Manage sales pipeline, drag-and-drop kanban moves, track interactions, and convert leads to clients.

GET /api/v1/leads List Leads with Filters & Pagination
Auth

Retrieves all sales leads with pagination, search by name/phone/email, status filter (new, contacted, quoted, won, lost), and brand scoping.

Query Parameters
ParamTypeDescription
statusstringFilter by: new, contacted, quoted, won, lost
searchstringSearch term for lead name, phone or email
pageintegerPage number (default: 1)
200 OK Response
{
  "success": true,
  "data": [
    {
      "id": 12,
      "name": "Rohit & Priya Wedding",
      "phone": "+91 98765 43210",
      "email": "rohit@example.com",
      "status": "contacted",
      "lead_source_id": 2,
      "estimated_budget": 150000,
      "created_at": "2026-10-08 14:20:00"
    }
  ],
  "total": 45,
  "page": 1
}
POST /api/v1/leads Create New Sales Lead
Auth

Creates a new lead in the pipeline, creates initial timeline activity, and triggers notification.

Request Body (JSON)
FieldTypeDescription
name*stringLead or couple name
phone*stringContact mobile number
emailstringEmail address
lead_source_idintegerID from /api/v1/lead-sources
estimated_budgetnumericEstimated customer budget
notesstringEvent requirements / notes
201 Created Response
{
  "success": true,
  "message": "Lead created successfully",
  "data": {
    "id": 13,
    "name": "Karan & Simran Sangeet",
    "status": "new"
  }
}
GET /api/v1/leads/kanban Get Grouped Kanban Pipeline Columns
Auth

Returns leads grouped by pipeline stage columns (new, contacted, quoted, won, lost) for immediate UI board rendering.

200 OK Response
{
  "success": true,
  "data": {
    "columns": {
      "new": [ ... ],
      "contacted": [ ... ],
      "quoted": [ ... ],
      "won": [ ... ],
      "lost": [ ... ]
    }
  }
}
POST /api/v1/leads/kanban/move Move Lead Between Kanban Columns
Auth

Triggered when a user drags a card on the Kanban board. Updates status and logs activity timestamp.

Request Body (JSON)
FieldTypeDescription
lead_id*integerID of lead to move
status*stringNew status: new, contacted, quoted, won, lost
200 OK Response
{
  "success": true,
  "message": "Lead moved to quoted stage",
  "data": { "id": 12, "status": "quoted" }
}
PUT /api/v1/leads/{id} Edit Lead Details (Edit Button)
Auth

Updates existing lead information. Also accepts POST /api/v1/leads/{id} if standard form POST is used.

Path Parameters
ParamTypeDescription
id*integerLead ID
200 OK Response
{
  "success": true,
  "message": "Lead updated successfully",
  "data": { "id": 12, "name": "Rohit & Priya Luxury Wedding" }
}
DELETE /api/v1/leads/{id} Delete Lead (Delete Button)
Auth

Deletes the lead record and its associated followups and activities. Also supports POST /api/v1/leads/{id}/delete.

200 OK Response
{
  "success": true,
  "message": "Lead deleted successfully"
}
POST /api/v1/leads/{id}/convert Convert Won Lead into Permanent Client
Auth

Automatically creates a permanent Client record using lead details, sets lead status to won, and returns the new client_id.

200 OK Response
{
  "success": true,
  "message": "Lead converted to Client successfully",
  "client_id": 42
}

Projects & Production Shoots

Complete lifecycle from booking, multi-day scheduling, crew assignment, conflict checks, and project closure.

GET /api/v1/projects List Projects with Filters & Financials
Auth

Fetches all studio projects with total budget, amount billed, amount received, balance due, shoot dates, and delivery status.

Query Parameters
ParamTypeDescription
statusstringupcoming, in_progress, completed, delivered, closed
client_idintegerFilter by specific client ID
brand_idintegerFilter by brand identity
200 OK Response
{
  "success": true,
  "data": [
    {
      "id": 5,
      "project_code": "PRJ-2026-005",
      "name": "Kapoor Royal Wedding",
      "client_name": "Arjun Kapoor",
      "status": "in_progress",
      "start_date": "2026-11-10",
      "end_date": "2026-11-14",
      "total_amount": 350000,
      "paid_amount": 150000,
      "due_amount": 200000
    }
  ]
}
POST /api/v1/projects Create Project with Events & Auto Days
Auth

Creates a new project record, sets billing amounts, and optionally auto-generates event day slots.

Request Body (JSON)
FieldTypeDescription
name*stringProject title (e.g. Mehta Wedding)
client_id*integerID of linked client
brand_id*integerStudio brand ID
project_type_id*integerID from /api/v1/project-types
start_date*dateProject start date (YYYY-MM-DD)
end_datedateProject end date (YYYY-MM-DD)
total_amountnumericAgreed project contract value
201 Created Response
{
  "success": true,
  "message": "Project created successfully",
  "data": {
    "id": 6,
    "project_code": "PRJ-2026-006",
    "name": "Mehta Destination Wedding"
  }
}
PUT /api/v1/projects/{id} Edit Project Details (Edit Button)
Auth

Updates project information, dates, status, or venue notes.

200 OK Response
{
  "success": true,
  "message": "Project updated successfully"
}
DELETE /api/v1/projects/{id} Delete Project (Delete Button)
Auth

Deletes the project. (Note: Blocked if invoices or payment transactions exist, preserving financial ledger audit trails).

200 OK Response
{
  "success": true,
  "message": "Project deleted successfully"
}
POST /api/v1/projects/{id}/events Add Event Day / Function (Haldi, Reception...)
Auth

Adds a shoot function day to the project schedule with start/end times and venue location.

Request Body (JSON)
FieldTypeDescription
title*stringEvent name (e.g. Haldi Ceremony)
event_date*dateFunction date (YYYY-MM-DD)
start_timetimeStart time (HH:MM)
end_timetimeEnd time (HH:MM)
venuestringHotel / Resort / Venue name
201 Created Response
{
  "success": true,
  "message": "Event day added successfully",
  "event_id": 18
}
POST /api/v1/projects/{id}/team Assign Crew Member (Photographer, Drone, Cinematographer)
Auth

Assigns a team member or freelancer to a specific project or event date. Checks for double-booking conflicts across other shoots automatically.

Request Body (JSON)
FieldTypeDescription
team_member_id*integerID from /api/v1/team-members
project_event_idintegerSpecific function/day ID or null for whole project
role_id*integerRole (Candid Photographer, Drone Pilot, etc.)
payout_amountnumericAgreed payout rate for this assignment
200 OK Response
{
  "success": true,
  "message": "Crew member assigned successfully",
  "assignment_id": 29
}
GET /api/v1/projects/{id}/team/check-conflict Pre-check Schedule Conflicts for Crew Member
Auth

Verifies if a photographer or cinematographer is already booked on the target date before assigning them.

200 OK Response
{
  "success": true,
  "has_conflict": false,
  "message": "Team member is available on this date"
}
POST /api/v1/projects/{id}/close Close Project with 4-Point Checklist Verification
Auth

Performs rigorous closure check: Deliverables delivered, full payment collected (or approved override), team payouts cleared, and closes project.

200 OK Response
{
  "success": true,
  "message": "Project closed successfully",
  "status": "closed"
}

Deliverables, Revisions & Editors

Track teaser, trailer, full film, and photo album delivery cycles with revision histories.

GET /api/v1/deliverables Global Deliverables List with Status & Deadlines
Auth

Lists deliverables across all active projects, assigned editors, due dates, review links, and revision counts.

200 OK Response
{
  "success": true,
  "data": [
    {
      "id": 14,
      "project_name": "Kapoor Wedding",
      "title": "Cinematic Teaser (1 Min)",
      "type": "video",
      "status": "review",
      "due_date": "2026-10-25",
      "assigned_editor_name": "Vikram Video Editor",
      "revision_count": 2
    }
  ]
}
POST /api/v1/projects/{projectId}/deliverables Add Deliverable Item to Project
Auth

Creates a deliverable record for a project and assigns an editor.

Request Body (JSON)
FieldTypeDescription
title*stringDeliverable title (e.g. Wedding Highlight Film)
type*stringvideo, photo, album, reel
due_datedateExpected delivery deadline (YYYY-MM-DD)
editor_idintegerAssigned editor ID
201 Created Response
{
  "success": true,
  "message": "Deliverable created successfully",
  "data": { "id": 15, "title": "Wedding Highlight Film" }
}
POST /api/v1/deliverables/{id}/revisions Add Revision / Client Feedback Round
Auth

Logs a revision round with client feedback comments, preview video link, and approval status.

201 Created Response
{
  "success": true,
  "message": "Revision round logged successfully",
  "revision_id": 8
}

Quotations, Invoices & Payments

Complete estimation costing, quotation versioning, GST invoice generation, and payment recording with reversal safety.

GET /api/v1/quotations List Quotations with Version Numbers
Auth

Fetches quotations, version numbers (v1, v2), status (draft, sent, approved, rejected, converted), and totals.

200 OK Response
{
  "success": true,
  "data": [
    {
      "id": 9,
      "quotation_number": "QUO-2026-009",
      "version": 1,
      "client_name": "Siddharth Malhotra",
      "subtotal": 200000,
      "tax_amount": 36000,
      "grand_total": 236000,
      "status": "approved"
    }
  ]
}
POST /api/v1/quotations/{id}/new-version Duplicate into New Version (e.g. v2)
Auth

Clones quotation items and terms into an incremented version number, keeping quotation negotiation history intact.

200 OK Response
{
  "success": true,
  "message": "Quotation version 2 created successfully",
  "new_quotation_id": 11,
  "version": 2
}
POST /api/v1/invoices Create GST Tax Invoice with Line Items
Auth

Generates a tax invoice with line items, GST rate calculations, and due dates.

Request Body (JSON)
FieldTypeDescription
client_id*integerClient ID
project_idintegerLinked project ID
invoice_date*dateDate of invoice
due_date*datePayment due date
items*arrayArray of {description, quantity, unit_price, tax_percent}
201 Created Response
{
  "success": true,
  "message": "Invoice created successfully",
  "data": {
    "id": 22,
    "invoice_number": "INV-2026-022",
    "grand_total": 118000
  }
}
POST /api/v1/payments Record Inward Client Payment
Auth

Records a client payment against an invoice or project. Automatically updates invoice status to paid or partially_paid.

Request Body (JSON)
FieldTypeDescription
invoice_id*integerTarget invoice ID
payment_account_id*integerAccount ID (Bank, Cash, UPI)
amount*numericReceived amount
payment_method*stringbank_transfer, upi, cash, cheque
transaction_referencestringUTR or Cheque number
201 Created Response
{
  "success": true,
  "message": "Payment recorded successfully",
  "data": {
    "payment_id": 35,
    "invoice_id": 22,
    "balance_remaining": 0,
    "invoice_status": "paid"
  }
}
POST /api/v1/payments/{id}/reverse Reverse Payment (Audit-Safe Reversal Button)
Owner/Admin

In financial accounting, payment records must NEVER be hard-deleted. This endpoint performs an audit-compliant reversal, restoring invoice balances while preserving ledger logs.

Request Body (JSON)
FieldTypeDescription
reason*stringReason for payment reversal (e.g. Cheque dishonour / Wrong entry)
200 OK Response
{
  "success": true,
  "message": "Payment reversed successfully and ledger adjusted",
  "invoice_id": 22,
  "new_balance": 118000
}

Expenses & Cheques Tracker

Track production expenses, category categorization, and post-dated cheques clearing.

POST /api/v1/expenses Record Production / Studio Expense
Auth

Records an operational or project-level expense with category tagging and receipt attachment.

Request Body (JSON)
FieldTypeDescription
expense_category_id*integerCategory ID (Travel, Food, Gear Rental, Studio Rent)
amount*numericExpense amount
payment_account_id*integerAccount used to pay expense
project_idintegerOptional project ID if linked to a shoot
descriptionstringExpense details
201 Created Response
{
  "success": true,
  "message": "Expense recorded successfully",
  "expense_id": 51
}
POST /api/v1/cheques/{id}/status Update Cheque Status (Clear / Bounce)
Auth

Updates cheque lifecycle status: cleared, bounced, or cancelled. When cleared, updates bank balance automatically.

200 OK Response
{
  "success": true,
  "message": "Cheque marked as cleared",
  "status": "cleared"
}

Accounting Ledgers & Reports

Complete double-entry overview, Profit & Loss statements, Balance Sheet, and Receivables.

GET /api/v1/accounting/overview Executive Accounting Summary
Admin

Summarizes total revenue billed, actual cash collected, total operating expenses, net profit, and total client receivables.

200 OK Response
{
  "success": true,
  "data": {
    "total_invoiced": 1250000,
    "total_collected": 1050000,
    "total_expenses": 420000,
    "net_profit": 630000,
    "accounts_receivable": 200000,
    "accounts_payable": 45000
  }
}
GET /api/v1/reports/profit-loss Profit & Loss (P&L) Statement
Admin

Generates P&L statement categorized by revenue streams, project direct costs, crew costs, gear maintenance, and studio overheads.

Query Parameters
ParamTypeDescription
start_datedatePeriod start (YYYY-MM-DD)
end_datedatePeriod end (YYYY-MM-DD)
200 OK Response
{
  "success": true,
  "data": {
    "gross_revenue": 850000,
    "cost_of_goods_sold": 220000,
    "gross_margin": 630000,
    "operating_expenses": 140000,
    "net_income": 490000
  }
}

System Settings & API Keys

Manage system users, roles, role permission matrix, API key generation, and SMTP settings.

GET /api/v1/settings/users List System Users (Admin, Manager, Accountant)
Admin

Lists all system operator accounts, assigned roles, status, and last login timestamps.

200 OK Response
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Super Admin",
      "email": "admin@studio.com",
      "role": "admin",
      "status": "active"
    }
  ]
}
POST /api/v1/settings/api-keys Generate New Company API Key
Admin

Generates a permanent API Key (sk_live_...) for server-to-server integrations or mobile applications.

Request Body (JSON)
FieldTypeDescription
name*stringLabel (e.g. Flutter Mobile App / Zapier Webhook)
201 Created Response
{
  "success": true,
  "message": "API key generated successfully",
  "data": {
    "id": 4,
    "name": "Flutter Mobile App",
    "key": "sk_live_8f39a04cd821e902bca7"
  }
}