---
title: "Get a prompt generation run"
method: GET
path: "/prompt_generations/{id}"
tags: ["Prompts"]
---

# Get a prompt generation run

`GET /prompt_generations/{id}`

## Request

- Base URL: `https://api.llmpulse.ai/api/v1`
- URL: `https://api.llmpulse.ai/api/v1/prompt_generations/{id}`
- Auth: API key in header `Authorization`

Returns a run started with POST /prompt_generations: processing while the generator works, then completed with the suggestions it saved to the Suggested prompts queue, or failed with an error code and message. Poll every few seconds; most runs finish within a minute. Runs are kept for 24 hours, their suggestions stay in the queue.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `project_id` integer, required

## Response `200`

The run

- PromptGenerationResponse
  - `id` string, uuid, required: The run id; poll GET /prompt_generations/{id} with it (kept for 24 hours)
  - `project_id` integer, required
  - `source` string, required
  - `status` 'processing' | 'completed' | 'failed', required
  - `params` object, required: The validated request the run uses, with the project's locale filled in
    - `country_code` string
    - `language_code` string
    - `query` string
    - `count` integer
    - `competitor_id` integer
    - `search_type` string
    - `keywords` string[]
    - `source_country_code` string
    - `source_language_code` string
    - `min_words` integer
    - `all_countries` boolean
    - `property` string
  - `created_at` string, date-time, required
  - `finished_at` string, date-time, nullable, required
  - `suggestions_count` integer, required
  - `suggestions` SuggestedPrompt[], required: The suggestions the run saved to the Suggested prompts queue, with their current status
    - `id` integer, required
    - `prompt` string, required
    - `source` string, required: The generator that wrote it: website, magic (keyword runs), topic, reddit, paa, reputational, translate, gsc (Search Console) or catalog
    - `status` string, required: pending, accepted or rejected
    - `country_code` string, nullable, required
    - `language_code` string, nullable, required
    - `prompt_id` integer, nullable, required: The prompt an accepted suggestion became
    - `accepted_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
  - `error` object, nullable, required: Why a failed run failed
    - `code` string, required: ERR_GENERATION_FAILED, ERR_NOT_FOUND (no suggestions came back), ERR_QUOTA_EXCEEDED, or a Search Console error code
    - `message` string, required
  - `request_id` string, required

## Other responses

- `403`: API key belongs to a team member whose permission matrix does not grant this feature
- `404`: Resource not found

## Changes

- **2026-10-16** `dd090b1e1154`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/llmpulse/apis/llm-pulse-api/changes/prompt_generations/:id/get.md)

---

[API](https://skmtc.dev/llmpulse/apis/llm-pulse-api.md) - [All operations](https://skmtc.dev/llmpulse/apis/llm-pulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/llmpulse/apis/llm-pulse-api/revisions/38a31f123641?raw)
