Sign in

Copy template to another app

documented

Copy a template to a different OneSignal app.

POST /templates/{template_id}/copy_to_appTemplatesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.onesignal.com/templates/{{$template_id}}/copy_to_app?app_id={{$app_id}}" \
  -X POST \
  -H "Authorization: Key {{ONESIGNAL_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"target_app_id": "{{$target_app_id}}"}' \
  # For reference, see OneSignal docs: Copy template to another app (POST /templates/{template_id}/copy_to_app) and related templates API.
Copy template to another app · OneSignal · OpenIntegrations