Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Authenticate User (API)

date_range 30-May-23
Let's get you authenticated so you can make API calls.
  1. From the left navigation menu, navigate to Platform > Developers, then click Rest API Documentation.

    The Swagger API developer tool for the Apstra environment appears.

  2. Click aaa, click POST / api/aaa/login, then click Try it out.

    The parameters become editable.

  3. Enter a username and password, then click Execute.

    The response body appears containing a token.

  4. 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.

  5. Paste the token and click Authorize.

    The dialog shows that you've been authorized.

  6. 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.
footer-navigation