# Activate or deactivate automation e-mail

`POST https://api.tentary.com/v1/email/automation-emails/{email_id}/status`

Source: https://tentary.com/de/help/api/set-automation-email-status/
Area: E-Mails
MCP tool: `set_automation_email_status`. Changes nothing at once. The answer has a link that the account owner confirms in Tentary.

---

Activates or deactivates one email of an automation.

- `active`: contacts who start the automation get this email at its send time. Contacts already in it get it too, if that time is still ahead. The email needs a subject, a text and safe links.
- `inactive`: its waiting emails are not sent.

**After the call:** the account owner confirms at the `confirm_url` within 5 minutes. Then check the result with [`GET /v1/confirmations/{confirmation_id}`](https://tentary.com/de/help/api/get-confirmation/).

## Authorization

`Authorization: Bearer <API key>`

A personal API key (tnt_...). Create it in the Tentary app on the page AI & API.

## Path parameters

- `email_id` (integer, required, path): The id of an e-mail from get_email_automation. Limits: min 1.

## Request body

- `status` (string, required): The new status. Allowed values: `active`, `inactive`.

## Response

The action waits for the seller's confirmation.

- `status` (string): Nothing happened yet. Allowed values: `needs_confirmation`.
- `confirmation_id` (integer): For get_confirmation.
- `confirm_url` (string<uri>): The seller opens it while logged in to Tentary and confirms.
- `expires_at` (string<date-time>): UTC, like 2026-01-31T14:05:00Z. The link works until then.
- `summary` (string): What the seller confirms.
- `message` (string): Next steps for the AI app.

## Example request

```bash
curl -X POST "https://api.tentary.com/v1/email/automation-emails/862/status" \
  -H "Authorization: Bearer $TENTARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "active"
}'
```

## Example response

```json
{
  "status": "needs_confirmation",
  "confirmation_id": 4,
  "confirm_url": "https://app.tentary.com/ai/confirm/4ksHWptR1ojUI8WnrfQuXxGRLDBb5N77",
  "expires_at": "2026-10-27T08:56:48Z",
  "summary": "Activate e-mail \"Day 3\"",
  "message": "Nothing happened yet. Give the seller the confirm_url: they open it while logged in to Tentary and confirm within 5 minutes. Then call get_confirmation to see the result. If the link expired, call this tool again."
}
```
