---
title: "POST /2021-11-15/functions/{FunctionName}/response-streaming-invocations"
method: POST
path: "/2021-11-15/functions/{FunctionName}/response-streaming-invocations"
---

# POST /2021-11-15/functions/{FunctionName}/response-streaming-invocations

`POST /2021-11-15/functions/{FunctionName}/response-streaming-invocations`

Configure your Lambda functions to stream response payloads back to clients. For more information, see [Configuring a Lambda function to stream responses](https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html).

This operation requires permission for the [lambda:InvokeFunction](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html) action. For details on how to set up permissions for cross-account invocations, see [Granting function access to other accounts](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke).

## Path parameters

- `FunctionName` string, required

## Query parameters

- `Qualifier` string

## Headers

- `X-Amz-Invocation-Type` 'RequestResponse' | 'DryRun'
- `X-Amz-Log-Type` 'None' | 'Tail'
- `X-Amz-Client-Context` string

## Request body

- object
  - `Payload` string, password — <p>The JSON that you want to provide to your Lambda function as input.</p> <p>You can enter the JSON directly. For example, <code>--payload '{ "key": "value" }'</code>. You can also specify a file path. For example, <code>--payload file://payload.json</code>.</p>

## Response `200`

Success

- InvokeWithResponseStreamResponse
  - `StatusCode` integer — For a successful request, the HTTP status code is in the 200 range. For the <code>RequestResponse</code> invocation type, this status code is 200. For the <code>DryRun</code> invocation type, this status code is 204.
  - `EventStream` object — The stream of response payloads.
    - `PayloadChunk` object — A chunk of the streamed response payload.
      - `Payload` string, password — Data returned by your Lambda function.
    - `InvokeComplete` object — An object that's returned when the stream has ended and all the payload chunks have been returned.
      - `ErrorCode` string — An error code.
      - `ErrorDetails` string — The details of any returned error.
      - `LogResult` string — The last 4 KB of the execution log, which is base64-encoded.

## Other responses

- `480` — ServiceException
- `481` — ResourceNotFoundException
- `482` — InvalidRequestContentException
- `483` — RequestTooLargeException
- `484` — UnsupportedMediaTypeException
- `485` — TooManyRequestsException
- `486` — InvalidParameterValueException
- `487` — EC2UnexpectedException
- `488` — SubnetIPAddressLimitReachedException
- `489` — ENILimitReachedException
- `490` — EFSMountConnectivityException
- `491` — EFSMountFailureException
- `492` — EFSMountTimeoutException
- `493` — EFSIOException
- `494` — SnapStartException
- `495` — SnapStartTimeoutException
- `496` — SnapStartNotReadyException
- `497` — EC2ThrottledException
- `498` — EC2AccessDeniedException
- `499` — InvalidSubnetIDException
- `500` — InvalidSecurityGroupIDException
- `501` — InvalidZipFileException
- `502` — KMSDisabledException
- `503` — KMSInvalidStateException
- `504` — KMSAccessDeniedException
- `505` — KMSNotFoundException
- `506` — InvalidRuntimeException
- `507` — ResourceConflictException
- `508` — ResourceNotReadyException

---

[API](https://skmtc.net/aws/apis/lambda.md) · [All operations](https://skmtc.net/aws/apis/lambda/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lambda/versions/2d9fde023ce9/schema)
