Check process
This endpoint is used to check the progress and current status of an asynchronous generation task — either character generation or page generation — for a specific story chapter.
You can poll this endpoint periodically until the task’s status becomes "completed".
Method & Path:
GET /v1/api/stories/{story_id}/chapters/{chapter_id}/statusAuth Required: Yes (
X-API-Key)Query Parameter Required:
task_type(specifies which process to check)
Headers
X-API-Key
✅
Your API key for authentication.
Content-Type
✅
Must be application/json.
Request Specification
Path Parameters
story_id
string
✅
The UUID of the story being processed.
chapter_id
integer
✅
The numeric ID of the chapter.
Query Parameters
task_type
string
✅
'character_generation' or 'page_generation'
The type of generation process to check.
Response — 200 OK
status
string
Top-level API status (e.g. "success").
data.progress
integer
Current progress percentage (0–100).
data.status
string
Current process state: queued, processing, completed, or failed.
data.message
string
A message describing the current step or final outcome.
data.task_id
string
The task UUID that identifies this generation process.
data.task_type
string
The type of task (character_generation or page_generation).
errors
array
A list of errors, if any.
error_description
string
Detailed error description, if applicable.
start_time / end_time
string
Timestamps of when the request was processed by the server.
host_of_client_call_request
string
The IP address of the client making the request.
total_time_by_second
number
Total request handling time (in seconds).
Response — 200 OK
status
string
Top-level API status (e.g. "success").
data.progress
integer
Current progress percentage (0–100).
data.status
string
Current process state: queued, processing, completed, or failed.
data.message
string
A message describing the current step or final outcome.
data.task_id
string
The task UUID that identifies this generation process.
data.task_type
string
The type of task (character_generation or page_generation).
errors
array
A list of errors, if any.
error_description
string
Detailed error description, if applicable.
start_time / end_time
string
Timestamps of when the request was processed by the server.
host_of_client_call_request
string
The IP address of the client making the request.
total_time_by_second
number
Total request handling time (in seconds).
Example Responses
✅ Example — Character Generation Completed
Last updated