IBM Cloud Pak for Integration only: Creating flows for an API from scratch
You can create flows for an API (alternatively referred to as an API flow) in your App Connect Designer instance. The defined configuration provides an API that exposes one or more operations that enable you to call out to an endpoint and pass data between that endpoint and applications in the flow.
If you are using IBM® Cloud Pak for Integration and have access to an App Connect Designer instance and an IBM API Connect
instance that are deployed to the IBM Cloud Pak Platform UI, the unified
authoring feature (previously referred to as integrated authoring) enables you
to simultaneously expose your API in both App Connect Designer and API Connect. When you create an API flow and then start the API in your
Designer instance, the API is automatically added to a Product, which is then published to a Catalog
that is provided for a provider organization in API Connect. The
Product also becomes visible on the Developer Portal if a site is enabled for the Catalog. You can
work with the API in API Connect independently of the one in App Connect Designer, and can also browse the Product (and API) in the Developer
Portal. When you stop the API in Designer, the Product (and API) in the API Manager user interface
and the Developer Portal site are automatically deleted. Depending on the version of your Designer
instance, you can control where the API is published.
- In App Connect Designer 11.0.0.12-r1 through 12.0.4.0-r2, the API is automatically added to the Default Plan in an auto-generated Product, which is then published to the Sandbox Catalog that is provided for a provider organization in any of your discovered API Connect instances.
- In App Connect Designer 12.0.5.0-r1-lts or later, you can specify settings for publishing the API to a preferred API Connect instance and provider organization. You can also choose Catalog and Gateway targets, the containing Product and Plan for the published API, and a consuming application.
Before you begin
- Prerequisites for creating flows
-
To create flows for an API, the following conditions apply:
- You must have access to an App Connect Designer instance in your cluster.
- If you know which applications or imported APIs you want to interact with, open the App Connect Designer catalog and create accounts for the connectors that will run API operations against the target applications or APIs. (You can also create accounts while creating a flow.) For more information, see Connecting to accounts.
- Prerequisites for unified authoring (previously termed integrated authoring)
-
To use the unified authoring feature, the following prerequisites apply:
- Cloud Pak for Integration must be installed in your cluster and an IBM Cloud Pak Platform UI instance, which enables you to create and manage instances of capabilities from a central location, must be deployed in all namespaces (cluster-wide), or in a single namespace in your cluster.
- You must have access to an App Connect Designer instance (of type
Integration design
) and an API Connect instance (of typeAPI management
), which are deployed to the Platform UI in your cluster. The App Connect Designer and API Connect instances can be in the same or different namespaces if Cloud Pak for Integration and the Platform UI are deployed cluster-wide.
If you are using Cloud Pak for Integration 2023.4.1 or later, you must have access to an App Connect Designer instance at version 12.0.10.0-r2 or later, and an API Connect instance at version 10.0.7.0 or later. In this environment, identity and access management (IAM) is enabled by using Keycloak, which is used to validate user identities and assign roles to grant access permissions. The App Connect Designer instance must also be created with aCloudPakForIntegration*
style license. This value is set by the spec.license.use parameter in the Designer custom resource. For more information, see Identity and access management in the Cloud Pak for Integration documentation and Implementing identity and access management for App Connect Designer and App Connect Dashboard instances.For more information, see Installing the Operators and API Management deployment in the Cloud Pak for Integration documentation.
- The API Connect instance must be configured by using the Cloud
Manager user interface to register the relevant servers to provide gateway, analytics, and portal
services. For more information, see API Connect admin: manage the API Connect
environment and users. Work
with your administrator if necessary to ensure that these specific requirements are met:
- A DataPower API Connect Gateway Service must be installed as a subsystem in your cluster and a
DataPower API Gateway service must be registered to handle incoming traffic for APIs. A DataPower
API Gateway service, rather than DataPower Gateway (v5 compatible) service, is required because the
published API conforms to the OpenAPI 3.0 specification, which is supported only with DataPower API
Gateway. For more information, see Registering a gateway service.
(A Gateway service represents a cluster of gateway servers that host published APIs and provide the API endpoints used by client applications. Gateways execute API proxy invocations to backend systems and enforce API policies including client identification, security, and rate limiting.) - If you are using Cloud Pak for Integration 2023.4.1 or later, you must be
logged in to App Connect Designer (through the Platform UI) by using a user account that is set up in the API Connect Cloud Pak User Registry. This user account must be assigned
the
designerauthoring-admin
role, which assigns full access and is required for any action in Designer. For more information, see Roles and permissions for App Connect Designer. API Connect configures Cloud Pak for Integration IAM as the API Connect user registry calledCloud Pak User Registry
. API Connect's single sign-on with Cloud Pak for Integration applications works only if you choose Cloud Pak User Registry when logging in to API Connect.
If you are using Cloud Pak for Integration 2023.2.1 or earlier, you must be logged in to API Connect and App Connect Designer (through the Platform UI) by using a single user account that is set up in the API Connect Common Services User Registry. API Connect configures Cloud Pak for Integration IAM as the API Connect user registry calledCommon Services User Registry
. API Connect's single sign-on with Cloud Pak for Integration applications works only if you choose Common Services User Registry when logging in to API Connect. - The API Connect environment that you are logged in to (under your
Cloud Pak User Registry or Common Services User Registry account) must contain at least one provider
organization, which is set up to manage teams that develop and manage APIs and related assets. You
must either be registered as the owner of a provider organization, or registered as a member of a
provider organization with a
Developer
role that is assigned at the provider organization level. For more information, see Creating a provider organization and API Connect user roles.
Tip: If you are using Cloud Pak for Integration 2023.4.1 or later, you need to log in to the API Connect Cloud Manager UI as theintegration-admin
user. - A DataPower API Connect Gateway Service must be installed as a subsystem in your cluster and a
DataPower API Gateway service must be registered to handle incoming traffic for APIs. A DataPower
API Gateway service, rather than DataPower Gateway (v5 compatible) service, is required because the
published API conforms to the OpenAPI 3.0 specification, which is supported only with DataPower API
Gateway. For more information, see Registering a gateway service.
- A Sandbox Catalog, which is available by default, or user-defined Catalogs must exist in the
provider organization. The Catalog to which you publish must contain an application that has an
owning consumer organization and is secured with a client ID.
- If using App Connect Designer 12.0.5.0-r1-lts or later, you can choose to publish to the built-in Sandbox Catalog or a user-defined Catalog.
- If using an earlier App Connect Designer version, you can publish to the Sandbox Catalog only.
About this task
When you create flows for an API, each individual flow is the implementation for an API operation (such as 'GET order' or 'POST order') that is typically invoked from mobile and web applications. The flow for each operation contains a request, actions for one or more applications or imported APIs, optional toolbox nodes for specialized data processing, and a response for the API operation. The request uses a model that you define to request the creation, retrieval, or replacement of data objects in your applications. When the request is submitted, each target application or API performs its action, and then the flow returns a response that either confirms that the actions were successful, or returns the data that was requested.
- Create one or more models that define the structure of the objects that you want to create or retrieve. Up to 10 models are allowed.
- Choose the built-in create, retrieve, or replace or update operations to perform against each model, or define your own custom operations.
- Configure a flow to implement each operation, adding actions for one or more target applications or APIs. Optionally add toolbox utilities to the flow for specialized processing of the input or output data from these applications.
Creating an API flow
You can use the API editor to create an API flow and to define models and implement operations for your API. You can also optionally configure policy, gateway, and portal settings to control the API's behavior when it is published to API Connect after you start the flow.
Procedure
To create an API flow, complete the following steps:
Setting preferences for publishing the API to API Connect
If you are using App Connect Designer 12.0.5.0-r1-lts or later, you can enable unified authoring (previously termed integrated authoring) to set preferences that control where the API is published in your API Connect deployments. You can also disable unified authoring to stop the API from being published to API Connect when the flow is started.
Procedure
To configure preference settings that determine where the API is published in API Connect when you start the flow, complete the following steps:
Starting your flow
After you have authored the flow to your requirements, and configured preferences for publishing the API to API Connect, start the flow so that you can observe its behavior.
Procedure
Notice that a Test tab is immediately added after the Gateway tab, to use for testing the API within App Connect Designer.

The OpenAPI 3.0 YAML definition for the running API flow in App Connect Designer is used to also automatically add and publish the API to a Product and Plan in the specified Catalog and provider org in your API Connect instance. The API Product also becomes visible in the Developer Portal if you have one configured.
Accessing the published API in API Connect
After the API is started, you can access your API Connect instance to view the published API in the API Manager and Developer Portal.
Procedure
To access the API in API Connect, complete the following steps:
Next steps from App Connect Designer
Procedure
After the API is started, you can perform any of these tasks from your App Connect Designer instance: