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

# Stop Warmup

> Stop the warmup process for an account

## Path Parameters

<ParamField path="accountId" type="string" required>
  The unique account identifier.
</ParamField>

## Response

<ResponseField name="accountId" type="string">
  The account identifier.
</ResponseField>

<ResponseField name="platform" type="string">
  Platform: `tiktok` or `instagram`.
</ResponseField>

<ResponseField name="warmupStatus" type="object">
  Updated warmup status.

  <Expandable title="properties">
    <ResponseField name="enabled" type="boolean">
      Always `false` after stopping.
    </ResponseField>

    <ResponseField name="stoppedAt" type="string">
      ISO 8601 timestamp of when warmup was stopped.
    </ResponseField>

    <ResponseField name="startedAt" type="string">
      ISO 8601 timestamp of when warmup originally started.
    </ResponseField>

    <ResponseField name="duration" type="number">
      Total duration that was configured (in days).
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/stop \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/stop', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  });

  const data = await response.json();
  ```

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

  response = requests.post(
      'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/stop',
      headers={'Authorization': 'Bearer YOUR_API_KEY'}
  )

  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "accountId": "acc_1a2b3c4d5e",
    "platform": "tiktok",
    "warmupStatus": {
      "enabled": false,
      "stoppedAt": "2024-04-25T20:05:00Z",
      "startedAt": "2024-04-21T20:00:00Z",
      "duration": 7
    }
  }
  ```
</ResponseExample>

## Error Responses

```json Unauthorized theme={null}
{
  "error": {
    "code": "unauthenticated",
    "message": "Invalid or missing API key"
  }
}
```

```json Account Not Found theme={null}
{
  "error": {
    "code": "not_found",
    "message": "Account acc_1a2b3c4d5e not found"
  }
}
```

```json Warmup Not Active theme={null}
{
  "error": {
    "code": "warmup_not_active",
    "message": "No active warmup found for this account"
  }
}
```

```json Server Error theme={null}
{
  "error": {
    "code": "internal",
    "message": "An unexpected error occurred"
  }
}
```
