How to make post REST API call from another server to erpnext?

Hello everyone, I need to call erp from another server to simulate the erp page submission operation to update the erp data. How should I call the erp interface?
I tried to call it directly using this path, but it would report an error.


Please help, is there any expert who can help me?

As the error shows, the server does not have the required permission to access the given path. It is therefore important to set up the permissons and pass credentials through your API request to be able to access erpnext remotely.

This page provides documentation on how to do this:
https://docs.frappe.io/framework/user/en/api/rest

You need to create a user (Token Based Authentication) and generate a pair of API keys, which you need to pass through your api request. For this ‘user’ you can set up permission like you do with any other user to give it access to specific content on your erpnext server.

Let me know if this helps!