One run of a story, for a page following it.

GET /ai/stories/{storyId}/generations/{generationId}

GET https://dev.zanhosting.com/ai/stories/{storyId}/generations/{generationId}

ID de operación ai.stories.storyId.generations.generationId.get
Acceso Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. O: An access token the site's ZanAuth issuer minted for its app, or a static key.

Parámetros

NombreEnTipoDescripción
storyId Ruta Obligatorio string (snowflake) The story.
generationId Ruta Obligatorio string (snowflake) The run.

Respuestas

EstadoDescripciónEsquemaTipo de contenido
200 One run of a story as it now stands. StoryGeneration application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
Cualquier otro estado The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

200 One run of a story as it now stands.

PropiedadTipoDescripción
ai_story_generations_id string (snowflake) Obligatorio
ai_story_generations_status one of: 1, 2, 3, 4, 5 Obligatorio
status_label string Obligatorio
under_way boolean Obligatorio Whether the run is planning or writing; while it is, ask again to see it grow.
ai_story_generations_model_name string Obligatorio
ai_story_generations_plan_markdown string Obligatorio The outline the story is written from, as Markdown, with every character named; empty until it is planned.
ai_story_generations_plan_reasoning string Obligatorio
ai_story_generations_story_text string Obligatorio
ai_story_generations_story_reasoning string Obligatorio
ai_story_generations_error string, or null Obligatorio
ai_story_generations_created_at integer (int64) Obligatorio Unix seconds.
ai_story_generations_completed_at integer (int64), or null Obligatorio Unix seconds.
created_at_readable string Obligatorio
stop_url string Obligatorio
remove_url string Obligatorio
download_url string Obligatorio

422 The input was rejected; errors names each failure.

PropiedadTipoDescripción
type string Obligatorio A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Obligatorio The HTTP status as text, such as Not Found.
status integer (int32) Obligatorio The HTTP status code of the response.
detail string Obligatorio An explanation of what went wrong, written for people to read.
instance string Obligatorio The path the request was sent to.
errors InputErrors Obligatorio What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

Cualquier otro estado: The request was refused. The problem's type names why, and its detail explains it for people to read.

PropiedadTipoDescripción
type string Obligatorio A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Obligatorio The HTTP status as text, such as Not Found.
status integer (int32) Obligatorio The HTTP status code of the response.
detail string Obligatorio An explanation of what went wrong, written for people to read.
instance string Obligatorio The path the request was sent to.

Ejemplo

curl -X GET 'https://dev.zanhosting.com/ai/stories/{storyId}/generations/{generationId}' \
  -H 'Authorization: Bearer <access token>'

Toda la documentación

0 sentencias de base de datos · 12 lecturas de la caché · 0.0 ms esperando a la base de datos · 26,0 MiB de memoria pico
public.settingsSELECTde la caché
public.mesh_nodesSELECTde la caché
public.fqdnsSELECTde la caché
public.sitesSELECTde la caché
public.api_buildsSELECTde la caché
public.docs_guidesSELECTde la caché
public.filesSELECTde la caché
public.filesSELECTde la caché
public.filesSELECTde la caché
public.filesSELECTde la caché
public.api_buildsSELECTde la caché
public.docs_guidesSELECTde la caché