Skip to main content
POST
Generate FAQs
Generate page-specific questions and answers from content already indexed for a page. Use the page’s canonical URL to identify the content.
Send URL context only. Do not send the full page body from the browser. The API returns not_found when the page is not available in the selected index.

Format the answers

A bullet-formatted answer is one string containing newline-separated list items. It is not an array.

Handle the response status

The endpoint returns HTTP 200 for each application-level result.

Body

application/json
company
string
required

Public company or index identifier.

canonical_url
string
required

Canonical URL of the page used to generate FAQs.

page_url
string

Current browser URL. Optional; fragments and tracking params are normalized server-side.

title
string

Optional page title for display and prompt context.

locale
string

Optional locale or language hint.

requestId
string

Caller-generated request identifier.

sessionId
string

Caller-generated session identifier.

is_private_session
boolean
default:false

When true, bypasses the cache and summary analytics logging.

Tracking consent for this request. Setting this to false also enables private-session behavior.

model
string
default:gpt

Model alias configured for the runtime package.

version
enum<string>
default:published

Runtime package pointer. Omit this field or use published for production traffic. Use unpublished only when testing an unpublished runtime package.

Available options:
published,
unpublished
max_items
integer
default:4

Maximum number of question-and-answer pairs to return.

Required range: 1 <= x <= 6
answer_format
enum<string>
default:paragraph

Format for each answer.

Available options:
paragraph,
bullets
answer_max_bullets
integer
default:3

Maximum list items in each answer when answer_format is bullets.

Required range: 1 <= x <= 6
answer_paragraph_words
enum<integer>
default:100

Target word count for each answer when answer_format is paragraph.

Available options:
50,
100,
150
tone
enum<string>
default:neutral

Writing style for generated answers.

Available options:
neutral,
warm,
professional,
concise

Response

FAQ result for the supplied page URL

status
enum<string>
required

FAQ generation status.

Available options:
ready,
not_found,
error
items
object[]
required

Generated question-and-answer pairs. Empty when status is not_found or error.

cache_status
enum<string>
required

Whether the response came from cache.

Available options:
hit,
miss,
bypass
source_url
string | null

Normalized source URL used for lookup.

title
string | null

Page title returned by the request or indexed content.

version
enum<string>
default:published

Runtime package pointer. Omit this field or use published for production traffic. Use unpublished only when testing an unpublished runtime package.

Available options:
published,
unpublished
resolved_version
string | null

Resolved runtime pointer after fallback handling.

resolved_corpus_version
integer | null

Resolved indexed corpus version used internally for the response.

generated_at
string<date-time> | null

Server timestamp for the generated response.