Chapter 11. Connecting to REST APIs
In an integration, to connect to a REST API, you must have created a connector for that API by uploading an OpenAPI specification that describes the API. See Integrating Applications with Fuse Online, Adding REST API client connectors.
When a connector for the REST API you want to connect to is available in Fuse Online, the steps for connecting to that REST API are:
11.1. Register Fuse Online as an API client
Before Fuse Online creates an API client connector, it prompts you to indicate the API’s security requirements. For APIs that use OAuth, when Fuse Online creates the connector it also adds an entry for the API to the Fuse Online Settings page. This is where you provide the API client ID and the API client secret that authorize Fuse Online to access the API.
If the API you want to connect to does not use OAuth, skip this section and see Section 11.2, “Create an API client connection”.
To register Fuse Online as an authorized API client application:
In Fuse Online:
-
On the Settings page, near the top, to the right of the callback URL, click
to copy the callback URL for your Fuse Online environment to the clipboard. You will need this URL later in this procedure.
- Look for the name of the API you want to connect to and click its Register button to display its client ID and client secret fields.
-
On the Settings page, near the top, to the right of the callback URL, click
In another browser window, you must register Fuse Online as an OAuth client of the API you want to connect to. The exact steps for doing this vary for each API service. Typically, the API service provides an OAuth custom application setting page. Go to that page and do the following:
- Provide the Fuse Online callback URL, which you copied at the beginning of this procedure.
- Respond to any other prompts that require your input.
- Obtain the client ID and client secret that the API service assigns to your Fuse Online environment.
Return to the Fuse Online Settings page entry for the API service you are registering with and do the following:
- Paste the assigned client ID.
- Paste the assigned client secret.
- Click Save.
11.2. Create an API client connection
To create a connection to a REST API:
- In Fuse Online, in the left panel, click Connections to display any available connections.
- In the upper right, click Create Connection to display available connectors.
- Click the connector for the API that you want to create a connection for.
- Respond to prompts for additional information. The definition of the API determines what Fuse Online prompts for. For example, for an API that uses HTTP Basic Authorization, Fuse Online prompts for the user name and password to use to access the API. For an API that uses OAuth, Fuse Online displays a button for you to click so that Fuse Online can verify its registration credentials for connecting to the API.
- In the Connection Name field, enter your choice of a name that helps you distinguish this connection from any other connections.
- In the Description field, optionally enter any information that is helpful to know about this connection.
- In the upper right, click Create to see that you can now choose the connection you created and add to an integration.
11.3. Add an API client connection to an integration
Before you can add an API connection to an integration, you must create a connection to that API. See Section 11.2, “Create an API client connection”.
In this release, in an integration, a connection to an API can be the finish connection or a middle connection. It cannot be the start connection. The instructions below assume that Fuse Online is prompting you to select a finish connection or a connection that is not the start connection.
To add an API connection to an integration:
- On the page that displays available connections, click the API connection that you want to add to the integration.
- Click the action that you want the connection to perform. The actions that are available are based on the resource operations specified in the OpenAPI file that was uploaded to Fuse Online and that describes the API you are connecting to.
- Depending on the action you select, enter any parameters that Fuse Online prompts for.
- Click Done.
The connection appears in the integration flow in the location where you added it.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.