API playground

Change a parameter. Send it. Read the response.

The playground calls the same sandbox fixtures your integrators test against, and generates the equivalent snippet in four languages as you edit.

API playground

Create a payment intent and reserve the amount.

POSThttps://api.sandbox.flintwake.com/v2/payments/intents
Authenticated as $FLINTWAKE_TEST_KEY
Response

Press Send request to run this call against the sandbox fixtures.

Send the same request from your code
curl -X POST "https://api.sandbox.flintwake.com/v2/payments/intents" \
  -H "Authorization: Bearer $FLINTWAKE_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 24900, "currency": "usd", "capture": "automatic" }'

In this template the response is a fixture chosen by the selected operation. Replacing the fixture with a real fetch is a single function in components/Playground.tsx; everything else — parameter handling, snippet generation, the copy controls and the responsive layout — stays as it is.

Sandbox

Deterministic fixtures, including the failures.

Integrators cannot test their error handling against an API that always succeeds. The sandbox returns a stable response for every documented error type.

Force an error from the sandbox
curl "https://api.sandbox.flintwake.com/v2/simulate/error?type=rate_limit_exceeded" \
  -H "Authorization: Bearer $FLINTWAKE_TEST_KEY"
Simulatable error types
Error types the sandbox can return on demand.
TypeStatusExpected recovery
invalid_request400Fix the request shape. The param field names the offending key.
authentication_required401Send an Authorization header with a live key.
key_revoked401Issue a replacement key. Revocation is not reversible.
insufficient_scope403Reissue the key with the scope named in the message.
resource_missing404Check the identifier and the environment. Identifiers are environment-scoped.
conflict409Re-read the resource and retry with the current version.
unprocessable422The shape is valid but the values are not. See param.
rate_limit_exceeded429Back off for retry_after seconds. Do not retry immediately.
internal_error500Retry once with backoff, then report the wake_id to support.
upstream_timeout504Your origin did not answer in time. Retry is safe for idempotent calls.

Every snippet the playground writes also lives in the reference.

Ten documented endpoints, each with parameters, response codes and copyable examples in four languages.