Claude Prompt Library

30 Claude Prompts That Write API Documentation

30 copy-paste prompts

Describe your API and Claude returns clean, structured Markdown you can publish as-is: endpoint references, authentication guides, copy-paste request/response examples, error catalogs, quickstarts, and changelogs. Not "give me some notes" โ€” a finished docs artifact.

In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 15 prompts are free instantly โ€” no signup needed. Hand-curated and tested by the AI Academy team.

By Louis Corneloup ยท Founder, Techpresso
Last updated ยทHand-curated & tested by the AI Academy team

Endpoint Reference

5 prompts

Full REST Endpoint Reference Page

1/30

You are a senior API technical writer who ships developer docs for a living. <context> I need a complete, publish-ready reference page for one REST endpoint, returned as a single self-contained Markdown document I can paste straight into my docs site. </context> <inputs> - Method and path: [E.G. POST /v1/orders] - What it does: [PLAIN-ENGLISH PURPOSE] - Auth required: [E.G. BEARER TOKEN, SCOPE orders:write] - Request params/body fields: [NAME, TYPE, REQUIRED?, DESCRIPTION] - Response shape: [KEY FIELDS AND TYPES] - Notable errors: [STATUS CODES AND WHEN] </inputs> <task> Write the reference with these sections: an H2 title with the method and path, a one-line summary, an Authentication note, a Path/Query Parameters table, a Request Body table (name, type, required, description), a fenced JSON request example, a fenced JSON success response with realistic values, a Response Fields table, and an Errors table. Fill every field from my inputs; infer sensible defaults only where I left gaps and mark them clearly. </task> <constraints> - Valid Markdown only; use tables for parameters and GitHub-flavored fenced code blocks with language hints. - Realistic example values (no "string"/"foo"); consistent field names across request and response. - No marketing language; concise, technical, scannable. </constraints> <format> Return the complete Markdown reference as one artifact, then a short note on where to slot it in your docs nav. </format>

Produces a complete, publish-ready Markdown reference page for a single REST endpoint, ready to use.

๐Ÿ’ก

Pro tip: Paste your real request body JSON and Claude will reverse-engineer the parameter table and types for you.

Compact Single-Endpoint Reference Card

2/30

You are an API documentation specialist who writes tight, skimmable endpoint cards. <context> I want a compact reference card for one endpoint that fits in a sidebar or a cheat-sheet, returned as clean Markdown. </context> <inputs> - Method and path: [E.G. GET /v1/users/{id}] - Purpose in one line: [WHAT IT RETURNS] - Required params: [PATH/QUERY/HEADER] - Auth: [HOW] - One typical response field the caller wants: [E.G. user.email] </inputs> <task> Build a card with: a bold method + path heading, a single-sentence description, a minimal Parameters table, a one-line auth requirement, a short fenced cURL example, and a trimmed fenced JSON response showing only the most-used fields. Keep it to what a developer needs to make the call successfully in under a minute. </task> <constraints> - Under ~40 lines of Markdown; no fluff, no repeated boilerplate. - Real placeholder values that look plausible; correct HTTP verb semantics. </constraints> <format> Return the card as one Markdown artifact, then note how to template it so every endpoint card looks identical. </format>

Generates a compact, skimmable single-endpoint reference card in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Ask Claude to output a reusable card template first, then fill it, so all your endpoints stay visually consistent.

API Method Index / Overview Table

3/30

You are a technical writer organizing an API reference for discoverability. <context> I need a top-level index page that lists every endpoint in a grouped, scannable table, returned as Markdown that links to each endpoint's detail page. </context> <inputs> - Resource groups: [E.G. AUTH, USERS, ORDERS, WEBHOOKS] - Endpoints per group: [METHOD, PATH, ONE-LINE PURPOSE, DETAIL-PAGE SLUG] - Base URL: [E.G. https://api.example.com] </inputs> <task> Produce an overview page: an intro paragraph with the base URL and a note on auth, then one H2 per resource group, each followed by a table with columns Method, Endpoint (linked to its slug), and Description. Add a badge-style convention (e.g. code-formatted method) so verbs are visually distinct. Sort endpoints logically within each group. </task> <constraints> - Valid Markdown tables; relative links using the provided slugs. - Every method rendered in inline code; descriptions kept to one line each. - No duplicated endpoints; consistent path formatting. </constraints> <format> Return the index page as one Markdown artifact, then suggest a naming convention for the detail-page slugs. </format>

Builds a grouped, linked API method index table in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Give Claude your endpoints in any messy order and it will group and sort them into a clean navigable index.

Query Parameters & Filtering Reference

4/30

You are an API writer documenting a list endpoint's query interface. <context> I need a thorough reference for the query parameters on a collection endpoint (filtering, sorting, pagination, field selection), returned as Markdown. </context> <inputs> - Endpoint: [E.G. GET /v1/products] - Filter params: [NAME, TYPE, ALLOWED VALUES/OPERATORS] - Sort options: [FIELDS AND DIRECTION SYNTAX] - Pagination style: [CURSOR / OFFSET, PARAM NAMES] - Field-selection param if any: [E.G. fields=] </inputs> <task> Write a reference with: a short intro, a Parameters table (name, type, required, default, description), a Filtering subsection with 2-3 fenced example query strings, a Sorting subsection with example syntax, a Pagination subsection explaining the model with an example, and a Field Selection subsection. Show at least one combined example that filters, sorts, and paginates at once. </task> <constraints> - Valid Markdown; example URLs must be correctly encoded and realistic. - Explain operator syntax explicitly (e.g. gte, lte) if used; no ambiguity. </constraints> <format> Return the reference as one Markdown artifact, then note any edge cases (conflicting filters, max page size) worth documenting. </format>

Creates a full query-parameter, filtering, sorting, and pagination reference in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Tell Claude your max page size and default sort so it documents the real limits instead of guessing.

Webhook Event Reference

5/30

You are a technical writer documenting an API's webhook system. <context> I need a webhook reference page that lists every event type and shows the exact payload each one sends, returned as Markdown. </context> <inputs> - Event types: [E.G. order.created, order.refunded, user.deleted] - Payload fields per event: [KEY FIELDS AND TYPES] - Delivery details: [HTTP METHOD, RETRY POLICY, SIGNATURE HEADER] - How to verify signatures: [SECRET + ALGORITHM] </inputs> <task> Write the reference with: an intro on how webhooks are delivered and secured, a Verifying Signatures subsection with a short code example, an Event Types overview table (event, description, when it fires), then one subsection per event with a fenced JSON payload example and a fields table. End with a Retries & Failure Handling note. </task> <constraints> - Valid Markdown; every payload example must be valid JSON with a consistent envelope (id, type, created, data). - Signature verification step must be concrete and copy-pasteable. </constraints> <format> Return the webhook reference as one Markdown artifact, then note how to keep the event list in sync as new events ship. </format>

Generates a webhook event reference with per-event payloads and signature verification in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Paste one real webhook payload and Claude will document the envelope and infer the schema for every other event.

XML tags are just the start. Learn the full Claude workflow.

A growing library of 300+ hands-on AI tutorials covering Claude, ChatGPT, and 50+ tools. New tutorials added every week.

Start 7-Day Free Trial

Authentication

5 prompts

API Key Authentication Guide

6/30

You are an API technical writer who documents authentication clearly for first-time integrators. <context> I need a complete API key authentication guide, returned as a self-contained Markdown page a new developer can follow end to end. </context> <inputs> - Where the key goes: [E.G. Authorization: Bearer, or X-Api-Key header] - How to get a key: [DASHBOARD PATH OR ENDPOINT] - Key formats/prefixes: [E.G. sk_live_, sk_test_] - Test vs live keys: [DIFFERENCE] - Security rules: [ROTATION, NEVER IN FRONTEND, ETC] </inputs> <task> Write the guide with: an Overview, a Getting Your API Key steps section, a How to Authenticate section with fenced cURL and one language example showing the exact header, a Test vs Live Keys note, a Rotating & Revoking Keys section, and a Security Best Practices list. Make every example use a realistic-looking key with the correct prefix. </task> <constraints> - Valid Markdown; code blocks show the real header name exactly as the API expects. - Explicit warning never to expose secret keys client-side; concise and correct. </constraints> <format> Return the guide as one Markdown artifact, then note where to link it from the quickstart. </format>

Produces a complete API key authentication guide with headers, key handling, and security in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Give Claude your exact header name and key prefix so every code sample matches your real API byte-for-byte.

OAuth 2.0 Authorization Flow Docs

7/30

You are an API writer who specializes in explaining OAuth clearly. <context> I need docs for my OAuth 2.0 authorization-code flow, returned as a Markdown page that walks a developer through obtaining and refreshing tokens. </context> <inputs> - Grant type: [AUTHORIZATION CODE / PKCE / CLIENT CREDENTIALS] - Endpoints: [AUTHORIZE URL, TOKEN URL] - Required params: [client_id, redirect_uri, scope, etc] - Token lifetimes: [ACCESS, REFRESH] - Available scopes: [LIST] </inputs> <task> Write the docs with: an Overview of the flow, a numbered step-by-step of the full exchange, a fenced example authorize-URL request, a fenced token-exchange cURL and its JSON response, a Refreshing Tokens section with example, a Scopes table, and a Common Pitfalls list (redirect mismatch, expired code). If the grant is PKCE, include the code_verifier/challenge steps. </task> <constraints> - Valid Markdown; all URLs correctly formed and params URL-encoded. - Token response examples must be valid JSON with realistic expiry values. </constraints> <format> Return the OAuth docs as one Markdown artifact, then note whether a sequence diagram would help and where to add it. </format>

Creates a step-by-step OAuth 2.0 flow reference with token exchange and refresh examples in Markdown, ready to use.

๐Ÿ’ก

Pro tip: State your exact grant type up front โ€” PKCE vs client-credentials changes every step Claude documents.

JWT / Bearer Token Auth Reference

8/30

You are a technical writer documenting bearer-token authentication. <context> I need a reference explaining how clients obtain and use a JWT bearer token with my API, returned as clean Markdown. </context> <inputs> - Login/token endpoint: [E.G. POST /v1/auth/login] - Credentials required: [EMAIL+PASSWORD / CLIENT SECRET] - Token claims worth noting: [sub, exp, scope] - Token lifetime and refresh: [DURATION, REFRESH MECHANISM] - Header format: [Authorization: Bearer <token>] </inputs> <task> Write the reference with: an Overview, an Obtaining a Token section with a fenced request and JSON response, a Using the Token section showing the exact Authorization header in a request example, a Token Structure subsection describing the key claims in a table, an Expiry & Refresh section, and a Handling 401s note. Keep it precise. </task> <constraints> - Valid Markdown; the token in examples should look like a truncated JWT (header.payload.signature). - Claims table must list claim, meaning, and example value. </constraints> <format> Return the reference as one Markdown artifact, then note how to document token revocation if you support it. </format>

Generates a JWT bearer-token auth reference with token issuance, usage, and claims table in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Decode one of your real tokens (payload only) and paste the claim names so the claims table matches production.

Rate Limits & Throttling Docs

9/30

You are an API writer documenting rate limiting so integrators handle it gracefully. <context> I need a rate-limits reference page, returned as Markdown, that explains the limits, the headers, and how clients should back off. </context> <inputs> - Limit values: [E.G. 100 REQ/MIN PER KEY, 1000/DAY] - Rate-limit headers returned: [E.G. X-RateLimit-Limit, Remaining, Reset] - Status code when exceeded: [E.G. 429] - Retry guidance: [RETRY-AFTER, BACKOFF STRATEGY] - Any per-plan differences: [FREE VS PAID] </inputs> <task> Write the docs with: an Overview of the limits, a Rate Limit Headers table (header, example, meaning), a fenced example 429 response, a Handling Rate Limits section recommending exponential backoff with a short code snippet, and a Limits by Plan table if applicable. Be concrete about numbers and the reset window. </task> <constraints> - Valid Markdown; the 429 example includes the real headers and a JSON error body. - Backoff snippet must be correct and language-labeled. </constraints> <format> Return the rate-limit docs as one Markdown artifact, then note the single most common mistake clients make with your limits. </format>

Produces a rate-limits and throttling reference with headers, 429 example, and backoff guidance in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Tell Claude your exact reset semantics (fixed window vs sliding) so the Retry-After guidance is actually correct.

Scopes & Permissions Reference

10/30

You are a technical writer documenting an API's authorization scopes. <context> I need a scopes-and-permissions reference, returned as Markdown, that maps each scope to what it unlocks so integrators request only what they need. </context> <inputs> - Scopes: [E.G. read:users, write:users, read:orders] - What each scope grants: [ENDPOINTS OR ACTIONS] - How scopes are requested: [DURING OAUTH / KEY CREATION] - Default/least-privilege guidance: [ANY] </inputs> <task> Write the reference with: an Overview of the permission model, a Scopes table (scope, grants, related endpoints), a Requesting Scopes section with a short example, a Least-Privilege Recommendations note, and a Scope Errors subsection showing the response when a call lacks the required scope. Group related scopes logically. </task> <constraints> - Valid Markdown; scopes rendered in inline code, one row per scope. - The insufficient-scope error example must be valid JSON with a clear message. </constraints> <format> Return the scopes reference as one Markdown artifact, then note how to keep it in sync when new endpoints add new scopes. </format>

Builds a scopes-and-permissions reference mapping each scope to what it unlocks in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Ask Claude to flag any scope that grants more than its name implies โ€” those are your biggest support risks.

Request & Response Examples

5 prompts

cURL Request/Response Examples

11/30

You are an API writer who produces copy-paste-ready cURL examples. <context> I need a set of runnable cURL examples for one endpoint covering the main cases, returned as Markdown with each request paired to its exact response. </context> <inputs> - Endpoint: [METHOD AND PATH] - Auth header: [EXACT HEADER] - Request body fields: [FOR WRITE ENDPOINTS] - Success response shape: [KEY FIELDS] - Cases to cover: [E.G. HAPPY PATH, MISSING FIELD, NOT FOUND] </inputs> <task> For each case, write an H3 heading, a one-line description, a fenced bash cURL command with the correct method, headers, and JSON body, then a fenced JSON response with the correct status noted above it. Cover the happy path plus at least two error cases from my inputs. Keep field names identical between the request and the response it produces. </task> <constraints> - Valid Markdown; cURL commands must be syntactically correct and runnable after swapping placeholders. - Use realistic values; escape JSON in the body correctly for the shell. </constraints> <format> Return the examples as one Markdown artifact, then note which case is most useful to feature at the top of the endpoint page. </format>

Generates paired, runnable cURL request/response examples covering happy-path and error cases in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Ask for the shell to use a variable for the API key so readers set it once and every example just works.

Multi-Language Code Samples Block

12/30

You are a developer-experience writer who ships polyglot code samples. <context> I need the same API call shown in several languages as a tabbed-style code-samples block, returned as Markdown with one fenced block per language. </context> <inputs> - Endpoint and purpose: [METHOD, PATH, WHAT IT DOES] - Auth: [HEADER OR SDK METHOD] - Request payload: [FIELDS] - Languages I want: [E.G. cURL, JavaScript (fetch), Python (requests), Ruby] </inputs> <task> Write an intro line, then one H4 per language, each with a fenced, language-labeled code block that performs the exact same call: same endpoint, headers, and payload, with idiomatic error handling for that language. Follow with one fenced JSON response shared by all. Keep the calls functionally identical across languages. </task> <constraints> - Valid Markdown; each snippet must be idiomatic and actually runnable after inserting a key. - Consistent variable naming across languages; correct fence language hints. </constraints> <format> Return the samples block as one Markdown artifact, then note how to structure these so a docs framework can render them as tabs. </format>

Produces the same API call in multiple languages as an idiomatic, runnable code-samples block in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Add or drop languages in the inputs โ€” Claude keeps the call logic identical so your tabs never drift out of sync.

Pagination Examples & Patterns

13/30

You are an API writer documenting how to page through large collections. <context> I need a pagination guide with worked examples, returned as Markdown, so developers can fetch a full result set correctly. </context> <inputs> - Pagination model: [CURSOR / OFFSET / PAGE-NUMBER] - Param names: [E.G. cursor, limit / page, per_page] - Response metadata: [E.G. next_cursor, has_more, total] - Default and max page size: [NUMBERS] - Endpoint: [METHOD AND PATH] </inputs> <task> Write the guide with: an Overview of the model, a Parameters table, a First Page fenced request + JSON response showing the metadata, a Next Page example that uses the returned cursor/offset, and a Fetching All Pages loop snippet in one language that stops on the correct end condition. Explain the end-of-results signal explicitly. </task> <constraints> - Valid Markdown; the loop must terminate correctly based on the real metadata field. - Response examples valid JSON; consistent field names across pages. </constraints> <format> Return the pagination guide as one Markdown artifact, then note the classic off-by-one or infinite-loop bug for your model. </format>

Creates a pagination guide with first-page, next-page, and fetch-all loop examples in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Name your exact end-of-results field (has_more vs null cursor) so Claude's loop stops on the right condition.

Request & Response Schema Tables

14/30

You are a technical writer who turns JSON schemas into readable field tables. <context> I need clean schema documentation for one endpoint's request and response objects, returned as Markdown tables plus an annotated example. </context> <inputs> - Endpoint: [METHOD AND PATH] - Request object fields: [NAME, TYPE, REQUIRED?, CONSTRAINTS, DESCRIPTION] - Response object fields: [NAME, TYPE, DESCRIPTION, NULLABLE?] - Any nested objects or enums: [DESCRIBE] </inputs> <task> Write: a Request Body section with a fenced JSON example and a fields table (name, type, required, constraints, description), a Response section with a fenced JSON example and a fields table (name, type, nullable, description), and separate small tables for any enums or nested objects. Represent nested paths with dot notation (e.g. address.city). </task> <constraints> - Valid Markdown; every field in the example appears in the table and vice versa. - Types precise (string, integer, ISO 8601 datetime, boolean); mark nullable and required accurately. </constraints> <format> Return the schema docs as one Markdown artifact, then note whether generating this from an OpenAPI spec would keep it in sync. </format>

Turns request and response objects into precise field tables with annotated JSON examples in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Paste a real response JSON and Claude will infer types, nullability, and dot-notation paths for the whole table.

Filtering, Sorting & Field-Selection Examples

15/30

You are an API writer documenting advanced query patterns with concrete examples. <context> I need a worked-examples page showing how to filter, sort, and select fields on a list endpoint, returned as Markdown. </context> <inputs> - Endpoint: [E.G. GET /v1/invoices] - Filterable fields and operators: [E.G. status, amount[gte], created[lte]] - Sort syntax: [E.G. sort=-created] - Field-selection param: [E.G. fields=id,amount,status] - A realistic response item: [FIELDS] </inputs> <task> Write: a short intro, then a series of Recipe subsections each with a title (e.g. "Only unpaid invoices over $100, newest first"), the exact fenced request URL, and the trimmed fenced JSON response it returns. Include at least four recipes that combine filtering, sorting, and field selection. End with a Gotchas note on encoding and operator precedence. </task> <constraints> - Valid Markdown; every URL correctly encoded and matches the documented syntax. - Responses reflect the filters applied (don't return filtered-out records). </constraints> <format> Return the recipes page as one Markdown artifact, then note which recipe to feature as the canonical example. </format>

Produces a recipe-style page of filtering, sorting, and field-selection query examples in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Frame recipes around real user questions ('overdue invoices this month') so devs find them by intent, not syntax.

Error Codes

5 prompts

HTTP Status Code Reference Table

16/30

You are an API writer documenting how your API uses HTTP status codes. <context> I need a status-code reference, returned as Markdown, that tells developers exactly what each code means in the context of my API. </context> <inputs> - Codes my API returns: [E.G. 200, 201, 400, 401, 403, 404, 409, 422, 429, 500] - What each one means here: [YOUR SPECIFIC USAGE] - Whether errors share a common body shape: [YES/NO, DESCRIBE] </inputs> <task> Write: an intro on the error philosophy, a Status Codes table (code, name, meaning in this API, typical cause), then a Success Codes vs Error Codes split if useful, and a fenced example of the standard error body. Be specific to my API (e.g. when 409 fires) rather than reciting generic HTTP definitions. </task> <constraints> - Valid Markdown; every code I listed appears with an API-specific meaning. - Error-body example is valid JSON and matches the shape used elsewhere in my docs. </constraints> <format> Return the status-code reference as one Markdown artifact, then note any code you should probably stop using because it's ambiguous. </format>

Generates an API-specific HTTP status-code reference table with a standard error body in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Tell Claude when you return 422 vs 400 โ€” that distinction is where most APIs confuse their own users.

Error Response Object Reference

17/30

You are a technical writer defining a consistent error object for an API. <context> I need documentation for my standard error response object, returned as Markdown, so every error in my docs looks the same. </context> <inputs> - Error object fields: [E.G. error.code, error.message, error.type, error.param, error.request_id] - Field meanings and types: [DESCRIBE] - Whether multiple errors can return at once: [YES/NO] - HTTP codes this shape is used with: [LIST] </inputs> <task> Write: an Overview, a fenced JSON example of a single error, a fields table (field, type, always present?, description), a section on multiple/validation errors with a fenced array example if applicable, and a How to Handle Errors note recommending clients switch on the machine-readable code, not the message string. </task> <constraints> - Valid Markdown; JSON examples valid and internally consistent. - Clear guidance that message text may change but codes are stable. </constraints> <format> Return the error-object reference as one Markdown artifact, then note whether a request_id field would improve your support workflow. </format>

Defines a consistent error response object with fields table and handling guidance in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Include a request_id in the schema โ€” Claude will document it and it makes every support ticket 10x faster to trace.

Error Code Catalog with Fixes

18/30

You are an API writer building a searchable catalog of every application-level error code. <context> I need a complete error-code catalog, returned as Markdown, where each machine-readable code has a cause and a concrete fix. </context> <inputs> - Error codes: [E.G. invalid_api_key, insufficient_scope, resource_not_found, validation_failed, rate_limited] - HTTP status each maps to: [PER CODE] - What triggers each: [CAUSE] - How the developer fixes it: [ACTION] </inputs> <task> Write: an intro explaining codes are stable and messages are not, then a summary table (code, HTTP status, meaning), then one subsection per code with What Happened, Common Causes (bullets), How to Fix (numbered steps), and a fenced example error body. Order from most to least common. </task> <constraints> - Valid Markdown; codes in inline code, one subsection each, no duplicates. - Fixes must be actionable steps, not restatements of the error. </constraints> <format> Return the error catalog as one Markdown artifact, then note which three codes drive the most support tickets so you can expand those. </format>

Builds a complete error-code catalog with causes and step-by-step fixes per code in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Feed Claude your top support tickets and it will prioritize the catalog by real-world frequency, not alphabetically.

Troubleshooting / Common Errors Guide

19/30

You are a developer-support writer turning recurring issues into a troubleshooting guide. <context> I need a troubleshooting guide for the errors developers hit most while integrating, returned as Markdown organized by symptom. </context> <inputs> - Common problems: [E.G. 401 ON EVERY CALL, CORS ERRORS, WEBHOOK NOT FIRING, TIMEZONE MISMATCH] - Real root cause of each: [DESCRIBE] - The fix: [STEPS] - Relevant status codes or messages: [IF ANY] </inputs> <task> Write the guide organized by symptom: one H3 per problem phrased the way a developer would search it ("Getting 401 even with a valid key"), then Likely Cause, Fix (numbered steps), and a fenced example of the correct request/response where it helps. Add a short "Still stuck? include your request_id" closing note. </task> <constraints> - Valid Markdown; headings phrased as searchable symptoms, not internal jargon. - Fixes concrete and testable; no "contact support" as the first answer. </constraints> <format> Return the troubleshooting guide as one Markdown artifact, then note which symptom likely signals a docs gap upstream. </format>

Produces a symptom-organized troubleshooting guide with causes and fixes in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Phrase each heading as the literal error a dev would paste into search โ€” that's how they'll actually find your guide.

Validation Error Reference

20/30

You are an API writer documenting field-level validation errors. <context> I need a validation-error reference, returned as Markdown, that shows exactly what the API returns when a request body fails validation. </context> <inputs> - Endpoint: [METHOD AND PATH] - Validated fields and rules: [E.G. email must be valid, amount > 0, name max 100 chars] - Validation error shape: [E.G. array of {field, code, message}] - HTTP status used: [E.G. 422] </inputs> <task> Write: an Overview of how validation errors are returned, a fenced example request that violates several rules, the fenced JSON validation-error response it produces, a Validation Rules table (field, rule, error code, message), and a Handling Validation Errors note advising clients to map field errors back to form inputs. Make the example violate at least three distinct rules. </task> <constraints> - Valid Markdown; the error response lists one entry per violated field, matching the request. - Error codes machine-readable and stable; messages human-readable. </constraints> <format> Return the validation reference as one Markdown artifact, then note whether returning all errors at once (vs first-fail) is better for your clients. </format>

Creates a field-level validation-error reference with a multi-violation example and rules table in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Confirm whether you return all validation errors or just the first โ€” it changes how clients build their forms.

Quickstart Guide

5 prompts

5-Minute Quickstart Guide

21/30

You are a developer-experience writer who gets people to their first successful API call fast. <context> I need a 5-minute quickstart, returned as Markdown, that takes a brand-new developer from zero to a working response. </context> <inputs> - API name and what it does: [ONE LINE] - Base URL: [E.G. https://api.example.com] - How to get a key: [STEPS] - The simplest useful endpoint to call first: [METHOD, PATH] - Expected response: [KEY FIELDS] </inputs> <task> Write a numbered quickstart: (1) Get your API key, (2) Make your first request (fenced cURL), (3) Understand the response (fenced JSON + one-line explanation of key fields), (4) Try one more call, (5) Next steps with links. Open with a one-sentence promise of what they'll have in 5 minutes. Keep prose minimal; let the commands carry it. </task> <constraints> - Valid Markdown; the first request must be genuinely runnable after pasting a key. - No detours or optional configuration before the first success. </constraints> <format> Return the quickstart as one Markdown artifact, then note the single biggest friction point that could stop someone before step 2. </format>

Produces a zero-to-first-response 5-minute quickstart guide in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Pick the most impressive simple endpoint for step 2 โ€” the first response should feel like a win, not a health check.

Getting Started / First API Call

22/30

You are an onboarding-focused technical writer. <context> I need a Getting Started page, returned as Markdown, that explains the essentials (base URL, auth, response format) and walks through a first real call. </context> <inputs> - API overview: [WHAT IT DOES, WHO IT'S FOR] - Base URL and versioning: [E.G. /v1] - Auth method: [HOW] - Content type and response format: [E.G. application/json] - A representative first call: [METHOD, PATH, PURPOSE] </inputs> <task> Write: an Introduction (what the API does), a Base URL & Versioning note, an Authentication summary linking to the full auth doc, a Making Requests section covering required headers, a first-call fenced cURL and its JSON response, and a What's Next list. Keep it welcoming but dense with correct detail. </task> <constraints> - Valid Markdown; headers and content-type shown exactly as required. - Every claim (base URL, version, format) must be internally consistent. </constraints> <format> Return the Getting Started page as one Markdown artifact, then note what belongs here vs. in a deeper quickstart to avoid overlap. </format>

Generates a Getting Started page covering base URL, auth, headers, and a first call in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Keep Getting Started conceptual and the quickstart hands-on โ€” tell Claude the split so the two pages don't repeat.

SDK Installation & Setup Guide

23/30

You are a technical writer documenting an official SDK's install and setup. <context> I need an SDK setup guide, returned as Markdown, covering installation, initialization, and a first call using the SDK rather than raw HTTP. </context> <inputs> - Language and package name: [E.G. Node, @example/sdk] - Install command: [E.G. npm install @example/sdk] - How to initialize the client: [API KEY, OPTIONS] - One method to demo: [E.G. client.orders.create()] - Config options worth noting: [TIMEOUT, BASE URL, RETRIES] </inputs> <task> Write: a Requirements note, an Installation section with the fenced install command, an Initialize the Client fenced snippet reading the key from an env var, a First Call fenced snippet with its logged result, a Configuration Options table, and an Error Handling snippet showing how the SDK surfaces API errors. Use idiomatic code for the language. </task> <constraints> - Valid Markdown; snippets runnable and idiomatic; key read from env, never hard-coded. - Method and option names must match the inputs exactly. </constraints> <format> Return the SDK setup guide as one Markdown artifact, then note where to link the full method reference. </format>

Creates an SDK install, initialize, and first-call setup guide with config options in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Have Claude read the API key from an environment variable in every snippet so you never model bad security habits.

Sandbox / Test Environment Guide

24/30

You are an API writer documenting a sandbox/test environment. <context> I need a testing guide, returned as Markdown, that explains how developers use the sandbox safely before going live. </context> <inputs> - Sandbox base URL and how it differs: [E.G. https://sandbox.api.example.com] - Test credentials/keys: [PREFIX OR HOW TO GET] - Test data helpers: [E.G. TEST CARD NUMBERS, SEED USERS] - What is/isn't simulated: [E.G. NO REAL EMAILS/CHARGES] - Going live checklist items: [SWAP KEYS, ETC] </inputs> <task> Write: an Overview of sandbox vs production, a Sandbox Base URL & Keys section, a Test Data table (scenario, test value, expected outcome), a Simulating Edge Cases subsection (how to force declines, errors, webhooks), and a Going Live checklist. Make the differences from production explicit so nothing surprises them at launch. </task> <constraints> - Valid Markdown; test values realistic and clearly labeled as test-only. - Explicit note on what does not happen in sandbox (no real side effects). </constraints> <format> Return the sandbox guide as one Markdown artifact, then note the most common production surprise developers hit after passing in sandbox. </format>

Produces a sandbox/test environment guide with test data and a go-live checklist in Markdown, ready to use.

๐Ÿ’ก

Pro tip: List the exact test values that force errors (declines, timeouts) so devs can prove their error handling before launch.

Postman / Insomnia Collection Setup Doc

25/30

You are a developer-experience writer helping people explore an API in an API client. <context> I need a doc, returned as Markdown, that walks developers through setting up and using a Postman or Insomnia collection for my API. </context> <inputs> - Collection link or how to import: [URL / RUN-IN-POSTMAN / FILE] - Environment variables to set: [E.G. base_url, api_key] - Auth setup in the client: [BEARER / API KEY LOCATION] - 2-3 starter requests to try: [NAMES AND ENDPOINTS] </inputs> <task> Write: an Overview, an Import the Collection steps section, a Configure Your Environment section listing the variables to set in a table, an Authentication setup note, a Try Your First Request walkthrough naming a specific request and its expected response, and a Tips section (using variables, saving responses). Keep steps numbered and click-precise. </task> <constraints> - Valid Markdown; variable names in inline code and consistent throughout. - Steps tool-accurate for the client named; no vague "configure auth". </constraints> <format> Return the collection setup doc as one Markdown artifact, then note how to keep the collection in sync when endpoints change. </format>

Generates a Postman/Insomnia collection setup and first-request walkthrough in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Have Claude define environment variables for base_url and api_key so a single switch flips the whole collection to prod.

Most people use 10% of Claude. Tutorials unlock the rest.

AI Academy: 300+ hands-on tutorials on Claude, ChatGPT, Midjourney, and 50+ AI tools. New tutorials added every week.

Start Your Free Trial

Versioning & Changelog

5 prompts

API Changelog (Keep a Changelog Format)

26/30

You are a technical writer maintaining a clear, standardized API changelog. <context> I need a changelog page, returned as Markdown, following the Keep a Changelog convention so developers can scan what changed and when. </context> <inputs> - Recent changes with dates and versions: [LIST: VERSION, DATE, CHANGE] - Change categories used: [ADDED, CHANGED, DEPRECATED, REMOVED, FIXED, SECURITY] - Which changes are breaking: [FLAG THEM] - Links to relevant docs: [IF ANY] </inputs> <task> Write the changelog with a title and an intro line on the format and versioning scheme, then one H2 per release (## [version] - YYYY-MM-DD, newest first), each grouping entries under the standard categories. Prefix breaking changes with a clear "BREAKING:" marker and link to a migration note. Keep entries one line each, imperative and specific. </task> <constraints> - Valid Markdown; dates in ISO 8601; versions in descending order. - Only include categories that have entries; no empty sections; breaking changes unmistakable. </constraints> <format> Return the changelog as one Markdown artifact, then note a repeatable rule for what does and doesn't earn a changelog entry. </format>

Produces a Keep a Changelog-format API changelog with breaking-change markers in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Give Claude your raw commit or PR titles and it will sort them into Added/Changed/Fixed and flag the breaking ones.

Versioning Policy Doc

27/30

You are an API writer documenting the versioning and stability policy. <context> I need a versioning policy page, returned as Markdown, that tells developers how versions work, what counts as breaking, and how long old versions are supported. </context> <inputs> - Versioning scheme: [URL PATH /v1, HEADER, OR DATE-BASED] - What counts as a breaking vs non-breaking change: [YOUR DEFINITION] - Support/deprecation window: [E.G. 12 MONTHS NOTICE] - How clients pin a version: [MECHANISM] - How you announce changes: [CHANGELOG, EMAIL] </inputs> <task> Write: an Overview of the scheme with an example request showing how the version is specified, a Breaking vs Non-Breaking Changes section with two bulleted lists so expectations are explicit, a Version Lifecycle & Support section stating the deprecation window, a Pinning a Version subsection, and a How You'll Be Notified note. Be concrete about timelines. </task> <constraints> - Valid Markdown; the breaking/non-breaking lists must be specific (adding an optional field is non-breaking; removing a field is breaking). - Version-specification example matches the scheme exactly. </constraints> <format> Return the versioning policy as one Markdown artifact, then note the one ambiguity most likely to cause a support dispute. </format>

Creates a versioning and stability policy doc defining breaking changes and support windows in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Nail down your breaking-vs-non-breaking list precisely โ€” it's the contract every integrator will hold you to.

Migration Guide (v1 โ†’ v2)

28/30

You are a technical writer producing a version migration guide developers can follow safely. <context> I need a migration guide from one API version to the next, returned as Markdown, mapping old behavior to new so integrators can upgrade without breakage. </context> <inputs> - From/to versions: [E.G. v1 -> v2] - Breaking changes: [ENDPOINT RENAMES, FIELD CHANGES, AUTH CHANGES] - Old vs new for each: [BEFORE AND AFTER] - Anything removed with no replacement: [LIST] - Deadline to migrate: [DATE IF ANY] </inputs> <task> Write: an Overview with the migration deadline and a summary of impact, a What's Changed table (area, v1, v2, action needed), then per-change subsections each with a Before fenced example and an After fenced example, an Endpoint/Field Mapping table, and a step-by-step Migration Checklist. Call out removed features with no replacement explicitly. </task> <constraints> - Valid Markdown; before/after examples must be paired, valid, and directly comparable. - Every breaking change from the inputs appears with a concrete action. </constraints> <format> Return the migration guide as one Markdown artifact, then note which change is riskiest and deserves a dedicated callout at the top. </format>

Produces a version migration guide with before/after examples and a checklist in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Give Claude paired old/new request examples โ€” the side-by-side before/after is what actually gets people to migrate.

Deprecation Notice / Sunset Doc

29/30

You are an API writer announcing a deprecation clearly and responsibly. <context> I need a deprecation notice, returned as Markdown, that tells developers what's going away, when, and what to use instead. </context> <inputs> - What's being deprecated: [ENDPOINT, FIELD, OR VERSION] - Deprecation date and sunset (removal) date: [DATES] - The recommended replacement: [WHAT AND WHERE] - Any Deprecation/Sunset headers returned: [E.G. Sunset header] - Who is affected: [WHICH CALLERS] </inputs> <task> Write: a clear Deprecation Notice heading with the item and dates up top, a Why We're Making This Change short paragraph, a Timeline (deprecated on / sunset on) list, a What You Need to Do numbered section pointing to the replacement with a fenced before/after example, a note on the Sunset/Deprecation response headers if used, and a Questions/support line. Lead with the dates and the action. </task> <constraints> - Valid Markdown; dates in ISO 8601 and prominent; replacement path unambiguous. - Tone factual and respectful of developer time; no burying the removal date. </constraints> <format> Return the deprecation notice as one Markdown artifact, then note the best channels to distribute it beyond the docs page. </format>

Generates a deprecation/sunset notice with timeline, replacement, and migration steps in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Put the sunset date in the first sentence โ€” a deprecation notice that hides the deadline gets ignored until it's too late.

Release Notes for an API Update

30/30

You are a developer-relations writer turning a release into readable release notes. <context> I need release notes for a specific API update, returned as Markdown, that highlight what's new and useful for integrators. </context> <inputs> - Version and release date: [E.G. v1.8, 2026-07-01] - Headline features: [WHAT SHIPPED AND WHY IT MATTERS] - New endpoints or fields: [LIST] - Improvements and fixes: [LIST] - Any breaking changes or deprecations: [FLAG] </inputs> <task> Write: a title with version and date, a one-paragraph highlights summary, a New Features section with a short blurb and a fenced example for each headline item, an Improvements list, a Fixes list, and a Breaking Changes / Deprecations section (or an explicit "none this release"). Keep it developer-focused: what they can now do, with an example, not marketing spin. </task> <constraints> - Valid Markdown; each new feature paired with a concrete usage example. - Breaking changes never buried; link to the migration guide if any exist. </constraints> <format> Return the release notes as one Markdown artifact, then note which feature to lead a launch announcement with. </format>

Creates developer-focused release notes with per-feature examples and a breaking-changes section in Markdown, ready to use.

๐Ÿ’ก

Pro tip: Ask Claude to pair every new feature with a runnable example โ€” release notes without code get skimmed and forgotten.

Frequently Asked Questions

Yes. Paste your route handlers, a sample request/response, or an OpenAPI/Swagger snippet into the input placeholders and Claude reverse-engineers parameter tables, field types, and examples. The more real payloads you give it, the more accurate the generated docs. It returns clean Markdown you can paste straight into your docs site.
Every prompt here asks Claude to return a self-contained Markdown artifact: GitHub-flavored tables for parameters and fields, fenced code blocks with language hints for requests and responses, and consistent headings. That means it drops into Docusaurus, Mintlify, ReadMe, GitBook, or a plain README without reformatting.
They are written to be runnable after you swap the bracketed placeholders (your base URL, API key, and IDs). Claude uses realistic values instead of "foo"/"string", keeps field names consistent between request and response, and adds idiomatic error handling in multi-language samples. Always test one call against your real API before publishing.
Treat the prompts as regenerators, not one-offs. When an endpoint changes, re-run the relevant prompt with the updated inputs, or feed Claude your commit/PR titles to draft changelog entries. For teams, generating from the OpenAPI spec each release keeps schema tables and examples aligned with production.
It helps to know your endpoints, auth method, and response shapes, but you don't need to write the docs yourself. Fill in the plain-English placeholders and Claude handles the structure, tables, and formatting. Non-technical teammates can produce a solid first draft that an engineer then verifies against the live API.

Prompts are the starting line. Tutorials are the finish.

A growing library of 300+ hands-on tutorials on ChatGPT, Claude, Midjourney, and 50+ AI tools. New tutorials added every week.

7-day free trial. Cancel anytime.