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

# AdoptManagedOrganizationAPI brings an EXISTING org under the caller's manager
org by redeeming a


> one-time adoption token its owner minted on the session surface. Two-sided by construction: the manager credential alone can never adopt an arbitrary org — it must present a secret only the target org's owner could have created. Deliberately no MCP tool: durably re-homing an org under a manager stays off the model-facing tool surface for the same reason manager-key minting and member adds do (see the file header). The path is a sibling of /v1/managed-organizations because Encore rejects a static segment (\`adopt\`) alongside the parameterized \`/:orgSlug/members\` route.




## OpenAPI

````yaml /api/openapi.json post /v1/managed-organization-adoptions
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-28'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/managed-organization-adoptions:
    post:
      summary: >
        AdoptManagedOrganizationAPI brings an EXISTING org under the caller's
        manager

        org by redeeming a
      description: >
        one-time adoption token its owner minted on the session surface.
        Two-sided by construction: the manager credential alone can never adopt
        an arbitrary org — it must present a secret only the target org's owner
        could have created. Deliberately no MCP tool: durably re-homing an org
        under a manager stays off the model-facing tool surface for the same
        reason manager-key minting and member adds do (see the file header). The
        path is a sibling of /v1/managed-organizations because Encore rejects a
        static segment (\`adopt\`) alongside the parameterized
        \`/:orgSlug/members\` route.
      operationId: POST:mcp.AdoptManagedOrganizationAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                token:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  created_at:
                    type: string
                  id:
                    format: uuid
                    type: string
                  name:
                    type: string
                  role:
                    type: string
                  slug:
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````