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

# Ko-fi API reference

> API reference for the Ko-fi plugin in Corsair: every `kofi.api.*` operation with its input and output types, taken from the plugin's Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Webhooks

### listEvents

`webhooks.listEvents`

List the payment types Ko-fi can deliver, from its webhook reference; makes no API call, because Ko-fi has no REST API

**Risk:** `read`

```ts theme={null}
await corsair.kofi.api.webhooks.listEvents({});
```

**Input:** *empty object*

Returns the four documented payment types from Ko-fi’s webhook reference. Makes no API call, because Ko-fi has none.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `events` | `object[]` | Yes | — |

> [accordion] events full type
>
> ```ts theme={null}
> {
>   type: string,
>   description: string,
>   docs_url: string
> }[]
> ```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.