> ## Documentation Index
> Fetch the complete documentation index at: https://developers.scoutworks.app/llms.txt
> Use this file to discover all available pages before exploring further.

# List access policies

> The locked built-ins your group can give and your group’s own policies, each with how many people hold it. A policy’s `id` is a built-in’s key (`role.leader`, `addon.treasurer`) or a custom policy’s UUID. One page holds them all: `nextCursor` is always null.



## OpenAPI

````yaml /api-reference/openapi/access-policies.json get /access-policies
openapi: 3.1.0
info:
  title: Scoutworks public API
  version: 1.32.0
  description: >-
    Read your Scout group’s data from your own tools: spreadsheets, scripts,
    Zapier or n8n, add members, waiting-list applications and draft events, keep
    its task boards up to date, and keep its books in step with your accounting
    tools. Every request is scoped to the group that owns the key.


    **Authentication.** Send a group API key as a Bearer token. Keys are created
    by a group admin and shown once.


    **Scopes.** Each operation names the scope it needs. Area scopes
    (`members:read`, `events:read`, `badges:read`, `waiting-list:read`,
    `tasks:read`, `accounting:read`, `expenses:read`, `suppliers:read`,
    `payments:read`, `gift-aid:read`, `adults:read`, `users:read`,
    `access:read`, `compliance:read`, `communications:read`, `hire:read`,
    `fundraising:read`, `moving-on:read`, `files:read`) open an area; a
    `.contacts`, `.people` or `.compliance` scope adds detail to that area’s
    responses. The `:write` scopes change data, as the admin who created the
    key: `members:write`, `waiting-list:write` and `events:write` add and update
    members, waiting-list applications and draft events, `tasks:write` adds and
    updates tasks, `accounting:write` changes the books and attaches receipts,
    and `files:write` uploads to the Knowledge Base, and `users:write` invites,
    changes, suspends and removes users, never a group admin, and `access:write`
    manages access policies and overrides, never an admin’s access. Uploads are
    virus scanned and count towards the group’s storage. A write never emails or
    notifies a family unless it sends `notify: true`. No scope moves money:
    nothing takes, changes, cancels or refunds a payment. Fields a key may not
    see are left out, not sent as null. Health, bank details and free-text notes
    are never available.


    **Pagination.** Lists return `{ data, nextCursor }`. Pass `nextCursor` back
    as `?cursor=`, with the same filters, until it is null. `limit` is 1 to 200.


    **Writing.** Send an `Idempotency-Key` with every `POST`, so a retry answers
    with the first record instead of making a second. Every record a write or a
    single-record `GET` returns carries an `ETag`: send it as `If-Match` on a
    `PATCH`, `PUT` or `DELETE` and a change made since answers 412
    `stale_write`. See https://developers.scoutworks.app/guides/writing-data.


    **Errors.** Every error is `{ error: { code, message } }`. Branch on `code`;
    `message` is for people and may change.


    **Compatibility.** We aim to change v1 only by addition: new endpoints, new
    optional parameters, new response fields and new enum values. Ignore fields
    you do not know and treat an unknown enum value as “other”. We will try to
    warn you before a breaking change, but one can still happen without notice,
    so check responses and fail loudly on an error. Changes are listed in the
    changelog at https://developers.scoutworks.app/changelog.


    **Rate limits.** 120 requests a minute per key. `RateLimit-*` headers report
    what is left. Writes and uploads have smaller limits of their own: see
    https://developers.scoutworks.app/guides/rate-limits.
servers:
  - url: https://api.scoutworks.app/api/v1
    description: Live
  - url: https://api-demo.scoutworks.app/api/v1
    description: Demo (sample data, reset weekly)
security:
  - bearerAuth: []
tags:
  - name: Access policies
    description: >-
      Named sets of what people can do, built-in and your own, and the access
      history. A key never changes an admin’s access, and never gives access to
      manage people or settings.
paths:
  /access-policies:
    get:
      tags:
        - Access policies
      summary: List access policies
      description: >-
        The locked built-ins your group can give and your group’s own policies,
        each with how many people hold it. A policy’s `id` is a built-in’s key
        (`role.leader`, `addon.treasurer`) or a custom policy’s UUID. One page
        holds them all: `nextCursor` is always null.
      operationId: listAccessPolicies
      parameters:
        - name: archived
          in: query
          required: false
          description: With `true`, archived policies are listed too.
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1AccessPolicyPage'
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
        '400':
          description: >-
            A query parameter, cursor or request body is not acceptable
            (`invalid_request`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '401':
          description: >-
            No API key, or one that is unknown, revoked or expired
            (`invalid_api_key`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '403':
          description: The key lacks the scope this operation needs (`insufficient_scope`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '429':
          description: Too many requests; wait `retryAfter` seconds (`rate_limited`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '500':
          description: Our fault; quote `errorRef` to support (`internal_error`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
      security:
        - bearerAuth:
            - access:read
components:
  schemas:
    V1AccessPolicyPage:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/V1AccessPolicy'
        nextCursor:
          description: Pass as `?cursor=` for the next page. Null on the last. Opaque.
          type:
            - string
            - 'null'
      required:
        - data
        - nextCursor
    V1Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_api_key
                - insufficient_scope
                - invalid_request
                - subscription_required
                - not_found
                - conflict
                - period_closed
                - source_locked
                - over_refund
                - possible_duplicate
                - invalid_transition
                - admin_protected
                - stale_write
                - insufficient_stock
                - not_available
                - not_downloadable
                - file_too_large
                - storage_full
                - unsupported_file_type
                - file_infected
                - scan_unavailable
                - service_unavailable
                - rate_limited
                - internal_error
            message:
              type: string
          required:
            - code
            - message
        errorRef:
          description: 'On a 500: a reference to quote to Scoutworks support.'
          type: string
        retryAfter:
          description: 'On a 429: seconds to wait before trying again.'
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        matchingIds:
          description: >-
            On a 409 `possible_duplicate`: the ids of the records this one looks
            like, which `GET /members/{memberId}` or `GET
            /waiting-list/{entryId}` reads.
          type: array
          items:
            type: string
            format: uuid
            pattern: >-
              ^([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)$
      required:
        - error
    V1AccessPolicy:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 60
          description: >-
            A built-in’s key (`role.leader`, `addon.treasurer`) or a custom
            policy’s UUID, from `GET /access-policies`.
        kind:
          type: string
          enum:
            - builtin
            - custom
          description: >-
            A built-in is locked: copy it to change it. A custom policy is your
            group’s own.
        builtinKind:
          anyOf:
            - type: string
              enum:
                - person
                - addon
            - type: 'null'
          description: >-
            For a built-in: a person type’s own policy, or an add-on given on
            top of one. Null for a custom policy.
        name:
          type: string
        description:
          type: string
        basedOn:
          description: The built-in a custom policy started from, or null.
          type:
            - string
            - 'null'
        builtinUpdated:
          type: boolean
          description: The built-in this policy copies has changed since the copy was made.
        grants:
          type: array
          items:
            $ref: '#/components/schemas/V1AccessGrant'
          description: >-
            One row per area: `area`, `level` (`view`, `edit`, `manage` or
            `none`), `scope` and an optional `note` (a limit).
        allowedPersonTypes:
          type: array
          items:
            type: string
          description: The person types it may be given to.
        version:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Goes up by one with each change.
        archivedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        updatedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        holderCount:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: How many people hold it now, parents counted.
        holders:
          description: >-
            Only on `GET /access-policies/{policyId}`: who holds it, parents
            left out.
          type: array
          items:
            $ref: '#/components/schemas/V1AccessPolicyHolder'
      required:
        - id
        - kind
        - builtinKind
        - name
        - description
        - basedOn
        - builtinUpdated
        - grants
        - allowedPersonTypes
        - version
        - archivedAt
        - updatedAt
        - holderCount
    V1AccessGrant:
      type: object
      properties:
        area:
          type: string
          enum:
            - members
            - attendance
            - events
            - badges
            - comms
            - finance
            - equipment
            - insights
            - risk
            - settings
            - calendar
            - marketplace
            - family
            - volunteering
            - claims
            - hire
            - team
            - files
            - tasks
            - award
            - governance
        level:
          type: string
          enum:
            - view
            - edit
            - manage
            - none
          description: '`none` takes the area away; any other level gives it.'
        scope:
          description: >-
            Whose records: `group`, `sections`, `assigned` or `own`. Required
            unless `level` is `none`.
          type: string
          enum:
            - group
            - sections
            - assigned
            - own
        note:
          description: A limit, such as `drafts` (drafts only).
          type: string
          enum:
            - records
            - register
            - drafts
            - stores
            - requests
            - assessments
            - portal
            - directory
        onlyFor:
          description: The person types the row applies to; every type when absent.
          type: array
          items:
            type: string
            enum:
              - group_admin
              - leader
              - young_leader
              - trustee
              - parent
              - youth
              - network
              - viewer
      required:
        - area
        - level
    V1AccessPolicyHolder:
      type: object
      properties:
        userId:
          type: string
          format: uuid
          pattern: >-
            ^([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)$
          description: Their `id` in `GET /users`.
        personType:
          type: string
          description: 'The role the policy sits on: `leader`, `trustee` …'
      required:
        - userId
        - personType
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A group API key, sent as `Authorization: Bearer sw_live_…`. Keys from
        staging and the demo start `sw_test_` instead. A group admin creates
        keys in Settings → Integrations → API keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.