Skip to content
apikey.tools
SIM8 tools

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

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.

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.