Axis Search API

Code retrieval over an indexed project. Requires Pro.

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 3

POST /api/v1/search Search an indexed project #
POST /api/v1/deep-search Multi-hop search with citations #
POST /api/v1/index Index files for search #

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-search-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-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Axis Search 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: Search
  description: Code retrieval over an indexed project. Requires Pro.
paths:
  /api/v1/search:
    post:
      operationId: searchCodebase
      summary: Search an indexed project
      description: 'Hybrid retrieval over an indexed project: vector, full-text and trigram legs fused in one query, then an LLM rerank of the top candidates. Results carry file paths and line numbers, plus files that historically change together with each hit. Use it before writing new code, to find the existing pattern. Requires Pro; index the project first with indexCodebase.'
      tags:
      - Search
      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:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  description: Natural-language question or a symbol name.
                  maxLength: 2000
                projectName:
                  type: string
                  default: default
                limit:
                  type: integer
                  minimum: 1
                  maximum: 50
                  default: 10
                  description: Maximum results to return.
                rerank:
                  type: boolean
                  default: true
                  description: Run the LLM listwise rerank. Turn off for lower latency.
                expand:
                  type: boolean
                  default: true
                  description: Expand the query with a hypothetical implementation and code-vocabulary variants.
                includeSessions:
                  type: boolean
                  default: false
                  description: Also search archived session logs, not just code.
      responses:
        '200':
          description: Ranked matches.
          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:
                - results
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/SearchResult'
                  related:
                    type: array
                    items:
                      type: string
                    description: Files that historically change together with the hits.
        '400':
          description: Missing or non-string query.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: No credential, or a credential that is expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The intelligence layer requires a Pro org.
          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'
  /api/v1/deep-search:
    post:
      operationId: deepSearchCodebase
      summary: Multi-hop search with citations
      description: A bounded retrieve-read-follow loop for questions one query cannot answer — 'how does X reach Y', 'what happens when Z fails'. Slower and more expensive than searchCodebase; the answer cites `path:line`. Requires Pro.
      tags:
      - Search
      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:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  description: The question to answer.
                  maxLength: 2000
                projectName:
                  type: string
                  default: default
      responses:
        '200':
          description: An answer with citations and the files it read.
          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
                properties:
                  answer:
                    type: string
                    description: Prose answer with inline path:line citations.
                  citations:
                    type: array
                    items:
                      type: string
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/SearchResult'
        '400':
          description: Missing or non-string query.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: No credential, or a credential that is expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Requires a Pro org, or the org's query budget is exhausted.
          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'
  /api/v1/index:
    post:
      operationId: indexCodebase
      summary: Index files for search
      description: 'Push file contents into the project index so search can find them. Incremental and content-hashed: unchanged files are skipped. Pass `allPaths` with `prune: true` to delete index rows for files no longer in the repository. Requires Pro.'
      tags:
      - Search
      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:
              type: object
              required:
              - files
              properties:
                projectName:
                  type: string
                  default: default
                files:
                  type: array
                  description: Files to index.
                  items:
                    type: object
                    required:
                    - path
                    - content
                    properties:
                      path:
                        type: string
                        description: Repository-relative path.
                      content:
                        type: string
                        description: Full file text.
                allPaths:
                  type: array
                  items:
                    type: string
                  description: Every path currently in the repository, used with prune.
                prune:
                  type: boolean
                  default: false
                  description: Delete index rows for paths missing from allPaths.
      responses:
        '200':
          description: Counts for what was indexed, skipped and pruned.
          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
                properties:
                  indexed:
                    type: integer
                  skipped:
                    type: integer
                  pruned:
                    type: integer
                  status:
                    type: string
        '401':
          description: No credential, or a credential that is expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Indexing requires a Pro org.
          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'
components:
  headers:
    RateLimitLimit:
      description: Requests permitted in the current window.
      schema:
        type: integer
    RateLimitRemaining:
      description: Requests left in the current window.
      schema:
        type: integer
    RateLimitReset:
      description: Seconds until the current window resets.
      schema:
        type: integer
    RetryAfter:
      description: Seconds to wait before retrying. Sent on 429 only.
      schema:
        type: integer
        minimum: 1
  schemas:
    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.
    SearchResult:
      type: object
      description: One retrieved chunk of code.
      properties:
        path:
          type: string
          description: Repository-relative file path.
        line:
          type: integer
          description: First line of the matching chunk.
        content:
          type: string
          description: The matching code.
        score:
          type: number
          description: Fused relevance score; higher is better.
        definitions:
          type: array
          items:
            type: string
          description: Symbols the top hit calls, resolved to their definitions.
  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