Is there an API that we can use to search existing callbacks by phone number/CLI?
Use Case: customer calls the IVR and there is a long wait in the queue, before offering a callback, we need to check if the number/CLI already had a callback scheduled.
mediaType: this filter serves to include callbacks.
segmentEnd: this filter includes only callbacks that are not ended (still waiting in the queue).
callbackNumber: customer's ANI.
Feel free to make some tests directly whithin the dev tools. Once you are good, you can create a Data Action to be consumed in your Architect call flows.