***

title: hangup
slug: /reference/typescript/agents/swml-builder/hangup
description: Add a hangup verb to end the current call.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Add a `hangup` verb to the main section. Ends the current call.

## **Parameters**

<ParamField path="config" type="Record<string, unknown> | undefined" toc={true}>
  Optional configuration object for the hangup verb. Supported keys:

  * `reason` (`'hangup' | 'busy' | 'decline'`) -- The reason for hanging up the call.
</ParamField>

## **Returns**

`this` -- The builder instance for method chaining.

## **Example**

```typescript {5}
import { SwmlBuilder } from '@signalwire/sdk';

const builder = new SwmlBuilder();
builder.answer();
builder.hangup({ reason: 'hangup' });
```