# Blacklist

## Importar Blacklist

Para poder cargar teléfonos o e-mails al blacklist es necesario envíar un archivo de tipo csv cuyo contenido sea un listado de todos los teléfonos o e-mails (uno por linea) según corresponda.

| Parameter | Type  | Values                     | Required | Description              |
| --------- | ----- | -------------------------- | -------- | ------------------------ |
| file      | query |                            | Si       | Listado de teléfonos     |
| blacklist | query | 'email' o 'telephone'      | Si       | Tipo de blacklist        |
| type      | query | 'create' o 'delete-create' | Si       | Indica acción a realizar |

#### Request

```bash
$ curl 
  -F 'file=@/ruta/al/archivo.csv'
  -F 'blacklist=email'
  -F 'type=create'
  'https://api.woowup.com/apiv3/account/blacklist'
  -H 'accept: application/json' \
  -H 'authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
  -H 'cache-control: no-cache'
```

#### Response

```javascript
{
    "payload": null,
    "message": "ok",
    "code": "ok",
    "time": "99ms"
}
```

## Eliminar Blacklist

Permite vaciar la lista de blacklist de teléfonos o e-mails

| Parameter | Type  | Values                | Required | Description       |
| --------- | ----- | --------------------- | -------- | ----------------- |
| blacklist | query | 'email' o 'telephone' | Si       | Tipo de blacklist |

#### Requeset

```bash
$ curl -X DELETE \
  'https://api.woowup.com/apiv3/account/blacklist'
    -d '{
  	  "blacklist" : "email"
    }'
  -H 'accept: application/json' \
  -H 'authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
  -H 'cache-control: no-cache'
```

#### Response

```javascript
{
    "payload": null,
    "message": "ok",
    "code": "ok",
    "time": "99ms"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://woowup-docs.gitbook.io/woowup-developer-docs/api/blacklist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
