Get a generation

Retrieve a saved generation by its numeric database ID.

{
    "title": "Get a generation",
    "description": "",
    "method": "GET",
    "baseUrl": "https://app.docuwriter.ai",
    "endpoint": "/api/generations/{id}",
    "headers": [
        {
            "key": "Authorization",
            "value": "Bearer YOUR_API_TOKEN",
            "type": "string",
            "required": true
        },
        {
            "key": "Accept",
            "value": "application/json",
            "type": "string",
            "required": true
        }
    ],
    "queryParams": [],
    "pathParams": [
        {
            "key": "id",
            "value": "Numeric resource ID returned by this API.",
            "type": "integer",
            "required": true
        }
    ],
    "bodyType": "none",
    "requestBody": "",
    "formData": [],
    "rawBody": "",
    "responses": {
        "200": {
            "description": "HTTP 200: success: true, data.uuid, generated_by_user_email, filename, generated, created_at, updated_at, generation_type, tag. generated contains the saved output. Illustrative JSON example; sample values are fictional. Some optional or additional resource fields may be omitted.",
            "body": "{\n  \"success\": true,\n  \"data\": {\n    \"uuid\": \"00000000-0000-4000-8000-000000000456\",\n    \"generated_by_user_email\": \"[email protected]\",\n    \"filename\": \"add.js\",\n    \"generated\": \"# add\\n\\nReturns the sum of two numbers.\",\n    \"created_at\": \"2026-09-28T10:00:00.000000Z\",\n    \"updated_at\": \"2026-09-28T10:00:00.000000Z\",\n    \"generation_type\": 0,\n    \"tag\": null\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 notes

  • Use data.generation_id from a generator response, or data[].id from My generations.
  • A generation UUID is not accepted as an equivalent identifier by this route.

Usage notes

  • The lookup is scoped to the authenticated account relationship; absent or inaccessible IDs return 404.
  • This response is a saved generation, not a live generation-progress resource.

API authentication.

Updated