Skip to main content
POST
/
api
/
v1
/
auth
/
ldap-auth
/
login
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/auth/ldap-auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "identityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "username": "<string>",
  "password": "<string>",
  "organizationSlug": "<string>"
}
'
{
  "accessToken": "<string>",
  "expiresIn": 123,
  "accessTokenMaxTTL": 123,
  "tokenType": "Bearer"
}

Body

application/json
identityId
string<uuid>
required

The ID of the machine identity to login.

username
string
required

The username of the LDAP user to login.

Minimum string length: 1
password
string
required

The password of the LDAP user to login.

Minimum string length: 1
organizationSlug
string

When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.

Required string length: 1 - 64

Response

Default Response

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