List and filter my generations
Retrieve a paginated generation collection including numeric IDs and Markdown output.
{
"title": "List and filter my generations",
"description": "",
"method": "POST",
"baseUrl": "https://app.docuwriter.ai",
"endpoint": "/api/my-generations",
"headers": [
{
"key": "Authorization",
"value": "Bearer YOUR_API_TOKEN",
"type": "string",
"required": true
},
{
"key": "Accept",
"value": "application/json",
"type": "string",
"required": true
},
{
"key": "Content-Type",
"value": "application/json",
"type": "string",
"required": true
}
],
"queryParams": [],
"pathParams": [],
"bodyType": "json",
"requestBody": "{\n \"per_page\": 15,\n \"page\": 1,\n \"type\": \"documentation\"\n}",
"formData": [],
"rawBody": "",
"responses": {
"200": {
"description": "HTTP 200 resource collection with data, pagination links, and meta. Each generation has id, filename, source, generation_type, created_at, generated_markdown, generated_html. This endpoint does not use the usual success wrapper. Illustrative JSON example; sample values are fictional. Some optional or additional resource fields may be omitted.",
"body": "{\n \"data\": [\n {\n \"id\": 456,\n \"filename\": \"add.js\",\n \"source\": \"export function add(a, b) { return a + b; }\",\n \"generation_type\": 0,\n \"created_at\": \"2026-09-28T10:00:00.000000Z\",\n \"generated_markdown\": \"# add\\n\\nReturns the sum of two numbers.\",\n \"generated_html\": \"<h1>add</h1>\\n<p>Returns the sum of two numbers.</p>\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1\n }\n}"
},
"401": {
"description": "Missing or invalid account API token.Missing or invalid account API token. Example JSON response.",
"body": "{\n \"message\": \"Unauthenticated.\"\n}"
}
}
}
Request fields
| Field | Requirement |
|---|---|
per_page |
Optional per_page: integer 1–100, default 15. |
page |
Optional page: integer at least 1. |
type |
Optional type: one of documentation, tests, optimizer, converter, swagger_api_docs, comment, diagrams, git_documentation, git_readme, git_full_tree_documentation, git_release_notes, git_codebase, changes_summary. |
Usage notes
- Only the account generation relationship is queried.
- 422 for unsupported type or pagination.
- Unlike List generations, there is no documented
archivedfilter and this controller does not apply that endpoint’s default non-archived condition. - Treat returned source and generated content as private account data.
Updated