Check every item in an array response
Testing only the first item of a list misses the broken one on page three. Script patterns that check every item, name the one that failed, and stay fast on large responses.
Product updates, migration guides and API testing tips from the Requestarium team.
71 articles in TutorialClear filters
Testing only the first item of a list misses the broken one on page three. Script patterns that check every item, name the one that failed, and stay fast on large responses.
Run the same API collection against staging, a preview and production in parallel with a GitHub Actions matrix, one job per environment, with separate reports and the right secrets for each.
A ready-made GitLab CI/CD template that runs a Requestarium collection or test suite, fails the pipeline on failure and shows JUnit results in merge requests. Inputs and examples.
A first-day plan for getting a new teammate from zero to a working API call: access, the collection, environments, a guided first request, the CLI and the tests. Plus the Overview page that makes it repeatable.
Let the Requestarium web app reach localhost, VPN and internal hosts without keeping a terminal open. Install the CLI agent as a login item on macOS, Linux or Windows, approve sites, read its logs and remove it.
A ready-made GitHub Action that runs a collection, a folder or a test suite, fails the job on failure, writes JUnit and a job summary, and saves the run. Inputs, outputs and examples.
A step-by-step first hour for a team of 2 to 10 moving into Requestarium: workspace, collections from Postman or OpenAPI, environments and secrets, invites, a first test, CI and Git sync.
Variables hold text, so an object saved with pm.environment.set comes back as a JSON string. How to save whole objects and lists, read them in later scripts, and use them in request bodies.
A script that sets the wrong variable or fails one test out of twenty is hard to see from the results alone. Where console output goes in the app, the IDEs and the CLI, and the logging habits that make script bugs obvious.
A suite that covers 30 of your 45 requests feels complete until the 31st breaks. How the Not covered list and the coverage count in Tests show what a suite misses, and how to close the gap without copying requests.
Describe what you want, such as saving the login token for every step or adding checks from the last run, and get a list of proposed changes with reasons. What is sent to the model, cloud or local, and how to keep or skip each change.
Import an OpenAPI file, and its response examples become saved examples that a mock server answers with. How to get from a spec to a working mock URL in a few minutes, and how to fill the gaps the spec leaves.
A mock URL is hard to guess but not secret once it's in a frontend bundle. How to make a mock server answer only calls with its key, rotate the key, add a delay, and what the errors look like.
Tab completion, request paths instead of ids, quiet and verbose output, colours in CI logs, cookie jars between commands, update checks and more. Small CLI habits that save time every day.
A rule package adds every request of a collection or folder that matches a method, a piece of the URL and a piece of the name, and works the rule out again on each run. How to write rules for read-only smoke tests, one resource, or one API version.
The collection runner sends every HTTP and GraphQL request in a collection or folder, in order, with scripts and checks. What each option does, how values pass between requests, and how to save and export the results.
Invitations, verification codes and licence reminders need a mail server. How to configure SMTP in Settings ▸ Installation ▸ Email, send a test, read the delivery log, resend a failed email, and what the doctor checks.
Tests need a user, a token or an order before they can run, and should leave nothing behind. How Setup and Clean up roles work in a Requestarium test suite, how to pass values with Save to variable, and what happens when a step fails.
Keep Requestarium collections in Azure Repos or AWS CodeCommit. Which personal access token or IAM policy to create, what goes in the server field, and what happens with branch policies and protected branches.
Collection sync isn't only for github.com. How to connect GitLab (cloud or self-managed), Bitbucket Cloud and GitHub Enterprise Server, which token each one needs, and how Requestarium keeps two pushes from overwriting each other.
Error messages, product names and formatted dates that change by language. How to run the same requests in several languages with one data file, and what to check besides the translation.
Read, filter, create and update Airtable records through the Web API with a scoped personal access token, follow offset pagination, batch writes in tens, and stay under five requests per second.
One folder that creates a record, reads it, lists it, updates it, deletes it and checks it's gone. The order, the scripts that pass the id along, and the checks that matter at each step.
Most validation bugs live one step past a limit. How to test minimum and maximum lengths, numeric ranges, empty values and wrong types with a small data file and one request.
Names with accents, emoji, right-to-left text and quotes break APIs in quiet ways. A set of inputs to send, what to check in the response, and how to run them as one data-driven folder.
Create and update Asana tasks through the REST API, ask for exactly the fields you need with opt_fields, follow offset pagination, and assert on Asana's data and errors envelopes.
Report exports, video processing and bulk imports answer 202 and finish later. How to test the start request, poll the job until it's done, and check the result, in a collection and in CI.
A batch of 100 items where 3 are invalid. Does the API reject all of them, accept 97, or return 200 and lose 3? How to test all-or-nothing and partial success, item by item.
Verify a Cloudflare API token, list zones, and create, check and delete DNS records through the v4 API. Assert on the success, errors and result envelope that every Cloudflare response uses.
Read published and draft entries from Contentful with delivery and preview tokens, resolve linked entries, and update content through the Management API with version locking, so two editors' changes never overwrite each other.
Export endpoints are tested less than JSON ones and break in Excel first. How to check the header row, quoting, encoding, row counts and the download headers of a CSV response with a post-response script.
Call the DigitalOcean API v2 with a personal access token, check the account, list droplets with link-based pagination, and keep an eye on the rate-limit headers. A small collection for infrastructure scripts.
Post messages to Discord through a channel webhook or the bot API, check what came back with ?wait=true, and handle Discord's per-route rate limits, which arrive as 429 with retry_after in the body.
Call the GitLab REST API v4 with a scoped token, look up projects by their URL-encoded path, follow pagination headers, and write tests that survive rate limits. Works for gitlab.com and self-managed GitLab.
Create, search, update and archive contacts through the HubSpot CRM v3 API with a private app token, follow cursor pagination, and test the 409 you get for duplicate emails. Use a developer test account.
Query and create Linear issues through its GraphQL API, use variables instead of string-building queries, and test the errors array, because a GraphQL error doesn't always mean a non-200 status.
When two people edit the same record, one change can silently disappear. How to reproduce a lost update with two requests, and how to test version numbers, If-Match and 409 Conflict responses.
Send through Mailgun's messages endpoint with Basic auth and form fields, use test mode so nothing is delivered, pick the right region, and test the answers. A step-by-step collection.
Floating point totals, rounding, currencies with zero or three decimal places, and amounts as strings. The cases to send to a payments or invoicing API, and how to check the totals exactly.
Get a PayPal sandbox access token with client credentials, create an order, approve it with a sandbox buyer, capture it, and make retries safe with PayPal-Request-Id. Amounts are decimal strings.
Send email through Postmark's API with a server token, use the special test token to validate requests without sending, and assert on ErrorCode, not only the HTTP status.
Send through SendGrid's v3 Mail Send API with an API key, test it in sandbox mode so nothing is delivered, and check the errors array. SendGrid answers 202 with an empty body, so status code tests matter here.
A soft-deleted record is still in the database, which means it can leak into lists, searches, counts and unique checks. What to test after a delete, and how to test restore.
Take payments through the Square Payments API in the sandbox with test nonces instead of cards, send an idempotency key with every write, pin the API version with Square-Version, and test declines.
Call the Telegram Bot API with a bot token, send and edit messages, set and check a webhook, and test the ok field and retry_after. Plus how to keep a token that lives in the URL out of your history.
Trello authenticates with an API key and a user token. How to send them in a header instead of the URL, create and move cards, and stay under Trello's rate limits.
Call the Vercel REST API with an access token, scope requests to a team, list and inspect deployments, and wait for a deployment to be READY before running your API tests against its URL.
Not every API is JSON. How to send a SOAP envelope or an XML body, set SOAPAction, and check XML responses and SOAP faults with assertions and a few lines of script.
Create, read and update Zendesk tickets through the Support API with email/token Basic auth, use cursor pagination, and handle 429 with Retry-After. A collection you can point at a sandbox.
Sign requests with AWS Signature Version 4 in an API client: which fields to fill, which service name to use, temporary credentials from SSO, and why a signature stops matching.
A step-by-step way to find out why an API call fails in CI but not on your machine, or in the app but not in curl. Compare what was actually sent, not what you think was sent.
From a local install to Requestarium Cloud, from the cloud to your company's self-hosted server, or between two organizations: what to export, how secrets travel, and how to check nothing was lost.
Broken object-level authorization is the most common serious API bug. Test it with two users, two tokens and a handful of requests that should all return 403 or 404.
Off-by-one days, midnight in the wrong zone, daylight saving gaps and timestamps without offsets. The date cases every API should be tested with, and scripts that check formats with moment.
Clients handle errors with code, so errors need a contract too. Check every error has the same shape (for example RFC 9457 problem details), a stable code, a human message, and no stack traces.
Liveness, readiness and dependency checks decide when your service gets traffic and when it gets restarted. Test what they return, how fast, what they leak, and how they behave when a dependency is down.
Turn off Follow redirects to see the redirect itself, then check the status, the Location header, that the method and body survive, and that credentials don't leak to another host.
Filters that silently ignore a typo, sorts that break on ties, searches that choke on an apostrophe. A test plan for list endpoints, with scripts that check every returned item, not just the first.
ETags save bandwidth on reads and prevent lost updates on writes, but only if the server implements them correctly. Five requests that check both.
Call Google APIs such as Drive, Calendar and Sheets from an API client with OAuth 2.0 authorization code and PKCE, a desktop OAuth client, the right scopes and refresh tokens. Step by step.
Call Anthropic's Claude API from an API client with the x-api-key and anthropic-version headers, read the content blocks, test structure instead of wording, and track tokens and latency.
Call the GitHub REST API from an API client with a fine-grained token, follow Link-header pagination, watch the rate limit and write tests, step by step.
Call the Jira Cloud REST API v3 from an API client with an API token and basic auth, search with JQL, create and transition issues, and handle Atlassian Document Format and pagination.
Call the Notion API from an API client with an integration token and the Notion-Version header, share pages with the integration, query and create pages, and handle rich text and pagination.
Call the OpenAI API from an API client, keep the key safe, check responses that are different every time, and track token usage and latency with tests.
Query and test the Shopify Admin GraphQL API from an API client with an access token, versioned endpoints, variables, userErrors and query cost limits, against a development store.
Call the Slack Web API with a bot token, post and update messages, and test it properly, because Slack answers 200 OK even when a call fails. Includes scopes, errors and rate limits.
Explore and test the Stripe API from an API client with a test-mode secret key, form-encoded bodies, test payment methods, idempotency keys and error cases such as declined cards.
Send and test SMS with the Twilio API from an API client using basic auth, form-encoded bodies and Twilio's test credentials and magic phone numbers, without sending real messages or paying for them.
A practical checklist for teams of 2 to 15 picking an API client: sharing, environments and secrets, scripts, CI, imports and exports, pricing per seat, and where your data lives.
How the common API authentication schemes work on the wire, when each is used, and how to configure them once per collection so every request inherits them.