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
💻 Coding Intermediate api documentation developer rest
Works with
📋 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.
# 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 |
🏆
Best model for this prompt
Claude
Claude (Opus 4 / Sonnet 4)
💡 Pro Tips
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
⚠️ Common Mistakes
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
❓ FAQ 🔗 Related Prompts