Understanding the API Endpoint

In order to use the create assessment API, you will need to pass the access token along with the details needed for the new assessment.

STAGING URLhttps://assess-stage.truste.com/
PROD URLhttps://assess.truste.com/
METHODPOST
ENDPOINT/api/v1/project-internal/create
HEADERSUser Token except for AAA-Respondent role
URL ParametersNameValueDescription
client_idStringThis refers to the client application credentials. Can also be added as a Basic Authorization header, where client_id is username and client_secret is password.
client_secretString
grant_typeStringThe Oauth2 grant_type method used. Value = ‘client_credentials’
Sample REQUEST WITH CURLcurl -X POST -d ‘grant_type=client_credentials&client_id=<client_id>&client_secret=<client_secret> ‘https://api.trustarc.com/api/auth/oauth/token
Success Response CODECode: 200
Sample ERROR Response{
  “error”: “unauthorized”,
  “error_description”: “Bad credentials”
}
Error Response CODES

Code: 400 Bad Request

 

 

Code: 401 Unauthorized