> ## 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.

> ## Agent Instructions
> Internal links on these pages omit the .md extension. Append .md to a docs page URL, or send an Accept: text/markdown header, to get that page as markdown.

# 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`](/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.

<Accordion title="Properties">
  <ResponseField name="webhooks" type="WebhooksModule" required>
    [Webhooks module](/developers/references/platform-sdk/docs/interfaces/webhooks) for receiving and verifying Base44's webhooks.
  </ResponseField>
</Accordion>

#### Example

<CodeGroup>
  ```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),
    },
  });
  ```
</CodeGroup>


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