Invoke an AI Agent via REST API - 401 Error
Hi All,
We are trying to Invoke Custom AI Agent via REST API and running into error(401).
Application Version: 26A
Step 1: Generate Token by doing REST Call
Endpoint: https://idcshost.identity.oraclecloud.com/ui/v1/signin
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}/invokeAsyncError
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
Using that Token, Rest API call works, and response code is
Tagged:
0