Skip to main content
POST
/
api
/
v1
/
auth
/
oci-auth
/
login
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/auth/oci-auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "identityId": "<string>",
  "userOcid": "<string>",
  "headers": {
    "authorization": "<string>",
    "host": "<string>",
    "x-date": "<string>",
    "date": "<string>"
  },
  "subOrganizationName": "<string>"
}
'
{
  "accessToken": "<string>",
  "expiresIn": 123,
  "accessTokenMaxTTL": 123,
  "tokenType": "Bearer"
}

Body

application/json
identityId
string
required

The ID of the machine identity to login.

userOcid
string
required

The OCID of the user attempting login.

headers
object
required

The headers of the signed request.

subOrganizationName
string

sub-organization name to scope the token to

Required string length: 1 - 64

Response

Default Response

accessToken
string
required
expiresIn
number
required
accessTokenMaxTTL
number
required
tokenType
enum<string>
required
Available options:
Bearer