# Redox Query

The input inflow species may contain elements that react and change their oxidation states, which should be accurately accounted for in the calculation. Certain metal elements like Iron and Zinc have all their valence states enabled by default, while others like Chlorine may require user selections. The Redox query lists each element's oxidation states, enabling users to view available valence states and generate a template format that can be readily applied in the Chemistry Builder input JSON file.

### Request Payload

```json
 {   
	"params": {
	"thermodynamicFramework": "Aqueous (H+ ion)",
	"privateDatabanks": [
		"COR"
	],
	"inflows": [
		{
			"name": "H2O"
		},
		{
			"name": "NACL"
		},
		{
			"name": "FECL3"
		}]	
	}
 }


```

<table><thead><tr><th width="255" align="center">params</th><th width="113" align="center">required</th><th width="135" align="center">type </th><th>description</th></tr></thead><tbody><tr><td align="center">thermodynamicFramework</td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="2714">✔️</span></td><td align="center">String</td><td>The name of thermodynamic framework (e.g. Aqueous (H+ ion))</td></tr><tr><td align="center">privateDatabanks</td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="274c">❌</span></td><td align="center">Array of String</td><td>The array of private data bank codes (e.g. "COR" and "CER")</td></tr><tr><td align="center">inflows</td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="2714">✔️</span></td><td align="center">Array of JSON Object</td><td>The array of JSON object  containing a valid identity of inflow species (e.g. {"name": "CO2"} for carbon dioxide)</td></tr></tbody></table>

### Response (status=SUCCESS)

If no run-time [errors ](/chemistry-model-files/chembuilder-api/supporting-information-for-chembuilder/chembuilder-errors.md)are encountered, the [Query output](/chemistry-model-files/chembuilder-api/chembuilder-query/query-output-results.md) with the requested contents will be available for users to view.


---

# 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://devdocs.olisystems.com/chemistry-model-files/chembuilder-api/chembuilder-query/redox-query.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.
