Logout in: 0 min and 0 sec

Common to all API Calls

The URL host for all calls is - https://rest.triand.com

All API calls require a valid JWT token in the Authorization header which can be obtained in the below section titled "Security Credentials".

An Application Firewall validates all REST calls for exact parameter names and data types.

Calling the REST Endpoints

All REST calls to /Access are HTTP POST calls with any parameters being passed as Content-Type: application/json.

Using CURL this looks like:

curl -X POST https://rest.triand.com/Access/studentApplication  \
    -H "Authorization: Bearer eyJ....really long string...ItCJA" \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -d '{ "stateid": "123456789" }'
  

Using Javascript fetch this looks like:

let parameters = { stateid: '123456789' }
let opts = { 
  method: 'POST',
  headers: {
    'Authorization' = 'Bearer eyJ....really long string...ItCJA'
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  },
  body:  JSON.stringify(parameters),
  withCredentials: false,
  credentials: 'include',
  }
let url = 'https://rest.triand.com/Access/studentApplication';
let response = await fetch(url, opts);

REST Responses

All REST calls return at least the following two fields:

FieldBusiness Rule / RegexDescription
actionOkbooleanDid the action complete successfully
error[string]Array of strings, first string is error return

There are some error responses that are common to all REST calls:

ErrorDescription
wall-jwt-no-decodeThe Security JWt token has expired. You will need to log in again.
wall-no-api-specThe REST Endpoint is not valid. Check the endpoint spelling.