<p>You would not use the headless API to submit content in into Craft, as neither the GraphQL or Element APIs support writing.</p>

<p>The frontend entry form functionality is <a href="https://docs.craftcms.com/v3/dev/examples/entry-form.html" rel="nofollow noreferrer">fairly well documented</a>. You would just need your frontend to build out a post request including the correct action, CSRF token, and whatever fields are needed. The action endpoint will automatically return a JSON response if it is posted to by an AJAX request. </p>

CC BY-SA 4.0
2019-10-30T21:17:21.257Z
2019-10-30T21:17:21.257Z
Jeremy Gimbel
<p>I have front-end form on Vue.js and Craft CMS for the backend. I need form. And I want to save data from the form in Craft CMS. How to save data from user frontend to backend on Craft CMS? </p>

CC BY-SA 4.0
2019-07-07T05:52:24.397Z
Does this help at all? https://nystudio107.com/blog/using-vuejs-2-0-with-craft-cms
Brad Bell
CC BY-SA 4.0
2019-07-08T08:08:12.630Z
Thanks, but this isn't solve my problem
Людмила Петчик
<craft3><database><form><vue>
How save data from form in headless Craft via Vue.js
# How save data from form in headless Craft via Vue.js

(Asked by: username_0 on 2019-07-03)

I have front-end form on Vue.js and Craft CMS for the backend. I need form. And I want to save data from the form in Craft CMS. How to save data from user frontend to backend on Craft CMS?

**Tags:** craft3, database, form, vue
> **Comments:**
> **username_1**: Does this help at all? https://nystudio107.com/blog/using-vuejs-2-0-with-craft-cms  
> **username_0**: Thanks, but this isn't solve my problem  

---

## 1 answers

### Answer by username_2 on 2019-10-30. Score: 1

You would not use the headless API to submit content in into Craft, as neither the GraphQL or Element APIs support writing.

The frontend entry form functionality is [fairly well documented](https://docs.craftcms.com/v3/dev/examples/entry-form.html). You would just need your frontend to build out a post request including the correct action, CSRF token, and whatever fields are needed. The action endpoint will automatically return a JSON response if it is posted to by an AJAX request.


---

