Axis Locks API

Advisory per-file locks with tamper detection.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /api/v1/locks List live file locks #
POST /api/v1/locks Take, release or force-release a file lock #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/useaxis-dev:useaxis-dev-locks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

useaxis-dev-locks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Axis Locks API
  version: 1.0.0
  summary: 'Coordination for AI coding agents: a shared job board, per-file locks, a live notepad and code search.'
  description: 'Axis gives every coding agent on a repository — across people, machines and vendors — one shared job board and a lock on every file.


    **When to use this API.** Call it when more than one agent or person can touch the same repository at once: to claim a unit of work before doing it, to take an advisory lock on a file before editing it, to leave notes other agents will read, and to find code across an indexed project. If you are a single agent on a single machine with no one else in the repository, you do not need it.


    **Auth.** Send an Axis API key as `Authorization: Bearer sk_sc_...`. Keys are self-serve at https://useaxis.dev/dashboard, with no sales step and no card for the coordination layer. MCP clients can use OAuth instead; discovery lives at https://useaxis.dev/.well-known/oauth-authorization-server.


    **The same API over MCP.** Every operation here is also an MCP tool on the Streamable HTTP endpoint at https://useaxis.dev/api/mcp, described by https://useaxis.dev/.well-known/mcp.json. Prefer MCP if your client speaks it.


    **Rate limits.** Responses carry RFC 9331 headers (`RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, `RateLimit`, `RateLimit-Policy`); a refusal is a `429` with `Retry-After`. The budget is 600 requests per 60 seconds per credential. Counters are per serving instance and reset on a cold start, so treat them as a floor, not a ledger.


    **Free vs Pro.** Jobs, locks, notepad, presence and session finalization are free. Search, deep search and indexing require a Pro org and answer `403` otherwise.'
  termsOfService: https://useaxis.dev/terms
  contact:
    name: Axis support
    email: support@useaxis.dev
    url: https://useaxis.dev/contact
  license:
    name: AGPL-3.0-only
    identifier: AGPL-3.0-only
servers:
- url: https://useaxis.dev
  description: Production
security:
- ApiKeyBearer: []
tags:
- name: Locks
  description: Advisory per-file locks with tamper detection.
paths:
  /api/v1/locks:
    get:
      operationId: listLocks
      summary: List live file locks
      description: 'Every live advisory lock on the project: which file, which agent, the stated intent, and how old it is. Read it to find out who owns a file before you try to take it.'
      tags:
      - Locks
      parameters:
      - name: projectName
        in: query
        required: false
        description: Board to scope this call to. Any name works and is created on first use, so an unfamiliar name is a fresh scratch board rather than an error. Defaults to 'default'.
        schema:
          type: string
          default: default
          maxLength: 200
      - name: X-Axis-Org
        in: header
        required: false
        description: Organization id to scope the call to, when the caller belongs to more than one. Equivalent to the ?org= query parameter. Find it at https://useaxis.dev/team.
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Live locks for the project.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - locks
                properties:
                  locks:
                    type: array
                    items:
                      $ref: '#/components/schemas/Lock'
        '401':
          description: No credential, or a credential that is expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 600 requests in the current window. Wait for the number of seconds in Retry-After.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected server error. Safe to retry once with backoff.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      operationId: manageLocks
      summary: Take, release or force-release a file lock
      description: 'Take an advisory lock before editing any file, one file per lock — directory locks are rejected because they block every other agent. A lock lasts 30 minutes. If the answer is REQUIRES_ORCHESTRATION another agent holds the file: work on something else rather than editing it anyway. Pass `contentHash` to arm tamper detection, and use `filePaths` to take several locks in one all-or-nothing call.'
      tags:
      - Locks
      parameters:
      - name: X-Axis-Org
        in: header
        required: false
        description: Organization id to scope the call to, when the caller belongs to more than one. Equivalent to the ?org= query parameter. Find it at https://useaxis.dev/team.
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/LockRequest'
              - $ref: '#/components/schemas/UnlockRequest'
              - $ref: '#/components/schemas/ForceUnlockRequest'
              discriminator:
                propertyName: action
                mapping:
                  lock: '#/components/schemas/LockRequest'
                  unlock: '#/components/schemas/UnlockRequest'
                  force_unlock: '#/components/schemas/ForceUnlockRequest'
      responses:
        '200':
          description: The outcome of the lock action.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LockResult'
        '400':
          description: A missing filePath or agentId, a path over 1000 characters, or an attempt to lock the project root.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LockResult'
        '401':
          description: No credential, or a credential that is expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Another agent holds the file. The body names the holder and their intent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LockResult'
        '429':
          description: More than 600 requests in the current window. Wait for the number of seconds in Retry-After.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected server error. Safe to retry once with backoff.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  headers:
    RateLimitLimit:
      description: Requests permitted in the current window.
      schema:
        type: integer
    RateLimitRemaining:
      description: Requests left in the current window.
      schema:
        type: integer
    RetryAfter:
      description: Seconds to wait before retrying. Sent on 429 only.
      schema:
        type: integer
        minimum: 1
    RateLimitReset:
      description: Seconds until the current window resets.
      schema:
        type: integer
  schemas:
    UnlockRequest:
      type: object
      title: Release a lock
      description: Release a lock you hold without completing the job.
      required:
      - action
      - filePath
      properties:
        action:
          type: string
          const: unlock
        projectName:
          type: string
          default: default
        filePath:
          type: string
          maxLength: 1000
        agentId:
          type: string
          maxLength: 200
    Error:
      type: object
      description: Every failure answers in this shape.
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable reason.
        detail:
          type: string
          description: Extra context when there is any.
    ForceUnlockRequest:
      type: object
      title: Force-release a lock
      description: Break someone else's lock. Last resort, for a lock left by a crashed agent; give a reason.
      required:
      - action
      - filePath
      properties:
        action:
          type: string
          const: force_unlock
        projectName:
          type: string
          default: default
        filePath:
          type: string
          maxLength: 1000
        reason:
          type: string
          maxLength: 1000
    Lock:
      type: object
      description: A live advisory lock on one file.
      required:
      - file_path
      - agent_id
      properties:
        id:
          type: string
          format: uuid
        project_id:
          type: string
          format: uuid
        file_path:
          type: string
          description: Repository-relative path, normalized.
        agent_id:
          type: string
          description: Holder.
        intent:
          type: string
          description: Why the holder took it. Shown to whoever is refused.
        content_hash:
          type:
          - string
          - 'null'
          description: Fingerprint recorded at grant, for tamper detection.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    LockRequest:
      type: object
      title: Take a lock
      description: Lock one file, or several in one all-or-nothing call, before editing.
      required:
      - action
      - agentId
      properties:
        action:
          type: string
          const: lock
        projectName:
          type: string
          default: default
        filePath:
          type: string
          maxLength: 1000
          description: One file. Directories are rejected.
        filePaths:
          type: array
          items:
            type: string
            maxLength: 1000
          description: Several files at once. If any is refused, none are held.
        agentId:
          type: string
          maxLength: 200
        intent:
          type: string
          description: Descriptive reason, e.g. 'refactor auth to JWT' — not 'editing file'. It is what another agent reads when refused.
          maxLength: 1000
        contentHash:
          type: string
          description: Hash of the file as you read it. Enables verify_file_lock to detect a change under your lock.
        userPrompt:
          type: string
          description: The request that triggered this edit, for the audit trail.
    LockResult:
      type: object
      description: Outcome of a lock action.
      required:
      - status
      properties:
        status:
          type: string
          enum:
          - GRANTED
          - REQUIRES_ORCHESTRATION
          - REJECTED
          - RELEASED
          description: 'GRANTED: the file is yours for 30 minutes. REQUIRES_ORCHESTRATION: someone else holds it, work on something else. REJECTED: the request itself was invalid, e.g. a directory.'
        message:
          type: string
          description: On a refusal, who holds the file and why.
        agent_id:
          type: string
        file_path:
          type: string
        files:
          type: array
          items:
            type: string
          description: Granted paths, for a batch lock.
        intent:
          type: string
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: sk_sc_*
      description: 'Axis API key, self-serve at https://useaxis.dev/dashboard. Send as `Authorization: Bearer sk_sc_...`.'
    OAuth2:
      type: oauth2
      description: 'OAuth for MCP clients. Discovery: https://useaxis.dev/.well-known/oauth-authorization-server. Dynamic client registration is supported.'
      flows:
        authorizationCode:
          authorizationUrl: https://useaxis.dev/api/oauth/authorize
          tokenUrl: https://useaxis.dev/api/oauth/token
          scopes: {}
externalDocs:
  description: Human documentation
  url: https://useaxis.dev/docs