# Reactions

At least one reaction, with unique IDs, so that a reward can name one.

Type: array of [Reaction](/docs/types/reaction.md), at least 1

## Fields of Reaction

- `id` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): The customer's own name for the reaction, unique within the job. Its rewards carry it.
- `materials` (array of [PlannedMaterial](/docs/types/planned-material.md), at least 1, required)
  - `role` ([Role](/docs/types/role.md) (one of "reactant", "reagent", "catalyst", "solvent"), required): What a material that goes into a reaction does in it.
  - `smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.
  - `equivalents` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): An amount greater than zero, up to 10¹².
  - `name` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern) or null): A short name, such as a reaction's ID or a chemist's: 1 to 200 printable characters, not all spaces.
  - `volume_ml` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): An amount greater than zero, up to 10¹².
- `product_smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.
- `procedure` ([Text](/docs/types/text.md) (string, pattern) or null): Text that says something, such as a procedure: not empty, not all spaces, and with no NUL character. It may hold line breaks.
- `scale_mmol` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): The amount of the limiting reactant. The lab chooses it when absent.
- `temperature_c` ([Celsius](/docs/types/celsius.md) (number, -273.15 to 5000) or null): A temperature in degrees Celsius, from absolute zero to 5000.
- `time_h` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): An amount greater than zero, up to 10¹².

## Used by

- [Work](/docs/types/work.md)
