Call REST Endpoint task

TheCall REST Endpoint task lets you call any third-party REST API from your integration. The response from the REST API call will be available to you in an integration variable and can be used in other down-stream tasks.

Note:
  • The network configuration of theCall REST Endpoint task allows it to call endpoints only available over the public internet. Hence, the task can't connect to hosts or IPs that reside only within a private network such as a VPC, even if that VPC is peered with your other Google Cloud services such as Apigee X.
  • This task can process a maximum of 50 MB of REST response.

Before you begin

Configure the Call REST Endpoint task

To configure theCall REST Endpoint task:

  1. In the Google Cloud console, go to theApplication Integration page.

    Go to Application Integration

  2. In the navigation menu, clickIntegrations.

    TheIntegrations page appears listing all the integrations available in the Google Cloud project.

  3. Select an existing integration or clickCreate integration to create a new one.

    If you are creating a new integration:

    1. Enter a name and description in theCreate Integration pane.
    2. Select a region for the integration.Note: TheRegions dropdown only lists the regions provisioned in your Google Cloud project. To provision a new region, clickEnable Region. SeeEnable new region for more information.
    3. Select a service account for the integration. You can change or update the service account details of an integration any time from theIntegration 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.
    4. ClickCreate. The newly created integration opens in theintegration editor.

  4. In theintegration editor navigation bar, clickTasks to view the list of available tasks and connectors.
  5. Click and place theCall REST Endpoint element in the integration editor.
  6. Click theCall REST Endpoint element on the designer to view theCall REST Endpoint task configuration pane.
  7. Configure the displayed fields using theconfiguration properties of the task as detailed in the table below.

    Changes to the properties are saved automatically.

    Note: If you update the authentication profile for aCall REST Endpoint task, and test the integration without publishing the changes, the integration uses the old authentication profile. To ensure that the integration uses the updated authentication profile, you mustpublish the integration before testing.

Configuration properties

The following table describes the configuration properties of theCall REST Endpoint task.

PropertyData typeDescription
LabelStringOptional: add a label for your task.
AuthenticationStringOptional: configures and stores the authentication details for connections to external systems. For more information, seeCreate authentication profiles in Application Integration.
Endpoint base URLStringREST endpoint URL without the query parameters.
HTTP methodNAHTTP method to use.

You can select any of the following HTTP methods:

  • DELETE
  • GET
  • HEAD
  • PATCH
  • POST
  • PUT
URL query string parametersQuery string key :String

Value:String

Query parameters required for the REST API call.

The query parameters are in the form of key-value pairs where key is the key name and the value is the corresponding key value. You can enter more than one key-value pair by clicking on the plus icon.

HTTP headersHTTP header key:String

Value:String

HTTP headers required for the REST API call.

The HTTP headers are in the form of key-value pairs where key is the key name and the value is the corresponding key value. You can enter more than one key-value pair by clicking on the plus icon.

Follow redirectsBooleanFollow URL redirects.

You can select any one of the values:

  • True: Calls the redirected URL if the Endpoint base URL is forwarded to another URL.
  • False: Does not call the redirected URL if the Endpoint base URL is forwarded to another URL.
Task should fail on HTTP errorBooleanException handling strategy when the REST API call fails. TheCall REST Endpoint fails if the HTTP response code is4xx or5xx. For a list of error codes, seeError codes. For other HTTP response codes, return error code and error message in the response.Note: For errors that are not related to REST API call, such as incorrect URL, the task always fail irrespective of what this option is set to.

You can select any one of the values:

  • True: Throws an exception.
  • False: Does not throw an exception. But returns the error code and the error message in the response.
Response header (<Task name>)StringUncompressed response header from the REST APIs response.
Response body (<Task name>)StringUncompressed response body from the REST APIs response.
Response status (<Task name>)StringHTTP response code and the corresponding code text from the REST APIs response.

Best practices

For information about the usage limits that apply to theCall REST Endpoint task, see Usage limits.

Error handling strategy

An error handling strategy for a task specifies the action to take if the task fails due to atemporary error. For information about how to use an error handling strategy, and to know about the different types of error handling strategies, seeError handling strategies.

To learn how to handle retry strategies for4xx or5xx errors, see theHow to retry Rest Caller Task based on Response Status blog.

Quotas and limits

For information about quotas and limits, seeQuotas and limits.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.