# Mobile - Obter configuração mobile da conta Business

`POST /business/get/mobile_config`

Pasta: **Business**

## Autenticação

```http
token: {{token}}
```

## Descrição

# Obter configuração mobile da conta Business

Busca um bloco `mobile_config` no WhatsApp (via cobaltmobile). O campo `name` identifica qual config consultar.

## Endpoint

`POST {{baseUrl}}/business/get/mobile_config`

## Autenticação

Envie o token da instância no header `token: {{token}}`.

## Corpo da requisição

| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| `name` | string | Sim | Nome da config (também aceito como query `?name=`). |
| `v` | string | Não | Versão da config. |
| `report_type` | string | Não | Tipo de relatório, quando aplicável. |

## Exemplo de Requisição

```bash
curl --request POST '{{baseUrl}}/business/get/mobile_config' \
  --header 'token: {{token}}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "biz_report_reasons",
  "v": "1",
  "report_type": "business_user"
}'
```

## Resposta de Sucesso

```json
{
  "success": true,
  "config": {
    "name": "biz_report_reasons",
    "v": "1",
    "report_type": "business_user",
    "tag": "mobile_config"
  }
}
```

## Erros comuns

- `401 Unauthorized`: o header `token` não foi enviado ou é inválido.
- `400 Bad Request`: JSON inválido ou campo obrigatório ausente.
- `500 Internal Server Error`: bridge mobile indisponível, instância não conectada em modo mobile, ou falha no WhatsApp.
- `400 Bad Request`: `name` ausente.

## Observações

**Mobile only.** Rota `POST /business/get/mobile_config`.

## Corpo (exemplo)

```json
{
  "name": "biz_report_reasons",
  "v": "1",
  "report_type": "business_user"
}
```

## cURL

```bash
curl -X POST "{{baseUrl}}/business/get/mobile_config" \
  -H "token: {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "biz_report_reasons",
  "v": "1",
  "report_type": "business_user"
}'
```

---

[Índice da pasta](./index.md) · [Índice geral](../index.md) · [UI](https://gozap.dev/docs?op=business/mobile-obter-configuracao-mobile-da-conta-business)
