POST /rpc/json with a JSON-RPC 2.0 envelope. This page goes from credentials to a first authenticated response.
Production base URL: https://api.drpn.ai/rpc/json. Against a local stack started with ./dev-stack.sh, use http://localhost:8080/rpc/json.
1. Get a token
login#Session is anonymous — no cookie or CSRF bootstrap is needed. It returns a Moqui login-key token.
result.authToken:
2. Call a method
Send the token in thelogin_key header on every later call. get#SessionInfo returns the session, user, and active-tenant context:
3. Read the result
HTTP status is 200 for every dispatched call; outcomes are distinguished by shape. Aresult object is success, an error object is a protocol or service failure, and business validation returns result.ok: false with result.errors[]. See Errors.
Next steps
- Service catalog — every available method.
- JSON-RPC transport — envelope, headers, and auth channels.
- Auth and access — users, tenants, and permissions.