---
title: "Activate Sieve Script (Alias Auth)"
method: POST
path: "/v1/sieve-scripts/{script_id}/activate"
tags: ["Sieve Scripts"]
---

# Activate Sieve Script (Alias Auth)

`POST /v1/sieve-scripts/{script_id}/activate`

## Request

- Base URL: `https://api.forwardemail.net`
- URL: `https://api.forwardemail.net/v1/sieve-scripts/{script_id}/activate`
- Auth: HTTP basic

Activate a Sieve script for the authenticated alias. Only one script can be active at a time.

## Path parameters

- `script_id` string, required

## Response `200`

Sieve script activated

- SieveScript
  - `id` string, required: Unique script identifier
  - `name` string, required: Script name
  - `content` string, required: Sieve script content
  - `alias` string, required: Alias ID this script belongs to
  - `is_active` boolean: Whether the script is active
  - `priority` integer: Script priority (lower = higher priority)
  - `created_at` string, date-time: Creation timestamp
  - `updated_at` string, date-time: Last update timestamp
  - `object` string

## Other responses

- `401`: Error response
- `404`: Error response

---

[API](https://skmtc.dev/forwardemail/apis/forward-email-api.md) · [All operations](https://skmtc.dev/forwardemail/apis/forward-email-api/llms.txt) · [OpenAPI document](https://skmtc.dev/forwardemail/apis/forward-email-api/revisions/ecefab4527f6?raw)
