Callbacks in Tests

I have a couple APIs that follow the flow of:

  1. Send a REST request
  2. In that REST request I supply a URL
  3. When the request is completed a post is sent to the URL I supplied later notifying me it was completed.

How to I wait for that later post to the URL I supplied and validate what it sent?

I’m using a newman docker container to run my collections.