Skip to main content
Liaison

Using Postman to Set Up the CAS API Slate Integration

Postman is a free platform for API development, allowing you to interact with HTTPS endpoints. Data is not stored in Postman. It serves as a communication tool between the CAS API and the Slate SFTP, telling the CAS API what to send to Slate.

If you use Postman to work with the CAS API, follow the steps below after downloading it.

Import Sample Postman Collection

  1. Download our sample Postman collection (updated 8/29/23).
  2. Open Postman. Click Workspaces and select My Workspace or create a new Workspace to get started.

    Accessing Workspaces from Postman
  3. From your Workspace, click Import. Then, select the sample collection.

    Importing a file into your Workspace
  4. Click Import to bring in the sample collection.

    Import button on Postman's Import Elements page

Create an Environment

Next, you'll need to set up an environment. To do so:

  1. Click Environments, then New.

    Click the New button to create a new Postman Environment
  2. Select Environment.

    Select the Environment option
  3. Hover over the name of the New Environment tab and click the pencil icon to rename it.

    Click the Edit pencil to rename the new environment
  4. Give the environment a clear label, including the CAS and environment (e.g., BusinessCAS Production). This is important as many variables are different between the production and prelaunch environments.

    Renamed environment to TestU BusinessCAS Prelaunch
  5. In the first column, add the following (case-sensitive) variables:
    • x-api-key
    • baseUrl
    • applicationFormID
    • organizationID
    • UserName
    • Password
    • subscriptionID
    • replayID
    • Token
    • refreshToken
    • applicationID

      Environment with variables added
  6. In the INITIAL VALUE column, enter the information sent in the CAS API Account Has Been Created email for the first six variables. Note that some items (e.g., subscriptionID) must be filled in later in the process and can be updated at any time.
  7. For test application data, set the prelaunch root URL. For live application data, set the production root URL.
  8. Once all the information is entered, click Save

Call Authorization Token

Next, you'll need to generate an Authorization Token. To do this:

  1. Select the environment in the upper right of Postman.
  2. Go to the Collections section and find the POST Call Auth Token endpoint.
  3. Click Send to call the endpoint.

    call-auth-token-Postman-with-arrows.png

Once you generate the Authorization Token, it remains valid for an hour. After an hour, you will receive an error message indicating that you must re-run the POST Call Auth Token endpoint to generate a new token.

Generate Account Information

  1. You can retrieve the application form id and organization id by running the endpoint GET account info.
  2. Click Send to call the endpoint. The response will include information for all CASs and cycles your account can access for that environment (prelaunch/production).

Send account info

Create a Subscription

In the sample collection, there are four sample subscriptions:

  • In progress data subscription by organization
  • Full data and document subscription by organization
  • Coursework data by organization
  • Updated data subscription by organization

Refer to our list of common business events for additional events. Each business event can be its own subscription, or they can all be in one subscription. Your business processes will determine which business events you need to subscribe to.

To create a subscription:

  1. In each of the subscriptions, click the Body tab and update the following information:
    • notifcationEmailAddress: notifications about the subscription will be sent here; it is recommended to use a department account.
    • sftpUser: this is the username of the Service Account in Slate.*
    • sftpPassword: this is the password for the Service Account in Slate.*
    • stfpPathTemplate: this is the name of the file that will be sent to Slate. It will also be used to set the Import/Path Mask on the Source Format.

*This is a different username and password than your login to access Slate and can be found in the SFTP Access section of the Roles tab of the user account.

Adding subscription information to body in Postman

  1. Once you’ve updated the subscription, click Save. Clicking Save does not send the data, it simply saves the information to be used whenever you are ready to send the data.

More information on setting up the Slate Source Format can be found in the Slate Knowledge Base.

Get Subscription Information

  1. To retrieve a list of all subscriptions for the environment selected, use the endpoint GET subscriptions list by organization.
  2. To retrieve the details of a specific subscription, use the endpoint GET subscription details by organization. You must add the subscription ID, retrieved with the subscriptions list endpoint, to the variable in your environment.

Delete a Subscription

To delete a subscription, use the endpoint DEL subscription deletion by organization. You must add the subscription ID, retrieved with the subscriptions list endpoint, to the variable in your environment.

Replays

  1. To replay a subscription, use the endpoint POST create replay. This resends data for any records that meet the subscription criteria for the timeframe you specify. The timeframe for each replay is limited to a 30-day window. You will need to run multiple replays to retrieve data for more than a 30-day period of time. Use the endpoint GET subscriptions list by organization to find the subscriptionID.
  2. From the Body tab, update the “fromDate” date and the “toDate” date in yyyy-MM-dd format (for example, 2022-10-01). If you would like to use a specific time alongside the date, use a 24-hour clock in the yyyy-MM-dd HH:mm:ss format (e.g., 2023-10-01 12:00:00). If only the date is supplied, the CAS API will assume the time is 00:00:00.
  3. Add the subscription ID.

    added-dates-and-subscriptionid.png
  4. Click Send to call the endpoint.
  5. To retrieve the details of the replay (see how many files were sent and the status of the replay), use the endpoint GET replay details and include the replay ID.
  6. To restrict a replay to only one business event within a subscription, use the endpoint POST create replay EVENT TRIGGER. The EventTriggerIDNumber variable identifies the specific business event. To find the EventTriggerIDNumber, use the GET subscription details by organization endpoint.

    GET subscription details by organization endpoint

Generate Document Subtypes Information

  1. You can retrieve the available document subtypes by running the endpoint GET document subtypes.
  2. Click the down arrow next to Send and select Send and Download to call the endpoint. The response will generate a CSV and include information for the specific CAS, cycle, and environment identified by the variables.
  3. The Document Sub Type value in the CSV is the value that can be mapped in the All CAS by Liaison – Documents Source Format.

    Working with docSubType in Postman

Generate Data Dictionary

  1. You can retrieve the available data dictionary by running the endpoint GET data dictionary.
  2. Click the down arrow next to Send and select Send and Download to call the endpoint. The response will generate a data file and includes information for the specific CAS, cycle, and environment identified by the variables. 

Sample GET call to retrieve data dictionary

  • Was this article helpful?