---
title: "Activate/deactivate a subscriber"
method: POST
path: "/push/subscriptions/state"
tags: ["Subscribers"]
---

# Activate/deactivate a subscriber

`POST /push/subscriptions/state`

## Request

- Base URL: `https://api.sendpulse.com`
- URL: `https://api.sendpulse.com/push/subscriptions/state`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (client credentials, token URL `https://api.sendpulse.com/oauth/access_token`)

## Request body

- object
  - `id` integer, required
  - `state` 0 | 1, required

## Response `200`

State updated

- object
  - `result` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/sendpulse/apis/sendpulse-web-push-api.md) · [All operations](https://skmtc.dev/sendpulse/apis/sendpulse-web-push-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendpulse/apis/sendpulse-web-push-api/revisions/c58bb3a81231?raw)
