Back to top

API Documentation

Deal Inbox

Overview

A Deal Inbox is a brand-scoped queue of deals whose tasks need attention. Each deal lands in an inbox when one of its tasks has attention_requested_at set; the inbox a task belongs to is resolved from its checklist template.

Inboxes are admin-managed: brand administrators create, rename, and delete them, and users subscribe to follow the inboxes they care about.

Root brands are seeded with two default inboxes:

  • Listing Inbox — fallback for Selling-side checklists

  • Contract Inbox — fallback for Offer/Buying-side checklists

Child brands inherit these defaults via the brand-parent walk. They can also define their own inboxes at any level of the hierarchy.

List inboxes for a brand

List inboxes for a brand
GET/brands/:brand/inboxes

Example URI

GET /brands/:brand/inboxes
URI Parameters
HideShow
brand
string (required) Example: 65607a6e-2fe2-4756-a2cb-84a55519f14c
Response  200
HideShow
Body
{
  "code": "OK",
  "data": [
    {
      "id": "604e816c-0681-443f-8b1e-f1402c95d85d",
      "brand": "2f5f8e94-58a5-4bc9-ac0f-116410fb3e99",
      "label": "Contract Inbox",
      "created_by": null,
      "listing_default": false,
      "contract_default": true,
      "created_at": 1796326633.263578,
      "deleted_at": null,
      "type": "deal_inbox"
    },
    {
      "id": "f3455aef-7d51-4aa6-8ae4-6319ed0c0628",
      "brand": "65607a6e-2fe2-4756-a2cb-84a55519f14c",
      "label": "Custom Inbox",
      "created_by": "f85b2d57-4691-4569-8734-f2e9b8d9f80b",
      "listing_default": false,
      "contract_default": false,
      "created_at": 1796326633.361012,
      "deleted_at": null,
      "type": "deal_inbox"
    },
    {
      "id": "8b2d19e5-001b-4984-a1eb-ad51b77b6065",
      "brand": "2f5f8e94-58a5-4bc9-ac0f-116410fb3e99",
      "label": "Listing Inbox",
      "created_by": null,
      "listing_default": true,
      "contract_default": false,
      "created_at": 1796326633.262561,
      "deleted_at": null,
      "type": "deal_inbox"
    }
  ],
  "info": {
    "count": 3,
    "total": 0
  }
}

Create an inbox

Create an inbox
POST/brands/:brand/inboxes

Example URI

POST /brands/:brand/inboxes
URI Parameters
HideShow
brand
string (required) Example: 65607a6e-2fe2-4756-a2cb-84a55519f14c
Request
HideShow
Body
{
  "label": "Custom Inbox"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "f3455aef-7d51-4aa6-8ae4-6319ed0c0628",
    "brand": "65607a6e-2fe2-4756-a2cb-84a55519f14c",
    "label": "Custom Inbox",
    "created_by": "f85b2d57-4691-4569-8734-f2e9b8d9f80b",
    "listing_default": false,
    "contract_default": false,
    "created_at": 1796326633.361012,
    "deleted_at": null,
    "type": "deal_inbox"
  }
}

Rename an inbox

Rename an inbox
PATCH/brands/:brand/inboxes/:inbox

Example URI

PATCH /brands/:brand/inboxes/:inbox
URI Parameters
HideShow
brand
string (required) Example: 65607a6e-2fe2-4756-a2cb-84a55519f14c
inbox
string (required) Example: f3455aef-7d51-4aa6-8ae4-6319ed0c0628
Request
HideShow
Body
{
  "label": "Renamed Inbox"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "f3455aef-7d51-4aa6-8ae4-6319ed0c0628",
    "brand": "65607a6e-2fe2-4756-a2cb-84a55519f14c",
    "label": "Renamed Inbox",
    "created_by": "f85b2d57-4691-4569-8734-f2e9b8d9f80b",
    "listing_default": false,
    "contract_default": false,
    "created_at": 1796326633.361012,
    "deleted_at": null,
    "type": "deal_inbox"
  }
}

Delete an inbox

Delete an inbox
DELETE/brands/:brand/inboxes/:inbox

Example URI

DELETE /brands/:brand/inboxes/:inbox
URI Parameters
HideShow
brand
string (required) Example: 65607a6e-2fe2-4756-a2cb-84a55519f14c
inbox
string (required) Example: f3455aef-7d51-4aa6-8ae4-6319ed0c0628
Response  204

Subscribe to an inbox

Subscribe to an inbox
PUT/brands/:brand/inboxes/:inbox/subscription

Example URI

PUT /brands/:brand/inboxes/:inbox/subscription
URI Parameters
HideShow
brand
string (required) Example: 65607a6e-2fe2-4756-a2cb-84a55519f14c
inbox
string (required) Example: f3455aef-7d51-4aa6-8ae4-6319ed0c0628
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "f3455aef-7d51-4aa6-8ae4-6319ed0c0628",
    "brand": "65607a6e-2fe2-4756-a2cb-84a55519f14c",
    "label": "Renamed Inbox",
    "created_by": "f85b2d57-4691-4569-8734-f2e9b8d9f80b",
    "listing_default": false,
    "contract_default": false,
    "created_at": 1796326633.361012,
    "deleted_at": null,
    "type": "deal_inbox"
  }
}

Unsubscribe from an inbox

Unsubscribe from an inbox
DELETE/brands/:brand/inboxes/:inbox/subscription

Example URI

DELETE /brands/:brand/inboxes/:inbox/subscription
URI Parameters
HideShow
brand
string (required) Example: 65607a6e-2fe2-4756-a2cb-84a55519f14c
inbox
string (required) Example: f3455aef-7d51-4aa6-8ae4-6319ed0c0628
Response  204

Generated by aglio on 03 Dec 2026