← Back to schema index

PlaygroundProxyRequest

JSON:API request envelope for the Playground proxy. The server forwards the operation described in `data.attributes` to the target `/v1` endpoint using the caller's own API key (decrypted server-side), so the key never reaches the browser.

Properties

FieldTypeDescription
data*objectResponse body. Everything hangs off here, per the JSON:API envelope.
type*stringJSON:API resource type. Always `playground_request`.
attributes*objectThe resource's own data, kept apart from its identity.
mode*string`live` forwards the real request to the target endpoint and returns its response verbatim (passthrough). `playground` runs the scenario simulation engine and returns the same response the real endpoint would for the chosen scenario, with no side effects (no quota, webhooks, or notifications).
method*stringHTTP method of the target operation. One of `GET`, `POST`, `PUT`, `PATCH`, or `DELETE`.
path*stringAbsolute target endpoint path, including the `/v1` prefix (for example `/v1/beneficiaries`). Must resolve to a documented operation; unlisted paths return `403 path_not_allowed`.
queryobjectQuery parameters to append to the target URL. Optional.
headersobjectClient headers to forward. Only a small allowlist is propagated (e.g. `Idempotency-Key`, `Accept-Language`); the rest are dropped. The target credential is set by the server — a client-supplied `Authorization` or `Cookie` is never forwarded.
bodyobject | nullRequest body for the target operation on non-`GET` methods. Optional / `null` when not applicable.
scenarioobjectSimulation scenario for `mode: playground` (ignored in `mode: live`). `id` picks the scenario (e.g. `valid`, `not_found`) from those listed by `GET /v1/playground/templates`.
idstringIdentifier of the pre-loaded scenario.
inputsobjectInputs that parameterize the scenario.

Used in operations

  • POST /v1/playground/proxy