# API

Setting it up is easy and free. Here's how:

## 1. Choose a service

We are going to take [formspree](https://formspree.io/). Setting it up is easy and free.

## 2. Setup the HTML form

Change your form's `action`attribute to this and replace **<your@email.com>** with your own.

```markup
<form accept-charset="UTF-8" action="https://formspree.io/your@email.com" method="POST">
```

## 3. Add a name attribute to every field

Ensure all `<input>`, `<select>` and `<textarea>` elements inside your form have a name attribute, otherwise you will not receive the data filled in these fields.

## 4. Submit the form and confirm your email address

Go to your website and submit the form once. This will send you an email asking to confirm your email address.

## 5. All set, receive emails

From now on, when someone submits that form, we'll forward you the data as email.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flexbox.gitbook.io/foundation-101/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
