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

# Get agents permissions



## OpenAPI

````yaml /openapi.json get /agents/{agentId}/permissions
openapi: 3.1.1
info:
  title: Anima API
  version: 0.1.0
  description: >-
    The Anima API provides programmatic access to unified infrastructure for AI
    agents: create and manage agents; send and receive email; place phone calls
    and send/receive SMS and voice; store and retrieve vault credentials; manage
    agent identity; and configure webhooks for real-time events. Authenticate
    using a Bearer token or an API key passed via the X-API-Key header.
  contact:
    name: Anima Labs
    url: https://useanima.sh
    email: support@useanima.sh
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.useanima.sh/v1
    description: Production
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /agents/{agentId}/permissions:
    get:
      operationId: agentPermission.list
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            description: Agent whose permissions to read
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  agentId:
                    type: string
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        procedurePath:
                          type: string
                          description: Dotted procedure path — 'agent.delete'
                        group:
                          enum:
                            - read
                            - write
                            - destructive
                          type: string
                          description: >-
                            Derived from the procedure's HTTP method: read
                            (GET), destructive (DELETE), write (everything
                            else). Destructive is separated from write so 'may
                            delete without asking' is a deliberate decision
                            rather than one made in passing.
                        state:
                          enum:
                            - ASK
                            - ALWAYS_ALLOW
                            - NEVER
                          type: string
                          description: >-
                            ASK (file a request and wait for the owner),
                            ALWAYS_ALLOW (proceed without asking), NEVER (refuse
                            outright and do not queue a request).
                        grantedBy:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: >-
                            Who last set this, when it came from an approval;
                            null if never set
                        updatedAt:
                          anyOf:
                            - type: string
                              format: date-time
                            - type: 'null'
                          description: >-
                            When it was last set; null while it has never been
                            set
                      required:
                        - procedurePath
                        - group
                        - state
                        - grantedBy
                        - updatedAt
                      description: >-
                        One master-gated procedure and the owner's standing
                        decision about it
                  bypassReads:
                    type: boolean
                    description: >-
                      Whether a blanket READS grant is live: the agent stops
                      asking about read-only procedures entirely. The
                      group-level control for the read group.
                required:
                  - agentId
                  - items
                  - bypassReads
                description: >-
                  An agent's standing permissions, one row per master-gated
                  procedure
        '403':
          description: '403'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: FORBIDDEN
                      status:
                        const: 403
                      message:
                        type: string
                        default: >-
                          Reading an agent's permissions requires master
                          authority.
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
        '404':
          description: '404'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: NOT_FOUND
                      status:
                        const: 404
                      message:
                        type: string
                        default: No such agent in this organization.
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Bearer token obtained from authentication. Pass as: Authorization:
        Bearer <token>
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key for programmatic access. Pass as: X-API-Key: <your-key>'

````