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

# getKeyAuthor

> Function getKeyAuthor in the Baileys API.

> **getKeyAuthor**(`key`, `meId`): `string`

Defined in: [src/Utils/generics.ts:48](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/generics.ts#L48)

## Parameters

### key

`undefined` | `null` | [`WAMessageKey`](/api-reference/type-aliases/WAMessageKey)

### meId

`string` = `'me'`

## Returns

`string`
