Answers.Body: <p>Assuming you're using a hidden <code>action</code> input, then <code>sproutForms/entries/saveEntry</code> should be correct.  You can see that in the Craft docs here: <a href="https://docs.craftcms.com/v2/plugins/controllers.html#posting-to-controller-actions" rel="nofollow noreferrer">https://docs.craftcms.com/v2/plugins/controllers.html#posting-to-controller-actions</a></p>
  
  <p>If you're not using that input, or you're constructing the URL to post to manually, then it will likely be <code>actions/sproutForms/entries/saveEntry</code> instead, assuming you have set a custom <a href="https://docs.craftcms.com/v2/config-settings.html#actiontrigger" rel="nofollow noreferrer">actionTrigger</a> in your general config.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-24T19:00:00.590Z
Answers.Text: How would CSRF support play out in a request to Craft from another website? As far as receiving the data, I expect as long as it comes in the right format, it'd be received fine. However, is there a way to pass a valid csrfToken to Craft in a third-party post request, or anything we have to do within the plugin to work around that?
Answers.UserDisplayName: Ben Parizek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-27T21:48:26.693Z
Answers.Text: Gah, sorry @BenParizek. Glanced over the fact it's about posting to another website/app.  CSRF is tied to session so it'd be difficult.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-11T00:06:57.023Z
Answers.LastActivityDate: 2018-10-11T00:06:57.023Z
Answers.UserDisplayName: Brad Bell
Body: <p>Is it possible to post a form to Sprout Forms in Craft 2 from a desktop app or another website?</p>
  
  <p>The AJAX example in the docs mentions this - sproutForms/entries/saveEntry
  What would the full URL be?</p>
  
  <p>I did try <a href="http://domainname.com/sproutForms/entries/saveEntry" rel="nofollow noreferrer">http://domainname.com/sproutForms/entries/saveEntry</a> but it gives an 404 error.</p>
  
  <p>Thank you for reading this.</p>
  
Tags: <plugin-sproutforms>
Title: Post to Sprout Forms plugin from an app or another website
ThreadText: # Post to Sprout Forms plugin from an app or another website
  
  (Asked by: username_0 on 2018-10-10)
  
  Is it possible to post a form to Sprout Forms in Craft 2 from a desktop app or another website?
  
  The AJAX example in the docs mentions this - sproutForms/entries/saveEntry
  What would the full URL be?
  
  I did try <http://domainname.com/sproutForms/entries/saveEntry> but it gives an 404 error.
  
  Thank you for reading this.
  
  **Tags:** plugin-sproutforms
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-10-11. Score: 1
  
  Assuming you're using a hidden `action` input, then `sproutForms/entries/saveEntry` should be correct. You can see that in the Craft docs here: <https://docs.craftcms.com/v2/plugins/controllers.html#posting-to-controller-actions>
  
  If you're not using that input, or you're constructing the URL to post to manually, then it will likely be `actions/sproutForms/entries/saveEntry` instead, assuming you have set a custom [actionTrigger](https://docs.craftcms.com/v2/config-settings.html#actiontrigger) in your general config.
  
  > **Comments:**
  > **username_2**: How would CSRF support play out in a request to Craft from another website? As far as receiving the data, I expect as long as it comes in the right format, it'd be received fine. However, is there a way to pass a valid csrfToken to Craft in a third-party post request, or anything we have to do within the plugin to work around that?  
  > **username_1**: Gah, sorry @username_2. Glanced over the fact it's about posting to another website/app.  CSRF is tied to session so it'd be difficult.  
  
  ---
  
  