Skip to main content
GET
/
referrals
/
banned
curl --request GET \
  --url 'https://backend.testeswaffle.org/referrals/banned?page=1&limit=50' \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
{
  "success": true,
  "data": {
    "banned_users": [
      {
        "email": "[email protected]",
        "banned_at": "2024-01-15T16:45:00Z",
        "reason": "Múltiplas tentativas de fraude detectadas",
        "banned_by": "[email protected]",
        "referrals_before_ban": 47
      }
    ],
    "pagination": {
      "total": 12,
      "page": 1,
      "limit": 50,
      "pages": 1
    }
  }
}

Descrição

Retorna a lista de todos os usuários banidos do programa de indicações. Requer autenticação JWT.

Headers

Authorization
string
required
Token JWT no formato: Bearer

Query Parameters

page
number
default:"1"
Número da página
limit
number
default:"20"
Número de itens por página (máximo: 100)

Response

success
boolean
Indica se a operação foi bem-sucedida
data
object
curl --request GET \
  --url 'https://backend.testeswaffle.org/referrals/banned?page=1&limit=50' \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
{
  "success": true,
  "data": {
    "banned_users": [
      {
        "email": "[email protected]",
        "banned_at": "2024-01-15T16:45:00Z",
        "reason": "Múltiplas tentativas de fraude detectadas",
        "banned_by": "[email protected]",
        "referrals_before_ban": 47
      }
    ],
    "pagination": {
      "total": 12,
      "page": 1,
      "limit": 50,
      "pages": 1
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
number
default:1

Número da página

limit
number
default:20

Itens por página

Required range: x <= 100

Response

200 - application/json

Lista de usuários banidos

success
boolean
data
object