How to get X-Frappe-CSRF-Token in Postman


I tried with POST request to create a data in ERPNext using postman, but didn’t succeed because of don’t know that where can i get “X-Frappe-CSRF-Token” whether is it available in login rest API itself Frappe Cloud or in ERPNext session.

If we can get “X-Frappe-CSRF-Token” in the rest API itself mean please tell in which section should i find it.

And need to know where should i use “X-Frappe-CSRF-Token” in postman for this rest API Frappe Cloud

Here is my screenshot, kindly help me.


1 Like

Anyone please help on this

@IT_Department see this post

@Mohammed_Redha we have hosted the server with frappe. So how could we add this line
frappe.response[“csrf_token”] = frappe.generate_hash() in frappe/

Other than this, while doing post method for login in Postman, can we get X-Frappe-CSRF-Token in Postman?