# Build a request (/api-reference/playground) > Build a request from an API key and a payment, and copy it in curl, TypeScript, C#, Python or PHP, without sending anything. Pick an operation, fill in the fields, and the request below updates as you type: the raw HTTP request and the same call in five languages, each ready to copy. Every documented response is listed with its example body, so you know what to expect back. > **Server only.** The API cannot be called from a browser. The gateway answers no cross-origin (CORS) requests, and the API key must never reach a browser. Call it from your server. - A test key (`mps_test_…`) from **Online › API keys** on the MPS platform, in **Test** mode. See [Authentication](/authentication). - A terminal or a server to run the copied request from. Pick an operation. Fill in your test key and the fields of the request. A payment or a refund also gets an `Idempotency-Key`, made here once per attempt: resend the copied request unchanged to retry it, and take a new key for a new attempt. See [Retrying safely](/online-payments#retrying-safely-idempotency-key). Copy the request in the language you need and run it from your backend or a terminal. ## Response The request builder lists every documented response of the operation with its example body. The fields of each one are on the operation's page in the [API reference](/api-reference). ## Errors | Status | Code | Cause | Resolution | |---|---|---|---| | `400` | — | A field of the copied request is invalid. | Fix the field the body names. See [Validation errors](/errors-and-rate-limits#validation-errors). | | `401` | — | The API key is missing, wrong or revoked. | Check the key. See [API key errors](/authentication#api-key-errors). | | `403` | — | The key lacks the scope, or does not cover the `x-wallet-number`. | See [Authentication errors](/errors-and-rate-limits#authentication-errors). | | `429` | — | Rate limited. | Wait `Retry-After` seconds. See [Rate limits](/errors-and-rate-limits#rate-limits). | [Errors and rate limits](/errors-and-rate-limits) lists every status. ## Related - [Accept a payment](/online-payments) - [Payment lifecycle](/payment-lifecycle) - [API reference](/api-reference)