What is an API endpoint?
Answer
An API endpoint is a specific URL where an API accepts requests and returns responses. It consists of the base URL plus a resource path: https://api.example.com/v1/users. Each endpoint represents a resource and, combined with an HTTP method, defines a specific operation. A well-designed API has a predictable set of endpoints following REST conventions — typically GET /resources (list), POST /resources (create), GET /resources/{id} (read), PUT /resources/{id} (update), and DELETE /resources/{id} (delete). Endpoints should be versioned (/v1/), documented, and stable — changes to existing endpoints require careful backwards-compatibility planning.
Previous
What does stateless design mean in REST?
Next
What is the difference between HTTP and HTTPS?
More REST API Design Questions
View all →- Beginner What is REST and what are its six architectural constraints?
- Beginner What are the main HTTP methods used in REST APIs and what do they do?
- Beginner What is idempotency and which HTTP methods are idempotent?
- Beginner What are the most important HTTP status codes in REST APIs?
- Beginner What are REST resource naming conventions?