Testing
If you’d like to test in-app and push notifications via the command-line, you can send a single notification through the terminal via CURL and the Messaging API. You will need to replace the following fields with the correct values for your test case:
YOUR_API_KEY
— available on the Developer Console pageYOUR_EXTERNAL_USER_ID
— available on the User Profile Search Page. See documentation on assigning user IDsYOUR_KEY1
(optional)YOUR_VALUE1
(optional)
1
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer " -d "{\"external_user_ids\":[\"YOUR_EXTERNAL_USER_ID\"],\"messages\":{\"apple_push\":{\"alert\":\"Test push\",\"extra\":{\"YOUR_KEY1\":\"YOUR_VALUE1\"}}}}" https://rest.iad-01.braze.com/messages/send
The above is an example for customers on the
US-01
instance. If you are not on this instance please refer to our API documentation to see which endpoint to make requests to.