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.  

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

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

  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"