> ## 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.

# ConnectIntegrationAPI mirrors the erdo_connect_integration MCP tool.




## OpenAPI

````yaml /api/openapi.json post /v1/integrations-connect
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-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/integrations-connect:
    post:
      summary: |
        ConnectIntegrationAPI mirrors the erdo_connect_integration MCP tool.
      operationId: POST:mcp.ConnectIntegrationAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                app:
                  type: string
                credentials:
                  additionalProperties:
                    type: string
                  description: >
                    service-account JSON). encore:"sensitive" keeps it out of
                    request trace storage — the same treatment
                    integration.CreateIntegrationRequest.Credentials gets.
                  title: >
                    Credentials is caller-supplied secret material (DB
                    passwords, API keys,
                  type: object
                name:
                  type: string
                return_url:
                  description: >
                    authorization at connect\_url. Only meaningful for OAuth
                    apps (native OAuth and Pipedream) that hand back a
                    connect\_url. Empty returns the user to Erdo's data page —
                    the default for MCP/CLI callers with no product origin of
                    their own; a portal built on /v1 passes its own page so the
                    operator lands back on it. Must be an absolute http(s) URL
                    with no embedded credentials.
                  title: >
                    ReturnURL is where the browser lands after the user finishes
                    the OAuth
                  type: string
                scopes:
                  items:
                    type: string
                  type: array
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  app:
                    type: string
                  connect_url:
                    type: string
                  integration_id:
                    type: string
                  next_step:
                    type: string
                  status:
                    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_...).

````