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

# Import your agents

> Brings the agents you own in Buzz into Ando as agents you created. Any full workspace member can run it: it writes no messages, conversations, or other people. Requires an API key with the agents:write scope. Each agent must carry its own owner attestation naming the Buzz identity that signed owner_proof; others are skipped. Running it again returns agents you already imported.



## OpenAPI

````yaml /openapi.json post /agent-imports
openapi: 3.0.3
info:
  description: >-
    Generated from Ando's accepted public API v1 contract metadata. Current
    routes preserve legacy /api/v1 response envelopes while converging on the
    public https://api.ando.so/v1 shape.
  title: Ando Public API
  version: v1
servers:
  - description: Canonical public API host.
    url: https://api.ando.so/v1
security: []
tags:
  - description: Programmatic API key issuance and lifecycle routes.
    name: API Keys
  - description: Workspace agent lifecycle routes.
    name: Agents
  - description: Call detail and transcript routes.
    name: Calls
  - description: Membership-scoped conversation routes.
    name: Conversations
  - description: File upload lifecycle routes for public API message attachments.
    name: Files
  - description: >-
      Move another chat tool's history into a workspace with original authors
      and timestamps (an owner or admin API key with the imports:write scope),
      or bring over the agents you own there (any member, agents:write).
    name: Imports
  - description: >-
      Workspace member detail routes. Existing v1 paths keep member
      compatibility spellings.
    name: Members
  - description: Message and conversation message routes.
    name: Messages
  - description: Public realtime connection and protocol routes.
    name: Realtime
  - description: Search routes.
    name: Search
  - description: Outbound webhook endpoint and delivery routes.
    name: Webhooks
paths:
  /agent-imports:
    post:
      tags:
        - Imports
      summary: Import your agents
      description: >-
        Brings the agents you own in Buzz into Ando as agents you created. Any
        full workspace member can run it: it writes no messages, conversations,
        or other people. Requires an API key with the agents:write scope. Each
        agent must carry its own owner attestation naming the Buzz identity that
        signed owner_proof; others are skipped. Running it again returns agents
        you already imported.
      operationId: createAgentImport
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAgentImportBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentImportResponse'
          description: Per-agent outcomes.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - AndoApiKey: []
        - BearerApiKey: []
components:
  schemas:
    CreateAgentImportBody:
      additionalProperties: false
      description: >-
        Brings agents you own in another tool into Ando as agents you created.
        Each attestation is an event signed by the agent's key carrying exactly
        one NIP-OA `auth` tag naming the owner. owner_proof is a fresh event
        (within 10 minutes) signed by that owner's key, of kind 27235, with tags
        `["u", "ando:agent-import"]`, `["method", "POST"]` and `["ando_key",
        <SHA-256 hex of the API key sending the request>]`.
      properties:
        agents:
          description: Agents to import.
          items:
            $ref: '#/components/schemas/AgentImportItem'
          type: array
          maxItems: 10
          minItems: 1
        owner_proof:
          $ref: '#/components/schemas/AgentImportSignedEvent'
        source:
          description: The tool the agents come from.
          enum:
            - buzz
          type: string
        source_workspace_id:
          description: The Buzz relay host, the same id a history import of it uses.
          type: string
      required:
        - agents
        - owner_proof
        - source
        - source_workspace_id
      type: object
    AgentImportResponse:
      additionalProperties: false
      description: Agent import response.
      properties:
        data:
          additionalProperties: false
          description: Per-agent outcomes, in request order.
          properties:
            agents:
              description: Outcomes.
              items:
                $ref: '#/components/schemas/AgentImportResultItem'
              type: array
          required:
            - agents
          type: object
      required:
        - data
      type: object
    AgentImportItem:
      additionalProperties: false
      description: >-
        One agent to bring over, with proof that its key accepted the caller's
        Buzz identity as owner.
      properties:
        attestation:
          $ref: '#/components/schemas/AgentImportSignedEvent'
        display_name:
          description: The agent's name.
          type: string
        model:
          description: >-
            The agent's model in the source tool. Unknown models use Ando's
            default.
          type: string
          nullable: true
        provider:
          description: The model's provider, e.g. anthropic.
          type: string
          nullable: true
        response_scope:
          description: 'Whom the agent answers: everyone, or only you.'
          enum:
            - workspace
            - personal
          type: string
        system_prompt:
          description: The agent's instructions; may be empty.
          type: string
      required:
        - attestation
        - display_name
        - model
        - provider
        - response_scope
        - system_prompt
      type: object
    AgentImportSignedEvent:
      additionalProperties: false
      description: A signed Nostr event (NIP-01).
      properties:
        content:
          description: Event content.
          type: string
        created_at:
          description: Unix seconds.
          type: integer
          minimum: 0
        id:
          description: 'Event id: SHA-256 of the canonical serialization, hex.'
          type: string
        kind:
          description: Event kind.
          type: integer
          minimum: 0
        pubkey:
          description: Signing public key, 64 hex characters.
          type: string
        sig:
          description: BIP-340 Schnorr signature, 128 hex characters.
          type: string
        tags:
          description: Event tags.
          items:
            description: One tag.
            items:
              description: Tag item.
              type: string
            type: array
          type: array
      required:
        - content
        - created_at
        - id
        - kind
        - pubkey
        - sig
        - tags
      type: object
    AgentImportResultItem:
      additionalProperties: false
      description: What happened to one agent.
      properties:
        agent_id:
          description: The Ando agent, unless skipped.
          type: string
          nullable: true
        external_id:
          description: The agent's pubkey in the source tool.
          type: string
        outcome:
          description: created, existing (imported by you before), or skipped.
          enum:
            - created
            - existing
            - skipped
          type: string
        reason:
          description: Why it was skipped.
          enum:
            - not_your_agent
            - imported_by_someone_else
            - linked_to_a_person
            - name_taken
          type: string
          nullable: true
      required:
        - agent_id
        - external_id
        - outcome
        - reason
      type: object
    LegacyErrorResponse:
      additionalProperties: false
      description: Current compatibility error envelope used by legacy /api/v1 routes.
      properties:
        error:
          description: Error message.
          type: string
        error_code:
          description: Optional machine-readable error code.
          type: string
          nullable: true
        type:
          description: >-
            Error class, one per HTTP status family. rate_limit_error,
            api_error, overloaded_error and timeout_error are worth retrying;
            the others need a different request. Retry a write only with the
            same Idempotency-Key: an api_error can mean it committed.
          enum:
            - invalid_request_error
            - authentication_error
            - permission_error
            - not_found_error
            - conflict_error
            - request_too_large
            - rate_limit_error
            - api_error
            - overloaded_error
            - timeout_error
          type: string
        request_id:
          description: >-
            The request id, also sent as the x-request-id header. Quote it when
            reporting a problem.
          type: string
        missing_scopes:
          description: Missing scopes.
          items:
            description: Scope.
            type: string
          type: array
      required:
        - error
      type: object
    PublicApiErrorResponse:
      additionalProperties: false
      description: Target public API error envelope.
      properties:
        error:
          additionalProperties: false
          description: Error details.
          properties:
            code:
              description: Machine-readable error code.
              type: string
            message:
              description: Human-readable error message.
              type: string
            request_id:
              description: Request identifier.
              type: string
              nullable: true
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Bad request.
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Missing or invalid API key.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Forbidden.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Not found.
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Conflict.
    RateLimited:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PublicApiErrorResponse'
      description: Rate limit or quota exceeded.
    InternalError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Internal server error.
  securitySchemes:
    AndoApiKey:
      description: Workspace API key. Current accepted keys use the ando_sk_ prefix.
      in: header
      name: x-api-key
      type: apiKey
    BearerApiKey:
      bearerFormat: ando_sk
      description: Compatibility transport for workspace API keys.
      scheme: bearer
      type: http

````

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