Sign in

Create API key

documented

Create an API key for the app.

POST /apps/{app_id}/auth/tokensApps & Keysno 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/apps/{{$app_id}}/auth/tokens" \
  -X POST \
  -H "Authorization: Key {{ONESIGNAL_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{\"name\": \"{{$name}}\", \\"ip_allowlist_mode\\": \\"disabled\\", \\"ip_allowlist\\": [\\"{{$ip_allowlist_1}}\\"]}'  # Sources: OneSignal REST API docs (turn0search2, turn0search1, turn0search6)
Create API key · OneSignal · OpenIntegrations