ClickIntegrationsfrom the left navigation menu to open theIntegrationspage.
Select an existing integration or create a new integration by clickingCreate integration.
If you are creating a new integration:
Enter a name and description in theCreate Integrationdialog.
Select a region for the integration.
Select a service account for the integration. You can change or update the service account details of an integration any time from theinfoIntegration summarypane in the integration toolbar.
ClickCreate.
This opens the integration in theintegration editor.
In theintegration editor, clickpublishUpload/download menuand then selectUpload integration.
In the file browser dialog, select the file that you saved in step 1, and then clickOpen.
A new version of the integration is created using the uploaded file.
In theintegration editor, clickTest.
ClickTest integration. This runs the integration and displays the execution result in theTest Integrationpane.
[[["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-09-08 UTC."],[],[],null,["# Make a REST call to a public API\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nMake a REST call to a public API\n================================\n\n\nUsing the Call REST Endpoint task, make a call to `https://mocktarget.apigee.net/json`, and save the response in a JSON variable.\n\nCode sample\n-----------\n\n {\n \"triggerConfigs\": [{\n \"label\": \"API Trigger\",\n \"startTasks\": [{\n \"taskId\": \"1\"\n }],\n \"properties\": {\n \"Trigger name\": \"CallRestEndpointDemo_API_1\"\n },\n \"triggerType\": \"API\",\n \"triggerNumber\": \"1\",\n \"triggerId\": \"api_trigger/CallRestEndpointDemo_API_1\"\n }],\n \"taskConfigs\": [{\n \"task\": \"GenericRestV2Task\",\n \"taskId\": \"1\",\n \"parameters\": {\n \"throwError\": {\n \"key\": \"throwError\",\n \"value\": {\n \"booleanValue\": true\n }\n },\n \"responseBody\": {\n \"key\": \"responseBody\",\n \"value\": {\n \"stringArray\": {\n \"stringValues\": [\"$`Task_1_responseBody`$\"]\n }\n }\n },\n \"disableSSLValidation\": {\n \"key\": \"disableSSLValidation\",\n \"value\": {\n \"booleanValue\": false\n }\n },\n \"httpParams\": {\n \"key\": \"httpParams\"\n },\n \"responseHeader\": {\n \"key\": \"responseHeader\",\n \"value\": {\n \"stringArray\": {\n \"stringValues\": [\"$`Task_1_responseHeader`$\"]\n }\n }\n },\n \"userAgent\": {\n \"key\": \"userAgent\",\n \"value\": {\n \"stringValue\": \"\"\n }\n },\n \"httpMethod\": {\n \"key\": \"httpMethod\",\n \"value\": {\n \"stringValue\": \"GET\"\n }\n },\n \"responseStatus\": {\n \"key\": \"responseStatus\",\n \"value\": {\n \"stringArray\": {\n \"stringValues\": [\"$`Task_1_responseStatus`$\"]\n }\n }\n },\n \"url\": {\n \"key\": \"url\",\n \"value\": {\n \"stringValue\": \"https://mocktarget.apigee.net/json\"\n }\n },\n \"urlFetchingService\": {\n \"key\": \"urlFetchingService\",\n \"value\": {\n \"stringValue\": \"HARPOON\"\n }\n },\n \"useSSL\": {\n \"key\": \"useSSL\",\n \"value\": {\n \"booleanValue\": false\n }\n },\n \"requestorId\": {\n \"key\": \"requestorId\",\n \"value\": {\n \"stringValue\": \"\"\n }\n },\n \"urlQueryStrings\": {\n \"key\": \"urlQueryStrings\"\n },\n \"requestBody\": {\n \"key\": \"requestBody\",\n \"value\": {\n \"stringValue\": \"\"\n }\n },\n \"followRedirects\": {\n \"key\": \"followRedirects\",\n \"value\": {\n \"booleanValue\": true\n }\n },\n \"additionalHeaders\": {\n \"key\": \"additionalHeaders\"\n }\n },\n \"nextTasks\": [{\n \"taskId\": \"2\"\n }],\n \"taskExecutionStrategy\": \"WHEN_ALL_SUCCEED\",\n \"displayName\": \"Call REST Endpoint\"\n }, {\n \"task\": \"FieldMappingTask\",\n \"taskId\": \"2\",\n \"parameters\": {\n \"FieldMappingConfigTaskParameterKey\": {\n \"key\": \"FieldMappingConfigTaskParameterKey\",\n \"value\": {\n \"jsonValue\": \"{\\n \\\"@type\\\": \\\"type.googleapis.com/enterprise.crm.eventbus.proto.FieldMappingConfig\\\",\\n \\\"mappedFields\\\": [{\\n \\\"inputField\\\": {\\n \\\"fieldType\\\": \\\"JSON_VALUE\\\",\\n \\\"transformExpression\\\": {\\n \\\"initialValue\\\": {\\n \\\"referenceValue\\\": \\\"$`Task_1_responseBody`$\\\"\\n },\\n \\\"transformationFunctions\\\": [{\\n \\\"functionType\\\": {\\n \\\"stringFunction\\\": {\\n \\\"functionName\\\": \\\"TO_JSON\\\"\\n }\\n }\\n }]\\n }\\n },\\n \\\"outputField\\\": {\\n \\\"referenceKey\\\": \\\"$OutputJson$\\\",\\n \\\"fieldType\\\": \\\"JSON_VALUE\\\",\\n \\\"cardinality\\\": \\\"OPTIONAL\\\"\\n }\\n }]\\n}\"\n }\n }\n },\n \"taskExecutionStrategy\": \"WHEN_ALL_SUCCEED\",\n \"displayName\": \"Data Mapping\"\n }],\n \"integrationParameters\": [{\n \"key\": \"`Task_1_responseHeader`\",\n \"dataType\": \"STRING_VALUE\",\n \"displayName\": \"`Task_1_responseHeader`\",\n \"isTransient\": true,\n \"producer\": \"1_1\"\n }, {\n \"key\": \"`Task_1_responseBody`\",\n \"dataType\": \"STRING_VALUE\",\n \"displayName\": \"`Task_1_responseBody`\",\n \"isTransient\": true,\n \"producer\": \"1_1\"\n }, {\n \"key\": \"`Task_1_responseStatus`\",\n \"dataType\": \"STRING_VALUE\",\n \"displayName\": \"`Task_1_responseStatus`\",\n \"isTransient\": true,\n \"producer\": \"1_1\"\n }, {\n \"key\": \"OutputJson\",\n \"dataType\": \"JSON_VALUE\",\n \"displayName\": \"OutputJson\",\n \"inputOutputType\": \"OUT\"\n }]\n }\n\n### Sample integration flow\n\nThe following image shows a sample layout of the integration editor for this integration code sample.\n\n\nUpload and run the sample integration\n-------------------------------------\n\nTo upload and run the sample integration, do the following steps:\n\n1. Save the [integration sample](#code-sample) as a .json file on your system.\n2. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n3. Click **Integrations** from the left navigation menu to open the **Integrations** page.\n4. Select an existing integration or create a new integration by clicking **Create integration** .\n\n\n If you are creating a new integration:\n 1. Enter a name and description in the **Create Integration** dialog.\n 2. Select a region for the integration. **Note:** The **Regions** dropdown only lists the regions provisioned in your Google Cloud project. To provision a new region, Click **Enable Region** . See [Enable new region](/application-integration/docs/enable-new-region) for more information.\n 3. Select a service account for the integration. You can change or update the service account details of an integration any time from the info **Integration summary** pane in the integration toolbar. **Note:** The option to select a service account is displayed only if you have enabled integration governance for the selected region.\n 4. Click **Create**.\n\n\n This opens the integration in the *integration editor*.\n5. In the *integration editor* , click publish**Upload/download menu** and then select **Upload integration**.\n6. In the file browser dialog, select the file that you saved in step 1, and then click **Open** .\n\n A new version of the integration is created using the uploaded file.\n7. In the *integration editor* , click **Test**.\n8. Click **Test integration** . This runs the integration and displays the execution result in the **Test Integration** pane."]]