Skip to main content
Developer docs menu

Reference · Policies

Get a policy

get/api/policies/{id}

Returns one policy, including its full text and the name of its author.

Parameters

  • idin the path · stringrequired

    The policy id.

Example request

curl -s "https://www.quickpolicy.co.uk/api/policies/POLICY_ID" \
  -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.

  • successalways true
  • policyobject

    A policy. Exactly these fields, nothing more.

    • 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.

    • contentstring

      The policy text, as stored (Markdown or HTML).

Example response
{
  "success": true,
  "policy": {
    "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"
    },
    "content": "## Purpose\n\nThis policy sets out how we look after personal data…"
  }
}

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)."}}
  • 404 There is no such policy in your organisation, or the key may not see it (a draft or archived policy, without the admin scope).

    {"error":{"code":"NOT_FOUND","message":"Not found"}}
  • 500 Something went wrong on our side.

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