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

# Get mapped and all controls for a policy | Complianz API

> Get mapped and all controls for a policy in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting.



## OpenAPI

````yaml /openapi.json get /v1/policies/{id}/controls
openapi: 3.0.0
info:
  title: Complianz API
  description: >-
    Compliance automation API for SOC 2, ISO 27001, HIPAA, GDPR, evidence
    collection, policy workflows, Trust Access, security questionnaires,
    integrations, cloud checks, and device compliance.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.trycomp.ai
    description: Production API Server
security: []
tags:
  - name: Assets
  - name: Attachments
    description: >-
      Generate signed download links for files attached to compliance tasks,
      comments, evidence records, and workflow reviews.
  - name: Audit Logs
    description: >-
      Retrieve audit trails for compliance activity, evidence changes, access
      decisions, and customer-facing security review workflows.
  - name: CloudSecurity
    description: >-
      Run AWS, Azure, and GCP cloud security scans, detect enabled services,
      review findings, and connect cloud posture results to compliance work.
    x-group: Cloud Security
  - name: Comments
    description: >-
      Create and manage collaboration comments on compliance entities such as
      tasks, policies, risks, vendors, and findings.
  - name: Context
    description: >-
      Manage organization context that helps Complianz tailor policies,
      assessments, and compliance automation to the business.
  - name: Controls
    description: >-
      Manage controls, map them to policies, tasks, framework requirements, and
      evidence document types, and track implementation progress.
  - name: Device Agent
    description: >-
      Register employee devices, submit device compliance check-ins, download
      agent builds, and manage endpoint security status.
  - name: Devices
    description: >-
      Read and manage employee device inventory and Fleet compliance data used
      for endpoint security controls.
  - name: Evidence Export
    description: >-
      Export task evidence, automation evidence, and reviewer-ready evidence
      bundles as PDF or ZIP files.
  - name: Evidence Export (Auditor)
    description: Export all organization evidence for an auditor review package.
  - name: Evidence Forms
    description: >-
      Collect, review, upload, and export structured evidence submissions for
      compliance tasks and document requirements.
  - name: Findings
    description: >-
      Create, review, update, and track audit findings, remediation activity,
      and finding history for an organization.
  - name: Frameworks
    description: >-
      Manage SOC 2, ISO 27001, HIPAA, GDPR, and custom framework instances,
      requirements, scores, and sync history.
  - name: HIPAA Security Risk Assessment
  - name: ISMS
    description: >-
      Build and maintain the ISO 27001 ISMS document set — scope, leadership
      commitment, context, interested parties, objectives, roles, monitoring,
      internal audit, and management review.
  - name: Integrations
    description: >-
      Connect vendor systems, configure OAuth apps, run compliance checks, sync
      employees, manage variables, and collect automated evidence.
  - name: Knowledge Base
    description: >-
      Upload source documents, process them for retrieval, and manage reusable
      manual answers that power questionnaires and AI policy workflows.
  - name: Letter of Engagement
  - name: Offboarding Checklist
  - name: Org Chart
    description: >-
      Manage organization chart metadata and evidence used for governance,
      accountability, and audit readiness.
  - name: Organization
    description: >-
      Manage organization profile data, API keys, logos, ownership, role
      notifications, and access approval settings.
  - name: People
    description: >-
      Invite and manage workforce members, training status, device compliance,
      email preferences, and employee evidence records.
  - name: Policies
    description: >-
      Create, version, publish, export, map, and improve compliance policies
      with AI-assisted drafting and approval workflows.
  - name: Questionnaire
    description: >-
      Parse security questionnaires, generate answers from approved evidence,
      save reviewer edits, stream progress, and export completed files.
  - name: Review Issues
  - name: Risks
    description: >-
      Create, update, and report on organizational risks with ownership,
      departments, and compliance remediation status.
  - name: Roles
    description: >-
      Create custom roles and resolve permission sets for organization-level
      access control.
  - name: SOA
    description: >-
      Create, auto-fill, review, approve, and export ISO 27001 Statement of
      Applicability documents.
    x-group: Statement of Applicability
  - name: Search
  - name: Security Penetration Tests
    description: >-
      Create AI-powered penetration test runs, track progress, inspect findings
      and events, and download markdown or PDF reports.
  - name: Task Automations
    description: >-
      Create, version, run, and inspect automated evidence collection workflows
      attached to compliance tasks.
  - name: Task Management
    description: >-
      Manage task items and attachments linked to operational entities such as
      risks and vendors.
  - name: Tasks
    description: >-
      Manage compliance task lifecycle, assignments, review approvals, evidence
      uploads, policy links, and activity history.
  - name: Timelines
    description: >-
      Track audit and compliance readiness timelines, phases, and review
      milestones for an organization.
  - name: Training
    description: >-
      Record security awareness and HIPAA training completion status and
      generate completion certificates.
  - name: Trust Access
    description: >-
      Manage external Trust Center access requests, NDA signing, grants,
      tokenized document downloads, public FAQs, and reviewer access.
  - name: Trust Portal
    description: >-
      Configure the live Trust Center, custom domain, public overview, FAQs,
      compliance resources, documents, links, and vendor disclosures.
  - name: Uploads
  - name: Vendors
    description: >-
      Manage third-party vendors, global vendor search, risk assessment
      triggers, and Trust Center vendor visibility.
paths:
  /v1/policies/{id}/controls:
    get:
      tags:
        - Policies
      summary: Get mapped and all controls for a policy
      description: >-
        Get mapped and all controls for a policy in Complianz. Create, version,
        publish, export, map, and improve compliance policies with AI-assisted
        drafting and approval workflows.
      operationId: PoliciesController_getPolicyControls_v1
      parameters:
        - name: X-Organization-Id
          in: header
          description: >-
            Organization ID (required for session auth, optional for API key
            auth)
          required: false
          schema:
            type: string
        - name: id
          required: true
          in: path
          description: Policy ID
          schema:
            example: pol_abc123def456
            type: string
      responses:
        '200':
          description: Controls retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  mappedControls:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: ctl_abc123def456
                        name:
                          type: string
                          example: Access Control Policy Review
                        description:
                          type: string
                          nullable: true
                        frameworks:
                          type: array
                          description: >-
                            Frameworks (built-in or custom) this control is
                            mapped to in the organization, each with the
                            requirements the control covers
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                example: frk_abc123def456
                              name:
                                type: string
                                example: SOC 2
                              frameworkInstanceId:
                                type: string
                                description: The organization's instance of this framework
                                example: frm_abc123def456
                              requirements:
                                type: array
                                description: >-
                                  Requirements this control is actually mapped
                                  to in the framework, not the framework's whole
                                  requirement set
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      description: RequirementMap row id
                                      example: req_abc123def456
                                    requirementId:
                                      type: string
                                      description: >-
                                        Requirement id (built-in or custom) —
                                        target of the framework requirement
                                        route
                                      example: frk_rq_abc123def456
                                    identifier:
                                      type: string
                                      example: CC1.2
                                    name:
                                      type: string
                                      example: Board Oversight
                                    description:
                                      type: string
                                  required:
                                    - id
                                    - requirementId
                                    - identifier
                                    - name
                                    - description
                            required:
                              - id
                              - name
                              - frameworkInstanceId
                              - requirements
                      required:
                        - id
                        - name
                        - description
                        - frameworks
                    description: >-
                      Controls currently mapped to this policy, with the
                      framework requirements each one covers
                  allControls:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: ctl_abc123def456
                        name:
                          type: string
                          example: Access Control Policy Review
                        description:
                          type: string
                          nullable: true
                        frameworks:
                          type: array
                          description: >-
                            Frameworks (built-in or custom) this control is
                            mapped to in the organization
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                example: frk_abc123def456
                              name:
                                type: string
                                example: SOC 2
                            required:
                              - id
                              - name
                      required:
                        - id
                        - name
                        - description
                        - frameworks
                    description: >-
                      Every control in the organization, so a client can offer
                      the full mapping choice. Not a subset of the policy's
                      controls, and carries no requirement detail.
                  authType:
                    type: string
                    enum:
                      - api-key
                      - session
                    description: How the request was authenticated
                  authenticatedUser:
                    type: object
                    description: >-
                      Authenticated user information (only present for session
                      auth)
                    properties:
                      id:
                        type: string
                        example: usr_abc123def456
                      email:
                        type: string
                        example: user@company.com
                required:
                  - mappedControls
                  - allControls
                  - authType
              example:
                mappedControls:
                  - id: ctl_abc123def456
                    name: Access Control Policy Review
                    description: Annual review of the access control policy
                    frameworks:
                      - id: frk_abc123def456
                        name: SOC 2
                        frameworkInstanceId: frm_abc123def456
                        requirements:
                          - id: req_abc123def456
                            requirementId: frk_rq_abc123def456
                            identifier: CC1.2
                            name: Board Oversight
                            description: >-
                              The board of directors demonstrates independence
                              from management.
                allControls:
                  - id: ctl_abc123def456
                    name: Access Control Policy Review
                    description: Annual review of the access control policy
                    frameworks:
                      - id: frk_abc123def456
                        name: SOC 2
                  - id: ctl_xyz789abc123
                    name: Vendor Risk Assessment
                    description: null
                    frameworks: []
                authType: api-key
      security:
        - apikey: []
components:
  securitySchemes:
    apikey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````

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