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 URL | https://assess-stage.truste.com/ | ||
|---|---|---|---|
| PROD URL | https://assess.truste.com/ | ||
| METHOD | POST | ||
| ENDPOINT | /api/v1/project-internal/create | ||
| HEADERS | User Token except for AAA-Respondent role | ||
| URL Parameters | Name | Value | Description |
| client_id | String | This 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_secret | String | ||
| grant_type | String | The Oauth2 grant_type method used. Value = ‘client_credentials’ | |
| Sample REQUEST WITH CURL | curl -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 CODE | Code: 200 | ||
| Sample ERROR Response | { “error”: “unauthorized”, “error_description”: “Bad credentials” } | ||
| Error Response CODES | Code: 400 Bad Request
Code: 401 Unauthorized | ||