A map object with a url field that stores the URL of the created endpoint.
timeout
float
The maximum request timeout in seconds (default: 43200.0).
Returns
The callback request received.
Raised exceptions
Exceptions
TimeoutError
In case of a timeout.
ValueError
In case of invalid input values.
TypeError
In case of invalid input types.
Examples
# A basic callback workflow-create_callback:call:events.create_callback_endpointargs:http_callback_method:"GET"result:callback_details-print_callback_details:call:sys.logargs:severity:"INFO"text:${"Listening for callbacks on " + callback_details.url}-await_callback:call:events.await_callbackargs:callback:${callback_details}timeout:3600result:callback_request-print_callback_request:call:sys.logargs:severity:"INFO"text:${"Received " + json.encode_to_string(callback_request.http_request)}-return_callback_result:return:${callback_request.http_request}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Function: events.await_callback\n\nWaits for a callback to be received at the given endpoint.\n\nFor more information, see\n[Wait using callbacks](https://cloud.google.com/workflows/docs/creating-callback-endpoints).\n\nArguments\n---------\n\nReturns\n-------\n\nThe callback request received.\n\nRaised exceptions\n-----------------\n\nExamples\n--------\n\n```yaml\n# A basic callback workflow\n- create_callback:\n call: events.create_callback_endpoint\n args:\n http_callback_method: \"GET\"\n result: callback_details\n- print_callback_details:\n call: sys.log\n args:\n severity: \"INFO\"\n text: ${\"Listening for callbacks on \" + callback_details.url}\n- await_callback:\n call: events.await_callback\n args:\n callback: ${callback_details}\n timeout: 3600\n result: callback_request\n- print_callback_request:\n call: sys.log\n args:\n severity: \"INFO\"\n text: ${\"Received \" + json.encode_to_string(callback_request.http_request)}\n- return_callback_result:\n return: ${callback_request.http_request}\n```"]]