Skip to main content
GET
/
api
/
public
/
v1
/
compliance
/
templates
List compliance templates
curl --request GET \
  --url https://app.msportal.ai/api/public/v1/compliance/templates \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "description": "<string>",
      "howToCheck": "<string>",
      "whyImportant": "<string>",
      "criticality": 5,
      "priority": "High",
      "frequency": "<string>",
      "remediation": "<string>",
      "remediationImpact": "<string>",
      "references": "<string>",
      "checkScope": "company",
      "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "groupName": "<string>",
      "approvalStatus": "draft",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "page": 2,
    "limit": 50,
    "totalCount": 123,
    "totalPages": 123,
    "hasNextPage": true,
    "hasPrevPage": true
  }
}

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.

Query Parameters

page
number
default:1

Page number

Required range: x >= 1
limit
number
default:50

Items per page

Required range: 1 <= x <= 100
orderBy
enum<string>
default:title

Field to order by

Available options:
title,
created_at,
updated_at,
priority,
criticality
orderDirection
enum<string>
default:asc

Sort direction

Available options:
asc,
desc
groupId
string<uuid>

Filter by group ID

approvalStatus
enum<string>

Filter by approval status

Available options:
draft,
pending_review,
approved,
rejected
checkScope
enum<string>

Filter by check scope

Available options:
company,
device,
location

Search by title

Maximum string length: 100

Response

List of compliance templates

data
object[]
required

Array of compliance templates

pagination
object
required