Oracle Integration Cloud Rest API Example
Oracle Integration Cloud (OIC) provides REST APIs that allow you to manage and monitor integrations and other resources programmatically.
Here’s an example of using the Oracle Integration Cloud REST API to list integrations:
- Obtain OAuth2 Access Token: Before making API requests, you need to obtain an OAuth2 access token for authentication. This involves sending a request to the Oracle Identity Cloud Service (IDCS) for authentication.
curl -X POST \
https://<IDCS_HOST>/oauth2/v1/token \
-H 'Authorization: Basic <base64_encoded_client_credentials>' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials'
Replace <IDCS_HOST> with your Oracle IDCS host and <base64_encoded_client_credentials> with your client ID and client secret base64 encoded.
- List Integrations: Once you have the access token, you can use it to make requests to the OIC REST API.
curl -X GET \
https://<OIC_HOST>/ic/api/integration/v1/integrations \
-H 'Authorization: Bearer <access_token>'
Replace <OIC_HOST> with your Oracle Integration Cloud host and <access_token> with the access token obtained in the previous step.
This API call will return a list of integrations in your Oracle Integration Cloud instance..