Skip to main content

Answer Incoming Call

POST 

/api/webphone/answer/:call_id

Answer an incoming phone call by joining the room.

Flow:

  1. Incoming call webhook creates room and database record
  2. Frontend polls or receives WebSocket notification
  3. User clicks "Answer"
  4. This endpoint generates token for user to join existing room
  5. Frontend joins room with WebRTC

Args: call_id: Call ID from incoming call notification web_context: Authenticated user context phone_call_service: Phone call service for managing calls

Returns: PhoneCallResponse with connection details

Request

Responses

Successful Response