This endpoint will be used in two scenarios
1) When a user reload or signs in to Upsales, we want wo know if the user has any ongoing phone calls.
2) Once a call has been initiated, we'll poll with a few seconds delay to know if the call is still going.
Your app gets a request to the following endpoint
Use the requests body to know which user to check ongoing calls for. This could be the user id body.userId, the accounts config body.config or the users config body.userConfig - it's up to you how the matching is done!
If there's an ongoing call, look up and respond with the corresponding phoneCall object from Upsales API.
If there's no ongoing call, simply respond with an empty body and 200 OK.