Replay run
Creates a new run with the same payload and options as the original run, in the same environment. Send a body to override the payload, metadata, or trigger options for the new run. The body is optional; an empty body replays the run unchanged.
Authorizations
Use a named environment API key. It starts with tr_dev_sk_, tr_prod_sk_, tr_stg_sk_, etc.
Create a named API key in the API Keys section of your Trigger.dev project dashboard. Choose the narrowest access preset that supports your integration.
Our TypeScript SDK will default to using the value of the TRIGGER_SECRET_KEY environment variable if it is set. If you are using the SDK in a different environment, you can set the key using the configure function.
Path Parameters
The ID of an run, starts with run_. The run ID will be returned when you trigger a run on a task.
Body
The payload for the new run. Omit it to reuse the original run's payload.
How payload is encoded. Defaults to application/json. With application/super+json, payload must be a SuperJSON string, which keeps types like Date and BigInt. The SDK sends this automatically.
application/json, application/super+json Metadata for the new run. Omit it to reuse the original run's metadata.
Tags for the new run. Replaces the original run's tags.
128"user_123456"
The name of an existing queue in the environment to run on.
The concurrency key for the new run.
The machine preset for the new run.
micro, small-1x, small-2x, medium-1x, medium-2x, large-1x, large-2x "small-2x"
Lock the new run to this deployed version, for example 20250101.1. Defaults to the current version.
The region to run in. Defaults to the original run's region.
Delay the new run, as a duration (1h30m) or an ISO 8601 date.
How long the new run can stay queued before it expires, as a duration string (10m) or a number of seconds.
An idempotency key for the new run. A repeated request with the same key returns the same run.
2048How long the idempotency key is valid, as a duration (1h).
The maximum number of attempts for the new run.
x >= 1The maximum duration of the new run in seconds.
Priority offset in seconds. Higher values are dequeued sooner.
Response
Successful request
The ID of the new run.

