Skip to content

Remote Operations

Patterns for interacting with remote Frappe/ERPNext sites via REST API.

When to Use

  • Managing Frappe Cloud sites (no bench CLI access)
  • Operating on remote self-hosted Frappe instances
  • Automating document operations across sites
  • Managing Web Forms from code

Key References

  • resources/rest-api-patterns.md — Complete curl patterns for CRUD, RPC, reports
  • resources/doctype-registry.md — DocType discovery and exploration
  • resources/web-form-patterns.md — Web Form client script patterns
  • agents/frappe-remote-ops.md — Full remote operations agent

Quick Reference

Authentication

Authorization: token <api_key>:<api_secret>

Common Operations

OperationMethodEndpoint
Get docGET/api/resource/{DocType}/{name}
List docsGET/api/resource/{DocType}
Create docPOST/api/resource/{DocType}
Update docPUT/api/resource/{DocType}/{name}
Delete docDELETE/api/resource/{DocType}/{name}
Run methodPOST/api/method/{method}
Get valuePOST/api/method/frappe.client.get_value
Get countPOST/api/method/frappe.client.get_count

Security Rules

  1. Never expose API keys in output
  2. Confirm before destructive operations
  3. Store credentials in .env files
  4. Rate-limit batch operations