> For the complete documentation index, see [llms.txt](https://docs.fortics.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fortics.com.br/campanha-api-reference/configuracoes-v2.md). Agents can also search and read this documentation through its [MCP server](https://docs.fortics.com.br/~gitbook/mcp).

# Configurações (v2)

## GET /api/campaign/v2/settings

> Obter configurações do tenant

```json
{"openapi":"3.0.0","info":{"title":"Campaign API","version":"1.0.0"},"servers":[{"url":"/","description":"Produção"}],"security":[{"access-token":[]}],"components":{"securitySchemes":{"access-token":{"scheme":"bearer","bearerFormat":"JWT","type":"http","in":"header"}},"schemas":{"SettingsPresenter":{"type":"object","properties":{"timezone":{"type":"string","description":"Fuso horário padrão do tenant"},"country_code":{"type":"number","description":"DDI padrão"},"pause_on_config":{"description":"Regras de pausa automática por qualidade/modelo","allOf":[{"$ref":"#/components/schemas/PauseOnConfigPresenter"}]}},"required":["timezone","country_code","pause_on_config"]},"PauseOnConfigPresenter":{"type":"object","properties":{"message_model_paused":{"type":"boolean"},"message_model_quality_changed":{"type":"boolean"},"message_model_category_changed":{"type":"boolean"},"number_quality_changed":{"type":"boolean"},"resume_on_recharge":{"type":"boolean"}},"required":["message_model_paused","message_model_quality_changed","message_model_category_changed","number_quality_changed","resume_on_recharge"]}}},"paths":{"/api/campaign/v2/settings":{"get":{"operationId":"SettingsV2Controller_get_v2","parameters":[],"responses":{"200":{"description":"Configurações obtidas com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPresenter"}}}}},"summary":"Obter configurações do tenant","tags":["Configurações (v2)"]}}}}
```

## PATCH /api/campaign/v2/settings

> Atualizar configurações do tenant

```json
{"openapi":"3.0.0","info":{"title":"Campaign API","version":"1.0.0"},"servers":[{"url":"/","description":"Produção"}],"security":[{"access-token":[]}],"components":{"securitySchemes":{"access-token":{"scheme":"bearer","bearerFormat":"JWT","type":"http","in":"header"}},"schemas":{"SettingsPresenter":{"type":"object","properties":{"timezone":{"type":"string","description":"Fuso horário padrão do tenant"},"country_code":{"type":"number","description":"DDI padrão"},"pause_on_config":{"description":"Regras de pausa automática por qualidade/modelo","allOf":[{"$ref":"#/components/schemas/PauseOnConfigPresenter"}]}},"required":["timezone","country_code","pause_on_config"]},"PauseOnConfigPresenter":{"type":"object","properties":{"message_model_paused":{"type":"boolean"},"message_model_quality_changed":{"type":"boolean"},"message_model_category_changed":{"type":"boolean"},"number_quality_changed":{"type":"boolean"},"resume_on_recharge":{"type":"boolean"}},"required":["message_model_paused","message_model_quality_changed","message_model_category_changed","number_quality_changed","resume_on_recharge"]}}},"paths":{"/api/campaign/v2/settings":{"patch":{"operationId":"SettingsV2Controller_update_v2","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"description":"Fuso horário padrão do tenant","type":"string"},"country_code":{"description":"DDI padrão, ex. 55","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pause_on_config":{"type":"object","properties":{"message_model_paused":{"description":"Pausar quando o modelo de mensagem for pausado","type":"boolean"},"message_model_quality_changed":{"description":"Pausar quando a qualidade do modelo mudar","type":"boolean"},"message_model_category_changed":{"description":"Pausar quando a categoria do modelo mudar","type":"boolean"},"number_quality_changed":{"description":"Pausar quando a qualidade do número mudar","type":"boolean"},"resume_on_recharge":{"description":"Retomar automaticamente após recarga de saldo","type":"boolean"}},"description":"Regras de pausa automática por qualidade/modelo. Não cobre pausa/retomada por janela de disparo."}},"description":"Corpo para atualizar as configurações do tenant"}}}},"responses":{"200":{"description":"Configurações atualizadas com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPresenter"}}}}},"summary":"Atualizar configurações do tenant","tags":["Configurações (v2)"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fortics.com.br/campanha-api-reference/configuracoes-v2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
