TeamOps
The team workspaces: finance, legal, marketing, customer success, and support. Money amounts are in cents unless noted.
Auth: all calls require a Bearer JWT plus the X-Workspace-Id header.
Finance — Invoices
/api/finance/invoicesAuth requiredList invoices.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
| vendor | string | No | — |
| category | string | No | — |
| period | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"vendor": "Acme Cloud",
"number": "INV-2041",
"amount_cents": 129900,
"category": "infrastructure",
"period": "2026-03",
"status": "unpaid",
"due": "2026-04-15"
}
]/api/finance/invoicesAuth requiredRecord an invoice.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| vendor | string | Yes | — |
| number | string | No | — |
| amount_cents | number | No | Default 0 |
| category | string | No | — |
| period | string | No | — |
| contract_id | number | No | — |
| status | string | No | Default "unpaid" |
| due | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"vendor": "Acme Cloud",
"amount_cents": 129900,
"status": "unpaid"
}Finance — Budgets
/api/finance/budgetsAuth requiredList budgets.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| owner | string | No | — |
| category | string | No | — |
| period | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"owner": "sam",
"category": "infrastructure",
"amount_cents": 500000,
"period": "2026-Q1",
"note": "Includes GPU burst budget"
}
]/api/finance/budgetsAuth requiredCreate a budget.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| owner | string | Yes | — |
| category | string | Yes | — |
| period | string | Yes | — |
| amount_cents | number | No | Default 0 |
| note | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"owner": "sam",
"category": "marketing",
"amount_cents": 250000,
"period": "2026-Q2"
}Finance — Approval Chases
/api/finance/chasesAuth requiredList approval chases on unpaid invoices.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| approver | string | No | — |
| status | string | No | — |
| invoice_id | number | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"invoice_id": 1,
"approver": "jo",
"due": "2026-04-01",
"nudges_sent": 2,
"status": "active"
}
]/api/finance/chasesAuth requiredStart an approval chase for an invoice.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| invoice_id | number | Yes | — |
| approver | string | Yes | — |
| due | string | No | — |
| nudges_sent | number | No | Default 0 |
| last_nudged_at | string | No | — |
| status | string | No | Default "active" |
Response
{
"id": 2,
"workspace_id": 1,
"invoice_id": 2,
"approver": "jo",
"status": "active"
}Finance — Month-End Close
/api/finance/closeAuth requiredList month-end close checklists.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| period | string | No | — |
| status | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"title": "March close",
"period": "2026-03",
"status": "open"
}
]/api/finance/closeAuth requiredCreate a month-end close checklist.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| period | string | Yes | — |
| status | string | No | Default "open" |
Response
{
"id": 2,
"workspace_id": 1,
"title": "April close",
"period": "2026-04",
"status": "open"
}/api/finance/close/{checklist_id}/itemsAuth requiredAdd an item to a close checklist.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| owner | string | No | — |
| done | boolean | No | Default false |
| due | string | No | — |
Response
{
"id": 5,
"workspace_id": 1,
"checklist_id": 1,
"title": "Reconcile Stripe payouts",
"owner": "sam",
"done": false,
"due": "2026-04-03"
}/api/finance/close/digestAuth requiredClose digest: per-checklist progress, open-item count, overdue items, and checklists ready to close.
Response
{
"checklists": [
{ "id": 1, "title": "March close", "period": "2026-03", "total": 8, "done": 6, "open": 2, "percent": 75, "ready_to_close": false }
],
"open_items": 2,
"overdue_items": [ ... ],
"ready_to_close": []
}Finance — Vendor Contracts
/api/finance/contractsAuth requiredList vendor contracts.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| vendor | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"vendor": "Acme Cloud",
"title": "Annual infra commit",
"amount_cents": 1200000,
"starts": "2026-01-01",
"ends": "2026-12-31"
}
]/api/finance/contractsAuth requiredRecord a vendor contract.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| vendor | string | Yes | — |
| title | string | Yes | — |
| amount_cents | number | No | Default 0 |
| category | string | No | — |
| starts | string | No | — |
| ends | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"vendor": "Beta SaaS",
"title": "Team plan",
"amount_cents": 60000
}Legal — Agreements
/api/legal/agreementsAuth requiredList agreements.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
| counterparty | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"counterparty": "Globex",
"type": "MSA",
"status": "signed",
"renewal_date": "2026-12-01",
"notice_days": 60
}
]/api/legal/agreementsAuth requiredRecord an agreement.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| counterparty | string | Yes | — |
| type | string | Yes | e.g. MSA, NDA, DPA |
| status | string | No | Default "in review" |
| renewal_date | string | No | — |
| notice_days | number | No | Default 30 |
Response
{
"id": 2,
"workspace_id": 1,
"counterparty": "Initech",
"type": "NDA",
"status": "in review",
"notice_days": 30
}Legal — Clause Library
/api/legal/clausesAuth requiredList approved clause texts.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| clause_type | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"clause_type": "limitation_of_liability",
"title": "Standard liability cap",
"body": "Liability is capped at fees paid in the prior 12 months…"
}
]/api/legal/clausesAuth requiredAdd an approved clause text.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| clause_type | string | Yes | — |
| title | string | Yes | — |
| body | string | Yes | — |
Response
{
"id": 2,
"workspace_id": 1,
"clause_type": "termination",
"title": "Termination for convenience",
"body": "Either party may terminate with 30 days notice…"
}Legal — Negotiation Playbook
/api/legal/playbookAuth requiredList negotiation playbook rules per clause type.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| clause_type | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"clause_type": "limitation_of_liability",
"must_have": "Cap at 12 months fees",
"fallback": "Cap at 24 months fees",
"walkaway": "Uncapped liability"
}
]/api/legal/playbookAuth requiredAdd a negotiation playbook rule.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| clause_type | string | Yes | — |
| must_have | string | No | — |
| fallback | string | No | — |
| walkaway | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"clause_type": "termination",
"must_have": "30-day cure period"
}Legal — Renewals
/api/legal/renewalsAuth requiredAgreements with renewal dates, with computed days until renewal and until the notice deadline.
Response
[
{
"id": 1,
"counterparty": "Globex",
"type": "MSA",
"status": "signed",
"renewal_date": "2026-12-01",
"notice_days": 60,
"days_until_renewal": 248,
"days_until_notice": 188
}
]Marketing — Campaigns
/api/marketing/campaignsAuth requiredList campaigns.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
| channel | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"name": "Spring launch",
"channel": "paid_social",
"status": "active",
"spend_cents": 45000,
"budget_cents": 100000
}
]/api/marketing/campaignsAuth requiredCreate a campaign.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | Yes | — |
| channel | string | No | — |
| status | string | No | Default "draft" |
| spend_cents | number | No | Default 0 |
| budget_cents | number | No | — |
| starts | string | No | — |
| ends | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"name": "Summer push",
"status": "draft",
"spend_cents": 0
}Marketing — Content Calendar
/api/marketing/calendarAuth requiredList content calendar items.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
| channel | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"title": "Launch announcement post",
"channel": "blog",
"status": "scheduled",
"scheduled_for": "2026-04-08T09:00:00Z"
}
]/api/marketing/calendarAuth requiredSchedule a content calendar item.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| channel | string | No | — |
| status | string | No | Default "draft" |
| scheduled_for | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"title": "Customer story: Globex",
"status": "draft"
}Marketing — Ad Sets
/api/marketing/adsetsAuth requiredList ad sets.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| channel | string | No | — |
| paused | number | No | 0 or 1 |
Response
[
{
"id": 1,
"workspace_id": 1,
"name": "Lookalike — founders",
"channel": "paid_social",
"status": "active",
"spend_cents": 45000,
"budget_cents": 100000,
"paused": false
}
]/api/marketing/adsetsAuth requiredCreate an ad set.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | Yes | — |
| channel | string | No | — |
| status | string | No | Default "active" |
| spend_cents | number | No | Default 0 |
| budget_cents | number | No | — |
| paused | boolean | No | Default false |
Response
{
"id": 2,
"workspace_id": 1,
"name": "Retargeting — pricing page",
"status": "active",
"paused": false
}Marketing — Journey Touches
/api/marketing/touchesAuth requiredList journey touches.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| journey_id | string | No | — |
| channel | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"name": "Welcome email",
"journey_id": "onboarding",
"channel": "email",
"kind": "signup",
"status": "sent"
}
]/api/marketing/touchesAuth requiredRecord a journey touch.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| channel | string | Yes | — |
| name | string | No | — |
| journey_id | string | No | — |
| kind | string | No | — |
| status | string | No | — |
| detail | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"channel": "email",
"kind": "nurture",
"status": "queued"
}/api/marketing/attributionAuth requiredAd spend by channel, in dollars.
Response
{
"paid_social": 450,
"search": 1200
}Success — Account Health
/api/success/healthAuth requiredList account health scores, lowest first.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| band | string | No | — |
| company | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"company": "Globex",
"score": 32,
"band": "at_risk"
}
]/api/success/healthAuth requiredRecord an account health score.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| company | string | Yes | — |
| score | number | No | Default 0 |
| band | string | No | Default "healthy" |
Response
{
"id": 2,
"workspace_id": 1,
"company": "Initech",
"score": 81,
"band": "healthy"
}Success — Expansion Signals
/api/success/expansionAuth requiredList expansion signals. Utilization is derived from seats when not stored.
Response
[
{
"account": "Globex",
"signal": "seat_pressure",
"detail": "92% of seats in use",
"seats_total": 100,
"seats_used": 92,
"utilization": 0.92
}
]/api/success/expansionAuth requiredRecord an expansion signal.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| account | string | Yes | — |
| signal | string | Yes | — |
| detail | string | No | Default empty |
| seats_total | number | No | Default 0 |
| seats_used | number | No | Default 0 |
| utilization | number | No | — |
Response
{
"account": "Initech",
"signal": "usage_spike",
"detail": "API calls up 3x",
"seats_total": 50,
"seats_used": 20,
"utilization": 0.4
}Success — Outreach
/api/success/outreachAuth requiredList outreach drafts and sends.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
| kind | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"kind": "qbr_invite",
"account": "Globex",
"subject": "Your Q2 business review",
"status": "sent",
"sent_at": "2026-03-25T10:00:00Z"
}
]/api/success/outreachAuth requiredCreate an outreach draft.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| kind | string | Yes | — |
| account | string | Yes | — |
| subject | string | Yes | — |
| body | string | No | Default empty |
| status | string | No | Default "draft" |
| approved_at | string | No | — |
| sent_at | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"kind": "check_in",
"account": "Initech",
"subject": "Quick check-in",
"status": "draft"
}Success — Renewal Briefs
/api/success/briefsAuth requiredList renewal briefs.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
Response
[
{
"id": 1,
"workspace_id": 1,
"account": "Globex",
"renewal_date": "2026-12-01",
"risks": "Champion left in Feb",
"expansion": "Add 50 seats",
"prep_notes": "Bring usage report"
}
]/api/success/briefsAuth requiredCreate a renewal brief.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| account | string | Yes | — |
| renewal_date | string | No | — |
| risks | string | No | Default empty |
| expansion | string | No | Default empty |
| prep_notes | string | No | Default empty |
Response
{
"id": 2,
"workspace_id": 1,
"account": "Initech",
"renewal_date": "2026-09-01",
"risks": "",
"expansion": "",
"prep_notes": ""
}Success — Ticket Patterns
/api/success/patternsAuth requiredList ticket patterns, highest volume first.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
Response
[
{
"id": 1,
"workspace_id": 1,
"name": "SSO login failures",
"pattern": "saml.*error",
"ticket_count": 14,
"sample_tickets": "SUP-101, SUP-118",
"draft": "Proactive notice drafted"
}
]/api/success/patternsAuth requiredRecord a ticket pattern.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | Yes | — |
| pattern | string | Yes | — |
| ticket_count | number | No | Default 0 |
| sample_tickets | string | No | Default empty |
| draft | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"name": "Billing confusion",
"pattern": "invoice.*question",
"ticket_count": 0
}Support — Tickets
/api/assist/ticketsAuth requiredList support tickets.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
| cluster | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"ref": "SUP-101",
"subject": "Cannot log in with SSO",
"status": "open",
"cluster": "auth"
}
]/api/assist/ticketsAuth requiredCreate a support ticket.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| subject | string | Yes | — |
| ref | string | No | — |
| body | string | No | — |
| status | string | No | Default "open" |
| cluster | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"ref": "SUP-102",
"subject": "Export times out",
"status": "open"
}Support — Answer Drafts
/api/assist/draftsAuth requiredList answer drafts.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
| cluster | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"title": "SSO login fix",
"body": "Ask the admin to re-sync the IdP…",
"cluster": "auth",
"status": "approved",
"approved": true
}
]/api/assist/draftsAuth requiredCreate an answer draft.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| body | string | No | Default empty |
| cluster | string | No | — |
| status | string | No | Default "draft" |
| approved | boolean | No | Default false |
Response
{
"id": 2,
"workspace_id": 1,
"title": "Export timeout workaround",
"status": "draft",
"approved": false
}Support — Help Passages
/api/assist/passagesAuth requiredList cited help-center passages.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
Response
[
{
"id": 1,
"workspace_id": 1,
"doc_title": "SSO setup guide",
"passage": "Enable SAML in workspace settings…",
"url": "https://help.example.com/sso"
}
]/api/assist/passagesAuth requiredAdd a cited help-center passage.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| doc_title | string | Yes | — |
| passage | string | Yes | — |
| url | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"doc_title": "Export limits",
"passage": "Exports over 100k rows run async…"
}/api/assist/queue/exportAuth requiredExport the ticket queue with the total count and export timestamp.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
Response
{
"tickets": [ ... ],
"total": 34,
"exported_at": "2026-03-28T15:00:00Z"
}