Set up an API client for a small team in an hour
Most teams don't fail to adopt an API client because it's hard. They fail because one person sets it up halfway, the others keep their old local collections "for now", and six months later there are four versions of the login request.
An hour, done once and done properly, avoids that. Here's the hour.
1. One shared workspace (10 minutes)
Sign up, and create one workspace for the team from the workspace picker. Name it after the team, not the tool: Payments, Platform.
Resist making more. One workspace is right until some people must not see some secrets; see one workspace or many.
2. Bring the collections in (10 minutes)
Pick the path that matches where your requests live today:
- Postman: Migrate from Postman… in the + menu of the collection tree moves a whole Postman workspace, collections and environments, with a Postman API key. See moving your team off Postman.
- An OpenAPI spec: import the file or its URL. You get a folder per tag and a request per operation. See OpenAPI import.
- Insomnia, Bruno, Thunder Client, HAR, curl: import the export file, or paste the curl command.
Only bring what the team uses. Old experiments can stay behind.
3. Environments with real values (15 minutes)
This is the step that makes or breaks adoption. Create Local and Staging (and Production if the team uses it) in an environment group, and fill in every variable the requests need:
baseUrlfor each environment.- Test accounts and API keys, marked secret, so they're encrypted and masked.
Then send three requests in each environment. If any fails because a value is missing, fix it now: the next person will hit the same thing and decide the tool "doesn't work". More in environments for local, staging and production.
4. Invite everyone (5 minutes)
Use Invite people in the workspace picker. Free covers three people; for more, the Team plan adds a seat per person, plus roles.
Tell people in the invite what to open first: "Open Orders API, pick Staging, run Log in".
5. One test per important request (10 minutes)
A collection without tests is a bookmark list. Add one check to each request that matters, starting with login and the most used reads:
pm.test('returns 200 and an access token', () => {
pm.response.to.have.status(200);
pm.expect(pm.response.json().accessToken).to.be.a('string');
});Or add them without code in the request's Tests tab. Then run the whole collection and see it go green.
6. Run it in CI (10 minutes)
Create an API token in Settings → API tokens, store it as a CI secret, and add one step:
npx --yes @requestarium/cli run-collection "Orders API" --env Staging --junit results.xml --save-runReady-made steps exist for GitHub Actions and GitLab CI. From now on, every push checks the API with the same requests the team uses by hand.
Optional: Git sync
If you want the collections in your repository too, next to the code they test, link the collection to GitHub, GitLab or Bitbucket. It's on every plan. See sync API collections with Git.
The week after
- Delete the old local collections people kept "for now". Agree on a date.
- Write a short Overview on each collection: what it is, which environment to start with, who owns it.
- Hold the first weekly test review.