<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XAPI](./x-components.xapi.md) &gt; [init](./x-components.xapi.init.md)

## XAPI.init() method

Method to initialize the XComponents app.

**Signature:**

```typescript
init(config: SnippetConfig): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  config | [SnippetConfig](./x-components.snippetconfig.md) | [SnippetConfig](./x-components.snippetconfig.md) To receive the customer parameters. |

**Returns:**

Promise&lt;void&gt;

