---
title: "Unsubscribe email (with token)"
method: POST
path: "/apps/{app_id}/notifications/{notification_id}/unsubscribe?token={token}"
---

# Unsubscribe email (with token)

`POST /apps/{app_id}/notifications/{notification_id}/unsubscribe?token={token}`

## Request

- Base URL: `https://api.onesignal.com`
- URL: `https://api.onesignal.com/apps/{app_id}/notifications/{notification_id}/unsubscribe?token={token}`
- Auth: none required
- TypeScript: <https://skmtc.dev/onesignal/apis/api-onesignal-com/docs/apps/:app_id/notifications/:notification_id/unsubscribe%3Ftoken=:token/post.ts> (a function with typed inputs; its response is checked against the schema)

Unsubscribe an email address from future messages by calling this API from your custom unsubscribe page. Automatically disables the associated email subscription using a token-based approach.

## Path parameters

- `app_id` string, required
- `notification_id` string, required

## Query parameters

- `token` string

## Response `202`

202

- object
  - `success` string

## Other responses

- `400`: 400
- `403`: 403
- `404`: 404
- `429`: 429
- `503`: Service temporarily unavailable. Retry after a short backoff. The body may be empty or non-JSON in some failure modes.

---

[API](https://skmtc.dev/onesignal/apis/api-onesignal-com.md) - [All operations](https://skmtc.dev/onesignal/apis/api-onesignal-com/llms.txt) - [OpenAPI document](https://skmtc.dev/onesignal/apis/api-onesignal-com/revisions/79328bbf7a4b?raw)
