Skip to main content
POST
/
rpc
/
json
Call a Darpan service
curl --request POST \
  --url https://{darpanHost}/rpc/json \
  --header 'Content-Type: application/json' \
  --header 'X-CSRF-Token: <api-key>' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "facade.AuthFacadeServices.get#SessionInfo",
  "params": {}
}
'
{
  "jsonrpc": "<string>",
  "id": "<unknown>",
  "result": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.drpn.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-CSRF-Token
string
header
required

CSRF token returned by the backend login/session flow.

Body

application/json

JSON-RPC request with a Moqui service name in method and service inputs in params.

jsonrpc
string
required
Allowed value: "2.0"
id
required
method
string
required

Moqui service name, for example facade.AuthFacadeServices.get#SessionInfo.

params
object
required

Response

JSON-RPC success or service-level error envelope.

jsonrpc
string
required
id
any
required
result
object
required