---
title: "Criar Preferência de Notificação"
method: POST
path: "/notifications/preferences"
---

# Criar Preferência de Notificação

`POST /notifications/preferences`

## Request

- Base URL: `https://sandbox.api.pagseguro.com`
- URL: `https://sandbox.api.pagseguro.com/notifications/preferences`
- Auth: none required

## Headers

- `Authorization` string, required

## Request body

- object
  - `events` string[], required: Tipo de evento que você deseja nessa preferência de notificação. Valores disponíveis: <br/> - `CHARGEBACK`<br/> - `ENROLLMENT`<br/> - `CANCELLATION`<br/> - `ORDER.CHARGE`<br/>
  - `target` string, required: URL de destino da notificação do webhook (Máx. 2048 caracteres).

## Response `200`

200

- object
  - `id` string
  - `events` string[]
  - `target` string
  - `created_at` string
  - `updated_at` string

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `0838a2b3f755`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pagbank/apis/nova-plataforma-sandbox/changes/notifications/preferences/post.md)

---

[API](https://skmtc.dev/pagbank/apis/nova-plataforma-sandbox.md) - [All operations](https://skmtc.dev/pagbank/apis/nova-plataforma-sandbox/llms.txt) - [OpenAPI document](https://skmtc.dev/pagbank/apis/nova-plataforma-sandbox/revisions/0838a2b3f755?raw)
