{
  "info": {
    "name": "OneSignal REST API — mcp.ai",
    "description": "REST API for the OneSignal REST API MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/onesignal_rest_api",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "onesignal_rest_api_begin_live_activity",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/begin/live/activity",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "begin",
            "live",
            "activity"
          ]
        },
        "description": "Tool to start a Live Activity on OneSignal. Use when you need to initiate a Live Activity session with a push token and subscription ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"push_token\": \"\",\n  \"activity_id\": \"\",\n  \"subscription_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_create_notification",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/notification",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "notification"
          ]
        },
        "description": "Tool to create and send a OneSignal push notification. Use when you have your message and target audience ready to dispatch notifications.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"data\": {},\n  \"app_id\": \"\",\n  \"buttons\": \"\",\n  \"filters\": \"\",\n  \"contents\": {},\n  \"headings\": {},\n  \"subtitle\": {},\n  \"ios_sound\": \"\",\n  \"large_icon\": \"\",\n  \"send_after\": \"\",\n  \"big_picture\": \"\",\n  \"extra_params\": {},\n  \"android_sound\": \"\",\n  \"delayed_option\": \"\",\n  \"ios_attachments\": {},\n  \"included_segments\": \"\",\n  \"android_channel_id\": \"\",\n  \"include_player_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_create_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "template"
          ]
        },
        "description": "Tool to create reusable message templates for push, email, and SMS channels. Use when you need to create a template that can be accessed through both the dashboard and API using a template_id.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"isWP\": false,\n  \"name\": \"\",\n  \"isAdm\": false,\n  \"isIos\": false,\n  \"isSMS\": false,\n  \"app_id\": \"\",\n  \"isEdge\": false,\n  \"isEmail\": false,\n  \"contents\": {},\n  \"headings\": {},\n  \"isChrome\": false,\n  \"isMacOSX\": false,\n  \"isSafari\": false,\n  \"isWP_WNS\": false,\n  \"isAndroid\": false,\n  \"isFirefox\": false,\n  \"email_body\": \"\",\n  \"isChromeWeb\": false,\n  \"email_subject\": \"\",\n  \"dynamic_content\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_create_user",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/user",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "user"
          ]
        },
        "description": "Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"identity\": {},\n  \"properties\": {},\n  \"subscriptions\": \"\",\n  \"subscription_options\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_delete_alias",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/alias",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "alias"
          ]
        },
        "description": "Tool to delete an alias by alias label from a OneSignal user. Use when you need to remove a specific alias identity from a user's profile.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"alias_id\": \"\",\n  \"alias_label\": \"\",\n  \"alias_label_to_delete\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_delete_device",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/device",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "device"
          ]
        },
        "description": "Tool to delete a device (player) from a OneSignal app. Use when you need to remove a specific device by its player ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"player_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_fetch_user_identity",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/fetch/user/identity",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "fetch",
            "user",
            "identity"
          ]
        },
        "description": "Tool to retrieve all aliases for a user identified by a specific alias. Use when you need to fetch the complete identity mapping for a OneSignal user.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"alias_id\": \"\",\n  \"alias_label\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_get_eligible_iams",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/eligible/iams",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "eligible",
            "iams"
          ]
        },
        "description": "Tool to retrieve the manifest of In-App Messages that a subscription is eligible to display. Use when you need to fetch eligible IAMs for a specific subscription.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"subscription_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_update_device",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/device",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "device"
          ]
        },
        "description": "Tool to update properties of an existing device. Use when you need to modify device attributes after registration.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"tags\": {},\n  \"ad_id\": \"\",\n  \"app_id\": \"\",\n  \"country\": \"\",\n  \"language\": \"\",\n  \"latitude\": 0,\n  \"playtime\": 0,\n  \"timezone\": 0,\n  \"device_os\": \"\",\n  \"longitude\": 0,\n  \"player_id\": \"\",\n  \"test_type\": 0,\n  \"created_at\": 0,\n  \"identifier\": \"\",\n  \"badge_count\": 0,\n  \"device_type\": 0,\n  \"last_active\": 0,\n  \"amount_spent\": \"\",\n  \"device_model\": \"\",\n  \"game_version\": \"\",\n  \"sms_auth_hash\": \"\",\n  \"email_auth_hash\": \"\",\n  \"external_user_id\": \"\",\n  \"custom_attributes\": {},\n  \"notification_types\": 0,\n  \"external_user_id_auth_hash\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_update_subscription",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/subscription",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "subscription"
          ]
        },
        "description": "Tool to update an existing subscription's properties. Use when you need to modify subscription attributes like token, enabled status, or device information.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"subscription\": {},\n  \"subscription_id\": \"\",\n  \"retain_previous_owner\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_view_an_app",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/an/app",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "an",
            "app"
          ]
        },
        "description": "Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_view_device",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/device",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "device"
          ]
        },
        "description": "Tool to retrieve details of a specific device (player). Use when you have a OneSignal player_id and need current device info.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"player_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_view_devices",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/devices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "devices"
          ]
        },
        "description": "Tool to retrieve a paginated list of devices (players) for a OneSignal app. Use when you need to list or audit all registered devices for a given app.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"app_id\": \"\",\n  \"offset\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_view_notifications",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/notifications",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "notifications"
          ]
        },
        "description": "Tool to retrieve details of multiple notifications. Use when you need to list notifications for a specific app.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"app_id\": \"\",\n  \"offset\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_rest_api_view_segments",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/segments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "segments"
          ]
        },
        "description": "Tool to view segments for a OneSignal app. Use when you need to list all segments associated with an app.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"app_id\": \"\",\n  \"offset\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}