Skip to content

Notifications ​

The person's notices and preferences by type.

List the person's notifications ​

GET /me/notificacoes

Access: Any signed-in person. Success status: 200.

Query parameters

ParameterTypeRequiredConstraintsDescription
cursorstringnoto 200 characters; ^[A-Za-z0-9_-]+$Cursor returned by the previous page.
limiteintegerno1…50; default: 20How many items per page (1 to 200; the default varies by route, usually 50).
naoLidas"0" | "1"notrue returns unread ones only.

Response

NotificacoesPagina

FieldTypeRequiredConstraintsDescription
itemslist of NotificacaoDtoyes
proximostring or nullyes
naoLidasintegeryes0…

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/notificacoes" -H "Authorization: Bearer $TOKEN"

Count of unread notifications ​

GET /me/notificacoes/contador

Access: Any signed-in person. Success status: 200.

Response

ContadorNotificacoes

FieldTypeRequiredConstraintsDescription
naoLidasintegeryes0…

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/notificacoes/contador" -H "Authorization: Bearer $TOKEN"

Mark notifications as read ​

POST /me/notificacoes/lidas

Access: Any signed-in person. Rate limit: up to 60 calls every 60 s per origin. Success status: 200.

Request body (MarcarLidas)

Option 1

FieldTypeRequiredConstraintsDescription
idslist of string (uuid)yes1–100 items

Option 2

FieldTypeRequiredConstraintsDescription
todastrueyes

Response

ContadorNotificacoes

FieldTypeRequiredConstraintsDescription
naoLidasintegeryes0…

On error: ErroApi model.

Example

bash
curl -X POST "$API/me/notificacoes/lidas" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"ids":["0198a000-0000-7000-8000-000000000001"]}'

Read notification preferences ​

GET /me/notificacoes/preferencias

Access: Any signed-in person. Success status: 200.

Response

Preferencias

FieldTypeRequiredConstraintsDescription
itemslist of Preferenciayes

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/notificacoes/preferencias" -H "Authorization: Bearer $TOKEN"

Update notification preferences ​

PUT /me/notificacoes/preferencias

Access: Any signed-in person. Rate limit: up to 30 calls every 60 s per origin. Success status: 200.

Request body (PreferenciasAtualizar)

FieldTypeRequiredConstraintsDescription
itemslist of Preferenciayes1–7 items

Response

Preferencias

FieldTypeRequiredConstraintsDescription
itemslist of Preferenciayes

On error: ErroApi model.

Example

bash
curl -X PUT "$API/me/notificacoes/preferencias" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"items":[{"evento":null,"inApp":null,"push":null}]}'

contato@presente.app.br