Interface StartCallRequest


public interface StartCallRequest
Request to start a single outbound call.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Dedicated Builder
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting builder
    An ordered list of SVAML v2 (Sinch Voice Application Markup Language) commands that describe a call flow.
    Client-generated idempotency key to safely retry requests.
  • Method Details

    • getCommands

      List<SvamlCommand> getCommands()
      An ordered list of SVAML v2 (Sinch Voice Application Markup Language) commands that describe a call flow. Commands are executed sequentially in the order they are defined.

      Blocking vs. non-blocking: Some commands block execution until they complete (pause , webhook, menu, gotoMenu), while others return immediately and run in parallel (dial, messages, amd, answer, hangup, startRecording, stopRecording , bridgeCall, stopMessages). Each command's description specifies its behavior.

      Nesting scope: Commands that appear inside event handlers (e.g., dial.events.onAnswer , messages.events.onFinish) form independent sequences and execute in their own context — they are not continuations of the parent sequence.

      Field is required

      Returns:
      commands
    • getIdempotencyKey

      String getIdempotencyKey()
      Client-generated idempotency key to safely retry requests. The server uses this key to recognize retries of the same request. If a request with the same key is received within 10 minutes, the server returns the cached response from the original request. Using a random UUID (v4) is strongly recommended.

      Sent as the Idempotency-Key header. If not set, the SDK generates one for the call and sends it again on the retries of that call. Set your own key if you need to retry the call yourself, since the generated one is not returned.

      Returns:
      idempotencyKey
    • builder

      static StartCallRequest.Builder builder()
      Getting builder
      Returns:
      New Builder instance