Documents

List organization documents

GET
/organizations/{organizationId}/documents

Lists documents across all projects in an organization with filtering

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

organizationId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Query Parameters

type?|array<>
status?string

Value in

  • "active"
  • "archived"
accessLevel?string

Value in

  • "public"
  • "restricted"
  • "internal"
policyType?string
Lengthlength <= 256
tags?string
Lengthlength <= 256
excludeTags?string
Lengthlength <= 256
offset?integer
Range0 <= value <= 9007199254740991
Default0
limit?integer
Range1 <= value <= 1000
Default100
sort?string

Value in

  • "dateCreated"
  • "name"
  • "type"
order?string

Value in

  • "asc"
  • "desc"
countOnly?boolean

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents"
{  "offset": 0,  "count": 0,  "total": 0,  "items": [    {      "id": "string",      "organizationId": "string",      "projectId": "string",      "name": "string",      "description": "string",      "type": "policy",      "accessLevel": "public",      "requiredAgreementId": "string",      "allowlistEmails": [        "string"      ],      "allowlistDomains": [        "string"      ],      "tags": [        "string"      ],      "frameworks": [        "string"      ],      "slug": "string",      "policyType": "string",      "policyTemplateVersion": -9007199254740991,      "formSubmissionId": "string",      "migratedFromPolicyId": "string",      "assets": [        {          "id": "string",          "format": "html",          "language": "string",          "body": "string",          "file": {            "bucket": "string",            "key": "string",            "size": -9007199254740991,            "fileName": "string",            "contentType": "string",            "etag": "string",            "sha256": "string"          },          "version": -9007199254740991,          "dateCreated": null,          "dateUpdated": null        }      ],      "question": "string",      "url": "string",      "quiz": {        "items": [          {            "id": "string",            "type": "text",            "label": "string",            "title": "string",            "description": "string",            "placeholder": "string",            "options": [              {                "value": "string",                "label": "string",                "disabled": true              }            ],            "defaultValue": "string",            "validationRules": {              "type": "string",              "required": true,              "min": -9007199254740991,              "max": -9007199254740991,              "pattern": "string"            },            "componentId": "string",            "entityKind": "control",            "checkedChildren": "string",            "uncheckedChildren": "string",            "sectionId": "string",            "visibleIf": {              "type": "field-equals",              "field": "string",              "value": "string"            },            "prefillFrom": "string",            "correctAnswers": [              "string"            ],            "order": -9007199254740991,            "children": {              "condition": "string",              "items": [                {                  "id": "string",                  "type": "text",                  "label": "string",                  "title": "string",                  "description": "string",                  "placeholder": "string",                  "options": [                    {                      "value": "string",                      "label": "string",                      "disabled": true                    }                  ],                  "defaultValue": "string",                  "validationRules": {                    "type": "string",                    "required": true,                    "min": -9007199254740991,                    "max": -9007199254740991,                    "pattern": "string"                  },                  "componentId": "string",                  "entityKind": "control",                  "checkedChildren": "string",                  "uncheckedChildren": "string",                  "sectionId": "string",                  "visibleIf": {                    "type": "field-equals",                    "field": "string",                    "value": "string"                  },                  "prefillFrom": "string",                  "correctAnswers": [                    "string"                  ],                  "order": -9007199254740991                }              ]            }          }        ],        "passPercent": -9007199254740991      },      "videoUrl": "string",      "version": -9007199254740991,      "publishedReleaseId": "string",      "hasUnpublishedChanges": true,      "templateUpdateAvailable": true,      "status": "active",      "dateCreated": null,      "dateUpdated": null    }  ]}