> For the complete documentation index, see [llms.txt](https://devdocs.olisystems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devdocs.olisystems.com/oli-scalechem-api/main-methods/brine-analysis.md).

# Brine analysis

### Request payload

```json
{
    "method": "scalechem.brineAnalysis",
    "params": {
        "chemistryModel": "chem",
        "waterAnalysisInputs": [
            ...<snip>...
        ]
    }
}
```

<table data-header-hidden><thead><tr><th width="223.33333333333334">params</th><th>type</th><th>description</th></tr></thead><tbody><tr><td><strong>params</strong></td><td>type</td><td>description</td></tr><tr><td>chemistryModel</td><td>string</td><td><a href="/pages/GD3eBn0fj7fXmpV6ePoy#chemistry-model">chemistry model name</a></td></tr><tr><td>waterAnalysisInputs</td><td>array of objects</td><td><a href="/pages/-MK1M9s-C6wqs4hucy1i">water analysis inputs</a></td></tr></tbody></table>

Brine analysis uses the same input options as the water analysis in OLI Engine API. Please refer to [water analysis](/group1/api-functions/wateranalysis.md) for the specifications of **params.waterAnalysisInputs**.

{% hint style="info" %}
In addition to the inputs shown above, some optional properties may also be specified. They can be viewed at [Optional Inputs](/optional-inputs.md).
{% endhint %}

### Response (status = PROCESSED)

Please refer to the [response ](/group1/api-functions/wateranalysis.md#response-status-processed)of water analysis in OLI Engine API.


---

# 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 dynamically by asking a question.

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

```
GET https://devdocs.olisystems.com/oli-scalechem-api/main-methods/brine-analysis.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
