{
 "info": {
  "name": "Dream Command Center API v1",
  "description": "Set the token variable to your API token (Admin > API access) and org to one of your org ids (GET /orgs). Every answer is JSON with ok; errors carry error.code and error.status. Docs: https://health.dream.cloud/docs/api/",
  "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
 },
 "auth": {
  "type": "bearer",
  "bearer": [
   {
    "key": "token",
    "value": "{{token}}",
    "type": "string"
   }
  ]
 },
 "variable": [
  {
   "key": "baseUrl",
   "value": "https://health.dream.cloud/v1"
  },
  {
   "key": "token",
   "value": ""
  },
  {
   "key": "org",
   "value": "12"
  }
 ],
 "item": [
  {
   "name": "Your token",
   "item": [
    {
     "name": "The calling token: its scopes, orgs, expiry and your plan's limits",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/me",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "me"
       ],
       "query": []
      },
      "description": "No scope needed"
     }
    }
   ]
  },
  {
   "name": "Orgs",
   "item": [
    {
     "name": "Connected orgs with their connection, monitoring and latest review; with id, one org and its planning answers",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/orgs",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "orgs"
       ],
       "query": [
        {
         "key": "id",
         "value": "FND-12",
         "description": "One org",
         "disabled": true
        }
       ]
      },
      "description": "Scope: orgs:read"
     }
    },
    {
     "name": "Update an org's five planning answers",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"planning\",\n  \"org\": {{org}}\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/orgs",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "orgs"
       ]
      },
      "description": "Scope: orgs:write"
     }
    }
   ]
  },
  {
   "name": "Org Health",
   "item": [
    {
     "name": "Latest Org Health Index, grade and areas, the trend, what the quick fixes and your decisions would reach, and the saved plan",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/health?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "health"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        }
       ]
      },
      "description": "Scope: health:read"
     }
    }
   ]
  },
  {
   "name": "Deploy gate",
   "item": [
    {
     "name": "Pass or fail against your thresholds, with the reasons: for deploy pipelines",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/gate?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "gate"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        },
        {
         "key": "min_grade",
         "value": "C",
         "description": "Lowest acceptable grade",
         "disabled": true
        },
        {
         "key": "min_index",
         "value": "70",
         "description": "Lowest acceptable Org Health Index (0 to 100)",
         "disabled": true
        },
        {
         "key": "max_critical",
         "value": "0",
         "description": "Most open critical issues allowed",
         "disabled": true
        },
        {
         "key": "max_new_critical",
         "value": "0",
         "description": "Most critical issues opened by the latest review or in the last 24 hours",
         "disabled": true
        },
        {
         "key": "max_drop",
         "value": "5",
         "description": "Largest allowed fall of the Index since the previous review",
         "disabled": true
        }
       ]
      },
      "description": "Scope: health:read"
     }
    }
   ]
  },
  {
   "name": "Reviews",
   "item": [
    {
     "name": "Reviews, newest first; with id, one review with its area scores and links",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/reviews",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "reviews"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Only this org (from GET /v1/orgs)",
         "disabled": true
        },
        {
         "key": "id",
         "value": "FND-12",
         "description": "One review",
         "disabled": true
        },
        {
         "key": "cursor",
         "value": "",
         "description": "next_cursor from the previous page",
         "disabled": true
        },
        {
         "key": "limit",
         "value": "50",
         "description": "Items per page, 1 to 200 (default 50)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: reviews:read"
     }
    },
    {
     "name": "Start an Org Health Review; it runs in the background (poll GET /v1/reviews?org=)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"start\",\n  \"org\": {{org}}\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/reviews",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "reviews"
       ]
      },
      "description": "Scope: reviews:run"
     }
    }
   ]
  },
  {
   "name": "Checks of a review",
   "item": [
    {
     "name": "The checks of a review with value, status, score, weight and how it gets fixed",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/checks?review=101",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "checks"
       ],
       "query": [
        {
         "key": "review",
         "value": "101",
         "description": "Review id"
        },
        {
         "key": "status",
         "value": "",
         "description": "Only this status",
         "disabled": true
        },
        {
         "key": "include_items",
         "value": "",
         "description": "Add the affected items (needs issues:items)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: reviews:read"
     }
    }
   ]
  },
  {
   "name": "Review documents",
   "item": [
    {
     "name": "A finished review's Executive Brief or Full Review: as text in the answer (the Full Review includes its commentary), or as a PDF download link that works for 15 minutes",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/documents?review=165",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "documents"
       ],
       "query": [
        {
         "key": "review",
         "value": "165",
         "description": "Review id (from GET /v1/reviews)"
        },
        {
         "key": "type",
         "value": "",
         "description": "Which document (default brief)",
         "disabled": true
        },
        {
         "key": "format",
         "value": "",
         "description": "text (default) or pdf",
         "disabled": true
        }
       ]
      },
      "description": "Scope: reviews:read"
     }
    }
   ]
  },
  {
   "name": "Issues",
   "item": [
    {
     "name": "Findings (FND-) and alerts (ALR-); with id, one issue with its history, exceptions and how to fix it",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Only this org (from GET /v1/orgs)",
         "disabled": true
        },
        {
         "key": "id",
         "value": "FND-12",
         "description": "One issue, for example FND-41",
         "disabled": true
        },
        {
         "key": "status",
         "value": "",
         "description": "open (default: open, acknowledged, snoozed), acknowledged, snoozed, dismissed, resolved or all",
         "disabled": true
        },
        {
         "key": "severity",
         "value": "",
         "description": "warn or critical",
         "disabled": true
        },
        {
         "key": "kind",
         "value": "",
         "description": "finding or alert",
         "disabled": true
        },
        {
         "key": "updated_since",
         "value": "",
         "description": "Only issues changed at or after this ISO time",
         "disabled": true
        },
        {
         "key": "include_items",
         "value": "",
         "description": "Add the affected items (needs issues:items)",
         "disabled": true
        },
        {
         "key": "cursor",
         "value": "",
         "description": "next_cursor from the previous page",
         "disabled": true
        },
        {
         "key": "limit",
         "value": "50",
         "description": "Items per page, 1 to 200 (default 50)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: issues:read"
     }
    },
    {
     "name": "Acknowledge an issue, optionally naming the owner",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"acknowledge\",\n  \"id\": \"FND-12\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Change the owner",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"assign\",\n  \"id\": \"FND-12\",\n  \"owner\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Snooze until a date",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"snooze\",\n  \"id\": \"FND-12\",\n  \"until\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Dismiss with a reason",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"dismiss\",\n  \"id\": \"FND-12\",\n  \"reason\": \"\",\n  \"note\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Report it fixed; the next check or review confirms the fix, or reopens the issue",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"resolve\",\n  \"id\": \"FND-12\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Reopen",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"reopen\",\n  \"id\": \"FND-12\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Add a note to the history",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"comment\",\n  \"id\": \"FND-12\",\n  \"note\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Link a ticket of your own system (Jira, ServiceNow, Azure DevOps, ...)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"link\",\n  \"id\": \"FND-12\",\n  \"ticket_ref\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Ask for help on it",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"help\",\n  \"id\": \"FND-12\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Re-run the monitor behind an alert now",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"recheck\",\n  \"id\": \"FND-12\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    },
    {
     "name": "Accept an exception for one affected item, with a reason and a review date",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"exception\",\n  \"id\": \"FND-12\",\n  \"item\": \"\",\n  \"reason\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/issues",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "issues"
       ]
      },
      "description": "Scope: issues:write"
     }
    }
   ]
  },
  {
   "name": "Monitoring",
   "item": [
    {
     "name": "The org's monitors with their latest result",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/monitors?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "monitors"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        }
       ]
      },
      "description": "Scope: monitoring:read"
     }
    },
    {
     "name": "Re-run one monitor now",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"recheck\",\n  \"org\": {{org}},\n  \"key\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/monitors",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "monitors"
       ]
      },
      "description": "Scope: monitoring:write"
     }
    }
   ]
  },
  {
   "name": "Security Health Check",
   "item": [
    {
     "name": "Salesforce Security Health Check score history and the settings at risk",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/healthcheck?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "healthcheck"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        }
       ]
      },
      "description": "Scope: monitoring:read"
     }
    }
   ]
  },
  {
   "name": "Deploy windows",
   "item": [
    {
     "name": "Deploy windows of an org",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/windows?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "windows"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        }
       ]
      },
      "description": "Scope: monitoring:read"
     }
    },
    {
     "name": "Open a deploy window: configuration changes during it are expected, not alerts",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"open\",\n  \"org\": {{org}}\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/windows",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "windows"
       ]
      },
      "description": "Scope: monitoring:write"
     }
    },
    {
     "name": "Close it: the monitors re-check and a summary of the changes is sent to your webhooks",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"close\",\n  \"org\": {{org}}\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/windows",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "windows"
       ]
      },
      "description": "Scope: monitoring:write"
     }
    }
   ]
  },
  {
   "name": "Compliance",
   "item": [
    {
     "name": "Control status and evidence for SOC 2, HIPAA, ISO 27001, Ontario PHIPA, PIPEDA, GDPR, UK GDPR or Quebec Law 25",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/compliance?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "compliance"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        },
        {
         "key": "framework",
         "value": "soc2",
         "description": "Framework (default: the first that fits the org, from its own answers or your organization's)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: compliance:read"
     }
    }
   ]
  },
  {
   "name": "Evidence exports",
   "item": [
    {
     "name": "A signed-off evidence export with its SHA-256, which anyone holding it can verify",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/evidence?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "evidence"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        },
        {
         "key": "framework",
         "value": "",
         "description": "Framework (default: the first that fits the org, from its own answers or your organization's)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: compliance:read"
     }
    }
   ]
  },
  {
   "name": "Verify an export",
   "item": [
    {
     "name": "Check that an evidence export came from the Command Center (no token needed)",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/verify?hash=<sha256 of the export>",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "verify"
       ],
       "query": [
        {
         "key": "hash",
         "value": "<sha256 of the export>",
         "description": "SHA-256 of the export"
        }
       ]
      },
      "auth": {
       "type": "noauth"
      },
      "description": "No scope needed"
     }
    }
   ]
  },
  {
   "name": "Access reviews",
   "item": [
    {
     "name": "Access reviews of admin-level access, their decisions and sign-off",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/access_reviews?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "access_reviews"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        }
       ]
      },
      "description": "Scope: compliance:read"
     }
    }
   ]
  },
  {
   "name": "Savings and capacity",
   "item": [
    {
     "name": "Licenses you could reclaim and when storage fills up",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/savings?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "savings"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        }
       ]
      },
      "description": "Scope: health:read"
     }
    }
   ]
  },
  {
   "name": "Improvement plan",
   "item": [
    {
     "name": "The saved improvement plan: each item, its issue and status, projected against achieved",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/plan?org={{org}}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "plan"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Org id (from GET /v1/orgs)"
        }
       ]
      },
      "description": "Scope: health:read"
     }
    }
   ]
  },
  {
   "name": "Accepted exceptions",
   "item": [
    {
     "name": "Accepted exceptions with their owner, reason and review date",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/exceptions",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "exceptions"
       ],
       "query": [
        {
         "key": "org",
         "value": "{{org}}",
         "description": "Only this org (from GET /v1/orgs)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: issues:read"
     }
    }
   ]
  },
  {
   "name": "Activity",
   "item": [
    {
     "name": "Who did what, newest first",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/activity",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "activity"
       ],
       "query": [
        {
         "key": "since",
         "value": "",
         "description": "Only entries at or after this ISO time",
         "disabled": true
        },
        {
         "key": "cursor",
         "value": "",
         "description": "next_cursor from the previous page",
         "disabled": true
        },
        {
         "key": "limit",
         "value": "50",
         "description": "Items per page, 1 to 200 (default 50)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: activity:read"
     }
    }
   ]
  },
  {
   "name": "Webhooks",
   "item": [
    {
     "name": "Your webhook endpoints",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "webhooks"
       ],
       "query": []
      },
      "description": "Scope: webhooks:manage"
     }
    },
    {
     "name": "Add an endpoint; the signing secret is returned once",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"create\",\n  \"url\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "webhooks"
       ]
      },
      "description": "Scope: webhooks:manage"
     }
    },
    {
     "name": "Remove an endpoint",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"delete\",\n  \"endpoint\": 1\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "webhooks"
       ]
      },
      "description": "Scope: webhooks:manage"
     }
    },
    {
     "name": "New signing secret (returned once)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"rotate\",\n  \"endpoint\": 1\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "webhooks"
       ]
      },
      "description": "Scope: webhooks:manage"
     }
    },
    {
     "name": "Send a webhook.test event",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"test\",\n  \"endpoint\": 1\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "webhooks"
       ]
      },
      "description": "Scope: webhooks:manage"
     }
    },
    {
     "name": "Send one delivery again",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"redeliver\",\n  \"delivery\": 1\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "webhooks"
       ]
      },
      "description": "Scope: webhooks:manage"
     }
    },
    {
     "name": "Turn an endpoint on or off",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"action\": \"enable\",\n  \"endpoint\": 1,\n  \"enabled\": false\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "webhooks"
       ]
      },
      "description": "Scope: webhooks:manage"
     }
    }
   ]
  },
  {
   "name": "Webhook deliveries",
   "item": [
    {
     "name": "Deliveries, newest first, with status and attempts",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/deliveries",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "deliveries"
       ],
       "query": [
        {
         "key": "endpoint",
         "value": "1",
         "description": "Only this endpoint",
         "disabled": true
        },
        {
         "key": "status",
         "value": "",
         "description": "pending, retrying, delivered or failed",
         "disabled": true
        },
        {
         "key": "cursor",
         "value": "",
         "description": "next_cursor from the previous page",
         "disabled": true
        },
        {
         "key": "limit",
         "value": "50",
         "description": "Items per page, 1 to 200 (default 50)",
         "disabled": true
        }
       ]
      },
      "description": "Scope: webhooks:manage"
     }
    }
   ]
  },
  {
   "name": "MCP server",
   "item": [
    {
     "name": "initialize",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"initialize\",\n  \"params\": {\n    \"protocolVersion\": \"2025-06-18\",\n    \"capabilities\": {},\n    \"clientInfo\": {\n      \"name\": \"postman\",\n      \"version\": \"1\"\n    }\n  }\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/mcp",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "mcp"
       ]
      }
     }
    },
    {
     "name": "tools/list",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 2,\n  \"method\": \"tools/list\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/mcp",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "mcp"
       ]
      }
     }
    },
    {
     "name": "tools/call list_orgs",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 3,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"list_orgs\",\n    \"arguments\": {}\n  }\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/mcp",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "mcp"
       ]
      }
     }
    }
   ]
  }
 ]
}