REST API Methods with Body

I’m trying to use a REST API to check if a specific document exists. This is what I have, but I get Invalid Method in Postman.

args {“doctype”:“Supplier”, “docname”:“Faliam API Test”}

Thanks for the help

Just use GET /api/resource/Supplier/Faliam%20API%20Test and if the response has status 404 it doesn’t exist, if the status is 200 it does.

In general you cannot use just any method over the API. Only the ones that are annotated with @frappe.whitelist() in the code are allowed.