Skip to main content
GET
/
grc
/
assessments
List GRC Assessments
curl --request GET \
  --url https://api.leen.dev/v1/grc/assessments \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-CONNECTION-ID: <api-key>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "state": "NEW",
      "respondent": "<string>",
      "control_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "template_id": "<string>",
      "template_name": "<string>",
      "vendor_attributes": {
        "id": "<string>",
        "vendor": "<string>",
        "data": {}
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "questions": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "question": "<string>",
          "description": "<string>",
          "question_type": "<string>",
          "question_type_metadata": {
            "type": "RADIO",
            "options": [
              {
                "label": "<any>",
                "value": "<any>"
              }
            ]
          },
          "mandatory": false,
          "parent_vendor_id": "<string>",
          "vendor_attributes": {
            "id": "<string>",
            "vendor": "<string>",
            "data": {}
          },
          "response": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "updated_at": "2023-11-07T05:31:56Z",
          "sub_questions": [
            {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "question": "<string>",
              "description": "<string>",
              "question_type": "<string>",
              "question_type_metadata": {},
              "mandatory": false,
              "parent_vendor_id": "<string>",
              "vendor_attributes": {
                "id": "<any>",
                "vendor": "<any>",
                "data": "<any>"
              },
              "response": "<string>",
              "created_at": "2023-11-07T05:31:56Z",
              "updated_at": "2023-11-07T05:31:56Z",
              "sub_questions": [
                {}
              ],
              "condition": {
                "operator": "EQ",
                "value": "<string>"
              }
            }
          ]
        }
      ]
    }
  ],
  "next_cursor": "<string>",
  "previous_cursor": "<string>"
}

Authorizations

X-CONNECTION-ID
string
header
required
X-API-KEY
string
header
required

Query Parameters

sort
string | null

Sort by field

updatedSince
string<date-time> | null

Datetime filter, only return items updated since this datetime. Example format: 2021-01-01T00:00:00+00:00

cursor
string | null

Skip token to continue from the last item in the previous page

limit
integer
default:100

Limit size (page size)

Required range: x >= 0
state
string | null

Filter by state (comma-separated list)

respondent
string | null

Filter by respondent (comma-separated list)

use_pool
boolean
default:true

Response

Successful Response

items
Assessment · object[]
required

List of items returned in the response

next_cursor
string | null

Skip token to continue from the last item in the previous page

previous_cursor
string | null

Skip token to continue from the first item in the previous page

I