> ## Documentation Index
> Fetch the complete documentation index at: https://javascript.wapikit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Contact

[Wapi.js Docs](../README.mdx) / Contact

# Class: Contact

Represents a contact.

## Constructors

### new Contact()

> **new Contact**(`params`): [`Contact`](Contact.mdx)

Creates a new Contact instance.

#### Parameters

• **params**

The parameters for creating a Contact instance.

• **params.name**

The name of the contact.

• **params.name.first\_name?**: `string`= `undefined`

• **params.name.formatted\_name**: `string`= `undefined`

• **params.name.last\_name?**: `string`= `undefined`

• **params.name.middle\_name?**: `string`= `undefined`

• **params.name.prefix?**: `string`= `undefined`

• **params.name.suffix?**: `string`= `undefined`

#### Returns

[`Contact`](Contact.mdx)

#### Source

[packages/wapi.js/src/structures/contact/index.ts:34](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L34)

## Properties

### addresses?

> `optional` **addresses**: `object`\[]

#### Source

[packages/wapi.js/src/structures/contact/index.ts:20](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L20)

***

### birthday?

> `optional` **birthday**: `string`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:24](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L24)

***

### emails?

> `optional` **emails**: `object`\[]

#### Source

[packages/wapi.js/src/structures/contact/index.ts:22](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L22)

***

### name

> **name**: `object`

#### first\_name?

> `optional` **first\_name**: `string`

#### formatted\_name

> **formatted\_name**: `string`

#### last\_name?

> `optional` **last\_name**: `string`

#### middle\_name?

> `optional` **middle\_name**: `string`

#### prefix?

> `optional` **prefix**: `string`

#### suffix?

> `optional` **suffix**: `string`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:26](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L26)

***

### org?

> `optional` **org**: `object`

#### company?

> `optional` **company**: `string`

#### department?

> `optional` **department**: `string`

#### title?

> `optional` **title**: `string`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:25](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L25)

***

### phones?

> `optional` **phones**: `object`\[]

#### Source

[packages/wapi.js/src/structures/contact/index.ts:23](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L23)

***

### urls?

> `optional` **urls**: `object`\[]

#### Source

[packages/wapi.js/src/structures/contact/index.ts:21](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L21)

## Methods

### addAddress()

> **addAddress**(`address`): `void`

Adds an address to the contact.

#### Parameters

• **address**

The address to add to the contact.

• **address.city?**: `string`= `undefined`

• **address.country?**: `string`= `undefined`

• **address.country\_code?**: `string`= `undefined`

• **address.state?**: `string`= `undefined`

• **address.street?**: `string`= `undefined`

• **address.type**: `"HOME"` | `"WORK"`= `undefined`

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:90](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L90)

***

### addEmail()

> **addEmail**(`email`): `void`

Adds an email to the contact.

#### Parameters

• **email**

The email to add to the contact.

• **email.email?**: `string`= `undefined`

• **email.type**: `"HOME"` | `"WORK"`= `undefined`

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:106](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L106)

***

### addPhone()

> **addPhone**(`phone`): `void`

Adds a phone number to the contact.

#### Parameters

• **phone**

The phone number to add to the contact.

• **phone.phone?**: `string`= `undefined`

• **phone.type?**: `"HOME"` | `"WORK"` | `"CELL"` | `"MAIN"` | `"IPHONE"`= `undefined`

• **phone.wa\_id?**: `string`= `undefined`

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:114](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L114)

***

### addUrl()

> **addUrl**(`url`): `void`

Adds a URL to the contact.

#### Parameters

• **url**

The URL to add to the contact.

• **url.type**: `"HOME"` | `"WORK"`= `undefined`

• **url.url**: `string`= `undefined`

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:98](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L98)

***

### setBirthday()

> **setBirthday**(`date`): `void`

Sets the birthday of the contact.

#### Parameters

• **date**: `string`

The birthday of the contact.

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:122](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L122)

***

### setFirstName()

> **setFirstName**(`firstName`): `void`

Sets the first name of the contact.

#### Parameters

• **firstName**: `string`

The first name of the contact.

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:50](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L50)

***

### setLastName()

> **setLastName**(`lastName`): `void`

Sets the last name of the contact.

#### Parameters

• **lastName**: `string`

The last name of the contact.

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:42](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L42)

***

### setMiddleName()

> **setMiddleName**(`middleName`): `void`

Sets the middle name of the contact.

#### Parameters

• **middleName**: `string`

The middle name of the contact.

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:58](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L58)

***

### setNamePrefix()

> **setNamePrefix**(`prefix`): `void`

Sets the prefix of the contact's name.

#### Parameters

• **prefix**: `string`

The prefix of the contact's name.

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:74](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L74)

***

### setNameSuffix()

> **setNameSuffix**(`suffix`): `void`

Sets the suffix of the contact's name.

#### Parameters

• **suffix**: `string`

The suffix of the contact's name.

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:66](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L66)

***

### setOrg()

> **setOrg**(`org`): `void`

Sets the organization of the contact.

#### Parameters

• **org**

The organization of the contact.

• **org.company?**: `string`= `undefined`

• **org.department?**: `string`= `undefined`

• **org.title?**: `string`= `undefined`

#### Returns

`void`

#### Source

[packages/wapi.js/src/structures/contact/index.ts:82](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/structures/contact/index.ts#L82)
