FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Tools

Run curl against the client's API before you write any code

Documentation says how an API should behave; the first few requests, especially the one sent without a token, show how it actually does.

ShareLinkedInFacebookX

In brief

  • On your first day at a client, use curl to confirm what the API returns before you trust the documentation.
  • When you need to save requests, chain them and share them with the team, move to a Postman collection and Collection Runner.
  • A collection can run in CI/CD through Newman or Postman CLI, so the checks you ran by hand become regression tests.
A grid of 4 rows by 3 columns showing 12 requests in a Postman collection: four operations (Create, Read, Update, Delete), each tested in three cases: a valid request, a request with no token and a request with bad data. The no-token column is shaded orange and annotated as often missed.
One collection for an orders resource: four operations times three cases is enough to see how the client's API really responds. The no-token column shows how authentication errors are returned. Source: FDE Times.

Harness’s blog tutorial on building a CRUD API with Node.js and Express recommends Postman for testing endpoints by hand and Jest for automated tests. It never mentions curl. For a tutorial that makes sense: you wrote the API yourself.

At a client the situation is reversed. Someone else wrote the API, it may have been running for years, and the documentation may have drifted away from the code.

So the first useful thing to do on a client’s site, before writing a line of code, is to type a curl command with the token they have just issued and see whether their API really returns what the documentation describes. Treat this check as real work, not a formality. Until you know what the API actually returns, every estimate about the deployment is a guess.

curl answers the question “is it alive?”

The official man page describes curl as a tool for transferring data to or from a server using URLs. That short description also explains why it suits the first morning: a terminal and a URL are all you need to start.

The first flag to learn is -H (or --header). It adds a header to the request, such as an authentication token. Say the client is a logistics company and hands you an endpoint for looking up orders:

curl -H "Authorization: Bearer $TOKEN" https://api.customer.example/orders/123

Write down three things straight away: whether the request succeeded, whether the returned fields match the documentation, and how the API reports an error when you drop the header. The last step is often skipped, but it tells you how the integration you are about to write will have to handle authentication failures.

Postman calls this API unit testing: confirming that an endpoint returns the right response to a specific request. curl does exactly that one job well. By the fifth request, pasting the token in by hand each time, it starts to feel clumsy.

Postman saves requests and chains them

Once you are sure the API is alive, the next question is whether the operations fit together. Solène Lanchec, writing on the Forest Admin blog, maps the four CRUD operations to HTTP methods: PUT to replace a whole resource, PATCH to change only part of it. Clients’ APIs do not always follow this convention.

You need to find out before you write code that depends on it.

This is where Postman comes in. Build a collection for the order resource with the four operations: create, read, update, delete. Test each one three ways: a valid request, a request without a token, and a request with bad data. Four times three makes twelve requests, which is enough to see how the API really responds within the morning.

According to Postman, Collection Runner chains requests into a workflow. You create an order, read it back, PATCH a single field, then read it again. If the other fields are blank after the PATCH, the client’s API is treating PATCH as PUT. Far better to learn that today, while the only thing wiped is test data.

curl

  • One request at a time, only a terminal needed
  • Add an auth header with -H
  • Good for quickly confirming a single endpoint

Postman

  • Saves requests as a reusable collection
  • Collection Runner chains requests into a workflow
  • Runs in CI/CD through Newman or Postman CLI

Three common mistakes on day one

The first is relaxing at a 200 status. A success code says nothing about whether the body matches the documentation: a 200 response can still be missing fields, change data types or use different names from the docs. Read the whole body, field by field.

The second is only calling the API with a token. You will know what the happy path looks like, but not what an authentication error returns. When the token expires in production, your code will have to guess.

The third is leaving the collection on your laptop after that first morning. It is only valuable if it gets run again, and if others on the team can run it too.

What neither tool does for you

Both tools only send requests. Knowing what to check is still your job. Testsigma’s guide lists contract testing as a distinct type of API test: verifying that the API follows its defined spec. If the client has a spec, compare every response with it systematically.

Testsigma also advises regular checks for vulnerabilities such as SQL injection, XSS and broken authentication. That takes a deliberate list of test cases; a few extra random requests will not do. The token-less request in the collection above is a starting point, not a security test.

To keep the collection from being forgotten, Postman says Newman or Postman CLI can run collections and tests in a CI/CD pipeline, and Testsigma recommends automating regression tests along with critical flows. The twelve requests you write today should run automatically every time the client deploys.

Postman also promotes auto-generated documentation that stays in sync as the collection or spec changes. For an FDE this has practical value: documentation generated from requests you actually ran is something the client’s team can use after you leave the project.

What to learn first

Learn curl first. It forces you to understand each part of a request: URL, method, headers. Move to Postman once you know what you want to save and automate. Alongside both tools, get a firm grasp of how CRUD maps to HTTP methods, especially the difference between PUT and PATCH.

When reading job descriptions for FDE or solutions engineer roles, look for phrases such as “integrate with customer APIs” or “debug integrations”. That work happens in the terminal and in Postman. On your CV, instead of “proficient in Postman”, describe a specific collection you built: one that caught an API mishandling PATCH, say, or one that went into CI.

At a client, the output of day one is not code. It is a collection that records how the API really behaves, so that every line of code written afterwards rests on verified behavior.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
6 sources
Read next on the roadmap · Stage 2: Broad engineeringA million records, 10,000 requests and not one row to loseOffset pagination makes the server scan nearly the whole table for the last pages, while cursors, keysets and checkpoints keep large pulls fast and free of silent duplicates.