v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1737274251.5 KB

Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken failed.

For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role.

A caller can mark a task as fail without using any KMS permissions in the execution role if the caller provides a null value for both error and cause fields because no data needs to be encrypted.

post/#X-Amz-Target=AWSStepFunctions.SendTaskFailure

Headers

X-Amz-Target'AWSStepFunctions.SendTaskFailure' required

Request body

taskTokenstring required

The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context object</a> when a workflow enters a task state. See <a>GetActivityTaskOutput$taskToken</a>.

errorstring password

The error code of the failure.

causestring password

A more detailed explanation of the cause of the failure.

Response

Success

SendTaskFailureOutput required