Endpoint
What is Endpoint?
Endpoint: A specific URL path in an API where a client can send requests. For example, /api/v1/users is an endpoint for user-related operations. An endpoint is a specific URL in an API where a client can send requests, combined with an HTTP method. GET /api/orders lists orders, POST /api/orders creates one, and GET /api/orders/42 fetches a single order.
Frequently asked questions about Endpoint
How is Endpoint used in practice?
Each endpoint has a contract: what input it accepts, what it returns, which status codes it uses and who may call it.
What should you keep in mind with Endpoint?
Design endpoints around resources and keep them consistent: plural nouns, predictable nesting and the same error format everywhere. Version the API, for example with /api/v1/, so you can change it later without breaking existing apps. Document every endpoint, ideally with OpenAPI, and test them. An endpoint that changes behaviour without warning breaks every client that relies on it, often in ways you only hear about from users.
At a glance
| Category | Core glossary |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |