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

# ImportSharedLinkAPI mirrors erdo_import_shared_link: it validates the


> request, starts one page of a shared-file import from a public file or shared-folder link onto a Knowledge record in the caller's organization, and returns immediately with a job\_id. A page can run for minutes, so the response is a handle: poll POST /v1/shared-links/import/result with the job\_id for the page's files, failures and next\_cursor.




## OpenAPI

````yaml /api/openapi.json post /v1/shared-links/import
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, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-11-26'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/shared-links/import:
    post:
      summary: |
        ImportSharedLinkAPI mirrors erdo_import_shared_link: it validates the
      description: >
        request, starts one page of a shared-file import from a public file or
        shared-folder link onto a Knowledge record in the caller's organization,
        and returns immediately with a job\_id. A page can run for minutes, so
        the response is a handle: poll POST /v1/shared-links/import/result with
        the job\_id for the page's files, failures and next\_cursor.
      operationId: POST:mcp.ImportSharedLinkAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                cursor:
                  title: >
                    Cursor continues a large folder from the previous call's
                    next_cursor.
                  type: string
                paths:
                  items:
                    type: string
                  title: >
                    Paths selects exact relative file paths or folder prefixes
                    ending in "/".
                  type: array
                record:
                  description: >
                    exist in the caller's organization; the caller needs edit
                    access.
                  title: >
                    Record is the destination Knowledge record slug. The record
                    must already
                  type: string
                recursive:
                  title: |
                    Recursive includes nested folders; defaults to true.
                  type: boolean
                source_url:
                  description: |
                    parameters and Drive resource keys in the URL.
                  title: >
                    SourceURL is the public file or shared-folder link. Keep
                    sharing
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  error:
                    title: |
                      Error explains the failure when Status is "error".
                    type: string
                  failures:
                    items:
                      $ref: '#/components/schemas/action.SharedFileFailure'
                    title: >
                      Failures is the page's per-file import failures; empty
                      until Status is "done".
                    type: array
                  files:
                    items:
                      $ref: '#/components/schemas/action.ImportedSharedFile'
                    title: >
                      Files is the page's imported files; empty until Status is
                      "done".
                    type: array
                  job_id:
                    title: |
                      JobID identifies the page job for polling.
                    type: string
                  listing_complete:
                    title: >
                      ListingComplete reports that the folder listing ended with
                      this page.
                    type: boolean
                  next_cursor:
                    title: |
                      NextCursor continues a large folder from this page.
                    type: string
                  status:
                    title: |
                      Status is "processing", "done" or "error".
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    action.SharedFileFailure:
      properties:
        filename:
          type: string
        message:
          type: string
        reason:
          type: string
        source_url:
          type: string
      title: |
        SharedFileFailure reports one file that could not be imported.
      type: object
    action.ImportedSharedFile:
      description: |
        destination record.
      properties:
        attachment_handle:
          type: string
        attachment_id:
          format: uuid
          type: string
        byte_size:
          format: int64
          type: integer
        extraction_status:
          type: string
        file_handle:
          type: string
        file_id:
          format: uuid
          type: string
        filename:
          type: string
        media_type:
          type: string
        path:
          type: string
        source_url:
          type: string
        text_handle:
          type: string
      title: |
        ImportedSharedFile is one file stored as an org file and attached to the
      type: object
  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_...).

````

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