leads
6 procedures defined in packages/api/src/routers/leads.ts.
leads.getPipeline
Section titled “leads.getPipeline”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | agent (AGENT role required) | — | packages/api/src/routers/leads.ts:31 |
Input
z.object({ statusFilter: z.string().optional() })leads.getEvents
Section titled “leads.getEvents”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | agent (AGENT role required) | — | packages/api/src/routers/leads.ts:42 |
Input
z.object({ inquiryId: z.string() })leads.updateStatus
Section titled “leads.updateStatus”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | lead-status — 20 / 60s | packages/api/src/routers/leads.ts:53 |
Input
z.object({ inquiryId: z.string(), status: statusEnum, dispositionReason: dispositionEnum.optional(), notes: z.string().max(2000).optional(), })leads.addNote
Section titled “leads.addNote”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | lead-note — 30 / 60s | packages/api/src/routers/leads.ts:76 |
Input
z.object({ inquiryId: z.string(), text: z.string().min(1).max(2000), })leads.logTouch
Section titled “leads.logTouch”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | lead-touch — 30 / 60s | packages/api/src/routers/leads.ts:88 |
Input
z.object({ inquiryId: z.string(), type: z.enum(['OUTBOUND_CALL', 'INBOUND_EMAIL']), notes: z.string().max(2000).optional(), })leads.assign
Section titled “leads.assign”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | lead-assign — 20 / 60s | packages/api/src/routers/leads.ts:107 |
Input
z.object({ inquiryId: z.string(), assigneeId: z.string(), })