{
  "info": {
    "name": "PokerWorks Developer Webhooks",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Generated receiver examples for developer webhook events. Webhook schemas remain canonical."
  },
  "variable": [
    {
      "key": "webhookEndpointUrl",
      "value": "https://example.com/webhooks/pokerworks",
      "type": "string"
    },
    {
      "key": "webhookSignature",
      "value": "t=1760000000,v1=replace_with_signature",
      "type": "string"
    },
    {
      "key": "webhookTimestamp",
      "value": "1760000000",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Webhook events",
      "item": [
        {
          "name": "tournament.completed",
          "description": "Example receiver request for local webhook testing. Verify signatures before trusting payloads.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "PokerWorks-Signature",
                "value": "{{webhookSignature}}"
              },
              {
                "key": "PokerWorks-Timestamp",
                "value": "{{webhookTimestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"apiVersion\": \"{{apiVersion}}\",\n  \"createdAt\": \"2026-06-07T09:00:00.000Z\",\n  \"data\": {\n    \"completedAt\": \"2026-06-07T09:00:00.000Z\",\n    \"tournamentId\": \"{{tournamentId}}\"\n  },\n  \"environment\": \"test\",\n  \"id\": \"{{id}}\",\n  \"integrity\": {\n    \"botsAllowed\": false,\n    \"declaredBotSeats\": {\n      \"count\": 0,\n      \"present\": false\n    },\n    \"supportEvidence\": {\n      \"trustModePolicyRef\": \"docs/architecture/developer-integrity-rules-and-trust-modes.md\"\n    },\n    \"trustMode\": \"human_only\"\n  },\n  \"links\": {\n    \"results\": {\n      \"href\": \"{{href}}\",\n      \"method\": \"GET\"\n    }\n  },\n  \"livemode\": false,\n  \"organizationId\": \"{{organizationId}}\",\n  \"projectId\": \"{{projectId}}\",\n  \"source\": {\n    \"id\": \"{{id}}\",\n    \"type\": \"playground_tournament\"\n  },\n  \"type\": \"tournament.completed\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhookEndpointUrl}}",
              "host": ["{{webhookEndpointUrl}}"],
              "path": []
            }
          }
        }
      ]
    }
  ]
}
