Apostrophe CMS Main Site Forum Home

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


#1

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?


#2

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