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

# Unsuspend Email Account

> Reactivate a suspended email account and restore sending capabilities

<Note>
  Unsuspending an email account restores it to active status, allowing it to be used for campaign emails and warmup. The account resumes participating in email rotations across all associated campaigns.
</Note>

## Path Parameters

<ParamField path="email_account_id" type="number" required>
  The email account ID to unsuspend
</ParamField>

## Query Parameters

<ParamField query="api_key" type="string" required>
  Your SmartLead API key
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://server.smartlead.ai/api/v1/email-accounts/unsuspend/123?api_key=YOUR_KEY"
  ```

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

  API_KEY = "YOUR_API_KEY"
  account_id = 123

  response = requests.delete(
      f"https://server.smartlead.ai/api/v1/email-accounts/unsuspend/{account_id}",
      params={"api_key": API_KEY}
  )

  result = response.json()
  if result.get('success'):
      print(f"Email account {account_id} unsuspended and reactivated")
  ```

  ```javascript JavaScript theme={null}
  const API_KEY = 'YOUR_API_KEY';
  const accountId = 123;

  const response = await fetch(
    `https://server.smartlead.ai/api/v1/email-accounts/unsuspend/${accountId}?api_key=${API_KEY}`,
    { method: 'DELETE' }
  );

  const result = await response.json();
  if (result.success) {
    console.log(`Email account ${accountId} unsuspended and reactivated`);
  }
  ```
</RequestExample>

## Response Codes

<ResponseField name="200" type="Success">
  Email account unsuspended successfully
</ResponseField>

<ResponseField name="400" type="Bad Request">
  Invalid account ID or account not found
</ResponseField>

<ResponseField name="401" type="Unauthorized">
  Invalid or missing API key
</ResponseField>

<ResponseField name="500" type="Internal Server Error">
  Server error occurred
</ResponseField>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "success": true,
    "message": "Email account unsuspended successfully",
    "data": {
      "accountId": 123,
      "isSuspended": false
    }
  }
  ```

  ```json 400 - Account Not Found theme={null}
  {
    "success": false,
    "message": "Email account not found or does not belong to you"
  }
  ```

  ```json 400 - Invalid ID theme={null}
  {
    "success": false,
    "message": "Valid account ID is required"
  }
  ```

  ```json 401 - Unauthorized theme={null}
  {
    "message": "Invalid API Key"
  }
  ```
</ResponseExample>

## Reactivation Behavior

<Info>
  When an email account is unsuspended:

  * The `is_suspended` flag is set to `false`
  * The account immediately becomes available for campaign email sending
  * Warmup resumes if previously enabled
  * The account rejoins email rotation in all associated campaigns
  * Scheduled emails can be sent from this account
</Info>

<Tip>
  After unsuspending an account, verify:

  * SMTP/IMAP connections are still valid
  * Warmup settings are appropriate for resuming
  * Daily sending limits are correctly configured
</Tip>

## Related Endpoints

* [Suspend Email Account](/api-reference/email-accounts/suspend)
* [Get Email Account by ID](/api-reference/email-accounts/get-by-id)
* [Update Email Account](/api-reference/email-accounts/update)
