├── Postman Collections ├── Meraki_Dashboard_API.json ├── Meraki_Dashboard_API_-_v0.json ├── Meraki_Dashboard_API_-_v1.1.0.json ├── Meraki_Dashboard_API_-_v1.json ├── Meraki_Dashboard_API_-_v1_beta.json ├── Meraki_Dashboard_API_-_v1_beta_diff.json ├── Meraki_Location_Scanning_API.json ├── Meraki_Public_Utilities.json └── Meraki_Webhooks_-_Samples.json ├── README.md └── tests └── pagination.js /Postman Collections/Meraki_Public_Utilities.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "58211ef8-3266-49e2-b86b-3afa697592e3", 4 | "name": "Meraki Public Utilities", 5 | "description": "A Collection of utilities related to the Meraki API, such as generating a Postman Collection from a Meraki OpenAPI spec or generating changelogs between various versions.", 6 | "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" 7 | }, 8 | "item": [ 9 | { 10 | "name": "Meraki Postman Transformer", 11 | "item": [ 12 | { 13 | "name": "Generate Collection - streaming", 14 | "event": [ 15 | { 16 | "listen": "prerequest", 17 | "script": { 18 | "id": "8e7c7ed1-95fa-4429-8b6a-58aa2541c608", 19 | "exec": [ 20 | "" 21 | ], 22 | "type": "text/javascript", 23 | "packages": {} 24 | } 25 | } 26 | ], 27 | "id": "ef281c19-55da-40ea-b0b5-a8810c87ba20", 28 | "protocolProfileBehavior": { 29 | "disableBodyPruning": true 30 | }, 31 | "request": { 32 | "method": "POST", 33 | "header": [], 34 | "body": { 35 | "mode": "raw", 36 | "raw": "{\n \"specUrl\":\"https://api.meraki.com/api/v1/openapiSpec?version=3\"\n}", 37 | "options": { 38 | "raw": { 39 | "language": "json" 40 | } 41 | } 42 | }, 43 | "url": "https://us-central1-meraki-micro-services.cloudfunctions.net/merakiPostmanTransformer", 44 | "description": "Generate a Meraki API Postman Collection using the v1 GA streaming feed (may contain GA endpoints that have not been officially released and documented)" 45 | }, 46 | "response": [] 47 | }, 48 | { 49 | "name": "Generate Collection -- v1 GA", 50 | "event": [ 51 | { 52 | "listen": "prerequest", 53 | "script": { 54 | "id": "dd4d39c3-b52a-4e7b-a403-dc9b26920746", 55 | "exec": [ 56 | "" 57 | ], 58 | "type": "text/javascript" 59 | } 60 | } 61 | ], 62 | "id": "61619f7b-b977-4a5d-a381-b6a80984baf9", 63 | "protocolProfileBehavior": { 64 | "disableBodyPruning": true 65 | }, 66 | "request": { 67 | "method": "POST", 68 | "header": [], 69 | "body": { 70 | "mode": "raw", 71 | "raw": "{\n \"specUrl\":\"https://raw.githubusercontent.com/meraki/openapi/master/openapi/spec3.json\"\n}", 72 | "options": { 73 | "raw": { 74 | "language": "json" 75 | } 76 | } 77 | }, 78 | "url": "https://us-central1-meraki-micro-services.cloudfunctions.net/merakiPostmanTransformer", 79 | "description": "Generate a Meraki API Postman Collection using the Generally Available v1 latest release" 80 | }, 81 | "response": [] 82 | }, 83 | { 84 | "name": "Generate Collection - v1 Beta", 85 | "event": [ 86 | { 87 | "listen": "prerequest", 88 | "script": { 89 | "id": "ec94ce32-a189-4185-b077-a8c2971e1013", 90 | "exec": [ 91 | "" 92 | ], 93 | "type": "text/javascript" 94 | } 95 | } 96 | ], 97 | "id": "b7c12f6d-de76-4c98-b126-ae3418aea33a", 98 | "protocolProfileBehavior": { 99 | "disableBodyPruning": true 100 | }, 101 | "request": { 102 | "method": "POST", 103 | "header": [], 104 | "body": { 105 | "mode": "raw", 106 | "raw": "{\n \"specUrl\":\"https://raw.githubusercontent.com/meraki/openapi/v1-beta/openapi/spec3.json\"\n}", 107 | "options": { 108 | "raw": { 109 | "language": "json" 110 | } 111 | } 112 | }, 113 | "url": "https://us-central1-meraki-micro-services.cloudfunctions.net/merakiPostmanTransformer", 114 | "description": "Generate a Meraki API Postman Collection using the Beta v1 latest release" 115 | }, 116 | "response": [] 117 | }, 118 | { 119 | "name": "Generate Collection - V1 by organizationId", 120 | "event": [ 121 | { 122 | "listen": "prerequest", 123 | "script": { 124 | "id": "c9284f5f-3933-4da1-a2a9-5ec091bcf012", 125 | "exec": [ 126 | "const organizationId = pm.environment.get('organizationId');", 127 | "const apiKey = pm.environment.get('apiKey');", 128 | "const getOrgApiSpec = {", 129 | " url: 'https://api.meraki.com/api/v1/organizations/'+organizationId+\"/openapiSpec?version=3\",", 130 | " method: 'GET',", 131 | " header: \"X-Cisco-Meraki-API-Key:\" + apiKey", 132 | "};", 133 | "pm.sendRequest(getOrgApiSpec, function (err, res) {", 134 | " console.log(err ? err : res.json());", 135 | " pm.environment.set('orgApiSpec',JSON.stringify(res.json()))", 136 | "});" 137 | ], 138 | "type": "text/javascript", 139 | "packages": {} 140 | } 141 | }, 142 | { 143 | "listen": "test", 144 | "script": { 145 | "id": "dcbfdda6-3d04-4931-8b38-745e6f379a3b", 146 | "exec": [ 147 | "// removes temporary API spec from environment", 148 | "pm.environment.unset('orgApiSpec')" 149 | ], 150 | "type": "text/javascript", 151 | "packages": {} 152 | } 153 | } 154 | ], 155 | "id": "0903d72e-3704-42dc-ab23-334dba211412", 156 | "protocolProfileBehavior": { 157 | "disableBodyPruning": true 158 | }, 159 | "request": { 160 | "method": "POST", 161 | "header": [], 162 | "body": { 163 | "mode": "raw", 164 | "raw": "{\n \"spec\":{{orgApiSpec}}\n}", 165 | "options": { 166 | "raw": { 167 | "language": "json" 168 | } 169 | } 170 | }, 171 | "url": "https://us-central1-meraki-micro-services.cloudfunctions.net/merakiPostmanTransformer", 172 | "description": "Generate a Meraki API Postman Collection using your `organizationId` and `apiKey` stored in your Postman **Environement**\n\nNote: \nThis request uses a `Pre-request Script` to first request the openAPI Specification for your organization. It then\nsets an environement variable `orgApiSpec` to the JSON contents. \n\nThe request then uses this JSON to submit the POST request to the transformer. Once completed, a post test script will clear\nthe temporary variable. This could be preserved if needed by commenting out the **Tests** script" 173 | }, 174 | "response": [ 175 | { 176 | "id": "b639c171-3b25-4e63-b9b4-ce1037c79762", 177 | "name": "Generate Collection - V1 by organizationId", 178 | "originalRequest": { 179 | "method": "POST", 180 | "header": [], 181 | "body": { 182 | "mode": "raw", 183 | "raw": "{\n \"spec\":{{orgApiSpec}}\n}", 184 | "options": { 185 | "raw": { 186 | "language": "json" 187 | } 188 | } 189 | }, 190 | "url": "https://us-central1-meraki-micro-services.cloudfunctions.net/merakiPostmanTransformer" 191 | }, 192 | "_postman_previewlanguage": null, 193 | "header": null, 194 | "cookie": [], 195 | "responseTime": null, 196 | "body": null 197 | } 198 | ] 199 | }, 200 | { 201 | "name": "Generate Collection - V1 by organizationId diff", 202 | "event": [ 203 | { 204 | "listen": "prerequest", 205 | "script": { 206 | "id": "3e2e2160-cac7-48e7-bd1d-05a2ba5fbb01", 207 | "exec": [ 208 | "", 209 | "var oldSpecOptions = {", 210 | " url: 'https://raw.githubusercontent.com/meraki/openapi/master/openapi/spec3.json',", 211 | " method: 'GET',", 212 | "}", 213 | "", 214 | "const organizationId = pm.environment.get('organizationId');", 215 | "const apiKey = pm.environment.get('apiKey');", 216 | " ", 217 | "var newSpecOptions = {", 218 | " url: 'https://api.meraki.com/api/v1/organizations/'+organizationId+'/openapiSpec?version=3',", 219 | " method: 'GET',", 220 | " header: \"X-Cisco-Meraki-API-Key:\" + apiKey", 221 | "}", 222 | "", 223 | "pm.sendRequest(oldSpecOptions, (err, res) => {", 224 | " if (err) {", 225 | " console.error(err);", 226 | " return;", 227 | " }", 228 | " var oldSpec = res.json();", 229 | "", 230 | " pm.sendRequest(newSpecOptions, (err, res) => {", 231 | " if (err) {", 232 | " console.error(err);", 233 | " return;", 234 | " }", 235 | " var newSpec = res.json();", 236 | "", 237 | " const diffSpec = {...{}, ...newSpec}", 238 | " diffSpec.paths = diffPaths(oldSpec.paths,newSpec.paths)", 239 | " pm.environment.set(\"oasDiffStub\",JSON.stringify(diffSpec,null,4))", 240 | "", 241 | " })", 242 | "})", 243 | "", 244 | "", 245 | "// helper", 246 | "function diffPaths(oldPaths, newPaths) {", 247 | " let diff = {};", 248 | " for (var path in newPaths) {", 249 | " if (Object.prototype.hasOwnProperty.call(newPaths, path)) {", 250 | " if (!Object.prototype.hasOwnProperty.call(oldPaths, path)) {", 251 | " diff[path] = newPaths[path];", 252 | " }", 253 | " }", 254 | " }", 255 | " return diff;", 256 | " }" 257 | ], 258 | "type": "text/javascript", 259 | "packages": {} 260 | } 261 | }, 262 | { 263 | "listen": "test", 264 | "script": { 265 | "id": "c9700b27-07b8-445a-99d0-f2b90d7764d1", 266 | "exec": [ 267 | "// removes temporary API spec from environment", 268 | "pm.environment.unset('oasDiffStub')" 269 | ], 270 | "type": "text/javascript", 271 | "packages": {} 272 | } 273 | } 274 | ], 275 | "id": "23f7bba5-78de-4191-bfea-18b4ebb53479", 276 | "protocolProfileBehavior": { 277 | "disableBodyPruning": true 278 | }, 279 | "request": { 280 | "method": "POST", 281 | "header": [], 282 | "body": { 283 | "mode": "raw", 284 | "raw": "{\n \"spec\":{{oasDiffStub}}\n}", 285 | "options": { 286 | "raw": { 287 | "language": "json" 288 | } 289 | } 290 | }, 291 | "url": "https://us-central1-meraki-micro-services.cloudfunctions.net/merakiPostmanTransformer", 292 | "description": "Generate a Meraki API Postman Collection using your `organizationId` and `apiKey` stored in your Postman **Environement**\n\nNote: \nThis request uses a `Pre-request Script` to first request the openAPI Specification for your organization. It then\nsets an environement variable `orgApiSpec` to the JSON contents. \n\nThe request then uses this JSON to submit the POST request to the transformer. Once completed, a post test script will clear\nthe temporary variable. This could be preserved if needed by commenting out the **Tests** script" 293 | }, 294 | "response": [] 295 | }, 296 | { 297 | "name": "Generate Collection - V1 by Beta diff", 298 | "event": [ 299 | { 300 | "listen": "prerequest", 301 | "script": { 302 | "id": "e6e9e0e9-0d57-423f-9915-49072ca93d58", 303 | "exec": [ 304 | "", 305 | "var oldSpecOptions = {", 306 | " url: 'https://raw.githubusercontent.com/meraki/openapi/master/openapi/spec3.json',", 307 | " method: 'GET',", 308 | "}", 309 | "", 310 | "var newSpecOptions = {", 311 | " url: 'https://raw.githubusercontent.com/meraki/openapi/v1-beta/openapi/spec3.json',", 312 | " method: 'GET'", 313 | "}", 314 | "", 315 | "pm.sendRequest(oldSpecOptions, (err, res) => {", 316 | " if (err) {", 317 | " console.error(err);", 318 | " return;", 319 | " }", 320 | " var oldSpec = res.json();", 321 | "", 322 | " pm.sendRequest(newSpecOptions, (err, res) => {", 323 | " if (err) {", 324 | " console.error(err);", 325 | " return;", 326 | " }", 327 | " var newSpec = res.json();", 328 | "", 329 | " const diffSpec = {...{}, ...newSpec}", 330 | " diffSpec.paths = diffPaths(oldSpec.paths,newSpec.paths)", 331 | " pm.environment.set(\"oasDiffStub\",JSON.stringify(diffSpec,null,4))", 332 | "", 333 | " })", 334 | "})", 335 | "", 336 | "", 337 | "// helper", 338 | "function diffPaths(oldPaths, newPaths) {", 339 | " let diff = {};", 340 | " for (var path in newPaths) {", 341 | " if (Object.prototype.hasOwnProperty.call(newPaths, path)) {", 342 | " if (!Object.prototype.hasOwnProperty.call(oldPaths, path)) {", 343 | " diff[path] = newPaths[path];", 344 | " }", 345 | " }", 346 | " }", 347 | " return diff;", 348 | " }" 349 | ], 350 | "type": "text/javascript", 351 | "packages": {} 352 | } 353 | }, 354 | { 355 | "listen": "test", 356 | "script": { 357 | "id": "50a21995-031a-410c-81ce-631f025ca4d8", 358 | "exec": [ 359 | "// removes temporary API spec from environment", 360 | "//pm.environment.unset('orgApiSpec')" 361 | ], 362 | "type": "text/javascript", 363 | "packages": {} 364 | } 365 | } 366 | ], 367 | "id": "b1757208-3584-4c02-a96f-5e03bc2652ec", 368 | "protocolProfileBehavior": { 369 | "disableBodyPruning": true 370 | }, 371 | "request": { 372 | "method": "POST", 373 | "header": [], 374 | "body": { 375 | "mode": "raw", 376 | "raw": "{\n \"spec\":{{oasDiffStub}}\n}", 377 | "options": { 378 | "raw": { 379 | "language": "json" 380 | } 381 | } 382 | }, 383 | "url": "https://us-central1-meraki-micro-services.cloudfunctions.net/merakiPostmanTransformer", 384 | "description": "Generate a Meraki API Postman Collection using your `organizationId` and `apiKey` stored in your Postman **Environement**\n\nNote: \nThis request uses a `Pre-request Script` to first request the openAPI Specification for your organization. It then\nsets an environement variable `orgApiSpec` to the JSON contents. \n\nThe request then uses this JSON to submit the POST request to the transformer. Once completed, a post test script will clear\nthe temporary variable. This could be preserved if needed by commenting out the **Tests** script" 385 | }, 386 | "response": [] 387 | } 388 | ], 389 | "id": "6f323bcc-231c-43b8-931a-7f2c0a7c9edf", 390 | "description": "Transforms a Meraki OpenAPI specification into a Postman Collection. This utility adds additional features not included with the standard import process such as grouped operations, variable placeholders, JSONMagic visualization and more." 391 | }, 392 | { 393 | "name": "Meraki API Changelog", 394 | "item": [ 395 | { 396 | "name": "Meraki API - v1 prev to v1 latest", 397 | "event": [ 398 | { 399 | "listen": "prerequest", 400 | "script": { 401 | "id": "8bba2d58-b47c-47bc-aca6-14b4c03b0d6e", 402 | "exec": [ 403 | "// Generate Meraki API Changlog using the GitHub releases", 404 | "", 405 | "const BETA = false;", 406 | "", 407 | "// helper functions", 408 | "", 409 | "const githubReleases = {", 410 | " url: \"https://api.github.com/repos/meraki/openapi/releases\",", 411 | " method: \"GET\",", 412 | " headers: {", 413 | " \"Content-Type\": \"application/json\",", 414 | " \"User-Agent\":\"Postman\"", 415 | " }", 416 | " };", 417 | "", 418 | "pm.sendRequest(githubReleases, function (err, res) {", 419 | " console.log(err ? err : \"GitHub RELEASES\", res.json());", 420 | " const releases = res.json();", 421 | "", 422 | " const filteredReleases = releases.filter(r => r.prerelease === BETA)", 423 | " console.log('filteredReleases', filteredReleases)", 424 | "", 425 | "", 426 | " const latestApiRelease = filteredReleases[0].tag_name", 427 | " const prevApiRelease = filteredReleases[1].tag_name;", 428 | "", 429 | " console.log('release versions', prevApiRelease, latestApiRelease)", 430 | " pm.environment.set('prevApiRelease',prevApiRelease)", 431 | " pm.environment.set('latestApiRelease',latestApiRelease)", 432 | "", 433 | "});" 434 | ], 435 | "type": "text/javascript", 436 | "packages": {} 437 | } 438 | }, 439 | { 440 | "listen": "test", 441 | "script": { 442 | "id": "792f0da2-be83-404c-aec0-57036378a9aa", 443 | "exec": [ 444 | " pm.environment.unset('prevApiRelease')", 445 | " pm.environment.unset('latestApiRelease')" 446 | ], 447 | "type": "text/javascript", 448 | "packages": {} 449 | } 450 | } 451 | ], 452 | "id": "883bf11c-6a00-472f-b0b2-20c4d8f8c795", 453 | "protocolProfileBehavior": { 454 | "disableBodyPruning": true 455 | }, 456 | "request": { 457 | "method": "POST", 458 | "header": [ 459 | { 460 | "key": "Content-Type", 461 | "value": "application/json", 462 | "type": "text" 463 | } 464 | ], 465 | "body": { 466 | "mode": "raw", 467 | "raw": "{\n \"oldSpec\": \"https://raw.githubusercontent.com/meraki/openapi/{{prevApiRelease}}/openapi/spec3.json\",\n \"newSpec\": \"https://raw.githubusercontent.com/meraki/openapi/{{latestApiRelease}}/openapi/spec3.json\"\n}" 468 | }, 469 | "url": "https://us-central1-focal-rig-261016.cloudfunctions.net/app/swagger/diff", 470 | "description": "Generates a changelog using the latest Meraki API specification in GitHub Releases\n- Latest v1 GA" 471 | }, 472 | "response": [] 473 | }, 474 | { 475 | "name": "Meraki API - v1 to v1 Beta", 476 | "id": "4dc403b9-d5b5-43f5-875f-dd3110028341", 477 | "protocolProfileBehavior": { 478 | "disableBodyPruning": true 479 | }, 480 | "request": { 481 | "method": "POST", 482 | "header": [ 483 | { 484 | "key": "Content-Type", 485 | "value": "application/json", 486 | "type": "text" 487 | } 488 | ], 489 | "body": { 490 | "mode": "raw", 491 | "raw": "{\n \"oldSpec\": \"https://raw.githubusercontent.com/meraki/openapi/master/openapi/spec3.json\",\n \"newSpec\": \"https://raw.githubusercontent.com/meraki/openapi/v1-beta/openapi/spec3.json\"\n}" 492 | }, 493 | "url": "https://us-central1-focal-rig-261016.cloudfunctions.net/app/swagger/diff" 494 | }, 495 | "response": [] 496 | }, 497 | { 498 | "name": "Meraki API - v1 prev to v1 latest Beta", 499 | "event": [ 500 | { 501 | "listen": "prerequest", 502 | "script": { 503 | "id": "483548ea-1f3c-4b47-a638-db0029c83083", 504 | "exec": [ 505 | "// Generate Meraki API Changlog using the GitHub releases", 506 | "", 507 | "const BETA = true;", 508 | "", 509 | "// helper functions", 510 | "", 511 | "const githubReleases = {", 512 | " url: \"https://api.github.com/repos/meraki/openapi/releases\",", 513 | " method: \"GET\",", 514 | " headers: {", 515 | " \"Content-Type\": \"application/json\",", 516 | " \"User-Agent\":\"Postman\"", 517 | " }", 518 | " };", 519 | "", 520 | "pm.sendRequest(githubReleases, function (err, res) {", 521 | " console.log(err ? err : \"GitHub RELEASES\", res.json());", 522 | " const releases = res.json();", 523 | "", 524 | " const filteredReleases = releases.filter(r => r.prerelease === BETA)", 525 | " console.log('filteredReleases', filteredReleases)", 526 | "", 527 | "", 528 | " const latestApiRelease = filteredReleases[0].tag_name", 529 | " const prevApiRelease = filteredReleases[1].tag_name;", 530 | "", 531 | " console.log('release versions', prevApiRelease, latestApiRelease)", 532 | " pm.environment.set('prevApiRelease',prevApiRelease)", 533 | " pm.environment.set('latestApiRelease',latestApiRelease)", 534 | "", 535 | "});" 536 | ], 537 | "type": "text/javascript", 538 | "packages": {} 539 | } 540 | }, 541 | { 542 | "listen": "test", 543 | "script": { 544 | "id": "4d469f0c-77ca-4e18-bf0d-4315773650e3", 545 | "exec": [ 546 | " pm.environment.unset('prevApiRelease')", 547 | " pm.environment.unset('latestApiRelease')" 548 | ], 549 | "type": "text/javascript", 550 | "packages": {} 551 | } 552 | } 553 | ], 554 | "id": "f173d8db-e94c-4672-a613-23af3787aab9", 555 | "protocolProfileBehavior": { 556 | "disableBodyPruning": true 557 | }, 558 | "request": { 559 | "method": "POST", 560 | "header": [ 561 | { 562 | "key": "Content-Type", 563 | "value": "application/json", 564 | "type": "text" 565 | } 566 | ], 567 | "body": { 568 | "mode": "raw", 569 | "raw": "{\n \"oldSpec\": \"https://raw.githubusercontent.com/meraki/openapi/{{prevApiRelease}}/openapi/spec3.json\",\n \"newSpec\": \"https://raw.githubusercontent.com/meraki/openapi/{{latestApiRelease}}/openapi/spec3.json\"\n}" 570 | }, 571 | "url": "https://us-central1-focal-rig-261016.cloudfunctions.net/app/swagger/diff", 572 | "description": "Generates a changelog using the latest Meraki API specification in GitHub Releases\n\n- Latest v1 BETA" 573 | }, 574 | "response": [] 575 | }, 576 | { 577 | "name": "Meraki API - v1.0.0 to v1 latest GA", 578 | "id": "0e7d251f-83a9-4459-867e-09c4a2404d1d", 579 | "protocolProfileBehavior": { 580 | "disableBodyPruning": true 581 | }, 582 | "request": { 583 | "method": "POST", 584 | "header": [ 585 | { 586 | "key": "Content-Type", 587 | "value": "application/json", 588 | "type": "text" 589 | } 590 | ], 591 | "body": { 592 | "mode": "raw", 593 | "raw": "{\n \"oldSpec\": \"https://raw.githubusercontent.com/meraki/openapi/v1.0.0/openapi/spec3.json\",\n \"newSpec\": \"https://raw.githubusercontent.com/meraki/openapi/master/openapi/spec3.json\"\n}" 594 | }, 595 | "url": "https://us-central1-focal-rig-261016.cloudfunctions.net/app/swagger/diff" 596 | }, 597 | "response": [] 598 | }, 599 | { 600 | "name": "Meraki API - v0 to v1", 601 | "id": "0c3ad044-2f17-4aff-9b99-1fe35f6329d6", 602 | "protocolProfileBehavior": { 603 | "disableBodyPruning": true 604 | }, 605 | "request": { 606 | "method": "POST", 607 | "header": [ 608 | { 609 | "key": "Content-Type", 610 | "name": "Content-Type", 611 | "type": "text", 612 | "value": "application/json" 613 | } 614 | ], 615 | "body": { 616 | "mode": "raw", 617 | "raw": "{\n \"oldSpec\": \"https://raw.githubusercontent.com/meraki/openapi/v0/openapi/spec2.json\",\n \"newSpec\": \"https://raw.githubusercontent.com/meraki/openapi/master/openapi/spec2.json\"\n}" 618 | }, 619 | "url": "https://us-central1-focal-rig-261016.cloudfunctions.net/app/swagger/diff" 620 | }, 621 | "response": [] 622 | } 623 | ], 624 | "id": "c63ef6c6-60f2-4957-835d-aa398354ae88", 625 | "description": "Generate a changelog between two versions of the Meraki Dashboard API." 626 | } 627 | ], 628 | "event": [ 629 | { 630 | "listen": "prerequest", 631 | "script": { 632 | "id": "92435c5d-b7de-4dcb-9681-d40af0606e05", 633 | "type": "text/javascript", 634 | "exec": [ 635 | "" 636 | ] 637 | } 638 | }, 639 | { 640 | "listen": "test", 641 | "script": { 642 | "id": "4cc99a7a-e53b-48ae-bcdb-03a585b56008", 643 | "type": "text/javascript", 644 | "exec": [ 645 | "var templateUrl = \"https://raw.githubusercontent.com/dexterlabora/json-magic/master/postman/postman-viz-jsonmagic-template.html\"", 646 | "", 647 | "//Load remote template", 648 | "pm.sendRequest(templateUrl, (_, res) => { ", 649 | " var template = res.text()", 650 | " var data = pm.response.json()", 651 | " pm.visualizer.set(template, data )", 652 | "});" 653 | ] 654 | } 655 | } 656 | ], 657 | "variable": [ 658 | { 659 | "key": "viz-template-url", 660 | "value": "" 661 | } 662 | ] 663 | } -------------------------------------------------------------------------------- /Postman Collections/Meraki_Webhooks_-_Samples.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "06308cb5-2f10-42ad-92a1-f6a987c14962", 4 | "name": "Meraki Webhooks - Samples v0.1", 5 | "description": "# Overview\n\nA collection of sample Meraki alerts that would normally be delivered via a webhook.\n\nUse this collection to \"post\" to your receiving server to simulate Meraki sending this data.\n\n \nLearn more \n[https://meraki.io/webhooks](https://meraki.io/webhooks)", 6 | "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" 7 | }, 8 | "item": [ 9 | { 10 | "name": "APs came up", 11 | "id": "ab67c7ed-db07-412f-84ae-5cd27a4f7e64", 12 | "request": { 13 | "method": "POST", 14 | "header": [ 15 | { 16 | "key": "Content-Type", 17 | "value": "application/json" 18 | } 19 | ], 20 | "body": { 21 | "mode": "raw", 22 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.522804Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"APs came up\",\n \"alertTypeId\": \"started_reporting\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 23 | }, 24 | "url": "{{webhook-url}}" 25 | }, 26 | "response": [] 27 | }, 28 | { 29 | "name": "APs went down", 30 | "id": "97b92a47-65a8-4663-9040-492bffcd7adb", 31 | "request": { 32 | "method": "POST", 33 | "header": [ 34 | { 35 | "key": "Content-Type", 36 | "value": "application/json" 37 | } 38 | ], 39 | "body": { 40 | "mode": "raw", 41 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.507166Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"APs went down\",\n \"alertTypeId\": \"stopped_reporting\",\n \"alertLevel\": \"critical\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 42 | }, 43 | "url": "{{webhook-url}}" 44 | }, 45 | "response": [] 46 | }, 47 | { 48 | "name": "Air Marshal - Rogue AP detected", 49 | "id": "ce826be2-47f7-4294-b71c-64c020d1abe9", 50 | "request": { 51 | "method": "POST", 52 | "header": [ 53 | { 54 | "key": "Content-Type", 55 | "value": "application/json" 56 | } 57 | ], 58 | "body": { 59 | "mode": "raw", 60 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.558462Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Air Marshal - Rogue AP detected\",\n \"alertTypeId\": \"foreign_ap\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"minFirstSeen\": 0,\n \"maxLastSeen\": 10,\n \"ssidName\": \"My SSID\"\n }\n}" 61 | }, 62 | "url": "{{webhook-url}}" 63 | }, 64 | "response": [] 65 | }, 66 | { 67 | "name": "Bluetooth Clients have become visible", 68 | "id": "95b1dd45-df3f-4174-8521-1e6d00853405", 69 | "request": { 70 | "method": "POST", 71 | "header": [ 72 | { 73 | "key": "Content-Type", 74 | "value": "application/json" 75 | } 76 | ], 77 | "body": { 78 | "mode": "raw", 79 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.491527Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Bluetooth Clients have become visible\",\n \"alertTypeId\": \"bluetooth_in\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"mac\": \"00:11:22:33:44:55\",\n \"name\": \"\",\n \"rowStartedAt\": {\n \"millisFromEpoch\": 1563208308228\n },\n \"bluetoothClientId\": \"0000000000000000\",\n \"rssi\": -94,\n \"seenAt\": {\n \"millisFromEpoch\": 1563519260925\n }\n }\n}" 80 | }, 81 | "url": "{{webhook-url}}" 82 | }, 83 | "response": [] 84 | }, 85 | { 86 | "name": "Bluetooth Clients have gone out of range", 87 | "id": "1bf6be2c-2a13-4b2a-a9cf-e6becd9b6b29", 88 | "request": { 89 | "method": "POST", 90 | "header": [ 91 | { 92 | "key": "Content-Type", 93 | "value": "application/json" 94 | } 95 | ], 96 | "body": { 97 | "mode": "raw", 98 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.500878Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Bluetooth Clients have gone out of range\",\n \"alertTypeId\": \"bluetooth_out\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"mac\": \"00:11:22:33:44:55\",\n \"name\": \"\",\n \"rowStartedAt\": {\n \"millisFromEpoch\": 1563208308228\n },\n \"bluetoothClientId\": \"0000000000000000\",\n \"rssi\": -94,\n \"seenAt\": {\n \"millisFromEpoch\": 1563519260925\n }\n }\n}" 99 | }, 100 | "url": "{{webhook-url}}" 101 | }, 102 | "response": [] 103 | }, 104 | { 105 | "name": "Cable error detected", 106 | "id": "68f8924c-f32e-4eca-b856-2f2dcadf5168", 107 | "request": { 108 | "method": "POST", 109 | "header": [ 110 | { 111 | "key": "Content-Type", 112 | "value": "application/json" 113 | } 114 | ], 115 | "body": { 116 | "mode": "raw", 117 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.550097Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Cable error detected\",\n \"alertTypeId\": \"port_cable_error\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"portNum\": 3,\n \"description\": \"Gigabit link negotiation failed\",\n \"status\": \"10 Gbps\",\n \"prevStatus\": \"100 Gbps\",\n \"portDesc\": \"Corp Access\"\n }\n}" 118 | }, 119 | "url": "{{webhook-url}}" 120 | }, 121 | "response": [] 122 | }, 123 | { 124 | "name": "Camera may have critical hardware failure", 125 | "id": "03c9b390-aa84-4d23-b76c-a7ba4371e903", 126 | "request": { 127 | "method": "POST", 128 | "header": [ 129 | { 130 | "key": "Content-Type", 131 | "value": "application/json" 132 | } 133 | ], 134 | "body": { 135 | "mode": "raw", 136 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.524087Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My camera\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MV\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Camera may have critical hardware failure\",\n \"alertTypeId\": \"node_hardware_failure\",\n \"alertLevel\": \"critical\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 137 | }, 138 | "url": "{{webhook-url}}" 139 | }, 140 | "response": [] 141 | }, 142 | { 143 | "name": "Cellular came up", 144 | "id": "006669d2-f529-4de5-9274-491381514b1c", 145 | "request": { 146 | "method": "POST", 147 | "header": [ 148 | { 149 | "key": "Content-Type", 150 | "value": "application/json" 151 | } 152 | ], 153 | "body": { 154 | "mode": "raw", 155 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.513014Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Cellular came up\",\n \"alertTypeId\": \"cellular_up\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"provider\": \"Purview Wireless\",\n \"model\": \"UML290VW\",\n \"local\": \"192.168.1.2\",\n \"remote\": \"1.2.3.5\",\n \"connection\": \"LTE\"\n }\n}" 156 | }, 157 | "url": "{{webhook-url}}" 158 | }, 159 | "response": [] 160 | }, 161 | { 162 | "name": "Cellular went down", 163 | "id": "3a2bea5c-75c0-42b1-ad77-0ea40be339df", 164 | "request": { 165 | "method": "POST", 166 | "header": [ 167 | { 168 | "key": "Content-Type", 169 | "value": "application/json" 170 | } 171 | ], 172 | "body": { 173 | "mode": "raw", 174 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.476239Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Cellular went down\",\n \"alertTypeId\": \"cellular_down\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"bytesIn\": \"1861\",\n \"bytesOut\": \"1880\",\n \"connectTime\": \"2\",\n \"provider\": \"Purview Wireless\",\n \"model\": \"UML290VW\",\n \"local\": \"192.168.1.2\",\n \"remote\": \"1.2.3.5\",\n \"connection\": \"LTE\"\n }\n}" 175 | }, 176 | "url": "{{webhook-url}}" 177 | }, 178 | "response": [] 179 | }, 180 | { 181 | "name": "Cisco Meraki Umbrella Subscription Reminder", 182 | "id": "3b4b83d5-041d-4de1-b4bf-4fe0721a66fd", 183 | "request": { 184 | "method": "POST", 185 | "header": [ 186 | { 187 | "key": "Content-Type", 188 | "value": "application/json" 189 | } 190 | ], 191 | "body": { 192 | "mode": "raw", 193 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.493227Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Cisco Meraki Umbrella Subscription Reminder\",\n \"alertTypeId\": \"umbrella_expiring\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"daysLeft\": \"25\",\n \"expirationDate\": \"2020-10-21\"\n }\n}" 194 | }, 195 | "url": "{{webhook-url}}" 196 | }, 197 | "response": [] 198 | }, 199 | { 200 | "name": "Client IP conflict detected", 201 | "id": "1b67f045-32b2-45e9-bf85-b1699c5aa2c4", 202 | "request": { 203 | "method": "POST", 204 | "header": [ 205 | { 206 | "key": "Content-Type", 207 | "value": "application/json" 208 | } 209 | ], 210 | "body": { 211 | "mode": "raw", 212 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.496161Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Client IP conflict detected\",\n \"alertTypeId\": \"ip_conflict\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"conflictingIp\": \"192.168.1.2\",\n \"contendingMac\": \"00:11:22:33:44:55\"\n }\n}" 213 | }, 214 | "url": "{{webhook-url}}" 215 | }, 216 | "response": [] 217 | }, 218 | { 219 | "name": "Client connected to another network", 220 | "id": "baf44415-8c7e-4fa2-9d04-8ea2adb598c5", 221 | "request": { 222 | "method": "POST", 223 | "header": [ 224 | { 225 | "key": "Content-Type", 226 | "value": "application/json" 227 | } 228 | ], 229 | "body": { 230 | "mode": "raw", 231 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.480123Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Client connected to another network\",\n \"alertTypeId\": \"rogue_ap_association\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"mac\": \"00:11:22:33:44:55\",\n \"foreignBssid\": \"E2:55:7D:26:09:C0\"\n }\n}" 232 | }, 233 | "url": "{{webhook-url}}" 234 | }, 235 | "response": [] 236 | }, 237 | { 238 | "name": "Client connectivity changed", 239 | "id": "00c34c8a-0f4c-4562-a444-ac7c832af43b", 240 | "request": { 241 | "method": "POST", 242 | "header": [ 243 | { 244 | "key": "Content-Type", 245 | "value": "application/json" 246 | } 247 | ], 248 | "body": { 249 | "mode": "raw", 250 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.546463Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Client connectivity changed\",\n \"alertTypeId\": \"client_connectivity\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"mac\": \"00:11:22:33:44:55\",\n \"ip\": \"192.168.1.2\",\n \"connected\": \"true\",\n \"clientName\": \"Cisco Meraki valued client\",\n \"clientUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\"\n }\n}" 251 | }, 252 | "url": "{{webhook-url}}" 253 | }, 254 | "response": [] 255 | }, 256 | { 257 | "name": "Clients are compliant with their security policy", 258 | "id": "b2e5b649-cfe9-48f3-a975-a343f77631cd", 259 | "request": { 260 | "method": "POST", 261 | "header": [ 262 | { 263 | "key": "Content-Type", 264 | "value": "application/json" 265 | } 266 | ], 267 | "body": { 268 | "mode": "raw", 269 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.534269Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Clients are compliant with their security policy\",\n \"alertTypeId\": \"pcc_security_compliance\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"pccSecurityPolicyId\": \"0000000000000000\",\n \"pccSecurityAlertConfigId\": \"0000000000000000\"\n }\n}" 270 | }, 271 | "url": "{{webhook-url}}" 272 | }, 273 | "response": [] 274 | }, 275 | { 276 | "name": "Clients are violating their security policy", 277 | "id": "a522a465-e2b3-47a7-a346-bf733c45ba9d", 278 | "request": { 279 | "method": "POST", 280 | "header": [ 281 | { 282 | "key": "Content-Type", 283 | "value": "application/json" 284 | } 285 | ], 286 | "body": { 287 | "mode": "raw", 288 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.536000Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Clients are violating their security policy\",\n \"alertTypeId\": \"pcc_security_violation\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"pccSecurityPolicyId\": \"0000000000000000\",\n \"pccSecurityAlertConfigId\": \"0000000000000000\"\n }\n}" 289 | }, 290 | "url": "{{webhook-url}}" 291 | }, 292 | "response": [] 293 | }, 294 | { 295 | "name": "Clients came up", 296 | "id": "e188bef5-e95e-4681-93cb-6727a17c5fb8", 297 | "request": { 298 | "method": "POST", 299 | "header": [ 300 | { 301 | "key": "Content-Type", 302 | "value": "application/json" 303 | } 304 | ], 305 | "body": { 306 | "mode": "raw", 307 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.494662Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Clients came up\",\n \"alertTypeId\": \"pcc_outage_end\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 308 | }, 309 | "url": "{{webhook-url}}" 310 | }, 311 | "response": [] 312 | }, 313 | { 314 | "name": "Clients have enrolled in one of your networks", 315 | "id": "0fb9759c-6d5c-406f-8a37-5b1e1d04fcc8", 316 | "request": { 317 | "method": "POST", 318 | "header": [ 319 | { 320 | "key": "Content-Type", 321 | "value": "application/json" 322 | } 323 | ], 324 | "body": { 325 | "mode": "raw", 326 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.505756Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Clients have enrolled in one of your networks\",\n \"alertTypeId\": \"pcc_enrollment\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"deviceId\": \"0000000000000000\"\n }\n}" 327 | }, 328 | "url": "{{webhook-url}}" 329 | }, 330 | "response": [] 331 | }, 332 | { 333 | "name": "Clients have re-entered their geofenced area", 334 | "id": "6defa50f-18c1-4794-af59-792c7b9f36f6", 335 | "request": { 336 | "method": "POST", 337 | "header": [ 338 | { 339 | "key": "Content-Type", 340 | "value": "application/json" 341 | } 342 | ], 343 | "body": { 344 | "mode": "raw", 345 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.478525Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Clients have re-entered their geofenced area\",\n \"alertTypeId\": \"geofencing_in\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 346 | }, 347 | "url": "{{webhook-url}}" 348 | }, 349 | "response": [] 350 | }, 351 | { 352 | "name": "Clients have violated their geofencing policy", 353 | "id": "24547cf5-85f5-4e4d-9a1d-077c89cca11f", 354 | "request": { 355 | "method": "POST", 356 | "header": [ 357 | { 358 | "key": "Content-Type", 359 | "value": "application/json" 360 | } 361 | ], 362 | "body": { 363 | "mode": "raw", 364 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.551752Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Clients have violated their geofencing policy\",\n \"alertTypeId\": \"geofencing_out\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 365 | }, 366 | "url": "{{webhook-url}}" 367 | }, 368 | "response": [] 369 | }, 370 | { 371 | "name": "Clients went down", 372 | "id": "83701195-d6f1-4b26-9454-7363a05a33b9", 373 | "request": { 374 | "method": "POST", 375 | "header": [ 376 | { 377 | "key": "Content-Type", 378 | "value": "application/json" 379 | } 380 | ], 381 | "body": { 382 | "mode": "raw", 383 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.481599Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Clients went down\",\n \"alertTypeId\": \"pcc_outage_begin\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 384 | }, 385 | "url": "{{webhook-url}}" 386 | }, 387 | "response": [] 388 | }, 389 | { 390 | "name": "DHCP leases exhausted", 391 | "id": "a276821c-1d31-42d6-99ba-0f5e3ae7ae1b", 392 | "request": { 393 | "method": "POST", 394 | "header": [ 395 | { 396 | "key": "Content-Type", 397 | "value": "application/json" 398 | } 399 | ], 400 | "body": { 401 | "mode": "raw", 402 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.511417Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"DHCP leases exhausted\",\n \"alertTypeId\": \"dhcp_no_leases\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"network\": \"192.168.1.0/24'192.168.1.254\"\n }\n}" 403 | }, 404 | "url": "{{webhook-url}}" 405 | }, 406 | "response": [] 407 | }, 408 | { 409 | "name": "Devices operating at critical temperature", 410 | "id": "c5c6e53a-f2be-45b5-8a87-cf891105b069", 411 | "request": { 412 | "method": "POST", 413 | "header": [ 414 | { 415 | "key": "Content-Type", 416 | "value": "application/json" 417 | } 418 | ], 419 | "body": { 420 | "mode": "raw", 421 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.521153Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Devices operating at critical temperature\",\n \"alertTypeId\": \"critical_temperature\",\n \"alertLevel\": \"critical\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"temperature\": \"Critical Level\",\n \"action\": \"Shutdown\"\n }\n}" 422 | }, 423 | "url": "{{webhook-url}}" 424 | }, 425 | "response": [] 426 | }, 427 | { 428 | "name": "Failover event detected", 429 | "id": "58829fbc-ea61-4fd8-b0be-f8b846645cdb", 430 | "request": { 431 | "method": "POST", 432 | "header": [ 433 | { 434 | "key": "Content-Type", 435 | "value": "application/json" 436 | } 437 | ], 438 | "body": { 439 | "mode": "raw", 440 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.525972Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Failover event detected\",\n \"alertTypeId\": \"vrrp\",\n \"alertLevel\": \"critical\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"oldIfUp\": \"0\",\n \"oldMode\": \"detect\",\n \"oldPrio\": \"75\",\n \"electorState\": \"master\",\n \"mode\": \"detect\",\n \"prio\": \"75\",\n \"ifUp\": \"1\"\n }\n}" 441 | }, 442 | "url": "{{webhook-url}}" 443 | }, 444 | "response": [] 445 | }, 446 | { 447 | "name": "Gateway to repeater", 448 | "id": "375f641a-2b38-4697-b111-d4f5289f2261", 449 | "request": { 450 | "method": "POST", 451 | "header": [ 452 | { 453 | "key": "Content-Type", 454 | "value": "application/json" 455 | } 456 | ], 457 | "body": { 458 | "mode": "raw", 459 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.555140Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Gateway to repeater\",\n \"alertTypeId\": \"gateway_to_repeater\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 460 | }, 461 | "url": "{{webhook-url}}" 462 | }, 463 | "response": [] 464 | }, 465 | { 466 | "name": "Insight Alert", 467 | "id": "7f0c4499-4764-4109-a0dd-4a32466ee928", 468 | "request": { 469 | "method": "POST", 470 | "header": [ 471 | { 472 | "key": "Content-Type", 473 | "value": "application/json" 474 | } 475 | ], 476 | "body": { 477 | "mode": "raw", 478 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.514442Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Insight Alert\",\n \"alertTypeId\": \"mi_alert\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 479 | }, 480 | "url": "{{webhook-url}}" 481 | }, 482 | "response": [] 483 | }, 484 | { 485 | "name": "MDM certificate will expire soon", 486 | "id": "bdf99ab6-d565-4cbf-afd9-1a90add6eacb", 487 | "request": { 488 | "method": "POST", 489 | "header": [ 490 | { 491 | "key": "Content-Type", 492 | "value": "application/json" 493 | } 494 | ], 495 | "body": { 496 | "mode": "raw", 497 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.499259Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"MDM certificate will expire soon\",\n \"alertTypeId\": \"pcc_expired_apns_cert\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"expiry\": \"2018-02-11T00:00:00Z\",\n \"networkId\": \"1254235\",\n \"topic\": \"com.apple.mgmt.External.e9908a35-405d-4b25-b513-fa55431d1374\"\n }\n}" 498 | }, 499 | "url": "{{webhook-url}}" 500 | }, 501 | "response": [] 502 | }, 503 | { 504 | "name": "Malware download blocked", 505 | "id": "01e54f29-1e6d-4fae-9fb7-de8fb50982d0", 506 | "request": { 507 | "method": "POST", 508 | "header": [ 509 | { 510 | "key": "Content-Type", 511 | "value": "application/json" 512 | } 513 | ], 514 | "body": { 515 | "mode": "raw", 516 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.508581Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Malware download blocked\",\n \"alertTypeId\": \"amp_malware_blocked\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 517 | }, 518 | "url": "{{webhook-url}}" 519 | }, 520 | "response": [] 521 | }, 522 | { 523 | "name": "Malware download detected", 524 | "id": "315b3ba4-4ec3-47e0-9eee-80edc32259b8", 525 | "request": { 526 | "method": "POST", 527 | "header": [ 528 | { 529 | "key": "Content-Type", 530 | "value": "application/json" 531 | } 532 | ], 533 | "body": { 534 | "mode": "raw", 535 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.530203Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Malware download detected\",\n \"alertTypeId\": \"amp_malware_detected\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"eventType\": \"amp_malware_detected\",\n \"sha256\": \"ddcb8f357d86d11dfa3409f71a966e5076240445ca9825fb72e7386efc5582e4\",\n \"disposition\": 3\n }\n}" 536 | }, 537 | "url": "{{webhook-url}}" 538 | }, 539 | "response": [] 540 | }, 541 | { 542 | "name": "Matching software installations found", 543 | "id": "87ef56b3-7e08-48d5-8ef8-9871e00f7ca6", 544 | "request": { 545 | "method": "POST", 546 | "header": [ 547 | { 548 | "key": "Content-Type", 549 | "value": "application/json" 550 | } 551 | ], 552 | "body": { 553 | "mode": "raw", 554 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.518054Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Matching software installations found\",\n \"alertTypeId\": \"pcc_sw_found\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"swFoundRegex\": \".*\",\n \"installs\": [\n {\n \"swName\": \"TrackAbout\",\n \"swVendor\": \"iTunes Store\",\n \"pccName\": \"Miles Meraki iPhone\",\n \"swVersion\": \"7.313.132\",\n \"swInstallDate\": \"2019-07-17\"\n }\n ]\n }\n}" 555 | }, 556 | "url": "{{webhook-url}}" 557 | }, 558 | "response": [] 559 | }, 560 | { 561 | "name": "Meraki Management profile removed", 562 | "id": "bc1510c5-0ec5-4fb8-af00-a37ec4c9392b", 563 | "request": { 564 | "method": "POST", 565 | "header": [ 566 | { 567 | "key": "Content-Type", 568 | "value": "application/json" 569 | } 570 | ], 571 | "body": { 572 | "mode": "raw", 573 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.537662Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Meraki Management profile removed\",\n \"alertTypeId\": \"pcc_unmanaged\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"pccName\": \"iPhone\",\n \"wifiMac\": \"00:11:22:33:44:55\",\n \"serialNumber\": \"F5XKHEBX\"\n }\n}" 574 | }, 575 | "url": "{{webhook-url}}" 576 | }, 577 | "response": [] 578 | }, 579 | { 580 | "name": "Motion detected", 581 | "id": "d29559fe-1a0e-4407-87c9-c8743434ebbe", 582 | "request": { 583 | "method": "POST", 584 | "header": [ 585 | { 586 | "key": "Content-Type", 587 | "value": "application/json" 588 | } 589 | ], 590 | "body": { 591 | "mode": "raw", 592 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.516099Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My camera\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MV\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Motion detected\",\n \"alertTypeId\": \"motion_alert\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"imageUrl\": \"https://XXXXXXXXXXXXXXXXXXXXXXXXXXX.jpg\",\n \"timestamp\": 1563499479.547,\n \"motionRecapEnabled\": true,\n \"motionDetectorAllowsRecap\": true,\n \"isSpyglass\": false,\n \"imageEnabled\": true\n }\n}" 593 | }, 594 | "url": "{{webhook-url}}" 595 | }, 596 | "response": [] 597 | }, 598 | { 599 | "name": "Network usage alert", 600 | "id": "cb2ac214-42de-4370-940f-6e0e12d876c8", 601 | "request": { 602 | "method": "POST", 603 | "header": [ 604 | { 605 | "key": "Content-Type", 606 | "value": "application/json" 607 | } 608 | ], 609 | "body": { 610 | "mode": "raw", 611 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.543206Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Network usage alert\",\n \"alertTypeId\": \"usage_alert\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"usageThreshold\": \"104857600\",\n \"kbTotal\": \"115892215\",\n \"period\": \"1200\"\n }\n}" 612 | }, 613 | "url": "{{webhook-url}}" 614 | }, 615 | "response": [] 616 | }, 617 | { 618 | "name": "New DHCP server detected", 619 | "id": "a4df819c-be45-42e1-b42c-b62df4caf98e", 620 | "request": { 621 | "method": "POST", 622 | "header": [ 623 | { 624 | "key": "Content-Type", 625 | "value": "application/json" 626 | } 627 | ], 628 | "body": { 629 | "mode": "raw", 630 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.556731Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"New DHCP server detected\",\n \"alertTypeId\": \"dhcp_alerts\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"mac\": \"00:11:22:33:44:55\",\n \"ip\": \"192.168.1.2\",\n \"vlan\": \"104\",\n \"subnet\": \"192.168.1.0/24\"\n }\n}" 631 | }, 632 | "url": "{{webhook-url}}" 633 | }, 634 | "response": [] 635 | }, 636 | { 637 | "name": "New splash user registered", 638 | "id": "23d06e43-8bc9-4214-803a-ff17556694e3", 639 | "request": { 640 | "method": "POST", 641 | "header": [ 642 | { 643 | "key": "Content-Type", 644 | "value": "application/json" 645 | } 646 | ], 647 | "body": { 648 | "mode": "raw", 649 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.504180Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"New splash user registered\",\n \"alertTypeId\": \"new_splash_signup\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"userEmail\": \"miles@meraki.com\",\n \"userName\": \"milesmeraki\",\n \"ssidId\": \"My SSID\"\n }\n}" 650 | }, 651 | "url": "{{webhook-url}}" 652 | }, 653 | "response": [] 654 | }, 655 | { 656 | "name": "Power supply came up", 657 | "id": "6dd18fbc-5758-41df-b849-a4a445dbcd5e", 658 | "request": { 659 | "method": "POST", 660 | "header": [ 661 | { 662 | "key": "Content-Type", 663 | "value": "application/json" 664 | } 665 | ], 666 | "body": { 667 | "mode": "raw", 668 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.519545Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Power supply came up\",\n \"alertTypeId\": \"power_supply_up\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"num\": 2\n }\n}" 669 | }, 670 | "url": "{{webhook-url}}" 671 | }, 672 | "response": [] 673 | }, 674 | { 675 | "name": "Power supply went down", 676 | "id": "a28ea733-1bfd-4e54-b172-9a43dde79dcf", 677 | "request": { 678 | "method": "POST", 679 | "header": [ 680 | { 681 | "key": "Content-Type", 682 | "value": "application/json" 683 | } 684 | ], 685 | "body": { 686 | "mode": "raw", 687 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.489807Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Power supply went down\",\n \"alertTypeId\": \"power_supply_down\",\n \"alertLevel\": \"critical\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"num\": 2\n }\n}" 688 | }, 689 | "url": "{{webhook-url}}" 690 | }, 691 | "response": [] 692 | }, 693 | { 694 | "name": "RADIUS authentication server unreachable", 695 | "id": "12ba86ce-9a07-477b-b0f7-eb471ca0fe6a", 696 | "request": { 697 | "method": "POST", 698 | "header": [ 699 | { 700 | "key": "Content-Type", 701 | "value": "application/json" 702 | } 703 | ], 704 | "body": { 705 | "mode": "raw", 706 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.483467Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"RADIUS authentication server unreachable\",\n \"alertTypeId\": \"unreachable_radius_server\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"shardId\": \"207\",\n \"isSpare\": true,\n \"machineIp\": \"192.168.1.2\",\n \"ssid\": \"My SSID\",\n \"srvIp\": \"server.example.com\",\n \"port\": \"1812\"\n }\n}" 707 | }, 708 | "url": "{{webhook-url}}" 709 | }, 710 | "response": [] 711 | }, 712 | { 713 | "name": "Returned to using primary power", 714 | "id": "2c14f9fd-52c4-42cc-af2d-62c277438abb", 715 | "request": { 716 | "method": "POST", 717 | "header": [ 718 | { 719 | "key": "Content-Type", 720 | "value": "application/json" 721 | } 722 | ], 723 | "body": { 724 | "mode": "raw", 725 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.488423Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Returned to using primary power\",\n \"alertTypeId\": \"rps_base_supply_up\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"num\": 0\n }\n}" 726 | }, 727 | "url": "{{webhook-url}}" 728 | }, 729 | "response": [] 730 | }, 731 | { 732 | "name": "Rogue AP detected", 733 | "id": "7dd234de-9678-4362-8a14-66b4ac4cba49", 734 | "request": { 735 | "method": "POST", 736 | "header": [ 737 | { 738 | "key": "Content-Type", 739 | "value": "application/json" 740 | } 741 | ], 742 | "body": { 743 | "mode": "raw", 744 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.559910Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My access point\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MR\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Rogue AP detected\",\n \"alertTypeId\": \"rogue_ap\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"rssi\": \"1126462856796059000\"\n }\n}" 745 | }, 746 | "url": "{{webhook-url}}" 747 | }, 748 | "response": [] 749 | }, 750 | { 751 | "name": "Rogue DHCP server detected", 752 | "id": "9532fba2-8c19-4bd1-952f-c074f5bf7f90", 753 | "request": { 754 | "method": "POST", 755 | "header": [ 756 | { 757 | "key": "Content-Type", 758 | "value": "application/json" 759 | } 760 | ], 761 | "body": { 762 | "mode": "raw", 763 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.497653Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Rogue DHCP server detected\",\n \"alertTypeId\": \"rogue_dhcp\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"eth\": \"bb:bb:bb:11:11:11\",\n \"ip\": \"10.20.2.62\",\n \"subnet\": \"0.0.0.0/0\",\n \"vlan\": \"3\"\n }\n}" 764 | }, 765 | "url": "{{webhook-url}}" 766 | }, 767 | "response": [] 768 | }, 769 | { 770 | "name": "Running on backup power", 771 | "id": "1e4744e9-f043-4781-8776-f9ab2618a4d0", 772 | "request": { 773 | "method": "POST", 774 | "header": [ 775 | { 776 | "key": "Content-Type", 777 | "value": "application/json" 778 | } 779 | ], 780 | "body": { 781 | "mode": "raw", 782 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.544809Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Running on backup power\",\n \"alertTypeId\": \"rps_backup\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"num\": 0\n }\n}" 783 | }, 784 | "url": "{{webhook-url}}" 785 | }, 786 | "response": [] 787 | }, 788 | { 789 | "name": "Settings changed", 790 | "id": "ed28e32f-80a7-4a5e-8a04-35addf74d79f", 791 | "request": { 792 | "method": "POST", 793 | "header": [ 794 | { 795 | "key": "Content-Type", 796 | "value": "application/json" 797 | } 798 | ], 799 | "body": { 800 | "mode": "raw", 801 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.532187Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"\",\n \"deviceMac\": \"\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"\",\n \"deviceTags\": [],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Settings changed\",\n \"alertTypeId\": \"settings_changed\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"name\": \"Routing and DHCP\",\n \"url\": \"/manage/configure/switch_l3\",\n \"changes\": {\n \"createStaticRoute\": {\n \"label\": \"Added static route on SP-Warehouse\",\n \"newText\": \"10.10.10.0/24 -> 172.16.254.253\",\n \"changedBy\": \"miles@meraki.com\",\n \"oldText\": \"\",\n \"ssidId\": \"My SSID\"\n }\n },\n \"userId\": \"0000000000000000\"\n }\n}" 802 | }, 803 | "url": "{{webhook-url}}" 804 | }, 805 | "response": [] 806 | }, 807 | { 808 | "name": "Switch port connected", 809 | "id": "c148ff0f-fd99-4101-a72a-9d7b85d6a4c2", 810 | "request": { 811 | "method": "POST", 812 | "header": [ 813 | { 814 | "key": "Content-Type", 815 | "value": "application/json" 816 | } 817 | ], 818 | "body": { 819 | "mode": "raw", 820 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.486834Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Switch port connected\",\n \"alertTypeId\": \"port_connected\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"portNum\": 3,\n \"description\": \"Switch port is up at 10 Gbps\",\n \"status\": \"10 Gbps\",\n \"prevStatus\": \"down\",\n \"portDesc\": \"Corp Access\"\n }\n}" 821 | }, 822 | "url": "{{webhook-url}}" 823 | }, 824 | "response": [] 825 | }, 826 | { 827 | "name": "Switch port disconnected", 828 | "id": "b425513a-dcc9-4009-8fbe-b5cd36894a04", 829 | "request": { 830 | "method": "POST", 831 | "header": [ 832 | { 833 | "key": "Content-Type", 834 | "value": "application/json" 835 | } 836 | ], 837 | "body": { 838 | "mode": "raw", 839 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.548358Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Switch port disconnected\",\n \"alertTypeId\": \"port_disconnected\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"portNum\": 3,\n \"description\": \"Switch port is down\",\n \"status\": \"down\",\n \"prevStatus\": \"100 Gbps\",\n \"portDesc\": \"Corp Access\"\n }\n}" 840 | }, 841 | "url": "{{webhook-url}}" 842 | }, 843 | "response": [] 844 | }, 845 | { 846 | "name": "Switch port link speed changed", 847 | "id": "14f94074-e00e-4b6c-a8e8-54059fec8484", 848 | "request": { 849 | "method": "POST", 850 | "header": [ 851 | { 852 | "key": "Content-Type", 853 | "value": "application/json" 854 | } 855 | ], 856 | "body": { 857 | "mode": "raw", 858 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.540980Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Switch port link speed changed\",\n \"alertTypeId\": \"port_speed_change\",\n \"alertLevel\": \"informational\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"portNum\": 3,\n \"description\": \"10 Gbps to 100 Gbps\",\n \"status\": \"100 Gbps\",\n \"prevStatus\": \"10 Gbps\",\n \"portDesc\": \"Corp Access\"\n }\n}" 859 | }, 860 | "url": "{{webhook-url}}" 861 | }, 862 | "response": [] 863 | }, 864 | { 865 | "name": "UDLD error", 866 | "id": "ba602cbf-a41d-4d64-8507-908963d73fbf", 867 | "request": { 868 | "method": "POST", 869 | "header": [ 870 | { 871 | "key": "Content-Type", 872 | "value": "application/json" 873 | } 874 | ], 875 | "body": { 876 | "mode": "raw", 877 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.553469Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"UDLD error\",\n \"alertTypeId\": \"udld_error\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"errorType\": \"Unidirectional link (outbound fault)\",\n \"action\": \"none\",\n \"port\": {\n \"port\": 52,\n \"moduleSlot\": 0,\n \"modulePid\": \"\"\n }\n }\n}" 878 | }, 879 | "url": "{{webhook-url}}" 880 | }, 881 | "response": [] 882 | }, 883 | { 884 | "name": "Unreachable devices detected", 885 | "id": "c9f64661-366f-4eaf-b869-d8efa82ab760", 886 | "request": { 887 | "method": "POST", 888 | "header": [ 889 | { 890 | "key": "Content-Type", 891 | "value": "application/json" 892 | } 893 | ], 894 | "body": { 895 | "mode": "raw", 896 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.509977Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Unreachable devices detected\",\n \"alertTypeId\": \"firewall_test_failed\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"failingNodes\": \"Inside AP\\nRecycle Shed AP\"\n }\n}" 897 | }, 898 | "url": "{{webhook-url}}" 899 | }, 900 | "response": [] 901 | }, 902 | { 903 | "name": "Uplink IPv6 duplicate address detected", 904 | "id": "2ffa98a4-b8f9-43a5-a852-5061840bfae2", 905 | "request": { 906 | "method": "POST", 907 | "header": [ 908 | { 909 | "key": "Content-Type", 910 | "value": "application/json" 911 | } 912 | ], 913 | "body": { 914 | "mode": "raw", 915 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.539307Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Uplink IPv6 duplicate address detected\",\n \"alertTypeId\": \"uplink_ip6_conflict\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"conflictingIp\": \"192.168.1.2\",\n \"contendingMac\": \"00:11:22:33:44:55\"\n }\n}" 916 | }, 917 | "url": "{{webhook-url}}" 918 | }, 919 | "response": [] 920 | }, 921 | { 922 | "name": "Uplink status changed", 923 | "id": "8de2a620-83b3-41a1-b8f1-d5253ac14614", 924 | "request": { 925 | "method": "POST", 926 | "header": [ 927 | { 928 | "key": "Content-Type", 929 | "value": "application/json" 930 | } 931 | ], 932 | "body": { 933 | "mode": "raw", 934 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.502582Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My switch\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MS\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"Uplink status changed\",\n \"alertTypeId\": \"failover_event\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"uplink\": \"0\"\n }\n}" 935 | }, 936 | "url": "{{webhook-url}}" 937 | }, 938 | "response": [] 939 | }, 940 | { 941 | "name": "VPN connectivity changed", 942 | "id": "a647e060-1012-44d7-95fd-710ecbfbee35", 943 | "request": { 944 | "method": "POST", 945 | "header": [ 946 | { 947 | "key": "Content-Type", 948 | "value": "application/json" 949 | } 950 | ], 951 | "body": { 952 | "mode": "raw", 953 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.528201Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"My appliance\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"MX\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"VPN connectivity changed\",\n \"alertTypeId\": \"vpn_connectivity_change\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {\n \"vpnType\": \"l2tpv3\",\n \"vap\": \"1\",\n \"onSecondary\": false,\n \"secondaryEndpoint\": \"192.168.1.2\",\n \"primaryEndpoint\": \"192.168.1.1\",\n \"connectivity\": \"true\",\n \"peerNetworkName\": \"Corp Access\",\n \"peerNetworkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"peerNetworkId\": \"N_24329156\"\n }\n}" 954 | }, 955 | "url": "{{webhook-url}}" 956 | }, 957 | "response": [] 958 | }, 959 | { 960 | "name": "translation missing: en.alerts.analyzed_app_network_insight_performance_alert", 961 | "id": "221f97f7-36c7-46a8-803f-50c8ee3480b9", 962 | "request": { 963 | "method": "POST", 964 | "header": [ 965 | { 966 | "key": "Content-Type", 967 | "value": "application/json" 968 | } 969 | ], 970 | "body": { 971 | "mode": "raw", 972 | "raw": "{\n \"version\": \"0.1\",\n \"sharedSecret\": \"secret\",\n \"sentAt\": \"2021-10-07T08:38:40.485154Z\",\n \"organizationId\": \"2930418\",\n \"organizationName\": \"My organization\",\n \"organizationUrl\": \"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\",\n \"networkId\": \"N_24329156\",\n \"networkName\": \"Main Office\",\n \"networkUrl\": \"https://n1.meraki.com//n//manage/nodes/list\",\n \"networkTags\": [],\n \"deviceSerial\": \"Q234-ABCD-5678\",\n \"deviceMac\": \"00:11:22:33:44:55\",\n \"deviceName\": \"\",\n \"deviceUrl\": \"https://n1.meraki.com//n//manage/nodes/new_list/000000000000\",\n \"deviceTags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"deviceModel\": \"\",\n \"alertId\": \"0000000000000000\",\n \"alertType\": \"translation missing: en.alerts.analyzed_app_network_insight_performance_alert\",\n \"alertTypeId\": \"analyzed_app_network_insight_performance_alert\",\n \"alertLevel\": \"warning\",\n \"occurredAt\": \"2018-02-11T00:00:00.123450Z\",\n \"alertData\": {}\n}" 973 | }, 974 | "url": "{{webhook-url}}" 975 | }, 976 | "response": [] 977 | }, 978 | { 979 | "name": "New Request", 980 | "id": "5b898339-aa76-47ee-ad1a-17d77f8203d1", 981 | "protocolProfileBehavior": { 982 | "disableBodyPruning": true 983 | }, 984 | "request": { 985 | "method": "GET", 986 | "header": [] 987 | }, 988 | "response": [] 989 | } 990 | ], 991 | "event": [ 992 | { 993 | "listen": "prerequest", 994 | "script": { 995 | "id": "3c150b48-8663-4310-b3f8-354320db18f7", 996 | "type": "text/javascript", 997 | "exec": [ 998 | "" 999 | ] 1000 | } 1001 | }, 1002 | { 1003 | "listen": "test", 1004 | "script": { 1005 | "id": "9b703bf0-18ce-4f12-bb81-45ac80081770", 1006 | "type": "text/javascript", 1007 | "exec": [ 1008 | "" 1009 | ] 1010 | } 1011 | } 1012 | ] 1013 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Meraki-Postman-Collections 2 | 3 | 4 | The Collection JSON source files can be found in the [Postman Collections](https://github.com/dexterlabora/Meraki-Dashboard-API-Postman-Collection/tree/master/Postman%20Collections) directory. 5 | 6 | **Click a collection button below to get started.** 7 | 8 | ## Dashboard API v1 9 | 10 | [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/077d6ba7ce58f9b930bf) 11 | 12 | ## Dashboard API v1-beta 13 | 14 | [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/a1762196c8be8baabf56) 15 | 16 | ## Dashboard API v1-beta Diff 17 | 18 | *Only contains new operations and default root shortcuts* 19 | 20 | [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/6d2de8ccf871e0182c13) 21 | 22 | ## Dashboard API v0 23 | 24 | [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/482e1b499c2b0162402b) 25 | 26 | ## Location Scanning API Samples 27 | 28 | [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/c751ca894f2eed4c4cbd) 29 | 30 | ## Webhook Samples 31 | 32 | [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/9a280d254dcccfa21075) 33 | 34 | ## Meraki Public Utilities 35 | 36 | - Meraki Postman Collection generator. 37 | Use this to create a collection unique to your organization's open API spec 38 | 39 | - Meraki Changelog generator. 40 | Use this to create a changelog and JSON diff of two Meraki OpenAPI specs 41 | 42 | [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/efb81060c5f855a4c72c) 43 | 44 | 45 | ~~ 46 | # More Info 47 | 48 | [Meraki.io](https://meraki.io) 49 | -------------------------------------------------------------------------------- /tests/pagination.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Postman Pagination Script 3 | * 4 | * This script is designed to handle pagination in APIs by extracting 5 | * the necessary information from the Link header of the HTTP response. 6 | * It then sets the startingAfter and endingBefore environment variables 7 | * in Postman which can be used as query parameters for subsequent API 8 | * calls to navigate through paginated data. 9 | * 10 | * How to Use: 11 | * 1. Add this script to the "Tests" section of your Postman request. 12 | * 2. Make an initial API call to an endpoint that supports pagination. 13 | * 3. If the response contains a Link header with pagination links, 14 | * the script will parse it and set the startingAfter or endingBefore 15 | * environment variables. 16 | * 4. Use these environment variables in your Postman collection as query 17 | * parameters for the remaining pagination calls. 18 | */ 19 | 20 | function parseLinkHeader(header) { 21 | const links = {}; 22 | const entries = header.split(', '); 23 | entries.forEach(entry => { 24 | const parts = entry.split('; '); 25 | if (parts.length === 2) { 26 | const urlPart = parts[0]; 27 | const relPart = parts[1]; 28 | const url = urlPart.slice(1, -1); // Remove the angle brackets 29 | const relMatch = relPart.match(/rel="?([^"]+)"?/); 30 | if (relMatch) { 31 | const rel = relMatch[1]; 32 | const params = {}; 33 | const urlParts = url.split('?'); 34 | if (urlParts.length > 1) { 35 | const queryParams = urlParts[1].split('&'); 36 | queryParams.forEach(param => { 37 | const [key, value] = param.split('='); 38 | params[key] = decodeURIComponent(value); // Decode the URL-encoded value 39 | }); 40 | // console.log('Parsed params:', params); 41 | links[rel] = params; 42 | } else { 43 | console.log("No query parameters found in URL:", url); 44 | } 45 | } else { 46 | console.log("No rel value found in entry:", entry); 47 | } 48 | } else { 49 | console.log("Unexpected entry format:", entry); 50 | } 51 | }); 52 | return links; 53 | } 54 | 55 | const linkHeader = pm.response.headers.get('Link'); 56 | if(linkHeader){ 57 | // console.log('Link header found:', linkHeader); 58 | const parsedLinks = parseLinkHeader(linkHeader); 59 | pm.environment.set("parsedLinks", JSON.stringify(parsedLinks)); 60 | // console.log('Parsed links:', JSON.stringify(parsedLinks)); 61 | // Check if the 'next' link is present, and if so, save its query parameters as environment variables 62 | if (parsedLinks.next) { 63 | const startingAfter = parsedLinks.next.startingAfter; 64 | console.log("Pagination: Set environment variable: startingAfter", startingAfter); 65 | pm.environment.set("startingAfter", startingAfter); 66 | } 67 | // Similar block for 'prev', if it's present 68 | if (parsedLinks.prev) { 69 | const endingBefore = parsedLinks.prev.endingBefore; 70 | console.log("Pagination: Set environment variable: endingBefore", endingBefore); 71 | pm.environment.set("endingBefore", endingBefore); 72 | } 73 | } else { 74 | console.log('No Link header found.'); 75 | } 76 | --------------------------------------------------------------------------------