---
title: "Get the generation job context"
method: GET
path: "/org/content-generation/job-context"
tags: ["Content Generation"]
---

# Get the generation job context

`GET /org/content-generation/job-context`

## Request

- Base URL: `https://apiv2.senso.ai/api/v1`
- URL: `https://apiv2.senso.ai/api/v1/org/content-generation/job-context`
- Auth: API key in header `X-API-Key`

Returns the prompts eligible for the next generation run and a queue summary (which prompts create new content vs. update existing). Requires the GEO product.

## Response `200`

The generation job context.

- OrgJobContextResponse: The generation job context for an org — the prompts eligible to run and a queue summary.
  - `org_id` string, uuid, required
  - `org_name` string, required
  - `org_slug` string, required
  - `content_auto_publish` boolean, required
  - `selected_content_type_id` string, uuid: The content type selected for generation, if any.
  - `prompts` PromptJobContext[], required
    - `geo_question_id` string, uuid, required
    - `question_text` string, required
    - `type` string, required: The prompt's question type (e.g. `awareness`, `consideration`, `evaluation`, `decision`).
    - `has_content` boolean, required
    - `queue_type` string, required: Which queue the prompt lands in — `create` (no content yet) or `update`.
    - `content_id` string, uuid, nullable, required
    - `latest_version_id` string, uuid, nullable, required
    - `editorial_status` string: The current content's editorial state, when it has content.
    - `ever_published` boolean, required
    - `citeables_action` string, required: Legacy informational field; the real per-destination action is resolved server-side.
  - `summary` JobContextSummary, required: Counts summarizing an org's generation job context.
    - `total_prompts` integer, required
    - `create_queue_count` integer, required
    - `update_queue_count` integer, required

## Other responses

- `401`: Missing or invalid credentials — supply a valid org API key in the `X-API-Key` header.
- `403`: The API key is authenticated but not permitted to access this resource.
- `404`: The requested resource does not exist or is not visible to this key.

---

[API](https://skmtc.dev/senso/apis/senso-org-api.md) - [All operations](https://skmtc.dev/senso/apis/senso-org-api/llms.txt) - [OpenAPI document](https://skmtc.dev/senso/apis/senso-org-api/revisions/d789b4fcbe84?raw)
