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

# Access review

> When the controller last approved the operators' access and when the next review is due, every 90 days; the control plane asks for it by itself when due.



## OpenAPI

````yaml openapi/en/control.json GET /v1/projects/{project_id}/access-review
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/projects/{project_id}/access-review:
    get:
      tags:
        - accounts
      summary: Access review
      description: >-
        When the controller last approved the operators' access and when the
        next review is due (every 90

        days); the control plane asks for it by itself when due.


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: access_review_v1_projects__project_id__access_review_get
      parameters:
        - in: path
          name: project_id
          required: true
          schema:
            format: uuid
            title: Project Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessReview'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - personToken: []
components:
  schemas:
    AccessReview:
      additionalProperties: false
      properties:
        due_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Null when the project has no controller apart from its tenant.
          title: Due At
        last_approved_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Approved At
        pending:
          anyOf:
            - $ref: '#/components/schemas/Approval'
            - type: 'null'
      title: AccessReview
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    Approval:
      additionalProperties: false
      description: >-
        An approval asked of the project's controller. The link goes only to its
        DPO's e-mail.
      properties:
        approval_id:
          format: uuid
          title: Approval Id
          type: string
        decided_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Decided At
        document_hash:
          description: SHA-256 of the canonical JSON of what the controller approves.
          title: Document Hash
          type: string
        expires_at:
          format: date-time
          title: Expires At
          type: string
        kind:
          enum:
            - purposes
            - policy_loosening
            - retention
            - operators
            - transfer
            - access_review
            - emergency_access
            - ripd
          title: Kind
          type: string
        project_id:
          format: uuid
          title: Project Id
          type: string
        requested_at:
          format: date-time
          title: Requested At
          type: string
        status:
          enum:
            - pending
            - approved
            - rejected
            - expired
          title: Status
          type: string
        subject_ref:
          title: Subject Ref
          type: string
      required:
        - approval_id
        - project_id
        - kind
        - subject_ref
        - status
        - document_hash
        - requested_at
        - expires_at
      title: Approval
      type: object
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````