This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

How to create an API key for Apstrophe Headless Node module?

I am trying to create a product using POST REST API call :

http://localhost:3000/api/v1/products

Headers:
Accept:application/json
Content-Type:application/json
X-XSRF-TOKEN:cjic0uzjp000jrz4qe7nozq4w

Response:

{
“error”: “error”
}

I am not able to create a resource. Can someone help me?

Hi Arpit, please direct how-to questions to Stack Overflow and tag them “apostrophe-cms” so others can find the answers too. Thanks!