> 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.md).

# Main methods

## Run scalechem calculation

<mark style="color:green;">`POST`</mark> `https://api.olisystems.com/engine/scalechem/{fileId}`

#### Headers

| Name                                            | Type   | Description            |
| ----------------------------------------------- | ------ | ---------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer {access\_token} |
| Content-Type                                    | String | application/json       |

{% tabs %}
{% tab title="200: OK Please look at "API call blueprint" page " %}

```javascript
{
	"code": 200,
	"data": {
		"file_id": "dee854a6-59db-487d-ad08-a20dee691133",
		"jobId": "f6b3375e-cd0f-4ace-a5ee-71e047b76754",
		"resultsLink": "https://api.olisystems.com/result/flash/f6b3375e-cd0f-4ace-a5ee-71e047b76754?context=engine",
		"status": "IN PROGRESS"
	},
	"message": "Process execution started Successfully",
	"status": "SUCCESS"
}
```

{% endtab %}
{% endtabs %}

### Request payload

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

### Methods

| method                       | description                                                                     |
| ---------------------------- | ------------------------------------------------------------------------------- |
| "scalechem.brineAnalysis"    | [Brine analysis](/oli-scalechem-api/main-methods/brine-analysis.md)             |
| "scalechem.oilAnalysis"      | [Oil analysis](/oli-scalechem-api/main-methods/oil-analysis.md)                 |
| "scalechem.gasAnalysis"      | [Gas analysis](/oli-scalechem-api/main-methods/gas-analysis.md)                 |
| "scalechem.mixerCalculation" | [Mixer calculation](/oli-scalechem-api/main-methods/mixer-calculation.md)       |
| "scalechem.scaleScenario"    | [Calculate scaling scenario](/oli-scalechem-api/main-methods/scale-scenario.md) |

### Chemistry model

**params.chemistryModel** specifies the name of the chemistry model file with ".dbs" extension, that is uploaded in the package.
