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

# List Pending

> Grants waiting on a second named approver.

**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.



## OpenAPI

````yaml /api/openapi.json get /v1/grants/pending
openapi: 3.1.0
info:
  title: RotaGrant API
  version: 0.1.0
  description: >-
    The HTTP API of a RotaGrant deployment, made from the product's own route
    definitions at the commit named in `x-rotascale-source`. Nothing here is
    written by hand.


    There is no shared endpoint. RotaGrant runs in your environment, and your
    deployment serves its own copy of this description at `/api/docs`. That copy
    is the authority on what your version has and which features are switched
    on; this one is the reference for one commit of the main line. The version
    is 0.1.0: routes and shapes can still change.


    Every route says who may call it. Most need a bearer token from the identity
    provider your deployment uses, held by a person with the role named. The
    routes an SDK calls also accept a workspace API key. A few are open, and say
    why.
servers:
  - url: https://{deployment}
    description: Your own deployment. There is no shared endpoint.
    variables:
      deployment:
        default: rotagrant.internal.example
        description: The host your deployment answers on.
security: []
paths:
  /v1/grants/pending:
    get:
      tags:
        - Authority
      summary: List Pending
      description: >-
        Grants waiting on a second named approver.


        **Who may call it:** any role. A workspace API key is refused here: this
        is an act that belongs to a named person.
      operationId: list_pending_v1_grants_pending_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/GrantOut'
                type: array
                title: Response List Pending V1 Grants Pending Get
      security:
        - bearerToken: []
components:
  schemas:
    GrantOut:
      properties:
        id:
          type: string
          title: Id
        enforcement_mode:
          type: string
          enum:
            - observe
            - shadow
            - canary
            - enforce
          title: Enforcement Mode
        canary_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Canary Percent
        issued_against_provenance:
          anyOf:
            - type: string
            - type: 'null'
          title: Issued Against Provenance
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Id
        kind:
          type: string
          title: Kind
        environment:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment
        principal_type:
          type: string
          title: Principal Type
        principal_id:
          type: string
          title: Principal Id
        parent_grant_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Grant Id
        depth:
          type: integer
          title: Depth
        scope:
          additionalProperties:
            items:
              type: string
            type: array
          type: object
          title: Scope
        audience:
          anyOf:
            - type: string
            - type: 'null'
          title: Audience
        policy:
          anyOf:
            - type: string
            - type: 'null'
          title: Policy
        policy_rendering:
          anyOf:
            - type: string
            - type: 'null'
          title: Policy Rendering
        budget_amount_minor:
          anyOf:
            - type: integer
            - type: 'null'
          title: Budget Amount Minor
        budget_currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Budget Currency
        spent_amount_minor:
          type: integer
          title: Spent Amount Minor
        budget_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Budget Count
        spent_count:
          type: integer
          title: Spent Count
        held_amount_minor:
          type: integer
          title: Held Amount Minor
          default: 0
        held_count:
          type: integer
          title: Held Count
          default: 0
        created_at:
          type: string
          format: date-time
          title: Created At
        not_before:
          type: string
          format: date-time
          title: Not Before
        not_after:
          type: string
          format: date-time
          title: Not After
        conditions:
          additionalProperties: true
          type: object
          title: Conditions
        delegation_policy:
          type: string
          title: Delegation Policy
        status:
          type: string
          title: Status
        pending_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Pending Reason
        revoked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Revoked At
        revoked_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Revoked By
        revoked_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Revoked By Email
        revocation_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Revocation Reason
      type: object
      required:
        - id
        - enforcement_mode
        - canary_percent
        - issued_against_provenance
        - agent_id
        - kind
        - environment
        - principal_type
        - principal_id
        - parent_grant_id
        - depth
        - scope
        - audience
        - policy
        - policy_rendering
        - budget_amount_minor
        - budget_currency
        - spent_amount_minor
        - budget_count
        - spent_count
        - created_at
        - not_before
        - not_after
        - conditions
        - delegation_policy
        - status
      title: GrantOut
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A token from the identity provider your deployment federates with. It
        identifies a person; their roles in the workspace decide what they may
        do.

````

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