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

# Machine-readable agent bootstrap manifest

> Zero-auth discovery endpoint describing signup, auth schemes, prepaid payment rails, MCP endpoint, OpenAPI URLs, SDK, and error contract.



## OpenAPI

````yaml https://app.sotroai.com/openapi.json get /.well-known/agent.json
openapi: 3.0.3
info:
  title: Sotro API
  version: 1.0.0
  description: >
    Agent-first API and Model Context Protocol (MCP) server for Sotro.


    ## Quick Start for Agents

    1. Discover capabilities at `GET /.well-known/agent.json` or `GET
    /api/v1/agent/manifest`.

    2. Create a workspace and `pvk_` org API key in one call via `POST
    /api/v1/agent/signup`.

    3. Fund your prepaid token wallet via `POST /api/v1/agent/billing/quote` and
    `POST /api/v1/agent/billing/checkout` (ACH, card, wire, or invoice).

    4. Call REST endpoints with `Authorization: Bearer <token>` or `X-API-Key:
    <token>`, or connect MCP at `POST /mcp` (Streamable HTTP).


    ## Authentication

    Send a `pvk_` org API key or `pvt_` member token in either:

    - `Authorization: Bearer <token>`

    - `X-API-Key: <token>`


    Optionally scope multi-org member credentials with `X-Org-Id: <orgUuid>`.


    ## Consistent JSON Errors

    Every API and MCP error returns `application/json` with the `ErrorResponse`
    schema:

    `{ "error": { "code": "ERR_*", "message": "...", "details": {} }, "message":
    "..." }`.
  contact:
    name: Sotro Developers
    email: hello@sotroai.com
    url: https://sotroai.com/developers
servers:
  - url: https://app.sotroai.com
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Discovery
    description: Machine-readable agent manifests, OpenAPI specs, and health probes
  - name: Agent Signup & Access
    description: One-shot agent onboarding, identity status, and API key lifecycle
  - name: Payment & Wallet
    description: >-
      Prepaid token wallet balance, quotes, Stripe Checkout (ACH/card),
      wire/invoice instructions, and ledger
  - name: Workspace
    description: Workspace creation, member identity, and organization API keys
  - name: Decisions & Auto-Continue
    description: Calibrated decisions API and external coding-agent auto-continue
  - name: Context & Provenance
    description: Organizational knowledge queries and source provenance
  - name: MCP
    description: Streamable HTTP Model Context Protocol server and OAuth discovery
paths:
  /.well-known/agent.json:
    get:
      tags:
        - Discovery
      summary: Machine-readable agent bootstrap manifest
      description: >-
        Zero-auth discovery endpoint describing signup, auth schemes, prepaid
        payment rails, MCP endpoint, OpenAPI URLs, SDK, and error contract.
      responses:
        '200':
          description: Agent manifest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentManifest'
components:
  schemas:
    AgentManifest:
      type: object
      required:
        - name
        - version
        - baseUrl
        - signup
        - auth
        - payment
        - mcp
        - openapi
        - errors
      properties:
        name:
          type: string
          example: Sotro
        version:
          type: string
          example: 1.0.0
        baseUrl:
          type: string
          format: uri
        signup:
          type: object
          properties:
            endpoint:
              type: string
              example: /api/v1/agent/signup
            method:
              type: string
              example: POST
            mode:
              type: string
              enum:
                - open
                - invite_only
            waitlistUrl:
              type: string
              format: uri
        auth:
          type: object
          properties:
            schemes:
              type: array
              items:
                type: string
            headers:
              type: array
              items:
                type: string
        payment:
          type: object
          properties:
            available:
              type: boolean
            currency:
              type: string
              example: usd
            methods:
              type: array
              items:
                type: string
                enum:
                  - ach
                  - wire
                  - invoice
                  - card
            minTopUpCents:
              type: integer
              example: 50000
        mcp:
          type: object
          properties:
            endpoint:
              type: string
              example: /mcp
            url:
              type: string
              format: uri
            transport:
              type: string
              example: streamable-http
        openapi:
          type: object
          properties:
            json:
              type: string
              format: uri
            yaml:
              type: string
              format: uri
            docs:
              type: string
              format: uri
        errors:
          type: object
          properties:
            contentType:
              type: string
              example: application/json
            guaranteedValidJson:
              type: boolean
              example: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.