Managing resources with the App Connect API
You can use the App Connect API to manage your resources after you obtain an access token for authentication.
About this task
You can use the App Connect API to provide access to resources in your instance so that you can administer BAR files, configurations, integration runtimes, and trace. For more information, see API overview.
To use the App Connect API, you must first authenticate your credentials by including an access token in your API calls. To get an access token, you must generate an API key, a client ID, and a secret in App Connect. The client ID represents a specific instance of App Connect and all users of that instance share the ID. The API key represents a specific user of an instance and is specific to that user.
If you have a service that needs to access the API, you can also create a service ID, then create an API key for the service ID. The service ID is a type of user ID that represents that service. All users of the instance where the service ID is created can access the service ID.
Accessing the API with a personal API key
Procedure
The following steps describe how a specific user can get an access token by generating an API key, client ID, and secret.
Results
{
"access_token": "myAccessToken",
"token_type": "bearer",
"scope": "appcon:manage",
"expires_in": 43200
}X-IBM-Client-Id header to provide your client ID, and the Authorization:
Bearer header to provide this access token. For example, the following call requests a list
of configurations.curl --request GET \
--url https://api.region.appconnect.ipaas.automation.ibm.com/api/v1/configurations \
--header "Authorization: Bearer myAccessToken" \
--header 'X-IBM-Client-Id: myClientId' \
--header 'accept: application/json'Authorization: Bearer is
case-sensitive and must be referred to in calls with the correct capitalization.Accessing the API with a shared service ID
Procedure
The following steps describe how to get an access token for a service to use by generating a service ID, API key, client ID, and secret.
Results
{
"access_token": "myAccessToken",
"token_type": "bearer",
"scope": "appcon:manage",
"expires_in": 43200
}X-IBM-Client-Id header to provide your client ID, and the Authorization:
Bearer header to provide this access token. For example, the following call requests a list
of configurations.curl --request GET \
--url https://api.region.appconnect.ipaas.automation.ibm.com/api/v1/configurations \
--header "Authorization: Bearer myAccessToken" \
--header 'X-IBM-Client-Id: myClientId' \
--header 'accept: application/json'Authorization: Bearer is
case-sensitive and must be referred to in calls with the correct capitalization.
(
in the navigation pane, then click
, then paste them into a file for later use. After you copy the values,
click
) for the service ID, click