### Webhook Request Example

When a call is answered, the API sends a POST request to the configured webhook endpoint that includes the event type and the current call details.

The webhook endpoint should return a valid SVAML payload specifying which commands to execute on the call. For example, the response below synthesizes a welcome message and then ends the call.

```json
{
  "commands": [
    {
      "command": "messages",
      "messages": [
        {
          "type": "SAY",
          "say": {
            "text": "Welcome to our service!",
            "voiceName": "Emma"
          }
        }
      ],
      "events": {
        "onFinish": [
          {
            "command": "hangup"
          }
        ]
      }
    }
  ]
}
```