Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed. For more information on the actual limits, refer to Rate Limits.
HTTP request
POST https://cloudfunctions.googleapis.com/v1/{name}:call
Path parameters
Parameters
name
string
Required. The name of the function to be called. It takes the form projects/{project}/locations/{location}/functions/{function}.
Authorization requires the following IAM permission on the specified resource name:
cloudfunctions.functions.call
Request body
The request body contains data with the following structure:
JSON representation
{"data": string}
Fields
data
string
Required. Input to be passed to the function.
Response body
Response of functions.call method.
If successful, the response body contains data with the following structure:
[[["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-06-16 UTC."],[[["\u003cp\u003eThis document describes how to synchronously invoke a deployed Cloud Function using a POST request to the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a function name in the path parameters, structured as \u003ccode\u003eprojects/{project}/locations/{location}/functions/{function}\u003c/code\u003e, and the \u003ccode\u003ecloudfunctions.functions.call\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a JSON object with a \u003ccode\u003edata\u003c/code\u003e field (a string) which provides the input to the function.\u003c/p\u003e\n"],["\u003cp\u003eA successful call returns a JSON response body including \u003ccode\u003eexecutionId\u003c/code\u003e, \u003ccode\u003eresult\u003c/code\u003e, and \u003ccode\u003eerror\u003c/code\u003e fields, where \u003ccode\u003eresult\u003c/code\u003e shows the function's output and \u003ccode\u003eerror\u003c/code\u003e shows any errors during execution.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this request requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]