Skip to main content
GET
/
api
/
public
/
v1
/
compliance
/
runs
List compliance runs
curl --request GET \
  --url https://app.msportal.ai/api/public/v1/compliance/runs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "companyName": "<string>",
      "runDate": "2023-11-07T05:31:56Z",
      "isCompleted": true,
      "notes": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "totalChecks": 123,
      "passedChecks": 123,
      "failedChecks": 123,
      "pendingChecks": 123
    }
  ],
  "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:20

Items per page

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

Field to order by

Available options:
run_date,
created_at,
name
orderDirection
enum<string>
default:desc

Sort direction

Available options:
asc,
desc
companyId
string<uuid>

Filter by company ID

Response

List of compliance runs

data
object[]
required

Array of compliance runs

pagination
object
required