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

# List policies

> Returns a paginated list of access policies in your organization.



## OpenAPI

````yaml GET /api/v1/policies
openapi: 3.0.0
info:
  description: REST API for AccessOwl third-party integrations
  title: AccessOwl API
  version: 1.0.0
servers:
  - url: https://api.accessowl.com
    variables: {}
security:
  - bearer: []
tags: []
paths:
  /api/v1/policies:
    get:
      tags:
        - policies
      summary: List policies
      description: Returns a paginated list of access policies in your organization.
      operationId: AccessOwlApi.PolicyController.index
      parameters:
        - description: 'Maximum results to return (default: 20, max: 100)'
          in: query
          name: limit
          required: false
          schema:
            type: integer
        - description: >-
            Opaque cursor returned in the previous response's
            `meta.next_cursor`. Omit for the first page.
          in: query
          name: cursor
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyList'
          description: Policy list
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
      callbacks: {}
components:
  schemas:
    PolicyList:
      description: Paginated list of policies
      properties:
        data:
          description: List of policies
          items:
            $ref: '#/components/schemas/Policy'
          type: array
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      required:
        - data
        - meta
      title: PolicyList
      type: object
    Error:
      description: Standard error response
      example:
        error: not_found
        message: Resource not found
      properties:
        error:
          description: Error code
          example: not_found
          type: string
        errors:
          additionalProperties:
            items:
              type: string
            type: array
          description: Field-specific validation errors (only for 422 responses)
          example:
            email:
              - has invalid format
            first_name:
              - can't be blank
          type: object
        message:
          description: Human-readable error message
          example: Resource not found
          type: string
      required:
        - error
        - message
      title: Error
      type: object
    Policy:
      description: >-
        A policy that gates access requests for a list of applications. When
        elevated, the policy applies only to elevated access requests; otherwise
        it applies to all access requests. Assign applications via PUT
        /policies/{id}/applications.
      example:
        application_ids:
          - 8599b757-f42a-22f5-bbdf-711419071781
        default_policy: false
        elevated: false
        id: 7488a646-e31f-11e4-aace-600308960670
        inserted_at: '2023-01-01T00:00:00Z'
        lock_version: 1
        title: Engineering manager approval
        updated_at: '2023-01-01T00:00:00Z'
      properties:
        application_ids:
          description: IDs of the applications this policy applies to
          items:
            format: uuid
            type: string
          type: array
        default_policy:
          description: Whether this is the default policy
          type: boolean
        elevated:
          description: When true, the policy applies only to elevated access requests
          type: boolean
        id:
          description: Policy ID
          format: uuid
          type: string
        inserted_at:
          format: date-time
          type: string
        lock_version:
          description: Optimistic lock version
          type: integer
        title:
          description: Policy title
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - title
        - default_policy
        - elevated
      title: Policy
      type: object
    PaginationMeta:
      description: Pagination metadata
      example:
        page: 1
        page_size: 20
        total_count: 100
        total_pages: 5
      properties:
        page:
          description: Current page number
          type: integer
        page_size:
          description: Items per page
          type: integer
        total_count:
          description: Total number of items
          type: integer
        total_pages:
          description: Total number of pages
          type: integer
      required:
        - page
        - page_size
        - total_count
        - total_pages
      title: PaginationMeta
      type: object
  securitySchemes:
    bearer:
      description: >-
        Bearer token authentication. Pass your AccessOwl API token in the
        `Authorization` header as `Bearer <token>`.
      scheme: bearer
      type: http

````