Title: API Form Post-Request
Last modified: March 31, 2022

---

# API Form Post-Request

 *  [bardelt](https://wordpress.org/support/users/bardelt/)
 * (@bardelt)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/api-form-post-request/)
 * Hi,
 * I use a ContactForm json form call to fill out a form via the interface of webinar
   software and then send an email.
 * If I specify the domain for the call in the form code, everything works as desired.
   The code will execute correctly and the requested email will be sent.
    The provider
   of the webinar software does not change anything in the code except for the value
   linking of the fields.
 * However, if I use a sub-domain or have installed WordPress in a directory domain.
   com/webinar/, the form is no longer filled out or the desired email is sent.
 * It seems that Contact Form 7 doesn’t support subdomain or directory on invocation
   here. Can this be?
 * Here my code:`
 *     ```
       This works:
   
       <form action="https://domain.de/wp-json/contact-form-7/v1/contact-forms/2/feedback" method="post">
         <label for="your-name">Dein Name</label>
         <input id="your-name" type="text" name="your-name">
         <label for="your-lastname">Dein Nachname</label>
         <input id="your-lastname" type="text" name="your-lastname">
         <label for="your-email">Deine E-Mail-Adresse</label>
         <input id="your-email" type="text" name="your-email">
         <!-- Other input elements -->
         <button type="submit">Submit</button>
       </form>
   
       This doens't Work:
   
       <form action="https://sub.domain.de/wp-json/contact-form-7/v1/contact-forms/2/feedback" method="post">
         <label for="your-name">Dein Name</label>
         <input id="your-name" type="text" name="your-name">
         <label for="your-lastname">Dein Nachname</label>
         <input id="your-lastname" type="text" name="your-lastname">
         <label for="your-email">Deine E-Mail-Adresse</label>
         <input id="your-email" type="text" name="your-email">
         <!-- Other input elements -->
         <button type="submit">Submit</button>
       </form>
   
       <form action="https://domain.de/foldername/wp-json/contact-form-7/v1/contact-forms/2/feedback" method="post">
         <label for="your-name">Dein Name</label>
         <input id="your-name" type="text" name="your-name">
         <label for="your-lastname">Dein Nachname</label>
         <input id="your-lastname" type="text" name="your-lastname">
         <label for="your-email">Deine E-Mail-Adresse</label>
         <input id="your-email" type="text" name="your-email">
         <!-- Other input elements -->
         <button type="submit">Submit</button>
       </form>
       ```
   
 * Does anyone have an idea or a solution?
    A separate WordPress installation runs
   in the directory (foldername)
 * Best Regards
    Dirk
 * Best Regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/api-form-post-request/#post-15515963)
 * See [Getting started with Contact Form 7](https://contactform7.com/getting-started-with-contact-form-7/)

Viewing 1 replies (of 1 total)

The topic ‘API Form Post-Request’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/api-form-post-request/#post-15515963)
 * Status: not resolved