API for Product Managers
HTTP Basics: How an API Request Works
In this lesson
You'll see how an API request travels from one system to another, what a request is made of, and which HTTP methods you'll hear about most often.
What is HTTP?
HTTP (Hypertext Transfer Protocol) is the set of rules that apps and servers use to talk on the web. Most web APIs work over HTTP: the app sends a request, and the server sends back a response.
The parts of an API request
Part | What it does | Example |
|---|---|---|
Method | The action you want to take | GET, POST |
URL (endpoint) | Where the request goes | api.example.com/orders |
Headers | Extra information about the request | Authorization, Content-Type |
Body | Data sent with the request (optional) | Details of a new order |
Common HTTP methods
GET: Read data, such as fetching your order history.
POST: Create something new, such as placing an order.
PUT or PATCH: Update existing data, such as changing a delivery address.
DELETE: Remove data, such as deleting a saved card.
Example
Here's what a request to fetch order 123 can look like:
GET /v1/orders/123
Host: api.example.com
Authorization: Bearer YOUR_ACCESS_TOKEN
The method (GET) says you want to read data, the path points to order 123, and the Authorization header proves the app is allowed to access it.
Why this matters for you as a PM
When engineers say a feature needs a new POST endpoint, you'll know it means creating new data.
You can ask sharper questions about scope, performance and the data each screen needs.
Common mistakes to avoid
Mixing up methods in requirements, such as describing a data update as a GET request.
Ignoring headers, even though they often carry the access details that make a request work.