Setup

Form endpoint

https://api-relay.egeansoft.com/api/contact

Place this URL in the form's action attribute, set the method to POST, and add a name attribute to each input.

Use with AI assistants

Working with AI? Copy and paste the following prompt into your chat to help AI integrate your contact form.

I have a contact form endpoint at:
https://api-relay.egeansoft.com/api/contact

It accepts POST requests with JSON body: { name, email, message }
All three fields are required strings. The endpoint returns { success: true } on success.
CORS is configured for my website's domain.

Help me integrate this into my website's contact form. Match my existing design and handle loading/error states.

Code examples

<!-- Place this form wherever you want your contact form -->
<form
  action="https://api-relay.egeansoft.com/api/contact"
  method="POST"
>
  <label>
    Your name:
    <input type="text" name="name" required>
  </label>
  <label>
    Your email:
    <input type="email" name="email" required>
  </label>
  <label>
    Your message:
    <textarea name="message" required></textarea>
  </label>
  <button type="submit">Send</button>
</form>

Required fields

FieldTypeDescription
namestringSender's name
emailstringValid email address
messagestringMessage body