Testing, Mocking & Request Simulation
Build cURL commands and Authorization headers, generate OpenAPI security schemes, and simulate rate-limit headers and 401/403 responses to test client error handling.
Tools in Testing
- SIM
cURL command generator
Build an authenticated request as cURL, fetch, httpx or HTTPie, and see the raw HTTP it produces.
- SIM
Authorization header builder
Build Bearer, Basic, ApiKey and Token headers for tests and fixtures.
- SIM
Rate limit header simulator
See exactly what your client receives at the limit, in three header conventions.
- SIM
OpenAPI & Postman scheme generator
Generate a correct OpenAPI 3.1 securityScheme or a Postman collection with auth configured.
- SIM
401 & 403 error simulator
See the exact response for each auth failure mode, and what actually causes it.
- SIM
API authentication sandbox
Step a request through the checks a gateway performs and see exactly where it fails.
- SIM
Webhook payload simulator
Generate a signed event and replay it locally, including the tampered version your endpoint must reject.
- SIM
REST & GraphQL auth header debugger
Paste your request headers and find the malformed credential in seconds.
Test authentication before it reaches production
Authentication bugs tend to appear only in production, where a wrong header means an outage. These tools let you build and rehearse the requests and failures first.
- Requests: the cURL command generator and authorization header builder produce Bearer, Basic and API-key headers correctly formatted.
- API specs: the OpenAPI security scheme generator writes the
securitySchemesblock for Swagger and Postman. - Failure modes: simulate 401 and 403 responses and rate-limit headers to test client retry and error handling.
- Debugging: the auth header debugger inspects REST and GraphQL authentication, and the webhook payload simulator produces signed test events.
Frequently asked questions
What is the difference between 401 and 403?
401 Unauthorized means the request did not authenticate: no credential, or an invalid or expired one. The client should authenticate and retry. 403 Forbidden means the server knows who you are, but you are not allowed to do this — retrying with the same credential will not help.
Should an API key go in a header or the query string?
A header — either Authorization: Bearer or a custom header such as X-API-Key. Query strings are recorded in server logs, proxy logs, browser history and Referer headers.
How should a client handle rate-limit headers?
Read the remaining-requests and reset headers, slow down before reaching zero, and on a 429 response wait for the time given in Retry-After before retrying, with exponential backoff and jitter if the header is absent.