Geek Social — Documentação
API ReferenceNotifications

GET /notifications/

Listar notificações do usuário

GET/notifications/Auth: accessToken

Cursor pagination, ordem cronológica decrescente. Inclui actor preview (id, displayName, avatarUrl).

Request

Esta requisição não tem corpo.

Response

200

Sem corpo na resposta.

Erros

Sem respostas de erro documentadas.

Exemplos

curl -X GET 'http://localhost:3003/notifications/' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
  -d '{}'
await fetch('http://localhost:3003/notifications/', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + accessToken,
  },
  body: JSON.stringify({}),
})

Side effects

Relacionados

On this page