Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Web service calls are authenticated by verifying that a valid authentication token is in the header of the request. Following are instructions and examples using Postman.

...

  1. In the Postman app, open a new tab by clicking the +

  2. Obtain an authentication token

...

  1. by a post to the authorizations endpoint.

    1. Select POST for the request

    2. Enter the URL

      1. The URL for the endpoint is https://xxx.studytrax.com/api/v1/authorizations. Change "xxx" to the prefix of the server you are targeting (e.g., "my" if target is https://my.

...

      1. studytrax.com).

    1. Select Body

    2. Select raw

    3. Select JSON in the dropdown

    4. In the body of the request, supply JSON with properties “username” and “password”

      1. For example {username: "

...

      1. myUsername", password: "

...

      1. myPassword"}

      2. Note, it may be helpful to create a user specifically for doing API calls. The user can be flagged as a “service account”, which means the user’s password will not expire and will not need multifactor authentication even if it is required at the customer level. Moreover, the user’s permissions can be limited to the functions needed for the API calls.

...

    1. Click Send

    2. If the request is successful, the response will contain JSON that has the authentication token as the

...

    1. authorization

...

    1. property.

...

  1. Add the authentication token

...

  1. to the header

...

    1. Select Headers

    2. Enter “x-authorization” in the KEY field

    3. Enter the authorization token

...

    1. in the VALUE field

  1. Continue to Import Subject Data or Export Data Sets

...