Move MI endpoints from v3 to v1

This commit is contained in:
Tuan Dang
2023-12-05 22:24:25 +07:00
parent 855158d0bb
commit 591f33ffbe
15 changed files with 34 additions and 33 deletions

View File

@@ -82,12 +82,12 @@ In the following steps, we explore how to create and use MIs for your applicatio
<Step title="Accessing the Infisical API with the MI">
To access the Infisical API as the MI, you should first perform a login operation
that is to exchange the **Client ID** and **Client Secret** of the MI for an access token
by making a request to the `/api/v3/machines/login` endpoint.
by making a request to the `/api/v1/machine-identities/login` endpoint.
#### Sample request
```
curl --location --request POST 'https://app.infisical.com/api/v3/machines/login' \
curl --location --request POST 'https://app.infisical.com/api/v1/machine-identities/login' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'clientSecret=...' \
--data-urlencode 'clientId=...'