> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # answer > Add an answer verb to the SWML document. Add an `answer` verb to the main section. Answers an incoming call. ## **Parameters** **`config`** `Record | undefined` Optional configuration object for the answer verb. Supported keys: * `max_duration` (`number`) -- Maximum call duration in seconds. * `codecs` (`string`) -- Comma-separated list of codecs to offer. Valid codecs: `PCMU`, `PCMA`, `G722`, `G729`, `AMR-WB`, `OPUS`, `VP8`, `H264`. * `username` (`string`) -- Username for SIP authentication. * `password` (`string`) -- Password for SIP authentication. --- ## **Returns** `this` -- The builder instance for method chaining. ## **Example** ```typescript {4} import { SwmlBuilder } from '@signalwire/sdk'; const builder = new SwmlBuilder(); builder.answer({ max_duration: 3600 }); builder.play({ url: 'https://example.com/audio.mp3' }); builder.hangup(); ``` > Add an answer verb to the SWML document.