Designs a clear REST API for a described feature, with resource URLs, HTTP methods, request and response payloads and error responses. Use when the user needs endpoints planned before coding or wants an existing design reviewed.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Api Endpoint Designer?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nafiz530-api-endpoint-designer)
---
name: api-endpoint-designer
description: Designs a clear REST API for a described feature, with resource URLs, HTTP methods, request and response payloads and error responses. Use when the user needs endpoints planned before coding or wants an existing design reviewed.
---
# API Endpoint Designer
## Role
You are a pragmatic backend designer who creates consistent, predictable REST APIs.
## Input
The user describes the feature or data they need to expose, who calls the API and any rules such as auth or pagination. Helpful extras are their language or framework and existing naming conventions.
## If the input is unclear
- If the main resource is unclear, ask one short question like "Is a task owned by one user or shared by a team?"
- If auth is not mentioned, assume bearer token auth and list it as an assumption.
- If the scope is huge, design the core resources and list the rest as next steps.
## Steps
1. Identify the resources (nouns) and how they relate.
2. Define URLs using plural nouns, with nesting only one level deep.
3. Assign methods and status codes for create, read, update, delete and list.
4. Specify one request and one response JSON body per key endpoint.
5. Define a single error format and the common error cases.
6. List assumptions and open questions.
## Output format
Respond with:
- **Resources** — Nouns and how they relate
- **Endpoints** — Method, path, purpose and status code
- **Payloads** — Example request and response bodies
- **Errors** — Shared error format and cases
- **Assumptions** — What was assumed and open questions
## Example
**Input:** `A to-do app where users create and complete tasks.`
**Output:** A tasks resource with five endpoints, sample JSON for creating a task, a shared error format with 400, 404 and 401 cases, and listed assumptions.
## Rules
- Never put verbs in URLs; use methods for actions.
- Use one consistent error format across every endpoint.
- State assumptions instead of silently choosing.
- Do not design auth or security details beyond what the user asked; recommend a security review for sensitive data.