Retrieve Authentication Token - Autonomous AI Database Deployments

post

[host-url]/odi/broker/pdbcs/public/v1/token

Steps to authenticate:

  1. Send a POST request with the required JSON payload to the endpoint.
  2. Save the access_token and use it as your Bearer token.
  3. The token expires after the amount of seconds indicated by 'expires_in'.
  4. After the token expires, request a new token.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
JSON containing authentication information.
Show Source
Example:
{
    "username":"your_username",
    "password":"your_pwd",
    "database_name":"your_database_name",
    "tenant_name":"your_tenant_ocid",
    "cloud_database_name":"your_cloud_database_ocid",
    "grant_type":"password"
}
Back to Top

Response

Supported Media Types

200 Response

Successful response
Body ()
Root Schema : TokenDTO
Type: object
JSON containing access token, refresh token, and other relevant information.
Show Source
Back to Top