Orcha Retrieval API

Hybrid search and connected-source access

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_context Search workspace context #
POST /api/v1/sources/{sourceId}/query Query a single connected source #
GET /api/v1/sources/{sourceId}/documents/{externalId} Fetch a source document #

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/tryorcha-com:tryorcha-com-retrieval-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

tryorcha-com-retrieval-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Orcha Retrieval API
  version: 1.0.0
  description: 'Token-authenticated REST API for AI agents: files, folders, memories, retrieval, filesystem-shaped access, ingestion, directory sync, structured databases, and feedback. Authenticate with an `orca_` API token created on the Tokens page; the token is scoped to one workspace and to `read`/`write`/`delete` permissions capped at the owner''s live workspace role. Every request counts against per-token minute/hour/day rate-limit windows reported in `X-RateLimit-*` headers.'
  contact:
    name: Orcha
    url: https://tryorcha.com
servers:
- url: https://app.tryorcha.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Retrieval
  description: Hybrid search and connected-source access
paths:
  /api/v1/search_context:
    post:
      operationId: searchContext
      tags:
      - Retrieval
      summary: Search workspace context
      description: 'Returns ranked, workspace-scoped chunks with source citations using keyword, semantic, or hybrid retrieval, optional typed sub-queries, and fast/balanced/fresh source routing.


        Permission required: `read`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          description: Invalid request body or parameters; `errors` carries the validation issues
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, expired, or deactivated API token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Token lacks the required permission or the resource is outside its scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A per-token rate-limit window is exhausted; see the Retry-After header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/sources/{sourceId}/query:
    parameters:
    - name: sourceId
      in: path
      required: true
      description: Connected source ID
      schema:
        type: string
        format: uuid
    post:
      operationId: querySource
      tags:
      - Retrieval
      summary: Query a single connected source
      description: 'Queries exactly one connected source: retained content first, then the provider''s live-search path or catalog with a bounded live fetch, under the connection''s daily provider budget. Folder-scoped tokens cannot use this endpoint.


        Permission required: `read`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SourceQueryRequest'
      responses:
        '200':
          description: Source query results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceQueryResponse'
        '400':
          description: Invalid request body or parameters; `errors` carries the validation issues
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, expired, or deactivated API token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Token lacks the required permission or the resource is outside its scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found in the token's workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A per-token rate-limit window is exhausted; see the Retry-After header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/sources/{sourceId}/documents/{externalId}:
    parameters:
    - name: sourceId
      in: path
      required: true
      description: Connected source ID
      schema:
        type: string
        format: uuid
    - name: externalId
      in: path
      required: true
      description: Provider-native document ID
      schema:
        type: string
    get:
      operationId: fetchSourceDocument
      tags:
      - Retrieval
      summary: Fetch a source document
      description: 'Returns one connected-source document''s full body, from the index (`origin: "indexed"`) or fetched live under the daily budget (`origin: "live"`, not persisted). Folder-scoped tokens cannot use this endpoint.


        Permission required: `read`.'
      responses:
        '200':
          description: Source document
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceDocumentResponse'
        '401':
          description: Missing, invalid, expired, or deactivated API token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Token lacks the required permission or the resource is outside its scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found in the token's workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A per-token rate-limit window is exhausted; see the Retry-After header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SearchRequest:
      type: object
      required:
      - query
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 1000
          description: 'Supports websearch syntax: quoted phrases and -excluded terms'
        searches:
          type: array
          maxItems: 8
          description: Typed sub-queries fused with the original query by weighted reciprocal-rank fusion; the original query runs at double weight
          items:
            type: object
            required:
            - type
            - text
            properties:
              type:
                type: string
                enum:
                - lex
                - vec
                - hyde
                description: lex routes to full-text search; vec and hyde to vector search (hyde is a short hypothetical answer passage)
              text:
                type: string
                minLength: 1
                maxLength: 1000
        strategy:
          type: string
          enum:
          - keyword
          - semantic
          - hybrid
          default: hybrid
        mode:
          type: string
          enum:
          - fast
          - balanced
          - fresh
          default: balanced
          description: fast searches retained content only; balanced adds the connected-source catalog with bounded live fetches of decisive matches; fresh additionally consults live-mode providers
        sourceIds:
          type: array
          maxItems: 10
          items:
            type: string
            format: uuid
          description: Restrict results to specific connected sources
        limit:
          type: integer
          minimum: 1
          maximum: 50
          default: 10
        minScore:
          type: number
          description: Drop results scoring below this value
        tokenBudget:
          type: integer
          description: Pack results within an approximate token budget
        explain:
          type: boolean
          default: false
          description: Attach per-result score traces
      additionalProperties: false
    SearchResponse:
      type: object
      description: '`results` is cited evidence; `coverage` carries routing notes (live fetches, unfetched catalog matches, budget limits) and must never be quoted as content.'
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              chunkId:
                type: string
              documentId:
                type: string
              fileId:
                type:
                - string
                - 'null'
              score:
                type: number
              content:
                type: string
              startLine:
                type: integer
              endLine:
                type: integer
              headingPath:
                type: array
                items:
                  type: string
              updatedAt:
                type: string
                format: date-time
              citation:
                $ref: '#/components/schemas/Citation'
            additionalProperties: true
        coverage:
          type: array
          items:
            type: object
            additionalProperties: true
        mode:
          type: string
          enum:
          - fast
          - balanced
          - fresh
      additionalProperties: true
    SourceQueryRequest:
      type: object
      required:
      - query
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 1000
        limit:
          type: integer
          minimum: 1
          maximum: 20
          default: 5
      additionalProperties: false
    SourceDocumentResponse:
      type: object
      properties:
        title:
          type: string
        content:
          type: string
        citation:
          $ref: '#/components/schemas/Citation'
        origin:
          type: string
          enum:
          - indexed
          - live
          description: indexed bodies come from the retained index; live bodies are fetched from the provider under the daily budget and not persisted
        providerOperations:
          type: integer
      additionalProperties: true
    Citation:
      type: object
      description: Provenance for externally sourced content
      required:
      - provider
      - objectId
      - deepLink
      properties:
        provider:
          type: string
        objectId:
          type: string
        deepLink:
          type: string
          format: uri
        title:
          type: string
        author:
          type: string
        location:
          type: string
        version:
          type: string
      additionalProperties: true
    Error:
      type: object
      description: Standard error body. `errors` appears on validation failures; `code` appears when the failing operation exposes a machine-readable cause.
      required:
      - message
      properties:
        message:
          type: string
        code:
          type: string
        errors:
          type: array
          description: Validation issues (Zod issue objects)
          items:
            type: object
      additionalProperties: true
    SourceQueryResponse:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            additionalProperties: true
        coverage:
          type: array
          items:
            type: object
            additionalProperties: true
        providerOperations:
          type: integer
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Orcha API token, prefixed `orca_`. Shown once at creation; only a hashed verifier is stored.