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.
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 byPOST /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.
Authorization: Bearer <YOUR_API_TOKEN> Content-Type: application/json Accept: application/json
Standard Response Envelopes
Every response is returned in structured JSON format:
{
"success": true,
"data": { ... },
"message": "Operation completed successfully"
}
{
"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.
Authenticates user credentials and returns a Bearer session token (tok_...), company information, brand access list, and permissions.
| Field | Type | Description |
|---|---|---|
| email* | string | User email address |
| password* | string | Plain-text user password |
| company_id | integer | Optional target company ID if user belongs to multiple companies |
{
"success": true,
"token": "tok_9b2e84f1a23c09e8471b",
"user": {
"id": 1,
"name": "Alex Mercer",
"email": "alex@studio.com",
"role": "admin"
},
"company": {
"id": 1,
"name": "Lumina Creative Studio"
}
}
Terminates the user's active session and immediately invalidates the Bearer token in the database.
{
"success": true,
"message": "Logged out successfully"
}
Returns identity details for the authenticated user, role, active company, and permission flags.
{
"success": true,
"data": {
"id": 1,
"name": "Alex Mercer",
"email": "alex@studio.com",
"role": "admin",
"company_id": 1,
"company_name": "Lumina Creative Studio"
}
}
Switches the active company context for the authenticated user and updates the token scope.
| Field | Type | Description |
|---|---|---|
| company_id* | integer | Target company ID owned/joined by user |
{
"success": true,
"message": "Switched to company Lumina Productions",
"active_company_id": 2
}
Updates name, email, or phone of the currently logged in user profile.
| Field | Type | Description |
|---|---|---|
| name* | string | User's full name |
| email* | string | User's login email |
| phone | string | Contact mobile number |
{
"success": true,
"message": "Profile updated successfully",
"data": { "id": 1, "name": "Alex Mercer", "email": "alex@studio.com" }
}
Changes the authenticated user's password with current password verification.
| Field | Type | Description |
|---|---|---|
| current_password* | string | Existing user password |
| new_password* | string | New password (min 6 chars) |
{
"success": true,
"message": "Password changed successfully"
}
Dashboard & Owner Command Center
High-level KPIs, monthly financial metrics, pipeline health, and upcoming schedule.
Fetches operational counts, monthly revenue collected, pending client receivables, upcoming shoot schedules, pending deliverables, and overdue followups.
| Param | Type | Description |
|---|---|---|
| brand_id | integer | Filter by studio brand identity |
{
"success": true,
"data": {
"kpis": {
"active_projects": 14,
"pending_leads": 9,
"monthly_revenue": 385000,
"outstanding_receivables": 142000
},
"upcoming_shoots": [ ... ],
"pending_followups": [ ... ],
"recent_activities": [ ... ]
}
}
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.
{
"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.
/shoot-mode/status)
Returns the real-time status of tethered auto-ingest shooting, active camera device identifier, active project ID, and mode state.
{
"success": true,
"data": {
"isActive": true,
"mode": "tethered_auto_ingest",
"activeCameraId": "cam_sony_a7m5",
"activeProjectId": 1024,
"status": "ACTIVE"
}
}
/shoot-mode/toggle)
Pauses or resumes tethered auto-ingest shooting. Also accepts optional active camera and project reassignment.
| Field | Type | Description |
|---|---|---|
| active* | boolean | Set false to pause, true to resume |
| cameraId | string | Optional active camera ID switch (e.g. cam_sony_a7m5) |
| projectId | integer | Optional active project ID switch |
{
"success": true,
"data": {
"status": "PAUSED"
}
}
/ingest/progress)
Returns aggregated real-time upload statistics, in-flight progress, active file sync status with byte counters, and remaining buffer transfer estimations.
{
"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"
}
}
}
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).
{
"success": true,
"data": {
"retriedCount": 1,
"status": "RETRYING"
}
}
/ingest/queue)
Retrieves a paginated list of items currently in the upload queue with error messages, camera models, format, and individual progress.
| Param | Type | Description |
|---|---|---|
| status | string | Filter by: UPLOADING, UPLOADED, QUEUED, FAILED |
| limit | integer | Page limit (default: 33) |
| offset | integer | Starting offset (default: 0) |
{
"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)"
}
]
}
}
/cameras)
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}.
{
"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
}
]
}
/dashboard/pulse)
Aggregated daily operational counters for the mobile header pulse row: active shoots today, scheduled events, client follow-ups due, and pending tasks.
{
"success": true,
"data": {
"date": "2026-10-09",
"shootsCount": 1,
"eventsCount": 0,
"followUpsCount": 0,
"tasksDueCount": 2
}
}
/camera-sessions)
Historical timeline of camera capture sessions with linked project ID, sync status, and transferred vs failed file tallies.
{
"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 (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.
Retrieves all sales leads with pagination, search by name/phone/email, status filter (new, contacted, quoted, won, lost), and brand scoping.
| Param | Type | Description |
|---|---|---|
| status | string | Filter by: new, contacted, quoted, won, lost |
| search | string | Search term for lead name, phone or email |
| page | integer | Page number (default: 1) |
{
"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
}
Creates a new lead in the pipeline, creates initial timeline activity, and triggers notification.
| Field | Type | Description |
|---|---|---|
| name* | string | Lead or couple name |
| phone* | string | Contact mobile number |
| string | Email address | |
| lead_source_id | integer | ID from /api/v1/lead-sources |
| estimated_budget | numeric | Estimated customer budget |
| notes | string | Event requirements / notes |
{
"success": true,
"message": "Lead created successfully",
"data": {
"id": 13,
"name": "Karan & Simran Sangeet",
"status": "new"
}
}
Returns leads grouped by pipeline stage columns (new, contacted, quoted, won, lost) for immediate UI board rendering.
{
"success": true,
"data": {
"columns": {
"new": [ ... ],
"contacted": [ ... ],
"quoted": [ ... ],
"won": [ ... ],
"lost": [ ... ]
}
}
}
Triggered when a user drags a card on the Kanban board. Updates status and logs activity timestamp.
| Field | Type | Description |
|---|---|---|
| lead_id* | integer | ID of lead to move |
| status* | string | New status: new, contacted, quoted, won, lost |
{
"success": true,
"message": "Lead moved to quoted stage",
"data": { "id": 12, "status": "quoted" }
}
Updates existing lead information. Also accepts POST /api/v1/leads/{id} if standard form POST is used.
| Param | Type | Description |
|---|---|---|
| id* | integer | Lead ID |
{
"success": true,
"message": "Lead updated successfully",
"data": { "id": 12, "name": "Rohit & Priya Luxury Wedding" }
}
Deletes the lead record and its associated followups and activities. Also supports POST /api/v1/leads/{id}/delete.
{
"success": true,
"message": "Lead deleted successfully"
}
Automatically creates a permanent Client record using lead details, sets lead status to won, and returns the new client_id.
{
"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.
Fetches all studio projects with total budget, amount billed, amount received, balance due, shoot dates, and delivery status.
| Param | Type | Description |
|---|---|---|
| status | string | upcoming, in_progress, completed, delivered, closed |
| client_id | integer | Filter by specific client ID |
| brand_id | integer | Filter by brand identity |
{
"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
}
]
}
Creates a new project record, sets billing amounts, and optionally auto-generates event day slots.
| Field | Type | Description |
|---|---|---|
| name* | string | Project title (e.g. Mehta Wedding) |
| client_id* | integer | ID of linked client |
| brand_id* | integer | Studio brand ID |
| project_type_id* | integer | ID from /api/v1/project-types |
| start_date* | date | Project start date (YYYY-MM-DD) |
| end_date | date | Project end date (YYYY-MM-DD) |
| total_amount | numeric | Agreed project contract value |
{
"success": true,
"message": "Project created successfully",
"data": {
"id": 6,
"project_code": "PRJ-2026-006",
"name": "Mehta Destination Wedding"
}
}
Updates project information, dates, status, or venue notes.
{
"success": true,
"message": "Project updated successfully"
}
Deletes the project. (Note: Blocked if invoices or payment transactions exist, preserving financial ledger audit trails).
{
"success": true,
"message": "Project deleted successfully"
}
Adds a shoot function day to the project schedule with start/end times and venue location.
| Field | Type | Description |
|---|---|---|
| title* | string | Event name (e.g. Haldi Ceremony) |
| event_date* | date | Function date (YYYY-MM-DD) |
| start_time | time | Start time (HH:MM) |
| end_time | time | End time (HH:MM) |
| venue | string | Hotel / Resort / Venue name |
{
"success": true,
"message": "Event day added successfully",
"event_id": 18
}
Assigns a team member or freelancer to a specific project or event date. Checks for double-booking conflicts across other shoots automatically.
| Field | Type | Description |
|---|---|---|
| team_member_id* | integer | ID from /api/v1/team-members |
| project_event_id | integer | Specific function/day ID or null for whole project |
| role_id* | integer | Role (Candid Photographer, Drone Pilot, etc.) |
| payout_amount | numeric | Agreed payout rate for this assignment |
{
"success": true,
"message": "Crew member assigned successfully",
"assignment_id": 29
}
Verifies if a photographer or cinematographer is already booked on the target date before assigning them.
{
"success": true,
"has_conflict": false,
"message": "Team member is available on this date"
}
Performs rigorous closure check: Deliverables delivered, full payment collected (or approved override), team payouts cleared, and closes project.
{
"success": true,
"message": "Project closed successfully",
"status": "closed"
}
Deliverables, Revisions & Editors
Track teaser, trailer, full film, and photo album delivery cycles with revision histories.
Lists deliverables across all active projects, assigned editors, due dates, review links, and revision counts.
{
"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
}
]
}
Creates a deliverable record for a project and assigns an editor.
| Field | Type | Description |
|---|---|---|
| title* | string | Deliverable title (e.g. Wedding Highlight Film) |
| type* | string | video, photo, album, reel |
| due_date | date | Expected delivery deadline (YYYY-MM-DD) |
| editor_id | integer | Assigned editor ID |
{
"success": true,
"message": "Deliverable created successfully",
"data": { "id": 15, "title": "Wedding Highlight Film" }
}
Logs a revision round with client feedback comments, preview video link, and approval status.
{
"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.
Fetches quotations, version numbers (v1, v2), status (draft, sent, approved, rejected, converted), and totals.
{
"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"
}
]
}
Clones quotation items and terms into an incremented version number, keeping quotation negotiation history intact.
{
"success": true,
"message": "Quotation version 2 created successfully",
"new_quotation_id": 11,
"version": 2
}
Generates a tax invoice with line items, GST rate calculations, and due dates.
| Field | Type | Description |
|---|---|---|
| client_id* | integer | Client ID |
| project_id | integer | Linked project ID |
| invoice_date* | date | Date of invoice |
| due_date* | date | Payment due date |
| items* | array | Array of {description, quantity, unit_price, tax_percent} |
{
"success": true,
"message": "Invoice created successfully",
"data": {
"id": 22,
"invoice_number": "INV-2026-022",
"grand_total": 118000
}
}
Records a client payment against an invoice or project. Automatically updates invoice status to paid or partially_paid.
| Field | Type | Description |
|---|---|---|
| invoice_id* | integer | Target invoice ID |
| payment_account_id* | integer | Account ID (Bank, Cash, UPI) |
| amount* | numeric | Received amount |
| payment_method* | string | bank_transfer, upi, cash, cheque |
| transaction_reference | string | UTR or Cheque number |
{
"success": true,
"message": "Payment recorded successfully",
"data": {
"payment_id": 35,
"invoice_id": 22,
"balance_remaining": 0,
"invoice_status": "paid"
}
}
In financial accounting, payment records must NEVER be hard-deleted. This endpoint performs an audit-compliant reversal, restoring invoice balances while preserving ledger logs.
| Field | Type | Description |
|---|---|---|
| reason* | string | Reason for payment reversal (e.g. Cheque dishonour / Wrong entry) |
{
"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.
Records an operational or project-level expense with category tagging and receipt attachment.
| Field | Type | Description |
|---|---|---|
| expense_category_id* | integer | Category ID (Travel, Food, Gear Rental, Studio Rent) |
| amount* | numeric | Expense amount |
| payment_account_id* | integer | Account used to pay expense |
| project_id | integer | Optional project ID if linked to a shoot |
| description | string | Expense details |
{
"success": true,
"message": "Expense recorded successfully",
"expense_id": 51
}
Updates cheque lifecycle status: cleared, bounced, or cancelled. When cleared, updates bank balance automatically.
{
"success": true,
"message": "Cheque marked as cleared",
"status": "cleared"
}
Accounting Ledgers & Reports
Complete double-entry overview, Profit & Loss statements, Balance Sheet, and Receivables.
Summarizes total revenue billed, actual cash collected, total operating expenses, net profit, and total client receivables.
{
"success": true,
"data": {
"total_invoiced": 1250000,
"total_collected": 1050000,
"total_expenses": 420000,
"net_profit": 630000,
"accounts_receivable": 200000,
"accounts_payable": 45000
}
}
Generates P&L statement categorized by revenue streams, project direct costs, crew costs, gear maintenance, and studio overheads.
| Param | Type | Description |
|---|---|---|
| start_date | date | Period start (YYYY-MM-DD) |
| end_date | date | Period end (YYYY-MM-DD) |
{
"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.
Lists all system operator accounts, assigned roles, status, and last login timestamps.
{
"success": true,
"data": [
{
"id": 1,
"name": "Super Admin",
"email": "admin@studio.com",
"role": "admin",
"status": "active"
}
]
}
Generates a permanent API Key (sk_live_...) for server-to-server integrations or mobile applications.
| Field | Type | Description |
|---|---|---|
| name* | string | Label (e.g. Flutter Mobile App / Zapier Webhook) |
{
"success": true,
"message": "API key generated successfully",
"data": {
"id": 4,
"name": "Flutter Mobile App",
"key": "sk_live_8f39a04cd821e902bca7"
}
}