# Ask Genesis to build with the ESTAGE API

> Ask Genesis in plain words, and it builds a feature that works with your ESTAGE CRM — contacts, emails, automations, orders, bookings — through the ESTAGE API.

Source: https://support.estage.com/ask-genesis-to-build-with-the-estage-api
Part of the ESTAGE Support help center (https://support.estage.com). Full knowledge base: https://support.estage.com/llms-full.txt

---

Genesis can write the server code that talks to your CRM for you. You describe what should happen; Genesis looks up the right calls in the ESTAGE API and writes them. You never write code and never paste a key into the chat.

## Before you start

- **A place for server code.** The API key must stay on a server, so Genesis needs one:
  - a **website** needs a [Dedicated Cloud](https://support.estage.com/cloud) — Genesis writes a Cloud function;
  - a **web app** already has its own server, and Genesis writes the code there ([Web apps](https://support.estage.com/platform-web-apps)).

  A website without a Dedicated Cloud cannot use the API; Genesis says so and offers to set one up.
- **An API key saved for your app's server.** In your project open **Settings → API keys** → **Create key**:
  1. tick only the access the feature needs — for example **Contacts → Read / Write** and **Events → Write**;
  2. tick **Use in this app's server code**;
  3. click **Create key**.

  The key is saved for your app's server as `ESTAGE_API_KEY` and never shown. See [Create and manage API keys](https://support.estage.com/create-and-manage-api-keys).

## Ask for what you want

Write in the chat what should happen, as you would explain it to a person. For example:

- "When someone finishes a lesson in my app, start my ESTAGE follow-up emails for them."
- "When a new user signs up in my app, add them to my CRM with the tag Trial."
- "Show each member the courses they bought, and open a course only while their access is active."
- "Schedule my newsletter campaign for next Monday at 9:00 to the Customers list."
- "Keep my own database in step with ESTAGE: when a contact is created or an order is paid, save it."

Genesis checks that the key is saved, looks up each call in the API reference, and writes the code. If something is missing — no Dedicated Cloud, no key, or a key without the access the feature needs — it tells you what to do first.

## What Genesis does without the API

Some things your site already does through ESTAGE elements, and Genesis uses those instead of the API:

- a visitor's lead → a **form**;
- checkout → an **order form**;
- booking a call → the **meeting booking** block;
- sign-ups in your app → the app's sign-in connected to your CRM.

## Keep in mind

- **Never paste the key into the chat**, and never ask Genesis to put it in your site's code. Genesis refuses both: the key opens your whole CRM.
- **Team members:** a teammate can have Genesis use the key only if their role has **Keys → Edit** and **API keys → Edit** (**Settings → Roles → Project Settings**). Genesis says so when their role cannot.
- **A key you revoke** stops the feature at once. Create a new one with **Use in this app's server code** ticked, and it replaces the old one in your app's server.
- **Emails need a verified sender.** A feature that sends campaigns needs your sending domain and sender address set up in the ESTAGE CRM: **Settings → Email sending**.

## Related

- [Start an automation from your app](https://support.estage.com/start-an-automation-from-your-app)
- [Receive CRM events in your app (webhooks)](https://support.estage.com/receive-crm-events-in-your-app-webhooks)
- [Give access to what people bought](https://support.estage.com/give-access-to-what-people-bought)
- [Building backend features with AI](https://support.estage.com/cloud-building-with-ai)
- Every operation, with its fields and examples: the [API reference](https://support.estage.com/api-reference)
