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

# List GRC entities

> List all GRC entities



## OpenAPI

````yaml get /grc/entities
openapi: 3.1.0
info:
  title: Leen Security API
  version: 0.0.1
servers:
  - description: Production API (US)
    url: https://api.leen.dev/v1
  - description: Production API (EU)
    url: https://api.eu-c1.leen.dev/v1
  - description: Production API (APAC)
    url: https://api.ap-se2.leen.dev/v1
security: []
paths:
  /grc/entities:
    get:
      tags:
        - grc
        - entities
      summary: List GRC entities
      description: List all GRC entities
      operationId: list_grc_entities
      parameters:
        - description: >-
            Sort by a field, written as `field`, `field:asc` or `field:desc`.
            Which fields can be sorted on differs per endpoint.
          in: query
          name: sort
          required: false
          schema:
            anyOf:
              - pattern: >-
                  ^name$|^name\:asc$|^name\:desc$|^type$|^type\:asc$|^type\:desc$|^updated_at$|^updated_at\:asc$|^updated_at\:desc$|^created_at$|^created_at\:asc$|^created_at\:desc$
                type: string
              - type: 'null'
            description: >-
              Sort by a field, written as `field`, `field:asc` or `field:desc`.
              Which fields can be sorted on differs per endpoint.
            title: Sort
        - description: >-
            Only records whose `updated_at` is at or after this time. Leen bumps
            `updated_at` whenever any field on a record changes, so this is the
            filter for an incremental sync: it returns records that are new and
            records that changed, and nothing that has stood still. Example:
            `2021-01-01T00:00:00+00:00`.
          in: query
          name: updatedSince
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: >-
              Only records whose `updated_at` is at or after this time. Leen
              bumps `updated_at` whenever any field on a record changes, so this
              is the filter for an incremental sync: it returns records that are
              new and records that changed, and nothing that has stood still.
              Example: `2021-01-01T00:00:00+00:00`.
            examples:
              - '2021-01-01T00:00:00+00:00'
            title: Updatedsince
        - description: >-
            Opaque position of the next page, taken from the previous response.
            Ignore its contents; it encodes where the walk had reached.
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Opaque position of the next page, taken from the previous
              response. Ignore its contents; it encodes where the walk had
              reached.
            title: Cursor
        - description: >-
            How many records to return per page. The walk is the same either
            way; a larger page means fewer round trips and more memory per
            response.
          in: query
          name: limit
          required: false
          schema:
            default: 100
            description: >-
              How many records to return per page. The walk is the same either
              way; a larger page means fewer round trips and more memory per
              response.
            maximum: 500
            minimum: 1
            title: Limit
            type: integer
        - description: Filter entities by type (comma-separated values supported)
          in: query
          name: type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter entities by type (comma-separated values supported)
            title: Type
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KeySetPaginatedResponse_GRCEntityResponse_
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorException'
          description: Unprocessable Content
      security:
        - API-Key: []
          Connection-ID: []
components:
  schemas:
    KeySetPaginatedResponse_GRCEntityResponse_:
      properties:
        items:
          description: The records on this page.
          items:
            $ref: '#/components/schemas/GRCEntityResponse'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Opaque position of the next page. Pass it back as `cursor` to
            continue; null when this is the last page.
          title: Next Cursor
        previous_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Opaque position of the previous page, for walking backwards. Null on
            the first page.
          title: Previous Cursor
      required:
        - items
      title: KeySetPaginatedResponse[GRCEntityResponse]
      type: object
    ErrorException:
      properties:
        detail:
          description: Error message
          title: Detail
          type: string
      required:
        - detail
      title: ErrorException
      type: object
    GRCEntityResponse:
      description: Response model for returning GRC entity details via an API endpoint.
      properties:
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Timestamp when the entity was created
          title: Created At
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Detailed description of the entity
          title: Description
        id:
          description: Leen's UUID for the GRC entity
          format: uuid
          title: Id
          type: string
        name:
          description: Entity name
          title: Name
          type: string
        type:
          description: Type or classification of the GRC entity
          title: Type
          type: string
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Timestamp when the entity was last updated
          title: Updated At
        vendor_attributes:
          $ref: '#/components/schemas/ScopedGRCEntityVendorAttributes'
          description: Vendor-specific attributes and identifiers
      required:
        - id
        - name
        - type
        - vendor_attributes
      title: GRC Entity
      type: object
    ScopedGRCEntityVendorAttributes:
      properties:
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
        id:
          title: Id
          type: string
        vendor:
          title: Vendor
          type: string
      required:
        - id
        - vendor
      title: ScopedGRCEntityVendorAttributes
      type: object
  securitySchemes:
    API-Key:
      in: header
      name: X-API-KEY
      type: apiKey
    Connection-ID:
      in: header
      name: X-CONNECTION-ID
      type: apiKey

````

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