Invoking Applications
This page lists different ways that you can invoke a OCI Generative AI application, after you create and deploy one.
The following instructions apply to applications that use identity domain bearer token authentication. For applications that use OCI IAM authentication, sign requests according to OCI IAM request-signing requirements. See Authentication.
For applications that use identity domain browser session authentication, browser users sign in through the identity domain. The hosted application service obtains access tokens on their behalf and establishes a browser session that uses a session cookie. For configuration steps, see Identity domain browser session.
Getting an Access Token
To invoke an application that uses identity domain bearer token authentication, obtain an OAuth access token from the associated OCI IAM identity domain and send it as a bearer token in the Authorization header. The following example uses the client credentials grant. See Access Token.
Using the Access Token
- Invoking Applications with HTTP
- Invoking Applications with WebSocket (WebSocket Client Example)
- Invoking Applications with WebSocket (MCP Server Example)