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

# createPlatformServer

***

> **createPlatformServer**(): `PlatformServer`

Creates a platform server client.

This is the entry point of the Platform SDK on your backend. Import it from
`@base44/platform/server`. The client gives your server access to the platform's server modules,
such as [`webhooks`](https://docs.base44.com/developers/references/platform-sdk/docs/interfaces/webhooks). It takes no
options and makes no network requests. Each module takes what it needs when you call it.

## Returns

`PlatformServer`

The platform server client, with one property for each module.

A new platform server client.

> **Properties**
>
> **webhooks** `WebhooksModule` *required*
>
> [Webhooks module](https://docs.base44.com/developers/references/platform-sdk/docs/interfaces/webhooks.md) for receiving and verifying Base44's webhooks.

#### Example

```typescript Create a server client on your backend theme={null}
import { createPlatformServer } from '@base44/platform/server';

const platform = createPlatformServer();

// Use the client to receive webhooks
export const POST = platform.webhooks.createHandler({
  publicKeys: process.env.BASE44_WEBHOOK_PUBLIC_KEYS,
  on: {
    'app.deleted.v1': async (event) => removeApp(event.data.app_id),
  },
});
```


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