# Activate or deactivate automation

`POST https://api.tentary.com/v1/email/automations/{automation_id}/status`

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

---

Activates or deactivates an automation.

- `active`: the automation starts for new subscribers or buyers that match its trigger. It sends only its active emails.
- `inactive`: as in the app, all its emails become inactive, all contacts leave it, and their 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

- `automation_id` (integer, required, path): The id from list_email_automations. 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/automations/852/status" \
  -H "Authorization: Bearer $TENTARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "active"
}'
```

## Example response

```json
{
  "status": "needs_confirmation",
  "confirmation_id": 3,
  "confirm_url": "https://app.tentary.com/ai/confirm/euF2fQ_pqP9oIrYXr1iQcjkgyKyNVur2",
  "expires_at": "2026-10-27T08:56:48Z",
  "summary": "Activate automation \"After the Yoga Basics e-book\"",
  "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."
}
```
