RapidIdentity Product Guides - 2019 Rolling Release

API Call for New Session

Follow these steps to authenticate to RapidIdentity using Postman, cURL, or another equivalent approach:

  1. Using Postman, cURL, or another HTTP client, submit a POST call to the following path to authenticate a new session.

    POST /api/rest/sessions

  2. In the Headers field, enter Content Type as the key and application/json as the value.  

    Legacy_API_Call_New_Session.png
  3. In the Body field, select Raw and JSON (application/json). In the body, enter an administrator username and password. 

    Legacy_API_Call_Credentials.png
  4. Send the API call. A 200 status code returns with the JSON response for the session.

    Legacy_API_Call_Send_Json.png
  5. You can use the following cURL call to authenticate a new session:

            curl -X POST https://server.domain/api/rest/sessions
              -H 'cache-control: no-cache'
              -H 'content-type: application/json'
              -d '{
                "username": "adminUsername",
                "password": "adminPassword"
              }'