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

# Pause Sub-Account

> Pause a sub-account under an agency account.

<Note>
  This endpoint requires an **agency owner** token.
</Note>

## Headers

<ParamField header="token" type="string" required>
  Token from the agency owner account.
</ParamField>

## Body Parameters

<ParamField body="email" type="string" required>
  Email address of the sub-account to pause.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the request was successful.
</ResponseField>

<ResponseField name="message" type="string">
  A human-readable result message.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.linkedcamp.com/users/pause \
    -H "token: YOUR_AGENCY_OWNER_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "email": "jane@example.com"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.linkedcamp.com/users/pause",
      headers={"token": "YOUR_AGENCY_OWNER_TOKEN"},
      json={"email": "jane@example.com"},
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.linkedcamp.com/users/pause", {
    method: "POST",
    headers: {
      "token": "YOUR_AGENCY_OWNER_TOKEN",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ email: "jane@example.com" }),
  });
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Sub-account paused successfully!"
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "message": "Invalid user email!"
  }
  ```
</ResponseExample>
