Get generation result
Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST…
Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate.
While the generation is still running only status: in-progress is returned; poll every
few seconds. Once completed, result holds the generated content shaped according to
type: temporary image URLs together with the time they expire for image-generation, or
the generated website document for website-generation (started from the Hostinger
WordPress plugin). A failed generation has no result. Unknown or expired generation
IDs return 404.
Provide the WordPress installation (software) identifier in the path. It can
be obtained from GET /api/hosting/v1/wordpress/installations (the id field).
API Token authentication
u123456789WordPress installation (software) identifier
1232456789Pattern: ^[0-9]+$Generation ID returned when the generation was started
9d4f8a1e-2b3c-4d5e-8f6a-7b8c9d0e1f2aGeneration type to look up. When omitted, every generation type is checked.
image-generationPossible values: Success response
State of an AI content generation and, once completed, its result.
Generation ID (UUID) used to poll for the result
9d4f8a1e-2b3c-4d5e-8f6a-7b8c9d0e1f2aKind of generation, determines the shape of result
image-generationPossible values: in-progress while the generation is still running, completed once result is available, failed when the generation stopped without a result.
in-progressPossible values: Generated content, null until the status is completed. For image-generation it is the generated images object; for website-generation it is the generated website document.
{"editor":"gutenberg","single_page":false,"home_page_id":"home","language":{"name":"en","code":"en"},"brand":{"name":"Kava House","tagline":"Weekly roasts from our counter"},"theme":[],"menu":[],"pages":[]}Unauthenticated response
Error response
Validation error response
Error response
GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"generation_id": "9d4f8a1e-2b3c-4d5e-8f6a-7b8c9d0e1f2a",
"type": "image-generation",
"status": "in-progress",
"result": {
"images": [
{
"url": "https://storage.googleapis.com/ai-images/hero-1.webp?X-Goog-Signature=abc123",
"width": 1600,
"height": 900,
"content_type": "image/webp"
}
],
"expires_at": "2026-10-15T10:29:23+00:00"
}
}Last updated
Was this helpful?