-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Description
Description
mplement an API endpoint for calling using the Twilio API. This endpoint should allow users to call their number specified # # # using the spring boot apllication
Acceptance Criteria
The endpoint should be accessible at POST /api/v1/call/make
The endpoint should accept HTTP POST requests.
The endpoint should call the number using the Twilio API
sample of request payload in JSON
{
"toNumber": "+234..................",
"messageUrl": "https://demo.twilio.com/welcome/voice/xml"
}
the "messageUrl": "https://demo.twilio.com/welcome/voice/xml" points to twilio xml that returns "welcome this is a test call"
Sample of response in JSON
{
"message": "Call initiated successfully",
"callSid": "CA12345678901234567890123456789"
}