Authenticate User (API)
Let's get you authenticated so you can make API calls.
-
From the left navigation menu, navigate to Platform >
Developers, then click Rest API Documentation.
The Swagger API developer tool for the Apstra environment appears.
-
Click aaa, click POST / api/aaa/login,
then click Try it out.
The parameters become editable.
-
Enter a username and password, then click Execute.
The response body appears containing a token.
-
Copy the token from the response body, scroll to the top, then click
Authorize (top-right, shown in the first step).
The Authorize dialog appears.
-
Paste the token and click Authorize.
The dialog shows that you've been authorized.
-
Click the X in the dialog (top-right) to close the dialog.
The lock in the Authorize button changes to a closed lock, indicating that you're authenticated.
You're ready to make API calls.