API Endpoint
An API endpoint is a specific address or operation exposed by an API for interacting with a particular resource or function.
It represents one place where software can send an API request.
What It Means in Practice
An API might expose endpoints such as:
GET /products
GET /products/123
POST /orders
DELETE /customers/456Each combination of address and HTTP Method represents a particular operation.
For example:
GET /products/123
might retrieve a product.
POST /orders
might create an order.
Endpoint vs. API
The **API** is the overall interface.
An endpoint is one specific operation within that interface.
A large API may expose hundreds of endpoints for different resources and actions.
GitHub's REST API documentation, for example, organizes operations into endpoints for repositories, issues, users, releases, authentication, and many other resource types. GitHub REST API documentation
What an Endpoint Defines
An endpoint's documentation may specify:
- URL
- HTTP Method
- Required Authentication
- Required Authorization
- Parameters
- Request Payload
- Response
- Possible HTTP Status Codes
- Rate Limits
Those rules together describe how software should interact with it.
Why It Matters
Integrations frequently fail because they are built around assumptions rather than the exact endpoint contract.
For example:
This endpoint returns one product.
is very different from:
This endpoint returns a paginated list of products.
The integration needs to reflect the actual behaviour.
Common Problems
Common problems include:
- Calling the wrong endpoint
- Using the wrong HTTP Method
- Missing required parameters
- Assuming response fields always exist
- Hardcoding endpoint URLs that later change
- Using deprecated endpoints
- Ignoring API Versioning
How to Improve
Use the provider's current API documentation.
Document which endpoints the integration depends on and avoid using undocumented behaviour simply because it currently works.