Generate Bearer Token

Generate a bearer token using database credentials to authenticate API requests and securely access A2A server endpoints for calling in-database AI agents.

See Configure MCP Server in AI Agent Application for more information.

Example

Send a POST request to the token endpoint.

curl -X POST 'https://dataaccess.adb.{region-identifier}.oraclecloudapps.com/adb/auth/v1/databases/{database-ocid}/token' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"grant_type": "password",
"username": "<database-username>",
"password": "<database-password>"
}'

Replace the placeholders with your specific values.