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

# Disconnect an account

> Disconnect a team social account. Pending deliveries will fail. Ask the user before disconnecting.

Administrator access with explicit administrator permission on API keys or MCP credentials, or a signed-in administrator.

Disconnect a team social account. Pending deliveries will fail. Ask the user before disconnecting.

Requires Administrator access. Scheduled deliveries for this account fail after disconnection. Previously published provider posts remain in place.

MCP clients can use [`disconnect_account`](/mcp-reference/disconnect_account) for this operation.

[Request conventions](/api-reference/overview) · [API keys](/api-keys) · [MCP connections](/mcp-connections)


## OpenAPI

````yaml api-reference/openapi.json DELETE /api/connections/{connectionId}
openapi: 3.1.0
info:
  title: Posted HTTP API
  version: 0.2.0
  description: >-
    All registered application, account, OAuth, MCP transport and health
    endpoints. Publishing and draft request schemas come from the shared runtime
    validators. Replace the example server with your installation. Documentation
    uses simple request examples and does not execute live publishing requests.
servers:
  - url: https://posted-api.example.com
security: []
paths:
  /api/connections/{connectionId}:
    delete:
      tags:
        - Social connections
      summary: Disconnect an account
      description: >-
        Disconnect a team social account. Pending deliveries will fail. Ask the
        user before disconnecting.


        Requires Administrator access. Scheduled deliveries for this account
        fail after disconnection. Previously published provider posts remain in
        place.


        Administrator access with explicit administrator permission on API keys
        or MCP credentials, or a signed-in administrator.
      operationId: delete_api_connections_by_connectionId
      parameters:
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            The connectionId from the corresponding list, record or
            authorization response.
      responses:
        '200':
          description: >-
            Successful response. Examples are illustrative; field values vary by
            record.
          content:
            application/json:
              schema:
                type: object
                properties:
                  completed:
                    type: boolean
                additionalProperties: true
              example:
                completed: true
        default:
          description: >-
            Request failure. Inspect code, message and requestId; respect
            Retry-After on HTTP 429.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
        - sessionCookie: []
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Personal or team Posted REST API key
    sessionCookie:
      type: apiKey
      in: cookie
      name: posted_session
      description: >-
        Signed-in human browser session; mutation requests also need the exact
        UI Origin

````

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