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

# List Locks

> List all active advisory locks for the organization.

Returns:
    List of active lock entries.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /presence/locks/
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /presence/locks/:
    get:
      tags:
        - presence
        - presence
      summary: List Locks
      description: |-
        List all active advisory locks for the organization.

        Returns:
            List of active lock entries.
      operationId: presence-list_locks
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/LockEntry'
                type: array
                title: Response Presence-List Locks
components:
  schemas:
    LockEntry:
      properties:
        resource_id:
          type: string
          title: Resource Id
        agent_id:
          type: string
          title: Agent Id
        organization_id:
          type: string
          title: Organization Id
        acquired_at:
          type: string
          format: date-time
          title: Acquired At
      type: object
      required:
        - resource_id
        - agent_id
        - organization_id
      title: LockEntry
      description: |-
        Advisory lock on a resource.

        Attributes:
            resource_id: ID of the locked resource.
            agent_id: ID of the agent holding the lock.
            organization_id: Organization the lock belongs to.
            acquired_at: Timestamp when the lock was acquired.

````