> 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/chemistry-model-files/chembuilder-api/chembuilder-query/redox-query.md).

# 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.
