Skip to content

Execute detached replay

POST
/api/v1/replay

Replay stored pipeline outputs from a previous execution to any target route.

This creates a new execution context with:
- New execution_id (UUID v7)
- New replay_batch_id (UUID v7) for grouping replayed messages
- Unique correlation_id per message for lineage tracking

The replay operation:
1. Lists objects at the source prefix (execution_id/stage/path)
2. Filters out .meta.json sidecar files
3. Publishes each object to the target route's inbound queue
4. Puts execution_id and replay_batch_id in message METADATA
5. Puts object_key in message payload for downstream adapters
DetachedReplayRequest

Request model for detached replay API.

Semantic fields for replaying stored outputs to a target route.

object
from_execution_id
required
From Execution Id

UUID of the source execution to replay from

string format: uuid
from_stage
required
From Stage

Pipeline stage name (e.g., ‘boost/compacted’, ‘markdown_converted’)

string
>= 1 characters
from_path
Any of:
string
to_route
required
To Route

Target route name to replay to

string
>= 1 characters

Successful Response

DetachedReplayResponse

Response model for detached replay API.

Contains counts and status of the replay operation.

object
execution_id
required
Execution Id

New execution UUID for replayed messages

string format: uuid
from_execution_id
required
From Execution Id

Source execution UUID

string format: uuid
from_stage
required
From Stage

Source pipeline stage

string
from_path
required
Any of:
string
to_route
required
To Route

Target route name

string
to_queue
required
To Queue

Target queue that received messages

string
objects_found
required
Objects Found

Total objects found at source prefix

integer
objects_published
required
Objects Published

Objects successfully published

integer
objects_failed
Objects Failed

Objects that failed to publish

integer
0
status
required
Status

Overall status of the replay operation

string
Allowed values: publishing_complete partial_failure
replay_batch_id
required
Replay Batch Id

UUID for grouping all replayed messages

string format: uuid
errors
Any of:
Array<string>

Bad request

ErrorResponse

Standard error response matching FastAPI HTTPException format.

This model is used in OpenAPI response declarations for 4xx/5xx errors. The detail field matches FastAPI’s HTTPException structure.

object
detail
required
Detail

Error message (matches FastAPI HTTPException)

string
error_code
Any of:
string
correlation_id
Any of:
string
timestamp
Timestamp

Error timestamp

string format: date-time

Resource not found

ErrorResponse

Standard error response matching FastAPI HTTPException format.

This model is used in OpenAPI response declarations for 4xx/5xx errors. The detail field matches FastAPI’s HTTPException structure.

object
detail
required
Detail

Error message (matches FastAPI HTTPException)

string
error_code
Any of:
string
correlation_id
Any of:
string
timestamp
Timestamp

Error timestamp

string format: date-time

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object