{
  "info": {
    "name": "OneSignal User Auth — mcp.ai",
    "description": "REST API for the OneSignal User Auth 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_user_auth",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "onesignal_user_auth_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 new user or modify the subscriptions associated with an existing user. Use when you need to register a user with OneSignal or update their subscriptions.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"identity\": {},\n  \"properties\": {},\n  \"subscriptions\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_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 remove an alias from a OneSignal user. Use when you need to delete a specific alias identifier from a user while preserving other aliases. The user is identified by one alias (alias_label/alia",
        "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_user_auth_edit_device",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/edit/device",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "edit",
            "device"
          ]
        },
        "description": "Tool to update an existing OneSignal device (player) record. Use when you have the player_id and need to modify device attributes.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"lat\": 0,\n  \"sdk\": \"\",\n  \"long\": 0,\n  \"tags\": {},\n  \"ad_id\": \"\",\n  \"app_id\": \"\",\n  \"country\": \"\",\n  \"language\": \"\",\n  \"playtime\": 0,\n  \"timezone\": 0,\n  \"device_os\": \"\",\n  \"player_id\": \"\",\n  \"created_at\": 0,\n  \"identifier\": \"\",\n  \"badge_count\": 0,\n  \"last_active\": 0,\n  \"amount_spent\": 0,\n  \"device_model\": \"\",\n  \"game_version\": \"\",\n  \"session_count\": 0,\n  \"notification_types\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_onesignal_view_segment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/onesignal/view/segment",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "onesignal",
            "view",
            "segment"
          ]
        },
        "description": "Tool to retrieve the subscriber count for a specific OneSignal segment. Use when you need to know how many subscribers are in a segment.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"segment_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_update_subscription_by_token",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/subscription/by/token",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "subscription",
            "by",
            "token"
          ]
        },
        "description": "Tool to update properties on an existing subscription using its token. Use when you need to enable or disable subscription status when managing outside of the OneSignal SDK.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"token\": \"\",\n  \"app_id\": \"\",\n  \"token_type\": \"\",\n  \"subscription\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_view_app",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/app",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "app"
          ]
        },
        "description": "Tool to retrieve details for a specific OneSignal app. Use after authenticating to inspect app settings.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_view_broadcasts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/broadcasts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "broadcasts"
          ]
        },
        "description": "Tool to view inbox broadcasts for a OneSignal app. Returns broadcasts in descending order of creation. Use when retrieving in-app messages or inbox content for an app.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"app_id\": \"\",\n  \"last_broadcast_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_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 for a specific device/player. Use when you have a player_id and optional app_id.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"player_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_view_outcomes",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/outcomes",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "outcomes"
          ]
        },
        "description": "Tool to view all outcomes associated with a OneSignal app. Use to retrieve outcome metrics filtered by time range, platforms, and attribution type.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"outcome_names\": \"\",\n  \"outcome_platforms\": \"\",\n  \"outcome_time_range\": \"\",\n  \"outcome_attribution\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_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 list all segments for an app. Use after obtaining the app_id to retrieve a paginated list of segments.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"app_id\": \"\",\n  \"offset\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_view_user",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/user",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "user"
          ]
        },
        "description": "Tool to retrieve user details by alias label and ID. Use when you need to fetch user data including tags, subscriptions, and identity information.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"alias_id\": \"\",\n  \"alias_label\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "onesignal_user_auth_view_user_unread_message_count",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/view/user/unread/message/count",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "view",
            "user",
            "unread",
            "message",
            "count"
          ]
        },
        "description": "Tool to retrieve the unread message count for a specific user. Use when you need to check how many unread inbox messages a user has.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"app_id\": \"\",\n  \"alias_id\": \"\",\n  \"alias_label\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}