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

# Toggle social account

> Toggle a social account between active and inactive states.

## Request

<ParamField path="account" type="string" required>
  The social account ID.
</ParamField>

## Response

Returns the updated social account. Same shape as one entry in [`GET /social-accounts`](/api-reference/endpoint/list-social-accounts).

Returns `404` with `{ "message": "Account not found." }` if the account doesn't exist or belongs to a different workspace.

<RequestExample>
  ```bash theme={null}
  curl -X PUT https://app.trypost.it/api/social-accounts/b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e/toggle \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "id": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e",
    "platform": "linkedin",
    "display_name": "John Doe",
    "username": "johndoe",
    "is_active": false,
    "status": "connected"
  }
  ```
</ResponseExample>
