Skip to main content
Developer docs menu

Reference · Policies

List policies

get/api/policies

Returns your organisation's policies, newest first, up to 200. There is no paging on this endpoint: use the status and category filters to narrow the list.

Parameters

  • statusquery · string, one of DRAFT, PUBLISHED, ARCHIVEDoptional

    Only policies in this state. Asking for ARCHIVED also includes archived policies.

  • categoryquery · stringoptional

    Only policies in this category, by category code (for example DATA_PROTECTION).

Example request

curl -s "https://www.quickpolicy.co.uk/api/policies?status=PUBLISHED" \
  -H "Authorization: Bearer $QP_API_KEY"

Response

200 OK with a JSON body. Responses can carry more fields than are listed here; ignore any you do not recognise.

  • policiesarray of object

    Newest first, at most 200. No policy text; fetch one policy for that.

    • idstring
    • titlestring
    • summarystring, or null
    • categorystring

      The policy category code, for example DATA_PROTECTION.

    • statusstring, one of DRAFT, PUBLISHED, ARCHIVED
    • versioninteger

      Goes up by one on every saved change.

    • reviewFrequencyDaysinteger
    • lastReviewedAtstring, or null

      ISO 8601 date and time, UTC.

    • nextReviewAtstring, or null

      ISO 8601 date and time, UTC.

    • createdAtstring

      ISO 8601 date and time, UTC.

    • updatedAtstring

      ISO 8601 date and time, UTC.

    • authorany

      Who wrote it, by name only.

    • acknowledgementCountinteger

      Acknowledgements of the current version.

    • draftPublishStatestring, or null

      For drafts, the status of the latest publish request (for example PENDING); otherwise null.

  • visibilityobject
    • canReadDraftPoliciesboolean
    • canViewArchivedPoliciesboolean
    • defaultStatusesarray of string
    • allowedStatusesarray of string
Example response
{
  "policies": [
    {
      "id": "cm3pol0001",
      "title": "Data Protection Policy",
      "summary": null,
      "category": "DATA_PROTECTION",
      "status": "PUBLISHED",
      "version": 3,
      "reviewFrequencyDays": 365,
      "lastReviewedAt": "2026-10-12T15:20:00.000Z",
      "nextReviewAt": "2027-10-12T15:20:00.000Z",
      "createdAt": "2026-09-01T10:00:00.000Z",
      "updatedAt": "2026-10-12T15:20:00.000Z",
      "author": {
        "name": "Sam Patel"
      },
      "acknowledgementCount": 11,
      "draftPublishState": null
    }
  ],
  "visibility": {
    "canReadDraftPolicies": false,
    "canViewArchivedPolicies": false,
    "defaultStatuses": [
      "PUBLISHED"
    ],
    "allowedStatuses": [
      "PUBLISHED"
    ]
  }
}

Errors

Every error has a JSON body with an error message. About errors

  • 401 The key is missing, wrong, deleted, switched off or past its expiry date.

    {"error":{"code":"UNAUTHORIZED","message":"The API key is missing, wrong, deleted or past its expiry date."}}
  • 403 Your organisation's plan no longer includes API access. Checked on every request.

    {"error":{"code":"API_ACCESS_NOT_IN_PLAN","message":"Your organisation's plan no longer includes API access, so its API keys have stopped working."}}
  • 429 The key has made more than 120 requests in a minute. Wait for the seconds in Retry-After.

    {"error":{"code":"RATE_LIMITED","message":"This key has made more than 120 requests in a minute. Wait 42 seconds and try again."}}
  • 403 The key does not have read:policies or admin.

    {"error":{"code":"INSUFFICIENT_SCOPE","message":"This key needs the read:policies scope (or admin)."}}
  • 400 The status or category is not one we recognise.

    {"error":{"code":"INVALID_FILTER","message":"Invalid status filter. Allowed values: DRAFT, PUBLISHED, ARCHIVED"}}
  • 500 Something went wrong on our side.

    {"error":{"code":"INTERNAL_ERROR","message":"Failed to fetch policies"}}