For use with API Endpoint Flows only. This function sends a response back to the caller and closes the HTTP connection, similar to Return or Return Raw, but also allows the Flow to continue execution afterward. This is useful for Flows that might not complete before the connection times out, after which the caller might call the endpoint again with the same inputs (thus causing unintended duplicate executions).

Input Fields

  • statusCode (Number): the status code to return to the caller.  A regular Return card would typically return the code 200. Valid values are:  200, 400-600.
  • headers (Custom): Create a field for each key/value pair you want to include in the response header (e.g. a field called “Content-Type” with the value “text/plain”. You can create fields by clicking and then specifying a name and type, or by dragging-and-dropping outputs from other cards.
  • body (Custom): Similar to a Return card, create a field for each value that needs to be returned to the caller. You can create fields by clicking and then giving a name and type, or by dragging-and-dropping outputs from other cards.

Output Fields

No output fields.