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

# Unlink

> Take a linked account back out, from the next import on.

The account maps to the person it was linked from again. Its records must
not be imported yet: reset the import first. Only workspace and admin keys
may call it.

Experimental: ingest may change or stop working without notice.

> [!WARNING]
>
> Ingest is experimental: this endpoint may change or stop working without notice. See [Ingesting Source Records](https://honcho.dev/docs/v3/documentation/features/advanced/ingest.md).


## OpenAPI

````yaml post /v3/workspaces/{workspace_id}/ingest/unlink
openapi: 3.1.0
info:
  title: Honcho API
  summary: The Identity Layer for the Agentic World
  description: >-
    Honcho is a platform for giving agents user-centric memory and social
    cognition.
  contact:
    name: Plastic Labs
    url: https://honcho.dev/
    email: hello@plasticlabs.ai
  license:
    name: GNU Affero General Public License v3.0
    url: https://github.com/plastic-labs/honcho/blob/main/LICENSE
  version: 3.6.2
servers:
  - url: https://api.honcho.dev
    description: Production SaaS Platform
security: []
paths:
  /v3/workspaces/{workspace_id}/ingest/unlink:
    post:
      tags:
        - ingest
      summary: Unlink
      description: >-
        Take a linked account back out, from the next import on.


        The account maps to the person it was linked from again. Its records
        must

        not be imported yet: reset the import first. Only workspace and admin
        keys

        may call it.


        Experimental: ingest may change or stop working without notice.
      operationId: unlink_v3_workspaces__workspace_id__ingest_unlink_post
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the workspace
            title: Workspace Id
          description: ID of the workspace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestUnlink'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestUnlinkResult'
        '404':
          description: Workspace or peer not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: >-
            Not an auto workspace, or the people involved already have imported
            messages: reset the import first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: >-
            Contention outlasted the retries; nothing changed. Calling again is
            safe.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    IngestUnlink:
      properties:
        peer:
          type: string
          maxLength: 512
          minLength: 1
          title: Peer
          description: The person it was linked into
        account:
          $ref: '#/components/schemas/IngestAccountRef'
      type: object
      required:
        - peer
        - account
      title: IngestUnlink
      description: An account to take back out of the person it was linked into.
    IngestUnlinkResult:
      properties:
        peer_id:
          type: string
          title: Peer Id
        account:
          $ref: '#/components/schemas/IngestAccount'
      type: object
      required:
        - peer_id
        - account
      title: IngestUnlinkResult
      description: The person the account maps to again, from the next import on.
    ErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: What went wrong
      type: object
      required:
        - detail
      title: ErrorResponse
      description: >-
        The body returned for every raised HonchoException.


        `HTTPValidationError` is FastAPI's own 422 shape, whose `detail` is an
        array

        of per-field errors. Honcho's handler returns a single message string

        instead (see `honcho_exception_handler` in `src/main.py`), so error
        codes

        raised from application code document this schema rather than that one.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IngestAccountRef:
      properties:
        source:
          type: string
          maxLength: 64
          minLength: 1
          title: Source
        source_instance:
          type: string
          maxLength: 128
          minLength: 1
          title: Source Instance
        id:
          type: string
          maxLength: 512
          minLength: 1
          title: Id
      type: object
      required:
        - source
        - source_instance
        - id
      title: IngestAccountRef
      description: One source account, by its ID in the source.
    IngestAccount:
      properties:
        source:
          type: string
          title: Source
        source_instance:
          type: string
          title: Source Instance
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: The account's ID in the source, when it has one
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
          description: The newest name the source gave for the account
      type: object
      required:
        - source
        - source_instance
      title: IngestAccount
      description: One source account mapped to a peer.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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