# base44

base44 builds web apps from a chat prompt. You'll add the Ideal Postcodes Address Finder with our [React component](/docs/address-finder/react.md).

## What you'll add

The [Ideal Postcodes Address Finder](/docs/address-finder.md) on any address form, via its [React component](/docs/address-finder/react.md). UK lookups are backed by the Royal Mail PAF dataset.

## 1. Get an API key

* Quick test: paste `ak_test` as your key. Capped at 5 lookups/day. Will break in production.
* Real key: [sign up](https://account.ideal-postcodes.co.uk/users/sign_up) for a free trial balance.

## 2. Starter prompt

Paste this into the base44 chat with your `ak_…` key dropped in. It points the agent at a [reference page](/docs/integrations/base44-prompt.md) carrying the React-specific integration rules, including where the key should live for your plan, so the prompt itself stays short and the agent handles the rest:

```text
Find every address form in this app and list them, then ask me to
confirm which ones should get the Ideal Postcodes Address Finder.
Add it to the forms I confirm using the Ideal Postcodes React component
(@ideal-postcodes/react).

This is a React app. Fetch and follow the integration rules at:
https://docs.ideal-postcodes.co.uk/docs/integrations/base44-prompt.md

My API key is ak_xxxxxxxx. Place it wherever those rules say it belongs for
this app (it's a publishable browser key). After deploying, print the app's
origin in chat so I can add it to the key's Allowed URLs.
```

The full rule set lives at [base44 integration rules](/docs/integrations/base44-prompt.md) if you want to read it yourself.

## 3. Lock down your API Key

1. When you're ready to go live, apply the appropriate [Allow URLs](/docs/guides/api-key-secure.md#allow-urls) setting to your key.
2. Add the origins your app runs on, e.g. `*.base44.app` (preview) and `*.yourdomain.com` (production).

## Need help?

* File an issue: [github.com/ideal-postcodes/feedback](https://github.com/ideal-postcodes/feedback/issues)
* Email: <support@ideal-postcodes.co.uk>
