{
  "auth": {
    "bearer": [
      {
        "key": "token",
        "type": "string",
        "value": "{{apiKey}}"
      }
    ],
    "type": "bearer"
  },
  "info": {
    "description": "Send a notification, check its status and poll decisions. Set apiKey to a project API key and keep it on your server.",
    "name": "PingLoom server API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Send a notification",
      "request": {
        "body": {
          "mode": "raw",
          "options": {
            "raw": {
              "language": "json"
            }
          },
          "raw": "{\n  \"channel\": \"general\",\n  \"title\": \"Hello from PingLoom\",\n  \"body\": \"Your integration works.\",\n  \"priority\": \"normal\"\n}"
        },
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "demo-run-001"
          }
        ],
        "method": "POST",
        "url": {
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "notifications"
          ],
          "raw": "{{baseUrl}}/v1/notifications"
        }
      }
    },
    {
      "name": "Check event status",
      "request": {
        "header": [],
        "method": "GET",
        "url": {
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "notifications",
            "{{eventId}}"
          ],
          "raw": "{{baseUrl}}/v1/notifications/{{eventId}}"
        }
      }
    },
    {
      "name": "List decisions",
      "request": {
        "header": [],
        "method": "GET",
        "url": {
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "decisions"
          ],
          "query": [
            {
              "key": "status",
              "value": "decided"
            },
            {
              "key": "limit",
              "value": "50"
            }
          ],
          "raw": "{{baseUrl}}/v1/decisions?status=decided&limit=50"
        }
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://127.0.0.1:18080"
    },
    {
      "key": "apiKey",
      "value": ""
    },
    {
      "key": "eventId",
      "value": ""
    }
  ]
}
