***

title: answer
slug: /reference/typescript/relay/call/answer
description: Answer an inbound RELAY call.
max-toc-depth: 3
---------------------

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

[client-dial]: /docs/server-sdks/reference/typescript/relay/client/dial

[ref-call]: /docs/server-sdks/reference/typescript/relay/call

Answer an inbound call. This must be called before performing any media
operations on the call. For outbound calls created via
[`client.dial()`][client-dial],
the call is already answered when the [`Call`][ref-call] object is returned.

<Note>
  Calling `answer()` on an already-answered call is safe and returns the server
  response without error.
</Note>

## **Parameters**

## **Returns**

`Promise<Record<string, unknown>>` -- Server response confirming the answer operation.

## **Example**

```typescript {10}
import { RelayClient } from '@signalwire/sdk';

const client = new RelayClient({
  project: process.env.SIGNALWIRE_PROJECT_ID!,
  token: process.env.SIGNALWIRE_TOKEN!,
  contexts: ['default']
});

client.onCall(async (call) => {
  const result = await call.answer();
  console.log(`Answered call ${call.callId}: ${JSON.stringify(result)}`);
});

await client.run();
```