You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Invoke AI Agent via REST API - 401 Error

edited Jan 6, 2026 9:55AM in Common

Hi All,

We are trying to Invoke Custom AI Agent via REST API and running into Authorization error.

Application Version: 26A

Step 1: Generate Token by doing REST Call

Endpoint: https://idcshost.identity.oraclecloud.com/oauth2/v1/token

Method: GET

Authentication: Basic and Pass Username, Password

From Response, Capture "accessToken" Value.

Step2: Invoke AI Agent via REST Call

Endpoint: https://host.oraclecloud.com/api/fusion-ai/orchestrator/agent/v1/{AGENT_CODE}/invokeAsync

Method:POST

Headers: Authorization: Bearer TOKEN

Body:

Response Code: 401

We have tried to run AI Agent manually and tried to capture the Bearer Token from Browser Developer Tools Network Tab

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!