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

# Get GRC Control

> Get a specific GRC control by its ID.



## OpenAPI

````yaml get /grc/controls/{control_id}
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/controls/{control_id}:
    get:
      tags:
        - grc
        - controls
      summary: Get GRC Control
      description: Get a specific GRC control by its ID.
      operationId: get_grc_control
      parameters:
        - in: path
          name: control_id
          required: true
          schema:
            format: uuid
            title: Control Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GRCControlResponse'
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorException'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorException'
          description: Unprocessable Content
      security:
        - API-Key: []
          Connection-ID: []
components:
  schemas:
    GRCControlResponse:
      description: Response model for returning GRC control details via an API endpoint.
      properties:
        category:
          anyOf:
            - type: string
            - type: 'null'
          description: Category grouping for the control
          title: Category
        control_objective:
          description: The objective this control aims to achieve
          title: Control Objective
          type: string
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Timestamp when the control was created
          title: Created At
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Detailed description of the control
          title: Description
        entity:
          anyOf:
            - $ref: '#/components/schemas/GRCEntityResponse'
            - type: 'null'
          description: Associated GRC entity details
        id:
          description: Leen's UUID for the GRC control
          format: uuid
          title: Id
          type: string
        name:
          description: Control name
          title: Name
          type: string
        status:
          $ref: '#/components/schemas/GRCControlStatus'
          description: Current status of the control
        template_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Template identifier for the control
          title: Template Id
        type:
          anyOf:
            - type: string
            - type: 'null'
          description: Type or classification of the control
          title: Type
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Timestamp when the control was last updated
          title: Updated At
        vendor_attributes:
          $ref: '#/components/schemas/GRCControlVendorAttributes'
          description: Vendor-specific attributes and identifiers
      required:
        - id
        - name
        - control_objective
        - status
        - vendor_attributes
      title: Control
      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
    GRCControlStatus:
      enum:
        - NEW
        - PENDING
        - REVIEW
        - NOT APPLICABLE
        - RETIRED
        - IMPLEMENTED
      title: GRCControlStatus
      type: string
    GRCControlVendorAttributes:
      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: GRCControlVendorAttributes
      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.