DeepSeek API Documentation Writer Prompt
You are a technical writer with 10+ years creating developer documentation that reduces support tickets by 60%.
Category
💻 Coding
Difficulty
Intermediate
Models
3
Last Updated
2026-06-28
Works with
📄 Example output
⚠️ Common Mistakes
❓ FAQ
⚙️ Fill in your variables
📋 Prompt
You are a technical writer with 10+ years creating developer documentation that reduces support tickets by 60%.
API: [api name]
Endpoint: [endpoint description]
Parameters: [request parameters]
Response: [response format]
Task: Write complete API documentation:
1. ENDPOINT OVERVIEW: Method + URL, description, auth, rate limits
2. REQUEST PARAMETERS TABLE: name | type | required | description | example
3. REQUEST EXAMPLES: cURL, Python (requests), JavaScript (fetch)
4. RESPONSE SCHEMA: Complete JSON schema with types and descriptions
5. RESPONSE EXAMPLES: 200 success, 400 validation error, 401 auth, 404 not found, 429 rate limit
6. ERROR CODES TABLE: code | meaning | how to fix
7. REAL-WORLD USAGE: A complete scenario showing 2–3 chained API calls
Format: OpenAPI 3.0-compatible. Code in labelled blocks.
API: [api name]
Endpoint: [endpoint description]
Parameters: [request parameters]
Response: [response format]
Task: Write complete API documentation:
1. ENDPOINT OVERVIEW: Method + URL, description, auth, rate limits
2. REQUEST PARAMETERS TABLE: name | type | required | description | example
3. REQUEST EXAMPLES: cURL, Python (requests), JavaScript (fetch)
4. RESPONSE SCHEMA: Complete JSON schema with types and descriptions
5. RESPONSE EXAMPLES: 200 success, 400 validation error, 401 auth, 404 not found, 429 rate limit
6. ERROR CODES TABLE: code | meaning | how to fix
7. REAL-WORLD USAGE: A complete scenario showing 2–3 chained API calls
Format: OpenAPI 3.0-compatible. Code in labelled blocks.
# GET /v1/prompts/{slug}
Retrieve a specific prompt by its unique slug.
**Authentication:** Bearer token (header: Authorization: Bearer YOUR_KEY)
**Rate limit:** 100 requests/minute per API key
## Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| `slug` | string | ✅ | Prompt identifier | `seo-blog-post-writer` |
| `model` | string | ❌ | Filter for model | `chatgpt` |
## Request
```bash
curl -X GET 'https://api.toolsnova.net/v1/prompts/seo-blog-post-writer' \
-H 'Authorization: Bearer YOUR_API_KEY'
```
```python
import requests
r = requests.get(
'https://api.toolsnova.net/v1/prompts/seo-blog-post-writer',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
print(r.json()['prompt']['text'])
```
## Response (200)
```json
{
"slug": "seo-blog-post-writer",
"title": "SEO Blog Post Writer",
"prompt": { "text": "string", "variables": ["string"] },
"last_updated": "2026-06-28"
}
```
## Errors
| Code | Meaning | Fix |
|---|---|---|
| 401 | Invalid API key | Check header format |
| 404 | Slug not found | Verify slug in /v1/prompts list |
| 429 | Rate limit hit | Wait 60s, reduce request frequency |
Retrieve a specific prompt by its unique slug.
**Authentication:** Bearer token (header: Authorization: Bearer YOUR_KEY)
**Rate limit:** 100 requests/minute per API key
## Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| `slug` | string | ✅ | Prompt identifier | `seo-blog-post-writer` |
| `model` | string | ❌ | Filter for model | `chatgpt` |
## Request
```bash
curl -X GET 'https://api.toolsnova.net/v1/prompts/seo-blog-post-writer' \
-H 'Authorization: Bearer YOUR_API_KEY'
```
```python
import requests
r = requests.get(
'https://api.toolsnova.net/v1/prompts/seo-blog-post-writer',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
print(r.json()['prompt']['text'])
```
## Response (200)
```json
{
"slug": "seo-blog-post-writer",
"title": "SEO Blog Post Writer",
"prompt": { "text": "string", "variables": ["string"] },
"last_updated": "2026-06-28"
}
```
## Errors
| Code | Meaning | Fix |
|---|---|---|
| 401 | Invalid API key | Check header format |
| 404 | Slug not found | Verify slug in /v1/prompts list |
| 429 | Rate limit hit | Wait 60s, reduce request frequency |
🏆
💡 Pro Tips
Best model for this prompt
Claude
Claude (Opus 4 / Sonnet 4)
The cURL example is what developers copy first — make it perfect
Error messages should say exactly what to change, not just what went wrong
Include a Quickstart section — first successful API call in under 5 minutes is the goal
Version your API from day one — /v1/ in the URL is much cheaper to add now than retrofit later
Docs that show only happy-path success responses
Out-of-date examples using deprecated parameters
Missing authentication docs — auth friction creates most support tickets
No error response examples — developers need to know what failure looks like
- What's the difference between API docs and a developer guide?Reference docs are exhaustive — every endpoint, every parameter. Guides are task-oriented — how to authenticate, how to paginate. Great portals have both.
- Should I use OpenAPI/Swagger?Yes — OpenAPI spec lets you auto-generate interactive docs, client SDKs, and testing tools from one YAML/JSON file. Industry standard for REST APIs.
- Which AI model writes the best API docs?Claude is excellent — follows complex structural templates, produces accurate multi-language code examples, and maintains consistency across a large document.
- How do I keep API docs current?Generate docs from code (OpenAPI spec from your codebase updates automatically). For narrative docs, include documentation in your definition of done for every API change.